Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Unity Analytics causing crashes

Discussion in 'iOS and tvOS' started by C-Gabriel, Oct 8, 2019.

  1. C-Gabriel

    C-Gabriel

    Joined:
    Jan 27, 2016
    Posts:
    119
    No idea how to reproduce as it's from Unity Analytics.

    UNITY VERSION
    2019.2.7f2

    DEVICE
    iPhone10,2

    OS VERSION
    iOS 12.4

    CPU
    arm64

    GFX
    Apple A11 GPU

    Code (CSharp):
    1. Native StackTrace:
    2.  
    3. Thread 0
    4. 0   libsystem_kernel.dylib             0x00000002159ef9d4 __ulock_wait
    5. 1   xxxxxxxxxx                         0x0000000104c001d0 PlatformThread::Join(Thread const*)
    6. 2   xxxxxxxxxx                         0x0000000104bfed5c Thread::WaitForExit(bool)
    7. 3   xxxxxxxxxx                         0x0000000104b6f128 JobQueue::Shutdown(JobQueue::ShutdownMode)
    8. 4   xxxxxxxxxx                         0x000000010496367c UnityEngine::Analytics::CloudJobScheduler::Close()
    9. 5   xxxxxxxxxx                         0x0000000104966830 DispatcherService::CloseService()
    10. 6   xxxxxxxxxx                         0x0000000104956f54 BaseUnityAnalytics::CloseService()
    11. 7   xxxxxxxxxx                         0x000000010495e420 CallbackArray5<unsigned int, unsigned long long, unsigned long long, unsigned long long, int>::Invoke(unsigned int, unsigned long long, unsigned long long, unsigned long long, int)
    12. 8   xxxxxxxxxx                         0x000000010495e378 AnalyticsSessionService::OnPlayerSessionStateChanged(bool, AnalyticsSessionService::SessionChangeReason, bool)
    13. 9   xxxxxxxxxx                         0x000000010495e2dc AnalyticsSessionService::OnPlayerStateChanged(AnalyticsSessionService::SessionState, AnalyticsSessionService::SessionChangeReason)
    14. 10  xxxxxxxxxx                         0x0000000104958590 CallbackArray::Invoke()
    15. 11  xxxxxxxxxx                         0x0000000104b9fdd4 PlayerCleanup(bool)
    16. 12  xxxxxxxxxx                         0x0000000104dca900 UnityCleanup
    17. 13  xxxxxxxxxx                         0x00000001046959bc -[UnityAppController applicationWillTerminate:]
    18. 14  UIKitCore                          0x00000002428e4ef4 -[UIApplication _terminateWithStatus:]
    19. 15  UIKitCore                          0x00000002421a0d7c __98-[__UICanvasLifecycleMonitor_Compatability deactivateEventsOnly:withContext:forceExit:completion:]_block_invoke.261
    20. 16  UIKitCore                          0x00000002428e90ac _runAfterCACommitDeferredBlocks
    21. 17  UIKitCore                          0x00000002428d7bfc
    22.  
    23. Thread 1 (crashed)
    24. 0   xxxxxxxxxxxx                       0x0000000102783b38 UnityWebRequestProto<UnityWebRequestTransport, AtomicRefCounter, RedirectHelper, ResponseHelper, DownloadHandler, UploadHandler, CertificateHandler, HeaderHelper, AsyncOperation>::FinishDoRequest(WebError)
    25. 1   xxxxxxxxxxxx                       0x00000001020ad5c8 -[UnityWebRequestDelegate URLSession:task:didCompleteWithError:]
    26. 2   CFNetwork                          0x00000001c0defb20 _CFNetworkHTTPConnectionCacheSetLimit
    27. 3   Foundation                         0x00000001bde0d61c __NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK__
    28. 4   Foundation                         0x00000001bdd173d8 -[NSBlockOperation main]
    29. 5   Foundation                         0x00000001bde0f8a4 __NSOPERATION_IS_INVOKING_MAIN__
    30. 6   Foundation                         0x00000001bdd17070 -[NSOperation start]
    31. 7   Foundation                         0x00000001bde1029c __NSOPERATIONQUEUE_IS_STARTING_AN_OPERATION__
    32. 8   Foundation                         0x00000001bde0fd68 __NSOQSchedule_f
    33. 9   libdispatch.dylib                  0x00000001bd6f99a8 _dispatch_block_async_invoke2
    34. 10  libdispatch.dylib                  0x00000001bd716184 _dispatch_client_callout
    35. 11  libdispatch.dylib                  0x00000001bd6efeb8 _dispatch_continuation_pop$VARIANT$armv81
    36. 12  libdispatch.dylib                  0x00000001bd6ef62c _dispatch_async_redirect_invoke
    37. 13  libdispatch.dylib                  0x00000001bd6fc110 _dispatch_root_queue_drain
    38. 14  libdispatch.dylib                  0x00000001bd6fc8b0 _dispatch_worker_thread2
    39. 15  libsystem_pthread.dylib            0x00000001bd765f64 _pthread_wqthread
    40. 16  libsystem_pthread.dylib            0x00000001bd768ae0 start_wqthread
    41.  
     
    Last edited: Oct 10, 2019
  2. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    Have you been able to test on iOS 12.4? Does it happen every time for affected users? Understood you may just be receiving this info from your crash reporting service and might not have detailed information.
     
  3. C-Gabriel

    C-Gabriel

    Joined:
    Jan 27, 2016
    Posts:
    119
    I honestly don't have any more info. However, I've noticed that actually it crashes on Thread 1 because of UnityWebRequestProto. Not sure it is related to Unity Analytics anymore, which was on the Thread 0.
    Edited the first post to include the Thread 1 log as well
     
  4. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    So you're not able to reproduce? Where are you getting the error info?
     
  5. C-Gabriel

    C-Gabriel

    Joined:
    Jan 27, 2016
    Posts:
    119
    I got the error info from Unity Cloud Diagnostics. I've never had a crash on my personal device, but since the game is in soft launch, it's hard to find a pattern.