Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

iOS Crash UnityWebRequestProto

Discussion in 'iOS and tvOS' started by kirilldyagilev, Oct 7, 2019.

  1. kirilldyagilev

    kirilldyagilev

    Joined:
    Jan 16, 2019
    Posts:
    7
    We are using 2019.1.13f1 and iOS 12

    #61. Crashed: com.unity3d.WebOperationQueue (QOS: UNSPECIFIED)
    0 aol 0x1057ff41c UnityWebRequestProto<UnityWebRequestTransport, AtomicRefCounter, RedirectHelper, ResponseHelper, DownloadHandler, UploadHandler, CertificateHandler, HeaderHelper, AsyncOperation>::FinishDoRequest(WebError) + 593 (UnityWebRequestProto.h:593)
    1 aol 0x104cc9484 -[UnityWebRequestDelegate URLSession:task:didCompleteWithError:] + 204 (UnityWebRequest.mm:204)
    2 CFNetwork 0x188cdeb20 _CFNetworkHTTPConnectionCacheSetLimit + 206092
    3 Foundation 0x185cfd61c __NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK__ + 16
    4 Foundation 0x185c073d8 -[NSBlockOperation main] + 100
    5 Foundation 0x185cff8a4 __NSOPERATION_IS_INVOKING_MAIN__ + 20
    6 Foundation 0x185c07070 -[NSOperation start] + 732
    7 Foundation 0x185d0029c __NSOPERATIONQUEUE_IS_STARTING_AN_OPERATION__ + 20
    8 Foundation 0x185cffd68 __NSOQSchedule_f + 180
    9 libdispatch.dylib 0x1855e99a8 _dispatch_block_async_invoke2 + 104
    10 libdispatch.dylib 0x185606184 _dispatch_client_callout + 16
    11 libdispatch.dylib 0x1855dfeb8 _dispatch_continuation_pop$VARIANT$armv81 + 404
    12 libdispatch.dylib 0x1855df62c _dispatch_async_redirect_invoke + 592
    13 libdispatch.dylib 0x1855ec110 _dispatch_root_queue_drain + 344
    14 libdispatch.dylib 0x1855ec8b0 _dispatch_worker_thread2 + 116
    15 libsystem_pthread.dylib 0x185655f64 _pthread_wqthread + 212
    16 libsystem_pthread.dylib 0x185658ae0 start_wqthread + 8
     
  2. Aurimas-Cernius

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    3,640
    Can you reliably reproduce this issue locally?
     
  3. kirilldyagilev

    kirilldyagilev

    Joined:
    Jan 16, 2019
    Posts:
    7
    Not reliably, but this issue happens a lot, we have to change the scenes to reproduce it (web requests are being sent a lot during the transitions)
     
  4. Aurimas-Cernius

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    3,640
    Could you report a bug for this?
     
  5. kirilldyagilev

    kirilldyagilev

    Joined:
    Jan 16, 2019
    Posts:
    7
    I did
     
  6. C-Gabriel

    C-Gabriel

    Joined:
    Jan 27, 2016
    Posts:
    114
    Seeing this as well in Unity Analytics. Any fix for it?

    UNITY VERSION
    2019.2.7f2

    DEVICE
    iPhone8,1

    OS VERSION
    iOS 13.1.2

    CPU
    arm64

    GFX
    Apple A9 GPU


    Code (CSharp):
    1.  
    2. Native StackTrace:
    3.  
    4. Thread 0
    5. 0   libsystem_kernel.dylib             0x00000001bbea18b0 __ulock_wait
    6. 1   xxxxxxxxxx                         0x00000001055501d0 PlatformThread::Join(Thread const*)
    7. 2   xxxxxxxxxx                         0x000000010554ed5c Thread::WaitForExit(bool)
    8. 3   xxxxxxxxxx                         0x00000001054bf128 JobQueue::Shutdown(JobQueue::ShutdownMode)
    9. 4   xxxxxxxxxx                         0x00000001052b367c UnityEngine::Analytics::CloudJobScheduler::Close()
    10. 5   xxxxxxxxxx                         0x00000001052b6830 DispatcherService::CloseService()
    11. 6   xxxxxxxxxx                         0x00000001052a6f54 BaseUnityAnalytics::CloseService()
    12. 7   xxxxxxxxxx                         0x00000001052ae420 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)
    13. 8   xxxxxxxxxx                         0x00000001052ae378 AnalyticsSessionService::OnPlayerSessionStateChanged(bool, AnalyticsSessionService::SessionChangeReason, bool)
    14. 9   xxxxxxxxxx                         0x00000001052ae2dc AnalyticsSessionService::OnPlayerStateChanged(AnalyticsSessionService::SessionState, AnalyticsSessionService::SessionChangeReason)
    15. 10  xxxxxxxxxx                         0x00000001052a8590 CallbackArray::Invoke()
    16. 11  xxxxxxxxxx                         0x00000001054efdd4 PlayerCleanup(bool)
    17. 12  xxxxxxxxxx                         0x000000010571a900 UnityCleanup
    18. 13  xxxxxxxxxx                         0x0000000104fe59bc -[UnityAppController applicationWillTerminate:]
    19. 14  UIKitCore                          0x00000001c00bb96c -[UIApplication _terminateWithStatus:]
    20. 15  UIKitCore                          0x00000001bf890ec0 -[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:]
    21. 16  UIKitCore                          0x00000001bf890b40 -[_UISceneLifecycleMultiplexer forceExitWithTransitionContext:scene:]
    22. 17  UIKitCore                          0x00000001c00b1edc -[UIApplication workspaceShouldExit:withTransitionContext:]
    23. 18  FrontBoardServices                 0x00000001c113ab00 -[FBSUIApplicationWorkspaceShim workspaceShouldExit:withTransitionContext:]
    24. 19  FrontBoardServices                 0x00000001c1166184 __83-[FBSWorkspaceScenesClient willTerminateWithTransitionContext:withAcknowledgement:]_block_invoke_2
    25.  
    26.  
    27. Thread 1 (crashed)
    28. 0   xxxxxxxxxx                         0x000000010563546c UnityWebRequestProto<UnityWebRequestTransport, AtomicRefCounter, RedirectHelper, ResponseHelper, DownloadHandler, UploadHandler, CertificateHandler, HeaderHelper, AsyncOperation>::FinishDoRequest(WebError)
    29. 1   xxxxxxxxxx                         0x0000000104fd1fe0 -[UnityWebRequestDelegate URLSession:task:didCompleteWithError:]
    30. 2   CFNetwork                          0x00000001bf44fb20 _CFNetworkHTTPConnectionCacheSetLimit
    31. 3   Foundation                         0x00000001bc46d61c __NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK__
    32. 4   Foundation                         0x00000001bc3773d8 -[NSBlockOperation main]
    33. 5   Foundation                         0x00000001bc46f8a4 __NSOPERATION_IS_INVOKING_MAIN__
    34. 6   Foundation                         0x00000001bc377070 -[NSOperation start]
    35. 7   Foundation                         0x00000001bc47029c __NSOPERATIONQUEUE_IS_STARTING_AN_OPERATION__
    36. 8   Foundation                         0x00000001bc46fd68 __NSOQSchedule_f
    37. 9   libdispatch.dylib                  0x00000001bbd2881c _dispatch_block_async_invoke2
    38. 10  libdispatch.dylib                  0x00000001bbd76184 _dispatch_client_callout
    39. 11  libdispatch.dylib                  0x00000001bbd1ea9c _dispatch_continuation_pop$VARIANT$mp
    40. 12  libdispatch.dylib                  0x00000001bbd1e1f0 _dispatch_async_redirect_invoke
    41. 13  libdispatch.dylib                  0x00000001bbd2afd0 _dispatch_root_queue_drain
    42. 14  libdispatch.dylib                  0x00000001bbd2b79c _dispatch_worker_thread2
    43. 15  libsystem_pthread.dylib            0x00000001bbdc5f64 _pthread_wqthread
    44. 16  libsystem_pthread.dylib            0x00000001bbdc8ae0 start_wqthread
     
  7. InnimDeveloper

    InnimDeveloper

    Joined:
    Oct 3, 2018
    Posts:
    1
    Looks like we have the same problem:
    The application is in the background when the error occurs.
    Unity version: 2019.2.0f1. iPhone 9.1 iOS 12.4.1
     
  8. slucyk

    slucyk

    Joined:
    Jan 18, 2017
    Posts:
    1
    Also getting the same error


    Native StackTrace:

    Thread 0
    0 libsystem_kernel.dylib 0x00000001ad0929d4 __ulock_wait
    1 DreamScape 0x00000001019b1608 Enlighten::MultithreadCpuWorkerCommon::StopWorkerThread()
    2 DreamScape 0x00000001019a384c Enlighten::CpuUpdateManager::~CpuUpdateManager()
    3 DreamScape 0x00000001012a1b24 HLRTManager::Release()
    4 DreamScape 0x0000000101299c50 EnlightenRuntimeManager::~EnlightenRuntimeManager()
    5 DreamScape 0x0000000101299524 EnlightenRuntimeManager::CleanupClass()
    6 DreamScape 0x00000001011da544 CallbackArray::Invoke()
    7 DreamScape 0x0000000101430184 CleanupAllObjects()
    8 DreamScape 0x00000001014308b4 CleanupEngine()
    9 DreamScape 0x000000010143bd74 PlayerCleanup(bool)
    10 DreamScape 0x00000001016d9508 UnityCleanup
    11 DreamScape 0x0000000100e53550 -[UnityAppController applicationWillTerminate:]
    12 UIKitCore 0x00000001d976aef4 -[UIApplication _terminateWithStatus:]
    13 UIKitCore 0x00000001d9026d7c __98-[__UICanvasLifecycleMonitor_Compatability deactivateEventsOnly:withContext:forceExit:completion:]_block_invoke.261
    14 UIKitCore 0x00000001d976f0ac _runAfterCACommitDeferredBlocks
    15 UIKitCore 0x00000001d975dbfc _cleanUpAfterCAFlushAndRunDeferredBlocks
    16 UIKitCore 0x00000001d978aa6c _afterCACommitHandler
    17 CoreFoundation 0x00000001ad48a50c <system symbols missing>
    18 CoreFoundation 0x00000001ad485234 <system symbols missing>
    19 CoreFoundation 0x00000001ad4857b0 <system symbols missing>
    20 CoreFoundation 0x00000001ad484fc4 <system symbols missing>
    21 GraphicsServices 0x00000001af68679c GSEventRunModal
    22 UIKitCore 0x00000001d9763c38 UIApplicationMain
    23 DreamScape 0x0000000100e3deec main
    24 libdyld.dylib 0x00000001acf458e0 start

    Thread 1
    0 libsystem_kernel.dylib 0x00000001ad0870f4 mach_msg_trap
    1 CoreFoundation 0x00000001ad48a924 <system symbols missing>
    2 CoreFoundation 0x00000001ad485834 <system symbols missing>
    3 CoreFoundation 0x00000001ad484fc4 <system symbols missing>
    4 Foundation 0x00000001ade5398c <system symbols missing>
    5 Foundation 0x00000001ade5381c <system symbols missing>
    6 UIKitCore 0x00000001d9849754 -[UIEventFetcher threadMain]
    7 Foundation 0x00000001adf804a0 <system symbols missing>
    8 libsystem_pthread.dylib 0x00000001ad1142c0 _pthread_body
    9 libsystem_pthread.dylib 0x00000001ad114220 _pthread_start
    10 libsystem_pthread.dylib 0x00000001ad117cdc thread_start

    Thread 2
    0 libsystem_kernel.dylib 0x00000001ad091ee4 __psynch_cvwait
    1 DreamScape 0x0000000101aa0304 il2cpp::os::posix::PosixWaitObject::Wait(unsigned int, bool)
    2 DreamScape 0x0000000101a7a0c4 il2cpp::gc::FinalizerThread(void*)
    3 DreamScape 0x0000000101a973fc il2cpp::os::Thread::RunWrapper(void*)
    4 DreamScape 0x0000000101a995d8 il2cpp::os::ThreadImpl::ThreadStartWrapper(void*)
    5 libsystem_pthread.dylib 0x00000001ad1142c0 _pthread_body
    6 libsystem_pthread.dylib 0x00000001ad114220 _pthread_start
    7 libsystem_pthread.dylib 0x00000001ad117cdc thread_start

    Thread 3
    0 libsystem_kernel.dylib 0x00000001ad087130 semaphore_wait_trap
    1 libdispatch.dylib 0x00000001aced7220 _dispatch_semaphore_wait_slow
    2 DreamScape 0x00000001012b15e8 PlatformSemaphore::WaitForSignal(int)
    3 DreamScape 0x00000001013c3788 CappedSemaphore::WaitForSignalInternal(bool)
    4 DreamScape 0x0000000101408258 JobQueue::ProcessJobs(JobQueue::ThreadInfo*, void*)
    5 DreamScape 0x0000000101407770 JobQueue::WorkLoop(void*)
    6 DreamScape 0x00000001014a0c44 Thread::RunThreadWrapper(void*)
    7 libsystem_pthread.dylib 0x00000001ad1142c0 _pthread_body
    8 libsystem_pthread.dylib 0x00000001ad114220 _pthread_start
    9 libsystem_pthread.dylib 0x00000001ad117cdc thread_start

    Thread 4
    0 libsystem_kernel.dylib 0x00000001ad087130 semaphore_wait_trap
    1 libdispatch.dylib 0x00000001aced7220 _dispatch_semaphore_wait_slow
    2 DreamScape 0x00000001012b15e8 PlatformSemaphore::WaitForSignal(int)
    3 DreamScape 0x00000001013c3788 CappedSemaphore::WaitForSignalInternal(bool)
    4 DreamScape 0x0000000101408258 JobQueue::ProcessJobs(JobQueue::ThreadInfo*, void*)
    5 DreamScape 0x0000000101407770 JobQueue::WorkLoop(void*)
    6 DreamScape 0x00000001014a0c44 Thread::RunThreadWrapper(void*)
    7 libsystem_pthread.dylib 0x00000001ad1142c0 _pthread_body
    8 libsystem_pthread.dylib 0x00000001ad114220 _pthread_start
    9 libsystem_pthread.dylib 0x00000001ad117cdc thread_start

    Thread 5
    0 libsystem_kernel.dylib 0x00000001ad087130 semaphore_wait_trap
    1 libdispatch.dylib 0x00000001aced7220 _dispatch_semaphore_wait_slow
    2 DreamScape 0x00000001012b15e8 PlatformSemaphore::WaitForSignal(int)
    3 DreamScape 0x00000001013c3788 CappedSemaphore::WaitForSignalInternal(bool)
    4 DreamScape 0x0000000101408258 JobQueue::ProcessJobs(JobQueue::ThreadInfo*, void*)
    5 DreamScape 0x0000000101407770 JobQueue::WorkLoop(void*)
    6 DreamScape 0x00000001014a0c44 Thread::RunThreadWrapper(void*)
    7 libsystem_pthread.dylib 0x00000001ad1142c0 _pthread_body
    8 libsystem_pthread.dylib 0x00000001ad114220 _pthread_start
    9 libsystem_pthread.dylib 0x00000001ad117cdc thread_start

    Thread 6
    0 libsystem_kernel.dylib 0x00000001ad087130 semaphore_wait_trap
    1 libdispatch.dylib 0x00000001aced7220 _dispatch_semaphore_wait_slow
    2 DreamScape 0x00000001012b15e8 PlatformSemaphore::WaitForSignal(int)
    3 DreamScape 0x00000001013c3788 CappedSemaphore::WaitForSignalInternal(bool)
    4 DreamScape 0x0000000101408258 JobQueue::ProcessJobs(JobQueue::ThreadInfo*, void*)
    5 DreamScape 0x0000000101407770 JobQueue::WorkLoop(void*)
    6 DreamScape 0x00000001014a0c44 Thread::RunThreadWrapper(void*)
    7 libsystem_pthread.dylib 0x00000001ad1142c0 _pthread_body
    8 libsystem_pthread.dylib 0x00000001ad114220 _pthread_start
    9 libsystem_pthread.dylib 0x00000001ad117cdc thread_start

    Thread 7
    0 libsystem_kernel.dylib 0x00000001ad087130 semaphore_wait_trap
    1 libdispatch.dylib 0x00000001aced7220 _dispatch_semaphore_wait_slow
    2 DreamScape 0x00000001012b15e8 PlatformSemaphore::WaitForSignal(int)
    3 DreamScape 0x00000001013c3788 CappedSemaphore::WaitForSignalInternal(bool)
    4 DreamScape 0x0000000101408258 JobQueue::ProcessJobs(JobQueue::ThreadInfo*, void*)
    5 DreamScape 0x0000000101407770 JobQueue::WorkLoop(void*)
    6 DreamScape 0x00000001014a0c44 Thread::RunThreadWrapper(void*)
    7 libsystem_pthread.dylib 0x00000001ad1142c0 _pthread_body
    8 libsystem_pthread.dylib 0x00000001ad114220 _pthread_start
    9 libsystem_pthread.dylib 0x00000001ad117cdc thread_start

    Thread 8
    0 libsystem_kernel.dylib 0x00000001ad087130 semaphore_wait_trap
    1 libdispatch.dylib 0x00000001aced7220 _dispatch_semaphore_wait_slow
    2 DreamScape 0x00000001012b15e8 PlatformSemaphore::WaitForSignal(int)
    3 DreamScape 0x00000001013c3788 CappedSemaphore::WaitForSignalInternal(bool)
    4 DreamScape 0x0000000101408258 JobQueue::ProcessJobs(JobQueue::ThreadInfo*, void*)
    5 DreamScape 0x0000000101407770 JobQueue::WorkLoop(void*)
    6 DreamScape 0x00000001014a0c44 Thread::RunThreadWrapper(void*)
    7 libsystem_pthread.dylib 0x00000001ad1142c0 _pthread_body
    8 libsystem_pthread.dylib 0x00000001ad114220 _pthread_start
    9 libsystem_pthread.dylib 0x00000001ad117cdc thread_start

    Thread 9
    0 libsystem_kernel.dylib 0x00000001ad087130 semaphore_wait_trap
    1 libdispatch.dylib 0x00000001aced7220 _dispatch_semaphore_wait_slow
    2 DreamScape 0x00000001012b15e8 PlatformSemaphore::WaitForSignal(int)
    3 DreamScape 0x00000001013c3788 CappedSemaphore::WaitForSignalInternal(bool)
    4 DreamScape 0x0000000101408258 JobQueue::ProcessJobs(JobQueue::ThreadInfo*, void*)
    5 DreamScape 0x0000000101407770 JobQueue::WorkLoop(void*)
    6 DreamScape 0x00000001014a0c44 Thread::RunThreadWrapper(void*)
    7 libsystem_pthread.dylib 0x00000001ad1142c0 _pthread_body
    8 libsystem_pthread.dylib 0x00000001ad114220 _pthread_start
    9 libsystem_pthread.dylib 0x00000001ad117cdc thread_start

    Thread 10
    0 libsystem_kernel.dylib 0x00000001ad087130 semaphore_wait_trap
    1 libdispatch.dylib 0x00000001aced7220 _dispatch_semaphore_wait_slow
    2 DreamScape 0x00000001012b15e8 PlatformSemaphore::WaitForSignal(int)
    3 DreamScape 0x00000001013c3788 CappedSemaphore::WaitForSignalInternal(bool)
    4 DreamScape 0x0000000101408258 JobQueue::ProcessJobs(JobQueue::ThreadInfo*, void*)
    5 DreamScape 0x0000000101407770 JobQueue::WorkLoop(void*)
    6 DreamScape 0x00000001014a0c44 Thread::RunThreadWrapper(void*)
    7 libsystem_pthread.dylib 0x00000001ad1142c0 _pthread_body
    8 libsystem_pthread.dylib 0x00000001ad114220 _pthread_start
    9 libsystem_pthread.dylib 0x00000001ad117cdc thread_start

    Thread 11
    0 libsystem_kernel.dylib 0x00000001ad087130 semaphore_wait_trap
    1 libdispatch.dylib 0x00000001aced7220 _dispatch_semaphore_wait_slow
    2 DreamScape 0x00000001012b15e8 PlatformSemaphore::WaitForSignal(int)
    3 DreamScape 0x00000001013c3788 CappedSemaphore::WaitForSignalInternal(bool)
    4 DreamScape 0x0000000101408258 JobQueue::ProcessJobs(JobQueue::ThreadInfo*, void*)
    5 DreamScape 0x0000000101407770 JobQueue::WorkLoop(void*)
    6 DreamScape 0x00000001014a0c44 Thread::RunThreadWrapper(void*)
    7 libsystem_pthread.dylib 0x00000001ad1142c0 _pthread_body
    8 libsystem_pthread.dylib 0x00000001ad114220 _pthread_start
    9 libsystem_pthread.dylib 0x00000001ad117cdc thread_start

    Thread 12
    0 libsystem_kernel.dylib 0x00000001ad087130 semaphore_wait_trap
    1 libdispatch.dylib 0x00000001aced7220 _dispatch_semaphore_wait_slow
    2 DreamScape 0x00000001012b15e8 PlatformSemaphore::WaitForSignal(int)
    3 DreamScape 0x00000001013c3788 CappedSemaphore::WaitForSignalInternal(bool)
    4 DreamScape 0x0000000101408258 JobQueue::ProcessJobs(JobQueue::ThreadInfo*, void*)
    5 DreamScape 0x0000000101407770 JobQueue::WorkLoop(void*)
    6 DreamScape 0x00000001014a0c44 Thread::RunThreadWrapper(void*)
    7 libsystem_pthread.dylib 0x00000001ad1142c0 _pthread_body
    8 libsystem_pthread.dylib 0x00000001ad114220 _pthread_start
    9 libsystem_pthread.dylib 0x00000001ad117cdc thread_start

    Thread 13
    0 libsystem_kernel.dylib 0x00000001ad087130 semaphore_wait_trap
    1 libdispatch.dylib 0x00000001aced7220 _dispatch_semaphore_wait_slow
    2 DreamScape 0x00000001012b15e8 PlatformSemaphore::WaitForSignal(int)
    3 DreamScape 0x00000001013c3788 CappedSemaphore::WaitForSignalInternal(bool)
    4 DreamScape 0x0000000101408258 JobQueue::ProcessJobs(JobQueue::ThreadInfo*, void*)
    5 DreamScape 0x0000000101407770 JobQueue::WorkLoop(void*)
    6 DreamScape 0x00000001014a0c44 Thread::RunThreadWrapper(void*)
    7 libsystem_pthread.dylib 0x00000001ad1142c0 _pthread_body
    8 libsystem_pthread.dylib 0x00000001ad114220 _pthread_start
    9 libsystem_pthread.dylib 0x00000001ad117cdc thread_start

    Thread 14
    0 libsystem_kernel.dylib 0x00000001ad087130 semaphore_wait_trap
    1 libdispatch.dylib 0x00000001aced7220 _dispatch_semaphore_wait_slow
    2 DreamScape 0x00000001012b15e8 PlatformSemaphore::WaitForSignal(int)
    3 DreamScape 0x00000001013c3788 CappedSemaphore::WaitForSignalInternal(bool)
    4 DreamScape 0x0000000101408258 JobQueue::ProcessJobs(JobQueue::ThreadInfo*, void*)
    5 DreamScape 0x0000000101407770 JobQueue::WorkLoop(void*)
    6 DreamScape 0x00000001014a0c44 Thread::RunThreadWrapper(void*)
    7 libsystem_pthread.dylib 0x00000001ad1142c0 _pthread_body
    8 libsystem_pthread.dylib 0x00000001ad114220 _pthread_start
    9 libsystem_pthread.dylib 0x00000001ad117cdc thread_start

    Thread 15
    0 libsystem_kernel.dylib 0x00000001ad087130 semaphore_wait_trap
    1 libdispatch.dylib 0x00000001aced7220 _dispatch_semaphore_wait_slow
    2 DreamScape 0x00000001012b15e8 PlatformSemaphore::WaitForSignal(int)
    3 DreamScape 0x00000001013c3788 CappedSemaphore::WaitForSignalInternal(bool)
    4 DreamScape 0x0000000101408258 JobQueue::ProcessJobs(JobQueue::ThreadInfo*, void*)
    5 DreamScape 0x0000000101407770 JobQueue::WorkLoop(void*)
    6 DreamScape 0x00000001014a0c44 Thread::RunThreadWrapper(void*)
    7 libsystem_pthread.dylib 0x00000001ad1142c0 _pthread_body
    8 libsystem_pthread.dylib 0x00000001ad114220 _pthread_start
    9 libsystem_pthread.dylib 0x00000001ad117cdc thread_start

    Thread 16
    0 libsystem_kernel.dylib 0x00000001ad087130 semaphore_wait_trap
    1 libdispatch.dylib 0x00000001aced7220 _dispatch_semaphore_wait_slow
    2 DreamScape 0x00000001012b15e8 PlatformSemaphore::WaitForSignal(int)
    3 DreamScape 0x00000001013c3788 CappedSemaphore::WaitForSignalInternal(bool)
    4 DreamScape 0x0000000101408258 JobQueue::ProcessJobs(JobQueue::ThreadInfo*, void*)
    5 DreamScape 0x0000000101407770 JobQueue::WorkLoop(void*)
    6 DreamScape 0x00000001014a0c44 Thread::RunThreadWrapper(void*)
    7 libsystem_pthread.dylib 0x00000001ad1142c0 _pthread_body
    8 libsystem_pthread.dylib 0x00000001ad114220 _pthread_start
    9 libsystem_pthread.dylib 0x00000001ad117cdc thread_start

    Thread 17
    0 libsystem_kernel.dylib 0x00000001ad087130 semaphore_wait_trap
    1 libdispatch.dylib 0x00000001aced7220 _dispatch_semaphore_wait_slow
    2 DreamScape 0x00000001012b15e8 PlatformSemaphore::WaitForSignal(int)
    3 DreamScape 0x00000001013c3788 CappedSemaphore::WaitForSignalInternal(bool)
    4 DreamScape 0x0000000101408258 JobQueue::ProcessJobs(JobQueue::ThreadInfo*, void*)
    5 DreamScape 0x0000000101407770 JobQueue::WorkLoop(void*)
    6 DreamScape 0x00000001014a0c44 Thread::RunThreadWrapper(void*)
    7 libsystem_pthread.dylib 0x00000001ad1142c0 _pthread_body
    8 libsystem_pthread.dylib 0x00000001ad114220 _pthread_start
    9 libsystem_pthread.dylib 0x00000001ad117cdc thread_start

    Thread 18
    0 libsystem_kernel.dylib 0x00000001ad087130 semaphore_wait_trap
    1 libdispatch.dylib 0x00000001aced7220 _dispatch_semaphore_wait_slow
    2 DreamScape 0x00000001012b15e8 PlatformSemaphore::WaitForSignal(int)
    3 DreamScape 0x00000001013c3788 CappedSemaphore::WaitForSignalInternal(bool)
    4 DreamScape 0x0000000101408258 JobQueue::ProcessJobs(JobQueue::ThreadInfo*, void*)
    5 DreamScape 0x0000000101407770 JobQueue::WorkLoop(void*)
    6 DreamScape 0x00000001014a0c44 Thread::RunThreadWrapper(void*)
    7 libsystem_pthread.dylib 0x00000001ad1142c0 _pthread_body
    8 libsystem_pthread.dylib 0x00000001ad114220 _pthread_start
    9 libsystem_pthread.dylib 0x00000001ad117cdc thread_start

    Thread 19
    0 libsystem_kernel.dylib 0x00000001ad087130 semaphore_wait_trap
    1 libdispatch.dylib 0x00000001aced7220 _dispatch_semaphore_wait_slow
    2 DreamScape 0x00000001012b15e8 PlatformSemaphore::WaitForSignal(int)
    3 DreamScape 0x00000001013c3788 CappedSemaphore::WaitForSignalInternal(bool)
    4 DreamScape 0x0000000101408258 JobQueue::ProcessJobs(JobQueue::ThreadInfo*, void*)
    5 DreamScape 0x0000000101407770 JobQueue::WorkLoop(void*)
    6 DreamScape 0x00000001014a0c44 Thread::RunThreadWrapper(void*)
    7 libsystem_pthread.dylib 0x00000001ad1142c0 _pthread_body
    8 libsystem_pthread.dylib 0x00000001ad114220 _pthread_start
    9 libsystem_pthread.dylib 0x00000001ad117cdc thread_start

    Thread 20
    0 libsystem_kernel.dylib 0x00000001ad087130 semaphore_wait_trap
    1 libdispatch.dylib 0x00000001aced7220 _dispatch_semaphore_wait_slow
    2 DreamScape 0x00000001012b15e8 PlatformSemaphore::WaitForSignal(int)
    3 DreamScape 0x00000001014a1b44 ThreadedStreamBuffer::HandleOutOfBufferToReadFrom(ThreadedStreamBuffer::DataOffsets)
    4 DreamScape 0x00000001014378a0 BatchDeleteStep2Threaded(void*)
    5 DreamScape 0x00000001014a0c44 Thread::RunThreadWrapper(void*)
    6 libsystem_pthread.dylib 0x00000001ad1142c0 _pthread_body
    7 libsystem_pthread.dylib 0x00000001ad114220 _pthread_start
    8 libsystem_pthread.dylib 0x00000001ad117cdc thread_start

    Thread 21
    0 libsystem_kernel.dylib 0x00000001ad087130 semaphore_wait_trap
    1 libdispatch.dylib 0x00000001aced7220 _dispatch_semaphore_wait_slow
    2 DreamScape 0x00000001012b15e8 PlatformSemaphore::WaitForSignal(int)
    3 DreamScape 0x000000010136ea24 AsyncReadManagerThreaded::ThreadEntry()
    4 DreamScape 0x000000010136e660 AsyncReadManagerThreaded::StaticThreadEntry(void*)
    5 DreamScape 0x00000001014a0c44 Thread::RunThreadWrapper(void*)
    6 libsystem_pthread.dylib 0x00000001ad1142c0 _pthread_body
    7 libsystem_pthread.dylib 0x00000001ad114220 _pthread_start
    8 libsystem_pthread.dylib 0x00000001ad117cdc thread_start

    Thread 22
    0 libsystem_kernel.dylib 0x00000001ad087130 semaphore_wait_trap
    1 libdispatch.dylib 0x00000001aced7220 _dispatch_semaphore_wait_slow
    2 DreamScape 0x00000001012b15e8 PlatformSemaphore::WaitForSignal(int)
    3 DreamScape 0x00000001014a1b44 ThreadedStreamBuffer::HandleOutOfBufferToReadFrom(ThreadedStreamBuffer::DataOffsets)
    4 DreamScape 0x0000000101253f98 GfxDeviceWorker::RunCommand(ThreadedStreamBuffer&)
    5 DreamScape 0x00000001016b58b4 GfxDeviceWorkerAutoreleasePoolProxy
    6 DreamScape 0x000000010125b0cc GfxDeviceWorker::RunExt(ThreadedStreamBuffer&)
    7 DreamScape 0x0000000101253d10 GfxDeviceWorker::RunGfxDeviceWorker(void*)
    8 DreamScape 0x00000001014a0c44 Thread::RunThreadWrapper(void*)
    9 libsystem_pthread.dylib 0x00000001ad1142c0 _pthread_body
    10 libsystem_pthread.dylib 0x00000001ad114220 _pthread_start
    11 libsystem_pthread.dylib 0x00000001ad117cdc thread_start

    Thread 23
    0 libsystem_kernel.dylib 0x00000001ad0870f4 mach_msg_trap
    1 CoreFoundation 0x00000001ad48a924 <system symbols missing>
    2 CoreFoundation 0x00000001ad485834 <system symbols missing>
    3 CoreFoundation 0x00000001ad484fc4 <system symbols missing>
    4 AVFAudio 0x00000001b33f7334 GenericRunLoopThread::Entry(void*)
    5 AVFAudio 0x00000001b3421c60 CAPThread::Entry(CAPThread*)
    6 libsystem_pthread.dylib 0x00000001ad1142c0 _pthread_body
    7 libsystem_pthread.dylib 0x00000001ad114220 _pthread_start
    8 libsystem_pthread.dylib 0x00000001ad117cdc thread_start

    Thread 24
    0 libsystem_kernel.dylib 0x00000001ad087130 semaphore_wait_trap
    1 DreamScape 0x0000000101a39868 FMOD::Thread::callback(void*)
    2 libsystem_pthread.dylib 0x00000001ad1142c0 _pthread_body
    3 libsystem_pthread.dylib 0x00000001ad114220 _pthread_start
    4 libsystem_pthread.dylib 0x00000001ad117cdc thread_start

    Thread 25
    0 libsystem_kernel.dylib 0x00000001ad0870f4 mach_msg_trap
    1 AudioToolbox 0x00000001b1441880 AURemoteIO::IOThread::Run()
    2 AudioToolbox 0x00000001b14467f0 AURemoteIO::IOThread::Entry(void*)
    3 AudioToolbox 0x00000001b18194f8 CAPThread::Entry(CAPThread*)
    4 libsystem_pthread.dylib 0x00000001ad1142c0 _pthread_body
    5 libsystem_pthread.dylib 0x00000001ad114220 _pthread_start
    6 libsystem_pthread.dylib 0x00000001ad117cdc thread_start

    Thread 26
    0 libsystem_kernel.dylib 0x00000001ad092400 __semwait_signal
    1 libsystem_c.dylib 0x00000001ad008444 usleep
    2 DreamScape 0x0000000101a1dea0 FMOD_OS_Time_Sleep(unsigned int)
    3 DreamScape 0x0000000101a398bc FMOD::Thread::callback(void*)
    4 libsystem_pthread.dylib 0x00000001ad1142c0 _pthread_body
    5 libsystem_pthread.dylib 0x00000001ad114220 _pthread_start
    6 libsystem_pthread.dylib 0x00000001ad117cdc thread_start

    Thread 27
    0 libsystem_kernel.dylib 0x00000001ad0870f4 mach_msg_trap
    1 CoreFoundation 0x00000001ad48a924 <system symbols missing>
    2 CoreFoundation 0x00000001ad485834 <system symbols missing>
    3 CoreFoundation 0x00000001ad484fc4 <system symbols missing>
    4 CoreFoundation 0x00000001ad485d20 <system symbols missing>
    5 CoreMotion 0x00000001b2e5cbe8
    6 libsystem_pthread.dylib 0x00000001ad1142c0 _pthread_body
    7 libsystem_pthread.dylib 0x00000001ad114220 _pthread_start
    8 libsystem_pthread.dylib 0x00000001ad117cdc thread_start

    Thread 28
    0 libsystem_kernel.dylib 0x00000001ad0870f4 mach_msg_trap
    1 CoreFoundation 0x00000001ad48a924 <system symbols missing>
    2 CoreFoundation 0x00000001ad485834 <system symbols missing>
    3 CoreFoundation 0x00000001ad484fc4 <system symbols missing>
    4 CFNetwork 0x00000001ada9f74c -[__CoreSchedulingSetRunnable runForever]
    5 Foundation 0x00000001adf804a0 <system symbols missing>
    6 libsystem_pthread.dylib 0x00000001ad1142c0 _pthread_body
    7 libsystem_pthread.dylib 0x00000001ad114220 _pthread_start
    8 libsystem_pthread.dylib 0x00000001ad117cdc thread_start

    Thread 29
    0 libsystem_kernel.dylib 0x00000001ad087130 semaphore_wait_trap
    1 libdispatch.dylib 0x00000001aced7220 _dispatch_semaphore_wait_slow
    2 DreamScape 0x00000001012b15e8 PlatformSemaphore::WaitForSignal(int)
    3 DreamScape 0x00000001012a21a4 HLRTThreadGroup::Run(Enlighten::TaskProcessor*, char const*)
    4 DreamScape 0x00000001019af0d4 Enlighten::MultithreadCpuWorkerCommon::DoStageInputLighting()
    5 DreamScape 0x00000001019af2c0 Enlighten::MultithreadCpuWorkerCommon::UpdateRadiosity()
    6 DreamScape 0x00000001019a8594 Enlighten::BaseWorker::ExecuteCommands()
    7 DreamScape 0x00000001019b155c Enlighten::MultithreadCpuWorkerCommon::CommandThreadFunction(void*)
    8 libsystem_pthread.dylib 0x00000001ad1142c0 _pthread_body
    9 libsystem_pthread.dylib 0x00000001ad114220 _pthread_start
    10 libsystem_pthread.dylib 0x00000001ad117cdc thread_start

    Thread 30
    0 libsystem_kernel.dylib 0x00000001ad087130 semaphore_wait_trap
    1 libdispatch.dylib 0x00000001aced7220 _dispatch_semaphore_wait_slow
    2 DreamScape 0x00000001012b15e8 PlatformSemaphore::WaitForSignal(int)
    3 DreamScape 0x00000001012a2230 TUpdateFunction(void*)
    4 DreamScape 0x00000001014a0c44 Thread::RunThreadWrapper(void*)
    5 libsystem_pthread.dylib 0x00000001ad1142c0 _pthread_body
    6 libsystem_pthread.dylib 0x00000001ad114220 _pthread_start
    7 libsystem_pthread.dylib 0x00000001ad117cdc thread_start

    Thread 31
    0 libsystem_kernel.dylib 0x00000001ad092328 __select
    1 libsystem_pthread.dylib 0x00000001ad1142c0 _pthread_body
    2 libsystem_pthread.dylib 0x00000001ad114220 _pthread_start
    3 libsystem_pthread.dylib 0x00000001ad117cdc thread_start

    Thread 32
    0 libsystem_kernel.dylib 0x00000001ad092b74 __workq_kernreturn
    1 libsystem_pthread.dylib 0x00000001ad117cd4 start_wqthread

    Thread 33
    0 CoreFoundation 0x00000001ad48d520 <system symbols missing>
    1 CoreFoundation 0x00000001ad4cb99c <system symbols missing>
    2 CoreFoundation 0x00000001ad48c534 <system symbols missing>
    3 CoreFoundation 0x00000001ad459de8 <system symbols missing>
    4 CoreFoundation 0x00000001ad3e33d4 <system symbols missing>
    5 Security 0x00000001ae1a46a0 SecCertificateDestroy
    6 CoreFoundation 0x00000001ad48c534 <system symbols missing>
    7 CoreFoundation 0x00000001ad459de8 <system symbols missing>
    8 CoreFoundation 0x00000001ad3e33d4 <system symbols missing>
    9 Security 0x00000001ae1e2984 SecTrustDestroy
    10 CoreFoundation 0x00000001ad48c534 <system symbols missing>
    11 CFNetwork 0x00000001adbcd2cc HTTPProtocol::~HTTPProtocol()
    12 CoreFoundation 0x00000001ad48c534 <system symbols missing>
    13 CFNetwork 0x00000001adcde1dc AwaitingTube::~AwaitingTube()
    14 CFNetwork 0x00000001adcde238 AwaitingTube::~AwaitingTube()
    15 CFNetwork 0x00000001adbbff84 Tube::~Tube()
    16 CFNetwork 0x00000001adbc0218 Tube::~Tube()
    17 libdispatch.dylib 0x00000001acf33a38 _dispatch_call_block_and_release
    18 libdispatch.dylib 0x00000001acf347d4 _dispatch_client_callout
    19 libdispatch.dylib 0x00000001acedd324 _dispatch_lane_serial_drain$VARIANT$mp
    20 libdispatch.dylib 0x00000001acedde74 _dispatch_lane_invoke$VARIANT$mp
    21 libdispatch.dylib 0x00000001acedf10c _dispatch_workloop_invoke$VARIANT$mp
    22 libdispatch.dylib 0x00000001acee64ac _dispatch_workloop_worker_thread
    23 libsystem_pthread.dylib 0x00000001ad115114 _pthread_wqthread
    24 libsystem_pthread.dylib 0x00000001ad117cd4 start_wqthread

    Thread 34
    0 libsystem_kernel.dylib 0x00000001ad0870f4 mach_msg_trap
    1 CoreFoundation 0x00000001ad48a924 <system symbols missing>
    2 CoreFoundation 0x00000001ad485834 <system symbols missing>
    3 CoreFoundation 0x00000001ad484fc4 <system symbols missing>
    4 CoreFoundation 0x00000001ad49e9c0 <system symbols missing>
    5 CoreFoundation 0x00000001ad49bfd4 <system symbols missing>
    6 DreamScape 0x0000000100e3f1d4 -[UnityWebRequestDelegate writeBody]
    7 Foundation 0x00000001adf5ecf4 <system symbols missing>
    8 Foundation 0x00000001ade6adc0 <system symbols missing>
    9 Foundation 0x00000001ade6a2a8 <system symbols missing>
    10 Foundation 0x00000001adf60a78 <system symbols missing>
    11 libdispatch.dylib 0x00000001acf33a38 _dispatch_call_block_and_release
    12 libdispatch.dylib 0x00000001acf347d4 _dispatch_client_callout
    13 libdispatch.dylib 0x00000001aced901c _dispatch_continuation_pop$VARIANT$mp
    14 libdispatch.dylib 0x00000001aced86e0 _dispatch_async_redirect_invoke
    15 libdispatch.dylib 0x00000001acee5030 _dispatch_root_queue_drain
    16 libdispatch.dylib 0x00000001acee58d4 _dispatch_worker_thread2
    17 libsystem_pthread.dylib 0x00000001ad1151b4 _pthread_wqthread
    18 libsystem_pthread.dylib 0x00000001ad117cd4 start_wqthread

    Thread 35
    0 libsystem_kernel.dylib 0x00000001ad092b74 __workq_kernreturn
    1 libsystem_pthread.dylib 0x00000001ad117cd4 start_wqthread

    Thread 36
    0 libsystem_kernel.dylib 0x00000001ad092b74 __workq_kernreturn
    1 libsystem_pthread.dylib 0x00000001ad117cd4 start_wqthread

    Thread 37 (crashed)
    0 DreamScape 0x00000001015d3ea8 UnityWebRequestProto<UnityWebRequestTransport, AtomicRefCounter, RedirectHelper, ResponseHelper, DownloadHandler, UploadHandler, CertificateHandler, HeaderHelper, AsyncOperation>::FinishDoRequest(WebError)
    1 DreamScape 0x0000000100e3f2f8 -[UnityWebRequestDelegate URLSession:task:didCompleteWithError:]
    2 CFNetwork 0x00000001adc7d420 __51-[NSURLSession delegate_task:didCompleteWithError:]_block_invoke.182
    3 Foundation 0x00000001adf5ecf4 <system symbols missing>
    4 Foundation 0x00000001ade6adc0 <system symbols missing>
    5 Foundation 0x00000001ade6a2a8 <system symbols missing>
    6 Foundation 0x00000001adf60a78 <system symbols missing>
    7 libdispatch.dylib 0x00000001acf33a38 _dispatch_call_block_and_release
    8 libdispatch.dylib 0x00000001acf347d4 _dispatch_client_callout
    9 libdispatch.dylib 0x00000001aced901c _dispatch_continuation_pop$VARIANT$mp
    10 libdispatch.dylib 0x00000001aced86e0 _dispatch_async_redirect_invoke
    11 libdispatch.dylib 0x00000001acee5030 _dispatch_root_queue_drain
    12 libdispatch.dylib 0x00000001acee58d4 _dispatch_worker_thread2
    13 libsystem_pthread.dylib 0x00000001ad1151b4 _pthread_wqthread
    14 libsystem_pthread.dylib 0x00000001ad117cd4 start_wqthread


    Unity 2019.2.6f1 iOS -- iPad4,1 -- iOS 12.4.2
     
  9. magnusfox

    magnusfox

    Joined:
    Nov 7, 2014
    Posts:
    26
    Would you mind sharing the issue tracker number so I can check the status of this? It's happening a lot for us in 2019.2.5f1.
     
  10. Aurimas-Cernius

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    3,640
    A "blind" fix has been shipped with all latest Unity versions. By "blind" I mean that we couldn't reproduce it locally, so we fixed a suspected cause of it. It would be nice to try it and see if it was the actual cause.
     
    magnusfox likes this.
  11. magnusfox

    magnusfox

    Joined:
    Nov 7, 2014
    Posts:
    26
    We're just about to release an update, so can not update Unity at this point. Will do a Unity version upgrade asap after this release though, hopefully it has gone away in the latest version. Will let you know.
     
    Aurimas-Cernius likes this.
  12. eliphat

    eliphat

    Joined:
    Jul 4, 2017
    Posts:
    43
    I feel sorry to tell you that in Unity 2020.1.0a22 it is still there :)
     
  13. eliphat

    eliphat

    Joined:
    Jul 4, 2017
    Posts:
    43
    But it seems that the frequency of the problem has dropped, and it never occurs on iOS 13 devices again. I'm not sure if it is a coincidence.
     
  14. Aurimas-Cernius

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    3,640
    Do you have stack trace for it? After update, I mean.
    Also, do you use UnityWebRequest for reading local files in your project? It was reported that the crash sometimes happens when reading local files.
     
  15. eliphat

    eliphat

    Joined:
    Jul 4, 2017
    Posts:
    43
    I do have a stack trace, but it seems that there is something wrong with xcode and I can't get anything useful here:
    On main thread,
    0 mach_msg_trap
    ---------------------------
    6 UIApplicationMain
    7 -[UnityFramework runApplication... in main.mm
    8 main
    9 start

    It is strange that after clicking 'share the crash to the developer' on device I can't see a crash log now. There is only a json manifest file. Maybe my own problem.

    ---------
    Yes, I use UnityWebRequests to load music files from the disk, and I use a lot of them.
     
  16. ycarowr

    ycarowr

    Joined:
    Dec 18, 2014
    Posts:
    6
    Hello, guys I am running through the same issue in some apps, seem that after I updated the unity version to 2019.1.6f1 the amount of crashes raised up in a significant amount (more than double), I had the same issue in previous versions, but much less.

    Like other people here I use WebRequests to download short small videos and png files, and I have around 20 of these in the app start up.

    Hope the stacktrace can be useful
     

    Attached Files:

    Last edited: Feb 25, 2020
  17. WangShibo17

    WangShibo17

    Joined:
    Oct 28, 2017
    Posts:
    13
    Same issue when switch app to backgroud. here is stacktrace. Unity2019.2.0f1
     
  18. eliphat

    eliphat

    Joined:
    Jul 4, 2017
    Posts:
    43
    Update: I think it is because I am using the UnityWebRequest to get AudioClip objects not in the intended way. I don't know yet whether disposing incorrectly causes the problem. What I did: To work around loading local file, I now set up an http server in the background and load from it. The crash is still there.
     
  19. Eli1234

    Eli1234

    Joined:
    Jul 13, 2017
    Posts:
    24
    Hi Aurimas-Cernius,

    do you have more information about which versions should have the fix? We're reproducing it in 2019.3.10f1 on devices running iOS 13.5.1. You wrote in early February that a blind fix had been made, so presumably that should have made it into 2019.3.10f1, which shipped in mid April.

    The .crash file says


    Exception Type: EXC_BAD_ACCESS (SIGSEGV)
    Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000108
    VM Region Info: 0x108 is not in any region. Bytes before following region: 4367187704
    REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
    UNUSED SPACE AT START
    --->
    __TEXT 00000001044e0000-00000001044e4000 [ 16K] r-x/r-x SM=COW ....app/Nibblity



    Thread 53 name:
    Thread 53 Crashed:
    0 libsystem_pthread.dylib 0x00000001b16cceb0 _pthread_mutex_fairshare_unlock + 128 (pthread_mutex.c:1032)
    1 UnityFramework 0x000000010563b650 UnityWebRequestProto<UnityWebRequestTransport, AtomicRefCounter, RedirectHelper, ResponseHelper, DownloadHandler, UploadHandler, CertificateHandler, HeaderHelper, AsyncOperation>::FinishDoRequest(W... + 40 (Mutex.h:33)
    2 UnityFramework 0x00000001046e1448 -[UnityWebRequestDelegate URLSession:task:didCompleteWithError:] + 112 (UnityWebRequest.mm:210)
    3 CFNetwork 0x00000001b4dab234 __51-[NSURLSession delegate_task:didCompleteWithError:]_block_invoke.194 + 648 (Session.mm:692)
    4 Foundation 0x00000001b1d833f0 __NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK__ + 16 (NSOperation.m:1541)
    5 Foundation 0x00000001b1c8e710 -[NSBlockOperation main] + 84 (NSOperation.m:1560)
    6 Foundation 0x00000001b1d8564c __NSOPERATION_IS_INVOKING_MAIN__ + 20 (NSOperation.m:2184)
    7 Foundation 0x00000001b1c8e414 -[NSOperation start] + 740 (NSOperation.m:2201)
    8 Foundation 0x00000001b1d86044 __NSOPERATIONQUEUE_IS_STARTING_AN_OPERATION__ + 20 (NSOperation.m:2215)
    9 Foundation 0x00000001b1d85b10 __NSOQSchedule_f + 180 (NSOperation.m:2226)
    10 libdispatch.dylib 0x00000001b1634c8c _dispatch_block_async_invoke2 + 104 (queue.c:525)
    11 libdispatch.dylib 0x00000001b1682524 _dispatch_client_callout + 16 (object.m:495)
    12 libdispatch.dylib 0x00000001b162ae98 _dispatch_continuation_pop$VARIANT$mp + 412 (inline_internal.h:2484)
    13 libdispatch.dylib 0x00000001b162a5ec _dispatch_async_redirect_invoke + 656 (queue.c:803)
    14 libdispatch.dylib 0x00000001b1637438 _dispatch_root_queue_drain + 376 (inline_internal.h:2525)
    15 libdispatch.dylib 0x00000001b1637bf8 _dispatch_worker_thread2 + 124 (queue.c:6628)
    16 libsystem_pthread.dylib 0x00000001b16d3b38 _pthread_wqthread + 212 (pthread.c:2364)
    17 libsystem_pthread.dylib 0x00000001b16d6740 start_wqthread + 8


    the top of the callstack looks the same to me, but it looks like the functions that have called into delegate_task:didCompleteWithError have changed. Unfortunately, we don't have a reliable repro either, but we see similar callstacks with UnityWebRequestProto::FinishDoRequest and UnityWebRequestDelegate::didCompleteWithError coming up in our xcode crash reports every few days.
     
  20. vstefaniuk

    vstefaniuk

    Joined:
    Oct 1, 2016
    Posts:
    4
    This issue started to happens pretty often for us.

    Unity 2019.1.14f1

    Percent of devices in the background : 90%
    IOS versions distribution:

    iOS 13 - 86%
    iOS 12 - 11%
    iOS 11 - 1%
    iOS 9 - 1%
    Other - <1%

    @Aurimas-Cernius Is this issue fixed in LTS version or in any path?


    Code (CSharp):
    1. Crashed: com.unity3d.WebOperationQueue (QOS: UNSPECIFIED)
    2. 0  libsystem_pthread.dylib        0x1a260ac50 pthread_mutex_lock + 102
    3. 1  gamename                      0x1011830c4 UnityWebRequestProto<UnityWebRequestTransport, AtomicRefCounter, RedirectHelper, ResponseHelper, DownloadHandler, UploadHandler, CertificateHandler, HeaderHelper, AsyncOperation>::FinishDoRequest(WebError) + 4349849796
    4. 2  gamename                      0x10028b768 -[UnityWebRequestDelegate URLSession:task:didCompleteWithError:] + 204 (UnityWebRequest.mm:204)
    5. 3  CFNetwork                      0x1a5d512fc _CFNetworkHTTPConnectionCacheSetLimit + 196508
    6. 4  Foundation                     0x1a2cd3cfc __NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK__ + 24
    7. 5  Foundation                     0x1a2bd5c3c -[NSBlockOperation main] + 104
    8. 6  Foundation                     0x1a2cd603c __NSOPERATION_IS_INVOKING_MAIN__ + 24
    9. 7  Foundation                     0x1a2bd5914 -[NSOperation start] + 752
    10. 8  Foundation                     0x1a2cd6a68 __NSOPERATIONQUEUE_IS_STARTING_AN_OPERATION__ + 24
    11. 9  Foundation                     0x1a2cd6528 __NSOQSchedule_f + 184
    12. 10 libdispatch.dylib              0x1a25acdb4 _dispatch_block_async_invoke2 + 144
    13. 11 libdispatch.dylib              0x1a25a033c _dispatch_client_callout + 20
    14. 12 libdispatch.dylib              0x1a25a2af8 _dispatch_continuation_pop + 408
    15. 13 libdispatch.dylib              0x1a25a2258 _dispatch_async_redirect_invoke + 588
    16. 14 libdispatch.dylib              0x1a25af5c0 _dispatch_root_queue_drain + 348
    17. 15 libdispatch.dylib              0x1a25afd9c _dispatch_worker_thread2 + 116
    18. 16 libsystem_pthread.dylib        0x1a26076d8 _pthread_wqthread + 216
    19. 17 libsystem_pthread.dylib        0x1a260d9c8 start_wqthread + 8


    Main thread logs

    Code (CSharp):
    1. com.apple.main-thread
    2. 0  libsystem_kernel.dylib         0x1a26e77e4 __ulock_wait + 8
    3. 1  libsystem_pthread.dylib        0x1a2608b18 _pthread_join + 404
    4. 2  gamename                      0x100f8acd8 PlatformThread::Join(Thread const*) + 131 (PlatformThread.cpp:131)
    5. 3  gamename                      0x100f897a0 Thread::WaitForExit(bool) + 4347778976
    6. 4  gamename                      0x100f06c54 JobQueue::Shutdown(JobQueue::ShutdownMode) + 4347243604
    7. 5  gamename                      0x100c906e8 UnityEngine::Analytics::CloudJobScheduler::Close() + 4344661736
    8. 6  gamename                      0x100c93844 DispatcherService::CloseService() + 4344674372
    9. 7  gamename                      0x100c841dc BaseUnityAnalytics::CloseService() + 4344611292
    10. 8  gamename                      0x100c8b4f4 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) + 4344640756
    11. 9  gamename                      0x100c8b44c AnalyticsSessionService::OnPlayerSessionStateChanged(bool, AnalyticsSessionService::SessionChangeReason, bool) + 4344640588
    12. 10 gamename                      0x100c8b3b0 AnalyticsSessionService::OnPlayerStateChanged(AnalyticsSessionService::SessionState, AnalyticsSessionService::SessionChangeReason) + 4344640432
    13. 11 gamename                      0x100c8579c CallbackArray::Invoke() + 4344616860
    14. 12 gamename                      0x100f3ef30 PlayerCleanup(bool) + 4347473712
    15. 13 gamename                      0x1012b8ccc UnityCleanup + 4351118540
    16. 14 gamename                      0x10029df0c -[UnityAppController applicationWillTerminate:] + 435 (UnityAppController.mm:435)
    17. 15 gamename                      0x1017880a8 -[OneSignalAppDelegate oneSignalApplicationWillTerminate:] + 285 (UIApplicationDelegate+OneSignal.m:285)
    18. 16 UIKitCore                      0x1a6a4ea84 -[UIApplication _terminateWithStatus:] + 248
    19. 17 UIKitCore                      0x1a61b7718 -[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:] + 128
    20. 18 UIKitCore                      0x1a61b737c -[_UISceneLifecycleMultiplexer forceExitWithTransitionContext:scene:] + 220
    21. 19 UIKitCore                      0x1a6a44ac4 -[UIApplication workspaceShouldExit:withTransitionContext:] + 216
    22. 20 FrontBoardServices             0x1a7b5bcf8 -[FBSUIApplicationWorkspaceShim workspaceShouldExit:withTransitionContext:] + 88
    23. 21 FrontBoardServices             0x1a7b88d68 __83-[FBSWorkspaceScenesClient willTerminateWithTransitionContext:withAcknowledgement:]_block_invoke_2 + 80
    24. 22 FrontBoardServices             0x1a7b6debc -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 240
    25. 23 FrontBoardServices             0x1a7b88cf4 __83-[FBSWorkspaceScenesClient willTerminateWithTransitionContext:withAcknowledgement:]_block_invoke + 140
    26. 24 libdispatch.dylib              0x1a25a033c _dispatch_client_callout + 20
    27. 25 libdispatch.dylib              0x1a25a30d4 _dispatch_block_invoke_direct + 264
    28. 26 FrontBoardServices             0x1a7baf6c4 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 48
    29. 27 FrontBoardServices             0x1a7baf370 -[FBSSerialQueue _queue_performNextIfPossible] + 432
    30. 28 FrontBoardServices             0x1a7baf8dc -[FBSSerialQueue _performNextFromRunLoopSource] + 32
    31. 29 CoreFoundation                 0x1a287baf4 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28
    32. 30 CoreFoundation                 0x1a287ba48 __CFRunLoopDoSource0 + 84
    33. 31 CoreFoundation                 0x1a287b198 __CFRunLoopDoSources0 + 196
    34. 32 CoreFoundation                 0x1a2875f38 __CFRunLoopRun + 796
    35. 33 CoreFoundation                 0x1a28758f4 CFRunLoopRunSpecific + 480
    36. 34 GraphicsServices               0x1acc8c604 GSEventRunModal + 164
    37. 35 UIKitCore                      0x1a6a49358 UIApplicationMain + 1944
    38. 36 gamename                      0x10028a3f0 main + 41 (main.mm:41)
    39. 37 libdyld.dylib                  0x1a26f12dc start + 4
     
  21. Aurimas-Cernius

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    3,640
    Looks like UnityWebRequest finishes when application is already terminating or suspending. Could you report this?
     
  22. vstefaniuk

    vstefaniuk

    Joined:
    Oct 1, 2016
    Posts:
    4
    This crash is reported via Firebase Crashlytics web service, so unfortunately I can't provide any repro steps. But I have reported bug within report bug tool, and pasted similar information.
     
  23. steffy2

    steffy2

    Joined:
    Oct 28, 2015
    Posts:
    5
    I have the same issue:

    Code (CSharp):
    1. Crashed: com.unity3d.WebOperationQueue (QOS: UNSPECIFIED)
    2. 0  gamename                          0x10167e6c8 UnityWebRequestProto<UnityWebRequestTransport, AtomicRefCounter, RedirectHelper, ResponseHelper, DownloadHandler, UploadHandler, CertificateHandler, HeaderHelper, AsyncOperation>::FinishDoRequest(WebError) + 593 (UnityWebRequestProto.h:593)
    3. 1  gamename                          0x1002ec670 -[UnityWebRequestDelegate URLSession:task:didCompleteWithError:] + 203 (UnityWebRequest.mm:203)
    4. 2  CFNetwork                      0x19f2ea420 __51-[NSURLSession delegate_task:didCompleteWithError:]_block_invoke.182 + 252
    It happens very frequently, mostly when the user minimizes the application or restores.
    For now we are using Unity 2019.2.7f2
    @Aurimas-Cernius is this issue fixed in any version?
    @vstefaniuk have you figured out how to fix or get around this problem?
     
  24. steffy2

    steffy2

    Joined:
    Oct 28, 2015
    Posts:
    5
    More similar crash logs (also associated with UnityWebRequestProto):


    Code (CSharp):
    1. Crashed: Background Job.Worker 2
    2. 0  ???                            0xa8c157f4 (Niepełna)
    3. 1  gamename                       0x105d971b0 UnityWebRequestProto<UnityWebRequestTransport, AtomicRefCounter, RedirectHelper, ResponseHelper, DownloadHandler, UploadHandler, CertificateHandler, HeaderHelper, AsyncOperation>::Job_ExecuteUnityWebRequest(UnityWebRequestProto<UnityWebRequestTransport, AtomicRefCounter, RedirectHelper, ResponseHelper, DownloadHandler, UploadHandler, CertificateHandler, HeaderHelper, AsyncOperation>*) + 580 (dynamic_array.h:580)
    4. 2  gamename                       0x105ad693c JobQueue::Exec(JobInfo*, long long, int) + 393 (JobQueue.cpp:393)
    5. 3  gamename                       0x105ad6b0c JobQueue::Steal(JobGroup*, JobInfo*, long long, int, bool) + 667 (JobQueue.cpp:667)
    6. 4  gamename                       0x105ad6ca0 JobQueue::ExecuteJobFromQueue() + 824 (JobQueue.cpp:824)
    7. 5  gamename                       0x105ad6f3c JobQueue::ProcessJobs(JobQueue::ThreadInfo*, void*) + 963 (JobQueue.cpp:963)
    8. 6  gamename                       0x105ad6488 JobQueue::WorkLoop(void*) + 1052 (JobQueue.cpp:1052)
    9. 7  gamename                       0x105b78e70 Thread::RunThreadWrapper(void*) + 78 (Thread.cpp:78)
    10. 8  libsystem_pthread.dylib        0x19d6718fc _pthread_start + 168
    11. 9  libsystem_pthread.dylib        0x19d6799d4 thread_start + 8
    12.  
    13.  
    14.  
    15.  
    16. Crashed: com.unity3d.WebOperationQueue (QOS: UNSPECIFIED)
    17. 0  libsystem_pthread.dylib        0x1bd41cc50 pthread_mutex_lock + 102
    18. 1  gamename                       0x103e4a63c UnityWebRequestProto<UnityWebRequestTransport, AtomicRefCounter, RedirectHelper, ResponseHelper, DownloadHandler, UploadHandler, CertificateHandler, HeaderHelper, AsyncOperation>::FinishDoRequest(WebError) + 118 (ExtendedAtomicOps-clang-gcc.h:118)
    19. 2  gamename                       0x102ab8670 -[UnityWebRequestDelegate URLSession:task:didCompleteWithError:] + 203 (UnityWebRequest.mm:203)
    20. 3  CFNetwork                      0x1c0b42904 _CFNetworkHTTPConnectionCacheSetLimit + 196328
    21. 4  Foundation                     0x1bdaf2004 __NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK__ + 24
    22. 5  Foundation                     0x1bd9f45a4 -[NSBlockOperation main] + 104
    23. 6  Foundation                     0x1bdaf4344 __NSOPERATION_IS_INVOKING_MAIN__ + 24
    24. 7  Foundation                     0x1bd9f427c -[NSOperation start] + 752
    25. 8  Foundation                     0x1bdaf4d70 __NSOPERATIONQUEUE_IS_STARTING_AN_OPERATION__ + 24
    26. 9  Foundation                     0x1bdaf4830 __NSOQSchedule_f + 184
    27. 10 libdispatch.dylib              0x1bd3bff24 _dispatch_block_async_invoke2 + 144
    28. 11 libdispatch.dylib              0x1bd3b35ac _dispatch_client_callout + 20
    29. 12 libdispatch.dylib              0x1bd3b5d60 _dispatch_continuation_pop + 408
    30. 13 libdispatch.dylib              0x1bd3b54c0 _dispatch_async_redirect_invoke + 588
    31. 14 libdispatch.dylib              0x1bd3c2724 _dispatch_root_queue_drain + 348
    32. 15 libdispatch.dylib              0x1bd3c2ed0 _dispatch_worker_thread2 + 116
    33. 16 libsystem_pthread.dylib        0x1bd4196dc _pthread_wqthread + 216
    34. 17 libsystem_pthread.dylib        0x1bd41f9c8 start_wqthread + 8