iOS Crash UnityWebRequestProto

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

Can you reliably reproduce this issue locally?

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)

Could you report a bug for this?

I did

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

Native StackTrace:

Thread 0
0   libsystem_kernel.dylib             0x00000001bbea18b0 __ulock_wait
1   xxxxxxxxxx                         0x00000001055501d0 PlatformThread::Join(Thread const*)
2   xxxxxxxxxx                         0x000000010554ed5c Thread::WaitForExit(bool)
3   xxxxxxxxxx                         0x00000001054bf128 JobQueue::Shutdown(JobQueue::ShutdownMode)
4   xxxxxxxxxx                         0x00000001052b367c UnityEngine::Analytics::CloudJobScheduler::Close()
5   xxxxxxxxxx                         0x00000001052b6830 DispatcherService::CloseService()
6   xxxxxxxxxx                         0x00000001052a6f54 BaseUnityAnalytics::CloseService()
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)
8   xxxxxxxxxx                         0x00000001052ae378 AnalyticsSessionService::OnPlayerSessionStateChanged(bool, AnalyticsSessionService::SessionChangeReason, bool)
9   xxxxxxxxxx                         0x00000001052ae2dc AnalyticsSessionService::OnPlayerStateChanged(AnalyticsSessionService::SessionState, AnalyticsSessionService::SessionChangeReason)
10  xxxxxxxxxx                         0x00000001052a8590 CallbackArray::Invoke()
11  xxxxxxxxxx                         0x00000001054efdd4 PlayerCleanup(bool)
12  xxxxxxxxxx                         0x000000010571a900 UnityCleanup
13  xxxxxxxxxx                         0x0000000104fe59bc -[UnityAppController applicationWillTerminate:]
14  UIKitCore                          0x00000001c00bb96c -[UIApplication _terminateWithStatus:]
15  UIKitCore                          0x00000001bf890ec0 -[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:]
16  UIKitCore                          0x00000001bf890b40 -[_UISceneLifecycleMultiplexer forceExitWithTransitionContext:scene:]
17  UIKitCore                          0x00000001c00b1edc -[UIApplication workspaceShouldExit:withTransitionContext:]
18  FrontBoardServices                 0x00000001c113ab00 -[FBSUIApplicationWorkspaceShim workspaceShouldExit:withTransitionContext:]
19  FrontBoardServices                 0x00000001c1166184 __83-[FBSWorkspaceScenesClient willTerminateWithTransitionContext:withAcknowledgement:]_block_invoke_2


Thread 1 (crashed)
0   xxxxxxxxxx                         0x000000010563546c UnityWebRequestProto<UnityWebRequestTransport, AtomicRefCounter, RedirectHelper, ResponseHelper, DownloadHandler, UploadHandler, CertificateHandler, HeaderHelper, AsyncOperation>::FinishDoRequest(WebError)
1   xxxxxxxxxx                         0x0000000104fd1fe0 -[UnityWebRequestDelegate URLSession:task:didCompleteWithError:]
2   CFNetwork                          0x00000001bf44fb20 _CFNetworkHTTPConnectionCacheSetLimit
3   Foundation                         0x00000001bc46d61c __NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK__
4   Foundation                         0x00000001bc3773d8 -[NSBlockOperation main]
5   Foundation                         0x00000001bc46f8a4 __NSOPERATION_IS_INVOKING_MAIN__
6   Foundation                         0x00000001bc377070 -[NSOperation start]
7   Foundation                         0x00000001bc47029c __NSOPERATIONQUEUE_IS_STARTING_AN_OPERATION__
8   Foundation                         0x00000001bc46fd68 __NSOQSchedule_f
9   libdispatch.dylib                  0x00000001bbd2881c _dispatch_block_async_invoke2
10  libdispatch.dylib                  0x00000001bbd76184 _dispatch_client_callout
11  libdispatch.dylib                  0x00000001bbd1ea9c _dispatch_continuation_pop$VARIANT$mp
12  libdispatch.dylib                  0x00000001bbd1e1f0 _dispatch_async_redirect_invoke
13  libdispatch.dylib                  0x00000001bbd2afd0 _dispatch_root_queue_drain
14  libdispatch.dylib                  0x00000001bbd2b79c _dispatch_worker_thread2
15  libsystem_pthread.dylib            0x00000001bbdc5f64 _pthread_wqthread
16  libsystem_pthread.dylib            0x00000001bbdc8ae0 start_wqthread

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

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::smile:ataOffsets)
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::smile:ataOffsets)
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::smile:oStageInputLighting()
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

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.

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.

1 Like

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.

1 Like

I feel sorry to tell you that in Unity 2020.1.0a22 it is still there :slight_smile:

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.

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.

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.

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

5519347–566806–Crash.txt (38 KB)

Same issue when switch app to backgroud. here is stacktrace. Unity2019.2.0f1

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.

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.

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?

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

Main thread logs

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