Search Unity

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

Crash in IL2CPP Threadpool worker in 20% of sessions. IOS only

Discussion in 'iOS and tvOS' started by cruelbob, Jul 27, 2018.

  1. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,920
    That should be safe, as I believe the check for logEnabled happens before the crash in the case I looked at. However, calls to other Unity APIs might cause a problem as well.
     
  2. patrick-kulling

    patrick-kulling

    Joined:
    Feb 18, 2016
    Posts:
    7
    Is there any update on a potential fix? We are starting to see very similar issues.
    Do you still would like to get stacktrace?

    Best,
    Patrick
     
  3. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,920
    We don't have any ETA for a fix yet, and we are unsure if we can make all Unity API methods safe in this regard. In the meantime, I think your best option is to try to check for Unity API calls on background threads. Try to avoid those, definitely during process shutdown.
     
  4. patrick-kulling

    patrick-kulling

    Joined:
    Feb 18, 2016
    Posts:
    7
    Thanks for the update Josh. That we do already, but we have no control over 3rd party SDKs that we need to embed.
     
  5. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,920
    True, that can be a problem. Do you call stacks indicate which third-party code is misbehaving? Maybe we can contact the authors of that code.
     
  6. patrick-kulling

    patrick-kulling

    Joined:
    Feb 18, 2016
    Posts:
    7
    Hey Josh,
    since the crash is always triggered by the main thread - is there any indication from which thread the original crash could come from?
     
  7. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,920
    If it is possible to obtain the thread stack of all threads when the crash happens, you might be able to catch the offending code in a background thread stack. I've seen some callstacks which don't offer any useful information and others that do though.
     
  8. jeremy_gram

    jeremy_gram

    Joined:
    Jun 21, 2018
    Posts:
    14
    We started to experience this issue after upgrading from Unity2017 to Unity2018.4.3f1. In the last 3 weeks we have over 18K of these crash reports via Crashlytics. This is by far our most common crash on iOS. We can see that it happens on all types of devices and all OS versions. We only have reports of this issue with Unity2018.4.3f1.

    The stacktrace looks like it happens on application quit, but I noticed that none of our crash reports have a user ID. This is strange because we set the Crashlytics user ID very early in the application lifecycle. Perhaps MagicMiikka is correct, and the problem comes from interrupting the app while it launches?

    Here's a sample stacktrace with threads:

    Crashed: com.apple.main-thread
    EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x00000000000001f8
    /Users/builduser/buildslave/unity/build/./Runtime/Core/Containers/hash_set.h
    Code (csharp):
    1.  
    2. # Platform: ios
    3. # OS Version: 12.4.1 (16G102)
    4. # Device: iPhone 8 Plus
    5. # RAM Free: 43.9%
    6. # Disk Free: 28.5%
    7.  
    8. #0. Crashed: com.apple.main-thread
    9. 0  gramgames                      0x1031c8694 core::hash_set<core::pair<core::basic_string<char, core::StringStorageDefault<char> > const, int, true>, core::hash_pair<core::hash<core::basic_string<char, core::StringStorageDefault<char> > >, core::basic_string<char, core::StringStorageDefault<char> > const, int>, core::equal_pair<std::__1::equal_to<core::basic_string<char, core::StringStorageDefault<char> > >, core::basic_string<char, core::StringStorageDefault<char> > const, int> >::node* core::hash_set<core::pair<core::basic_string<char, core::StringStorageDefault<char> > const, int, true>, core::hash_pair<core::hash<core::basic_string<char, core::StringStorageDefault<char> > >, core::basic_string<char, core::StringStorageDefault<char> > const, int>, core::equal_pair<std::__1::equal_to<core::basic_string<char, core::StringStorageDefault<char> > >, core::basic_string<char, core::StringStorageDefault<char> > const, int> >::lookup<core::basic_string<char, core::StringStorageDefault<char> > >(core::basic_string<char, core::StringStorageDefault<char> > const&) const + 658 (hash_set.h:658)
    10. 1  gramgames                      0x1031c5b94 MonoManager::GetScriptingClass(char const*, char const*, char const*) + 308 (hash_set.h:308)
    11. 2  gramgames                      0x102d5ac88 InitializeCoreScriptingClasses() + 24 (CoreScriptingClasses.cpp:24)
    12. 3  gramgames                      0x102d5abf8 GetCoreScriptingClassesPtr() + 1909 (CoreScriptingClasses.cpp:1909)
    13. 4  gramgames                      0x102d5a774 Scripting::UnityEngine::ApplicationProxy::Internal_ApplicationWantsToQuit(ScriptingExceptionPtr*) + 718 (CoreScriptingClasses.cpp:718)
    14. 5  gramgames                      0x103129df8 NotifyPlayerQuit(bool) + 298 (Player.cpp:298)
    15. 6  gramgames                      0x10312a60c PlayerCleanup(bool) + 570 (Player.cpp:570)
    16. 7  gramgames                      0x1033912e0 UnityCleanup + 224 (LibEntryPoint.mm:224)
    17. 8  gramgames                      0x102af6bcc -[UnityAppController applicationWillTerminate:] + 408 (UnityAppController.mm:408)
    18. 9  UIKitCore                      0x1b9132ef4 -[UIApplication _terminateWithStatus:] + 220
    19. 10 UIKitCore                      0x1b89eed7c __98-[__UICanvasLifecycleMonitor_Compatability deactivateEventsOnly:withContext:forceExit:completion:]_block_invoke.261 + 344
    20. 11 UIKitCore                      0x1b91370ac _runAfterCACommitDeferredBlocks + 296
    21. 12 UIKitCore                      0x1b9125bfc _cleanUpAfterCAFlushAndRunDeferredBlocks + 352
    22. 13 UIKitCore                      0x1b9152a6c _afterCACommitHandler + 116
    23. 14 CoreFoundation                 0x18c62bd08 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 32
    24. 15 CoreFoundation                 0x18c626a30 __CFRunLoopDoObservers + 412
    25. 16 CoreFoundation                 0x18c626fac __CFRunLoopRun + 1228
    26. 17 CoreFoundation                 0x18c6267c0 CFRunLoopRunSpecific + 436
    27. 18 GraphicsServices               0x18e82779c GSEventRunModal + 104
    28. 19 UIKitCore                      0x1b912bc38 UIApplicationMain + 212
    29. 20 gramgames                      0x102ae0eb0 main + 41 (main.mm:41)
    30. 21 libdyld.dylib                  0x18c0ea8e0 start + 4
    31.  
    32. #1. Thread
    33. 0  libsystem_kernel.dylib         0x18c237b74 __workq_kernreturn + 8
    34. 1  libsystem_pthread.dylib        0x18c2ba1f8 _pthread_wqthread + 532
    35. 2  libsystem_pthread.dylib        0x18c2bccd4 start_wqthread + 4
    36.  
    37. #2. __hs_db_worker_queue
    38. #3. Thread
    39. 0  libsystem_pthread.dylib        0x18c2bccd0 start_wqthread + 190
    40.  
    41. #4. Thread
    42. 0  libsystem_kernel.dylib         0x18c237b74 __workq_kernreturn + 8
    43. 1  libsystem_pthread.dylib        0x18c2ba138 _pthread_wqthread + 340
    44. 2  libsystem_pthread.dylib        0x18c2bccd4 start_wqthread + 4
    45.  
    46. #5. com.apple.uikit.eventfetch-thread
    47. 0  libsystem_kernel.dylib         0x18c22c0f4 mach_msg_trap + 8
    48. 1  libsystem_kernel.dylib         0x18c22b5a0 mach_msg + 72
    49. 2  CoreFoundation                 0x18c62c120 __CFRunLoopServiceMachPort + 236
    50. 3  CoreFoundation                 0x18c627030 __CFRunLoopRun + 1360
    51. 4  CoreFoundation                 0x18c6267c0 CFRunLoopRunSpecific + 436
    52. 5  Foundation                     0x18cff498c -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 300
    53. 6  Foundation                     0x18cff481c -[NSRunLoop(NSRunLoop) runUntilDate:] + 96
    54. 7  UIKitCore                      0x1b9211754 -[UIEventFetcher threadMain] + 136
    55. 8  Foundation                     0x18d1214a0 __NSThread__start__ + 984
    56. 9  libsystem_pthread.dylib        0x18c2b92c0 _pthread_body + 128
    57. 10 libsystem_pthread.dylib        0x18c2b9220 _pthread_start + 44
    58. 11 libsystem_pthread.dylib        0x18c2bccdc thread_start + 4
    59.  
    60. #6. com.apple.root.default-qos
    61. 0  libsystem_kernel.dylib         0x18c2379d4 __ulock_wait + 8
    62. 1  libdispatch.dylib              0x18c0a8c24 _dispatch_ulock_wait + 56
    63. 2  libdispatch.dylib              0x18c0a8d5c _dispatch_thread_event_wait_slow$VARIANT$armv81 + 48
    64. 3  libdispatch.dylib              0x18c0ba8a8 __DISPATCH_WAIT_FOR_QUEUE__ + 336
    65. 4  libdispatch.dylib              0x18c0ba4a8 _dispatch_sync_f_slow + 140
    66. 5  gramgames                      0x103ee5eb8 -[HsDispatchQueueExecutor runSyncOnUIThread:] + 8040696
    67. 6  gramgames                      0x103f1ea94 __63-[HsApplicationLifeCycleCallback applicationDidEnterBackground]_block_invoke.205 + 8273108
    68. 7  libdispatch.dylib              0x18c0d8a38 _dispatch_call_block_and_release + 24
    69. 8  libdispatch.dylib              0x18c0d97d4 _dispatch_client_callout + 16
    70. 9  libdispatch.dylib              0x18c0b089c _dispatch_queue_override_invoke + 668
    71. 10 libdispatch.dylib              0x18c0bc9d4 _dispatch_root_queue_drain + 340
    72. 11 libdispatch.dylib              0x18c0bd248 _dispatch_worker_thread2 + 116
    73. 12 libsystem_pthread.dylib        0x18c2ba1b4 _pthread_wqthread + 464
    74. 13 libsystem_pthread.dylib        0x18c2bccd4 start_wqthread + 4
    75.  
    76. #7. GC Finalizer
    77. 0  libsystem_kernel.dylib         0x18c236ee4 __psynch_cvwait + 8
    78. 1  libsystem_pthread.dylib        0x18c2b64a4 _pthread_cond_wait$VARIANT$armv81 + 628
    79. 2  gramgames                      0x103771df4 il2cpp::eek:s::posix::posixWaitObject::Wait(unsigned int, bool) + 126 (PosixWaitObject.cpp:126)
    80. 3  gramgames                      0x10374bba4 il2cpp::gc::FinalizerThread(void*) + 296 (BoehmGC.cpp:296)
    81. 4  gramgames                      0x1037694ec il2cpp::eek:s::Thread::RunWrapper(void*) + 174 (Thread.cpp:174)
    82. 5  gramgames                      0x10376b6c8 il2cpp::eek:s::ThreadImpl::ThreadStartWrapper(void*) + 106 (ThreadImpl.cpp:106)
    83. 6  libsystem_pthread.dylib        0x18c2b92c0 _pthread_body + 128
    84. 7  libsystem_pthread.dylib        0x18c2b9220 _pthread_start + 44
    85. 8  libsystem_pthread.dylib        0x18c2bccdc thread_start + 4
    86.  
    87. #8. Job.Worker 0
    88. 0  libsystem_kernel.dylib         0x18c22c130 semaphore_wait_trap + 8
    89. 1  libdispatch.dylib              0x18c0a8968 _dispatch_sema4_wait$VARIANT$armv81 + 24
    90. 2  libdispatch.dylib              0x18c0a93e0 _dispatch_semaphore_wait_slow + 128
    91. 3  gramgames                      0x1030c7178 CappedSemaphore::WaitForSignal() + 29 (ThreadUtility.h:29)
    92. 4  gramgames                      0x1030fae98 JobQueue::processJobs(void*) + 40 (AtomicOps.h:40)
    93. 5  gramgames                      0x1030fa30c JobQueue::WorkLoop(void*) + 976 (JobQueue.cpp:976)
    94. 6  gramgames                      0x103171468 Thread::RunThreadWrapper(void*) + 76 (Thread.cpp:76)
    95. 7  libsystem_pthread.dylib        0x18c2b92c0 _pthread_body + 128
    96. 8  libsystem_pthread.dylib        0x18c2b9220 _pthread_start + 44
    97. 9  libsystem_pthread.dylib        0x18c2bccdc thread_start + 4
    98.  
    99. #9. com.helpshift.core.parallelQueue
    100. 0  libsystem_kernel.dylib         0x18c22c130 semaphore_wait_trap + 8
    101. 1  libdispatch.dylib              0x18c0a8968 _dispatch_sema4_wait$VARIANT$armv81 + 24
    102. 2  libdispatch.dylib              0x18c0a93e0 _dispatch_semaphore_wait_slow + 128
    103. 3  gramgames                      0x103effaf8 -[HsIOSHTTPTransport makeBlockingDataTaskRequest:withError:] + 8146232
    104. 4  gramgames                      0x103f0177c -[HsIOSHTTPTransport makeRequest:withError:] + 8153532
    105. 5  gramgames                      0x103fded08 -[HsPostNetwork makeRequest:withError:] + 9060168
    106. 6  gramgames                      0x103f22e5c -[HSAuthFailedNetwork makeRequest:withError:] + 8290460
    107. 7  gramgames                      0x103ef3690 -[HsFailedAPICallNetwork makeRequest:withError:] + 8095952
    108. 8  gramgames                      0x103ff2c70 -[HsGuardOkNetwork makeRequest:withError:] + 9141936
    109. 9  gramgames                      0x103f0c2d8 -[HsAnalyticsDM sendEventsData:] + 8197400
    110. 10 gramgames                      0x103f0bfac -[HsAnalyticsDM syncEventsForUser:] + 8196588
    111. 11 gramgames                      0x103f3b910 __34-[HsCocoaCore sendAnalyticsEvents]_block_invoke + 8391504
    112. 12 libdispatch.dylib              0x18c0d8a38 _dispatch_call_block_and_release + 24
    113. 13 libdispatch.dylib              0x18c0d97d4 _dispatch_client_callout + 16
    114. 14 libdispatch.dylib              0x18c0b0c34 _dispatch_continuation_pop$VARIANT$armv81 + 404
    115. 15 libdispatch.dylib              0x18c0b0314 _dispatch_async_redirect_invoke + 592
    116. 16 libdispatch.dylib              0x18c0bc9d4 _dispatch_root_queue_drain + 340
    117. 17 libdispatch.dylib              0x18c0bd248 _dispatch_worker_thread2 + 116
    118. 18 libsystem_pthread.dylib        0x18c2ba1b4 _pthread_wqthread + 464
    119. 19 libsystem_pthread.dylib        0x18c2bccd4 start_wqthread + 4
    120.  
    121. #10. Job.Worker 1
    122. 0  libsystem_kernel.dylib         0x18c22c130 semaphore_wait_trap + 8
    123. 1  libdispatch.dylib              0x18c0a8968 _dispatch_sema4_wait$VARIANT$armv81 + 24
    124. 2  libdispatch.dylib              0x18c0a93e0 _dispatch_semaphore_wait_slow + 128
    125. 3  gramgames                      0x1030c7178 CappedSemaphore::WaitForSignal() + 29 (ThreadUtility.h:29)
    126. 4  gramgames                      0x1030fae98 JobQueue::processJobs(void*) + 40 (AtomicOps.h:40)
    127. 5  gramgames                      0x1030fa30c JobQueue::WorkLoop(void*) + 976 (JobQueue.cpp:976)
    128. 6  gramgames                      0x103171468 Thread::RunThreadWrapper(void*) + 76 (Thread.cpp:76)
    129. 7  libsystem_pthread.dylib        0x18c2b92c0 _pthread_body + 128
    130. 8  libsystem_pthread.dylib        0x18c2b9220 _pthread_start + 44
    131. 9  libsystem_pthread.dylib        0x18c2bccdc thread_start + 4
    132.  
    133. #11. Job.Worker 2
    134. 0  libsystem_kernel.dylib         0x18c22c130 semaphore_wait_trap + 8
    135. 1  libdispatch.dylib              0x18c0a8968 _dispatch_sema4_wait$VARIANT$armv81 + 24
    136. 2  libdispatch.dylib              0x18c0a93e0 _dispatch_semaphore_wait_slow + 128
    137. 3  gramgames                      0x1030c7178 CappedSemaphore::WaitForSignal() + 29 (ThreadUtility.h:29)
    138. 4  gramgames                      0x1030fae98 JobQueue::processJobs(void*) + 40 (AtomicOps.h:40)
    139. 5  gramgames                      0x1030fa30c JobQueue::WorkLoop(void*) + 976 (JobQueue.cpp:976)
    140. 6  gramgames                      0x103171468 Thread::RunThreadWrapper(void*) + 76 (Thread.cpp:76)
    141. 7  libsystem_pthread.dylib        0x18c2b92c0 _pthread_body + 128
    142. 8  libsystem_pthread.dylib        0x18c2b9220 _pthread_start + 44
    143. 9  libsystem_pthread.dylib        0x18c2bccdc thread_start + 4
    144.  
    145. #12. com.helpshift.core.parallelQueue
    146. 0  libsystem_kernel.dylib         0x18c22c130 semaphore_wait_trap + 8
    147. 1  libdispatch.dylib              0x18c0a8968 _dispatch_sema4_wait$VARIANT$armv81 + 24
    148. 2  libdispatch.dylib              0x18c0a93e0 _dispatch_semaphore_wait_slow + 128
    149. 3  gramgames                      0x103effaf8 -[HsIOSHTTPTransport makeBlockingDataTaskRequest:withError:] + 8146232
    150. 4  gramgames                      0x103f015b4 -[HsIOSHTTPTransport makeRequest:withError:] + 8153076
    151. 5  gramgames                      0x103f64330 -[HsGetNetwork makeRequest:withError:] + 8557936
    152. 6  gramgames                      0x103faed04 -[HsTSCorrectedNetwork makeRequest:retryCount:withError:] + 8863556
    153. 7  gramgames                      0x103eb60e8 -[HsEtagNetwork makeRequest:withError:] + 7844648
    154. 8  gramgames                      0x103ff2c70 -[HsGuardOkNetwork makeRequest:withError:] + 9141936
    155. 9  gramgames                      0x103fb1d88 -[HsSDKConfigurationDM fetchServerConfig:] + 8875976
    156. 10 gramgames                      0x103f3add0 __32-[HsCocoaCore fetchServerConfig]_block_invoke + 8388624
    157. 11 libdispatch.dylib              0x18c0d8a38 _dispatch_call_block_and_release + 24
    158. 12 libdispatch.dylib              0x18c0d97d4 _dispatch_client_callout + 16
    159. 13 libdispatch.dylib              0x18c0b0c34 _dispatch_continuation_pop$VARIANT$armv81 + 404
    160. 14 libdispatch.dylib              0x18c0b0314 _dispatch_async_redirect_invoke + 592
    161. 15 libdispatch.dylib              0x18c0bc9d4 _dispatch_root_queue_drain + 340
    162. 16 libdispatch.dylib              0x18c0bd248 _dispatch_worker_thread2 + 116
    163. 17 libsystem_pthread.dylib        0x18c2ba1b4 _pthread_wqthread + 464
    164. 18 libsystem_pthread.dylib        0x18c2bccd4 start_wqthread + 4
    165.  
    166. #13. Thread
    167. 0  libsystem_kernel.dylib         0x18c237b74 __workq_kernreturn + 8
    168. 1  libsystem_pthread.dylib        0x18c2ba138 _pthread_wqthread + 340
    169. 2  libsystem_pthread.dylib        0x18c2bccd4 start_wqthread + 4
    170.  
    171. #14. Job.Worker 3
    172. 0  libsystem_kernel.dylib         0x18c22c130 semaphore_wait_trap + 8
    173. 1  libdispatch.dylib              0x18c0a8968 _dispatch_sema4_wait$VARIANT$armv81 + 24
    174. 2  libdispatch.dylib              0x18c0a93e0 _dispatch_semaphore_wait_slow + 128
    175. 3  gramgames                      0x1030c7178 CappedSemaphore::WaitForSignal() + 29 (ThreadUtility.h:29)
    176. 4  gramgames                      0x1030fae98 JobQueue::processJobs(void*) + 40 (AtomicOps.h:40)
    177. 5  gramgames                      0x1030fa30c JobQueue::WorkLoop(void*) + 976 (JobQueue.cpp:976)
    178. 6  gramgames                      0x103171468 Thread::RunThreadWrapper(void*) + 76 (Thread.cpp:76)
    179. 7  libsystem_pthread.dylib        0x18c2b92c0 _pthread_body + 128
    180. 8  libsystem_pthread.dylib        0x18c2b9220 _pthread_start + 44
    181. 9  libsystem_pthread.dylib        0x18c2bccdc thread_start + 4
    182.  
    183. #15. Job.Worker 4
    184. 0  libsystem_kernel.dylib         0x18c22c130 semaphore_wait_trap + 8
    185. 1  libdispatch.dylib              0x18c0a8968 _dispatch_sema4_wait$VARIANT$armv81 + 24
    186. 2  libdispatch.dylib              0x18c0a93e0 _dispatch_semaphore_wait_slow + 128
    187. 3  gramgames                      0x1030c7178 CappedSemaphore::WaitForSignal() + 29 (ThreadUtility.h:29)
    188. 4  gramgames                      0x1030fae98 JobQueue::processJobs(void*) + 40 (AtomicOps.h:40)
    189. 5  gramgames                      0x1030fa30c JobQueue::WorkLoop(void*) + 976 (JobQueue.cpp:976)
    190. 6  gramgames                      0x103171468 Thread::RunThreadWrapper(void*) + 76 (Thread.cpp:76)
    191. 7  libsystem_pthread.dylib        0x18c2b92c0 _pthread_body + 128
    192. 8  libsystem_pthread.dylib        0x18c2b9220 _pthread_start + 44
    193. 9  libsystem_pthread.dylib        0x18c2bccdc thread_start + 4
    194.  
    195. #16. Background Job.Worker 0
    196. 0  libsystem_kernel.dylib         0x18c22c130 semaphore_wait_trap + 8
    197. 1  libdispatch.dylib              0x18c0a8968 _dispatch_sema4_wait$VARIANT$armv81 + 24
    198. 2  libdispatch.dylib              0x18c0a93e0 _dispatch_semaphore_wait_slow + 128
    199. 3  gramgames                      0x1030c7178 CappedSemaphore::WaitForSignal() + 29 (ThreadUtility.h:29)
    200. 4  gramgames                      0x1030fae98 JobQueue::processJobs(void*) + 40 (AtomicOps.h:40)
    201. 5  gramgames                      0x1030fa30c JobQueue::WorkLoop(void*) + 976 (JobQueue.cpp:976)
    202. 6  gramgames                      0x103171468 Thread::RunThreadWrapper(void*) + 76 (Thread.cpp:76)
    203. 7  libsystem_pthread.dylib        0x18c2b92c0 _pthread_body + 128
    204. 8  libsystem_pthread.dylib        0x18c2b9220 _pthread_start + 44
    205. 9  libsystem_pthread.dylib        0x18c2bccdc thread_start + 4
    206.  
    207. #17. Background Job.Worker 1
    208. 0  libsystem_kernel.dylib         0x18c22c130 semaphore_wait_trap + 8
    209. 1  libdispatch.dylib              0x18c0a8968 _dispatch_sema4_wait$VARIANT$armv81 + 24
    210. 2  libdispatch.dylib              0x18c0a93e0 _dispatch_semaphore_wait_slow + 128
    211. 3  gramgames                      0x1030c7178 CappedSemaphore::WaitForSignal() + 29 (ThreadUtility.h:29)
    212. 4  gramgames                      0x1030fae98 JobQueue::processJobs(void*) + 40 (AtomicOps.h:40)
    213. 5  gramgames                      0x1030fa30c JobQueue::WorkLoop(void*) + 976 (JobQueue.cpp:976)
    214. 6  gramgames                      0x103171468 Thread::RunThreadWrapper(void*) + 76 (Thread.cpp:76)
    215. 7  libsystem_pthread.dylib        0x18c2b92c0 _pthread_body + 128
    216. 8  libsystem_pthread.dylib        0x18c2b9220 _pthread_start + 44
    217. 9  libsystem_pthread.dylib        0x18c2bccdc thread_start + 4
    218.  
    219. #18. Background Job.Worker 2
    220. 0  libsystem_kernel.dylib         0x18c22c130 semaphore_wait_trap + 8
    221. 1  libdispatch.dylib              0x18c0a8968 _dispatch_sema4_wait$VARIANT$armv81 + 24
    222. 2  libdispatch.dylib              0x18c0a93e0 _dispatch_semaphore_wait_slow + 128
    223. 3  gramgames                      0x1030c7178 CappedSemaphore::WaitForSignal() + 29 (ThreadUtility.h:29)
    224. 4  gramgames                      0x1030fae98 JobQueue::processJobs(void*) + 40 (AtomicOps.h:40)
    225. 5  gramgames                      0x1030fa30c JobQueue::WorkLoop(void*) + 976 (JobQueue.cpp:976)
    226. 6  gramgames                      0x103171468 Thread::RunThreadWrapper(void*) + 76 (Thread.cpp:76)
    227. 7  libsystem_pthread.dylib        0x18c2b92c0 _pthread_body + 128
    228. 8  libsystem_pthread.dylib        0x18c2b9220 _pthread_start + 44
    229. 9  libsystem_pthread.dylib        0x18c2bccdc thread_start + 4
    230.  
    231. #19. Background Job.Worker 3
    232. 0  libsystem_kernel.dylib         0x18c22c130 semaphore_wait_trap + 8
    233. 1  libdispatch.dylib              0x18c0a8968 _dispatch_sema4_wait$VARIANT$armv81 + 24
    234. 2  libdispatch.dylib              0x18c0a93e0 _dispatch_semaphore_wait_slow + 128
    235. 3  gramgames                      0x1030c7178 CappedSemaphore::WaitForSignal() + 29 (ThreadUtility.h:29)
    236. 4  gramgames                      0x1030fae98 JobQueue::processJobs(void*) + 40 (AtomicOps.h:40)
    237. 5  gramgames                      0x1030fa30c JobQueue::WorkLoop(void*) + 976 (JobQueue.cpp:976)
    238. 6  gramgames                      0x103171468 Thread::RunThreadWrapper(void*) + 76 (Thread.cpp:76)
    239. 7  libsystem_pthread.dylib        0x18c2b92c0 _pthread_body + 128
    240. 8  libsystem_pthread.dylib        0x18c2b9220 _pthread_start + 44
    241. 9  libsystem_pthread.dylib        0x18c2bccdc thread_start + 4
    242.  
    243. #20. Background Job.Worker 4
    244. 0  libsystem_kernel.dylib         0x18c22c130 semaphore_wait_trap + 8
    245. 1  libdispatch.dylib              0x18c0a8968 _dispatch_sema4_wait$VARIANT$armv81 + 24
    246. 2  libdispatch.dylib              0x18c0a93e0 _dispatch_semaphore_wait_slow + 128
    247. 3  gramgames                      0x1030c7178 CappedSemaphore::WaitForSignal() + 29 (ThreadUtility.h:29)
    248. 4  gramgames                      0x1030fae98 JobQueue::processJobs(void*) + 40 (AtomicOps.h:40)
    249. 5  gramgames                      0x1030fa30c JobQueue::WorkLoop(void*) + 976 (JobQueue.cpp:976)
    250. 6  gramgames                      0x103171468 Thread::RunThreadWrapper(void*) + 76 (Thread.cpp:76)
    251. 7  libsystem_pthread.dylib        0x18c2b92c0 _pthread_body + 128
    252. 8  libsystem_pthread.dylib        0x18c2b9220 _pthread_start + 44
    253. 9  libsystem_pthread.dylib        0x18c2bccdc thread_start + 4
    254.  
    255. #21. Background Job.Worker 5
    256. 0  libsystem_kernel.dylib         0x18c22c130 semaphore_wait_trap + 8
    257. 1  libdispatch.dylib              0x18c0a8968 _dispatch_sema4_wait$VARIANT$armv81 + 24
    258. 2  libdispatch.dylib              0x18c0a93e0 _dispatch_semaphore_wait_slow + 128
    259. 3  gramgames                      0x1030c7178 CappedSemaphore::WaitForSignal() + 29 (ThreadUtility.h:29)
    260. 4  gramgames                      0x1030fae98 JobQueue::processJobs(void*) + 40 (AtomicOps.h:40)
    261. 5  gramgames                      0x1030fa30c JobQueue::WorkLoop(void*) + 976 (JobQueue.cpp:976)
    262. 6  gramgames                      0x103171468 Thread::RunThreadWrapper(void*) + 76 (Thread.cpp:76)
    263. 7  libsystem_pthread.dylib        0x18c2b92c0 _pthread_body + 128
    264. 8  libsystem_pthread.dylib        0x18c2b9220 _pthread_start + 44
    265. 9  libsystem_pthread.dylib        0x18c2bccdc thread_start + 4
    266.  
    267. #22. Background Job.Worker 6
    268. 0  libsystem_kernel.dylib         0x18c22c130 semaphore_wait_trap + 8
    269. 1  libdispatch.dylib              0x18c0a8968 _dispatch_sema4_wait$VARIANT$armv81 + 24
    270. 2  libdispatch.dylib              0x18c0a93e0 _dispatch_semaphore_wait_slow + 128
    271. 3  gramgames                      0x1030c7178 CappedSemaphore::WaitForSignal() + 29 (ThreadUtility.h:29)
    272. 4  gramgames                      0x1030fae98 JobQueue::processJobs(void*) + 40 (AtomicOps.h:40)
    273. 5  gramgames                      0x1030fa30c JobQueue::WorkLoop(void*) + 976 (JobQueue.cpp:976)
    274. 6  gramgames                      0x103171468 Thread::RunThreadWrapper(void*) + 76 (Thread.cpp:76)
    275. 7  libsystem_pthread.dylib        0x18c2b92c0 _pthread_body + 128
    276. 8  libsystem_pthread.dylib        0x18c2b9220 _pthread_start + 44
    277. 9  libsystem_pthread.dylib        0x18c2bccdc thread_start + 4
    278.  
    279. #23. Background Job.Worker 7
    280. 0  libsystem_kernel.dylib         0x18c22c130 semaphore_wait_trap + 8
    281. 1  libdispatch.dylib              0x18c0a8968 _dispatch_sema4_wait$VARIANT$armv81 + 24
    282. 2  libdispatch.dylib              0x18c0a93e0 _dispatch_semaphore_wait_slow + 128
    283. 3  gramgames                      0x1030c7178 CappedSemaphore::WaitForSignal() + 29 (ThreadUtility.h:29)
    284. 4  gramgames                      0x1030fae98 JobQueue::processJobs(void*) + 40 (AtomicOps.h:40)
    285. 5  gramgames                      0x1030fa30c JobQueue::WorkLoop(void*) + 976 (JobQueue.cpp:976)
    286. 6  gramgames                      0x103171468 Thread::RunThreadWrapper(void*) + 76 (Thread.cpp:76)
    287. 7  libsystem_pthread.dylib        0x18c2b92c0 _pthread_body + 128
    288. 8  libsystem_pthread.dylib        0x18c2b9220 _pthread_start + 44
    289. 9  libsystem_pthread.dylib        0x18c2bccdc thread_start + 4
    290.  
    291. #24. Background Job.Worker 8
    292. 0  libsystem_kernel.dylib         0x18c22c130 semaphore_wait_trap + 8
    293. 1  libdispatch.dylib              0x18c0a8968 _dispatch_sema4_wait$VARIANT$armv81 + 24
    294. 2  libdispatch.dylib              0x18c0a93e0 _dispatch_semaphore_wait_slow + 128
    295. 3  gramgames                      0x1030c7178 CappedSemaphore::WaitForSignal() + 29 (ThreadUtility.h:29)
    296. 4  gramgames                      0x1030fae98 JobQueue::processJobs(void*) + 40 (AtomicOps.h:40)
    297. 5  gramgames                      0x1030fa30c JobQueue::WorkLoop(void*) + 976 (JobQueue.cpp:976)
    298. 6  gramgames                      0x103171468 Thread::RunThreadWrapper(void*) + 76 (Thread.cpp:76)
    299. 7  libsystem_pthread.dylib        0x18c2b92c0 _pthread_body + 128
    300. 8  libsystem_pthread.dylib        0x18c2b9220 _pthread_start + 44
    301. 9  libsystem_pthread.dylib        0x18c2bccdc thread_start + 4
    302.  
    303. #25. Background Job.Worker 9
    304. 0  libsystem_kernel.dylib         0x18c22c130 semaphore_wait_trap + 8
    305. 1  libdispatch.dylib              0x18c0a8968 _dispatch_sema4_wait$VARIANT$armv81 + 24
    306. 2  libdispatch.dylib              0x18c0a93e0 _dispatch_semaphore_wait_slow + 128
    307. 3  gramgames                      0x1030c7178 CappedSemaphore::WaitForSignal() + 29 (ThreadUtility.h:29)
    308. 4  gramgames                      0x1030fae98 JobQueue::processJobs(void*) + 40 (AtomicOps.h:40)
    309. 5  gramgames                      0x1030fa30c JobQueue::WorkLoop(void*) + 976 (JobQueue.cpp:976)
    310. 6  gramgames                      0x103171468 Thread::RunThreadWrapper(void*) + 76 (Thread.cpp:76)
    311. 7  libsystem_pthread.dylib        0x18c2b92c0 _pthread_body + 128
    312. 8  libsystem_pthread.dylib        0x18c2b9220 _pthread_start + 44
    313. 9  libsystem_pthread.dylib        0x18c2bccdc thread_start + 4
    314.  
    315. #26. Background Job.Worker 10
    316. 0  libsystem_kernel.dylib         0x18c22c130 semaphore_wait_trap + 8
    317. 1  libdispatch.dylib              0x18c0a8968 _dispatch_sema4_wait$VARIANT$armv81 + 24
    318. 2  libdispatch.dylib              0x18c0a93e0 _dispatch_semaphore_wait_slow + 128
    319. 3  gramgames                      0x1030c7178 CappedSemaphore::WaitForSignal() + 29 (ThreadUtility.h:29)
    320. 4  gramgames                      0x1030fae98 JobQueue::processJobs(void*) + 40 (AtomicOps.h:40)
    321. 5  gramgames                      0x1030fa30c JobQueue::WorkLoop(void*) + 976 (JobQueue.cpp:976)
    322. 6  gramgames                      0x103171468 Thread::RunThreadWrapper(void*) + 76 (Thread.cpp:76)
    323. 7  libsystem_pthread.dylib        0x18c2b92c0 _pthread_body + 128
    324. 8  libsystem_pthread.dylib        0x18c2b9220 _pthread_start + 44
    325. 9  libsystem_pthread.dylib        0x18c2bccdc thread_start + 4
    326.  
    327. #27. Background Job.Worker 11
    328. 0  libsystem_kernel.dylib         0x18c22c130 semaphore_wait_trap + 8
    329. 1  libdispatch.dylib              0x18c0a8968 _dispatch_sema4_wait$VARIANT$armv81 + 24
    330. 2  libdispatch.dylib              0x18c0a93e0 _dispatch_semaphore_wait_slow + 128
    331. 3  gramgames                      0x1030c7178 CappedSemaphore::WaitForSignal() + 29 (ThreadUtility.h:29)
    332. 4  gramgames                      0x1030fae98 JobQueue::processJobs(void*) + 40 (AtomicOps.h:40)
    333. 5  gramgames                      0x1030fa30c JobQueue::WorkLoop(void*) + 976 (JobQueue.cpp:976)
    334. 6  gramgames                      0x103171468 Thread::RunThreadWrapper(void*) + 76 (Thread.cpp:76)
    335. 7  libsystem_pthread.dylib        0x18c2b92c0 _pthread_body + 128
    336. 8  libsystem_pthread.dylib        0x18c2b9220 _pthread_start + 44
    337. 9  libsystem_pthread.dylib        0x18c2bccdc thread_start + 4
    338.  
    339. #28. Background Job.Worker 12
    340. 0  libsystem_kernel.dylib         0x18c22c130 semaphore_wait_trap + 8
    341. 1  libdispatch.dylib              0x18c0a8968 _dispatch_sema4_wait$VARIANT$armv81 + 24
    342. 2  libdispatch.dylib              0x18c0a93e0 _dispatch_semaphore_wait_slow + 128
    343. 3  gramgames                      0x1030c7178 CappedSemaphore::WaitForSignal() + 29 (ThreadUtility.h:29)
    344. 4  gramgames                      0x1030fae98 JobQueue::processJobs(void*) + 40 (AtomicOps.h:40)
    345. 5  gramgames                      0x1030fa30c JobQueue::WorkLoop(void*) + 976 (JobQueue.cpp:976)
    346. 6  gramgames                      0x103171468 Thread::RunThreadWrapper(void*) + 76 (Thread.cpp:76)
    347. 7  libsystem_pthread.dylib        0x18c2b92c0 _pthread_body + 128
    348. 8  libsystem_pthread.dylib        0x18c2b9220 _pthread_start + 44
    349. 9  libsystem_pthread.dylib        0x18c2bccdc thread_start + 4
    350.  
    351. #29. Background Job.Worker 13
    352. 0  libsystem_kernel.dylib         0x18c22c130 semaphore_wait_trap + 8
    353. 1  libdispatch.dylib              0x18c0a8968 _dispatch_sema4_wait$VARIANT$armv81 + 24
    354. 2  libdispatch.dylib              0x18c0a93e0 _dispatch_semaphore_wait_slow + 128
    355. 3  gramgames                      0x1030c7178 CappedSemaphore::WaitForSignal() + 29 (ThreadUtility.h:29)
    356. 4  gramgames                      0x1030fae98 JobQueue::processJobs(void*) + 40 (AtomicOps.h:40)
    357. 5  gramgames                      0x1030fa30c JobQueue::WorkLoop(void*) + 976 (JobQueue.cpp:976)
    358. 6  gramgames                      0x103171468 Thread::RunThreadWrapper(void*) + 76 (Thread.cpp:76)
    359. 7  libsystem_pthread.dylib        0x18c2b92c0 _pthread_body + 128
    360. 8  libsystem_pthread.dylib        0x18c2b9220 _pthread_start + 44
    361. 9  libsystem_pthread.dylib        0x18c2bccdc thread_start + 4
    362.  
    363. #30. Background Job.Worker 14
    364. 0  libsystem_kernel.dylib         0x18c22c130 semaphore_wait_trap + 8
    365. 1  libdispatch.dylib              0x18c0a8968 _dispatch_sema4_wait$VARIANT$armv81 + 24
    366. 2  libdispatch.dylib              0x18c0a93e0 _dispatch_semaphore_wait_slow + 128
    367. 3  gramgames                      0x1030c7178 CappedSemaphore::WaitForSignal() + 29 (ThreadUtility.h:29)
    368. 4  gramgames                      0x1030fae98 JobQueue::processJobs(void*) + 40 (AtomicOps.h:40)
    369. 5  gramgames                      0x1030fa30c JobQueue::WorkLoop(void*) + 976 (JobQueue.cpp:976)
    370. 6  gramgames                      0x103171468 Thread::RunThreadWrapper(void*) + 76 (Thread.cpp:76)
    371. 7  libsystem_pthread.dylib        0x18c2b92c0 _pthread_body + 128
    372. 8  libsystem_pthread.dylib        0x18c2b9220 _pthread_start + 44
    373. 9  libsystem_pthread.dylib        0x18c2bccdc thread_start + 4
    374.  
    375. #31. Background Job.Worker 15
    376. 0  libsystem_kernel.dylib         0x18c22c130 semaphore_wait_trap + 8
    377. 1  libdispatch.dylib              0x18c0a8968 _dispatch_sema4_wait$VARIANT$armv81 + 24
    378. 2  libdispatch.dylib              0x18c0a93e0 _dispatch_semaphore_wait_slow + 128
    379. 3  gramgames                      0x1030c7178 CappedSemaphore::WaitForSignal() + 29 (ThreadUtility.h:29)
    380. 4  gramgames                      0x1030fae98 JobQueue::processJobs(void*) + 40 (AtomicOps.h:40)
    381. 5  gramgames                      0x1030fa30c JobQueue::WorkLoop(void*) + 976 (JobQueue.cpp:976)
    382. 6  gramgames                      0x103171468 Thread::RunThreadWrapper(void*) + 76 (Thread.cpp:76)
    383. 7  libsystem_pthread.dylib        0x18c2b92c0 _pthread_body + 128
    384. 8  libsystem_pthread.dylib        0x18c2b9220 _pthread_start + 44
    385. 9  libsystem_pthread.dylib        0x18c2bccdc thread_start + 4
    386.  
    387. #32. BatchDeleteObjects
    388. 0  libsystem_kernel.dylib         0x18c22c130 semaphore_wait_trap + 8
    389. 1  libdispatch.dylib              0x18c0a8968 _dispatch_sema4_wait$VARIANT$armv81 + 24
    390. 2  libdispatch.dylib              0x18c0a93e0 _dispatch_semaphore_wait_slow + 128
    391. 3  gramgames                      0x1031723f8 ThreadedStreamBuffer::HandleOutOfBufferToReadFrom(ThreadedStreamBuffer::DataOffsets) + 118 (ExtendedAtomicOps-clang-gcc.h:118)
    392. 4  gramgames                      0x103126008 BatchDeleteStep2Threaded(void*) + 323 (ThreadedStreamBuffer.h:323)
    393. 5  gramgames                      0x103171468 Thread::RunThreadWrapper(void*) + 76 (Thread.cpp:76)
    394. 6  libsystem_pthread.dylib        0x18c2b92c0 _pthread_body + 128
    395. 7  libsystem_pthread.dylib        0x18c2b9220 _pthread_start + 44
    396. 8  libsystem_pthread.dylib        0x18c2bccdc thread_start + 4
    397.  
    398. #33. AsyncReadManager
    399. 0  libsystem_kernel.dylib         0x18c22c130 semaphore_wait_trap + 8
    400. 1  libdispatch.dylib              0x18c0a8968 _dispatch_sema4_wait$VARIANT$armv81 + 24
    401. 2  libdispatch.dylib              0x18c0a93e0 _dispatch_semaphore_wait_slow + 128
    402. 3  gramgames                      0x103062564 AsyncReadManagerThreaded::ThreadEntry() + 161 (AsyncReadManagerThreaded.cpp:161)
    403. 4  gramgames                      0x10306219c AsyncReadManagerThreaded::StaticThreadEntry(void*) + 74 (AsyncReadManagerThreaded.cpp:74)
    404. 5  gramgames                      0x103171468 Thread::RunThreadWrapper(void*) + 76 (Thread.cpp:76)
    405. 6  libsystem_pthread.dylib        0x18c2b92c0 _pthread_body + 128
    406. 7  libsystem_pthread.dylib        0x18c2b9220 _pthread_start + 44
    407. 8  libsystem_pthread.dylib        0x18c2bccdc thread_start + 4
    408.  
    409. #34. Thread
    410. 0  libsystem_kernel.dylib         0x18c237b74 __workq_kernreturn + 8
    411. 1  libsystem_pthread.dylib        0x18c2ba138 _pthread_wqthread + 340
    412. 2  libsystem_pthread.dylib        0x18c2bccd4 start_wqthread + 4
    413.  
    414. #35. Thread
    415. 0  libsystem_kernel.dylib         0x18c237b74 __workq_kernreturn + 8
    416. 1  libsystem_pthread.dylib        0x18c2ba138 _pthread_wqthread + 340
    417. 2  libsystem_pthread.dylib        0x18c2bccd4 start_wqthread + 4
    418.  
    419. #36. com.helpshift.inbox.poller:1568394743 (QOS: UNSPECIFIED)
    420. 0  libsystem_kernel.dylib         0x18c22c130 semaphore_wait_trap + 8
    421. 1  libdispatch.dylib              0x18c0a8968 _dispatch_sema4_wait$VARIANT$armv81 + 24
    422. 2  libdispatch.dylib              0x18c0a93e0 _dispatch_semaphore_wait_slow + 128
    423. 3  gramgames                      0x103feeef4 -[HsCampaignsInboxNetworkManager syncWithError:] + 9126196
    424. 4  gramgames                      0x103f3a034 __39-[HsPoller executeSyncActionWithDelay:]_block_invoke + 8385140
    425. 5  Foundation                     0x18d0ffcf4 __NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK__ + 16
    426. 6  Foundation                     0x18d00bdc0 -[NSBlockOperation main] + 72
    427. 7  Foundation                     0x18d00b2a8 -[__NSOperationInternal _start:] + 740
    428. 8  Foundation                     0x18d101a78 __NSOQSchedule_f + 272
    429. 9  libdispatch.dylib              0x18c0d8a38 _dispatch_call_block_and_release + 24
    430. 10 libdispatch.dylib              0x18c0d97d4 _dispatch_client_callout + 16
    431. 11 libdispatch.dylib              0x18c0b0c34 _dispatch_continuation_pop$VARIANT$armv81 + 404
    432. 12 libdispatch.dylib              0x18c0b0314 _dispatch_async_redirect_invoke + 592
    433. 13 libdispatch.dylib              0x18c0bc9d4 _dispatch_root_queue_drain + 340
    434. 14 libdispatch.dylib              0x18c0bd248 _dispatch_worker_thread2 + 116
    435. 15 libsystem_pthread.dylib        0x18c2ba1b4 _pthread_wqthread + 464
    436. 16 libsystem_pthread.dylib        0x18c2bccd4 start_wqthread + 4
    437.  
    438. #37. com.twitter.crashlytics.ios.MachExceptionServer
    439. 0  gramgames                      0x103c3fca0 CLSProcessRecordAllThreads + 5263072
    440. 1  gramgames                      0x103c3fca0 CLSProcessRecordAllThreads + 5263072
    441. 2  gramgames                      0x103c3fb5c CLSProcessRecordAllThreads + 5262748
    442. 3  gramgames                      0x103c3031c CLSHandler + 5199196
    443. 4  gramgames                      0x103c2b2c0 CLSMachExceptionServer + 5178624
    444. 5  libsystem_pthread.dylib        0x18c2b92c0 _pthread_body + 128
    445. 6  libsystem_pthread.dylib        0x18c2b9220 _pthread_start + 44
    446. 7  libsystem_pthread.dylib        0x18c2bccdc thread_start + 4
    447.  
    448. #38. Thread
    449. 0  libsystem_kernel.dylib         0x18c237b74 __workq_kernreturn + 8
    450. 1  libsystem_pthread.dylib        0x18c2ba138 _pthread_wqthread + 340
    451. 2  libsystem_pthread.dylib        0x18c2bccd4 start_wqthread + 4
    452.  
    453. #39. com.apple.NSURLConnectionLoader
    454. 0  libsystem_kernel.dylib         0x18c22c0f4 mach_msg_trap + 8
    455. 1  libsystem_kernel.dylib         0x18c22b5a0 mach_msg + 72
    456. 2  CoreFoundation                 0x18c62c120 __CFRunLoopServiceMachPort + 236
    457. 3  CoreFoundation                 0x18c627030 __CFRunLoopRun + 1360
    458. 4  CoreFoundation                 0x18c6267c0 CFRunLoopRunSpecific + 436
    459. 5  CFNetwork                      0x18cc4074c -[__CoreSchedulingSetRunnable runForever] + 216
    460. 6  Foundation                     0x18d1214a0 __NSThread__start__ + 984
    461. 7  libsystem_pthread.dylib        0x18c2b92c0 _pthread_body + 128
    462. 8  libsystem_pthread.dylib        0x18c2b9220 _pthread_start + 44
    463. 9  libsystem_pthread.dylib        0x18c2bccdc thread_start + 4
    464.  
     
  9. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,920
    Thanks for providing this stack trace. We're still working on correcting this issue, and this looks like a different instance of it than we have seen yet.

    It looks like this happens when some code subscribes to the Application.wantsToQuit event (https://docs.unity3d.com/ScriptReference/Application-wantsToQuit.html), then throws an exception from the event listener. The Unity code attempts to log that exception, but the runtime is in the process of being shut down, the attempted log fails with the crash. So maybe you can find code which subscribes to that even in your project and determine why it is throwing an exception.
     
  10. mkg2w

    mkg2w

    Joined:
    Aug 19, 2013
    Posts:
    54
    We get the crash reported in Crashlytics.
    Using 2018.4.6f1

    Here's our crash log. This occurs on start-up. We see logs making requests to a couple of URLs we require, over http

    Code (CSharp):
    1.  
    2. Crashed: Background Job.Worker 0
    3. EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x00000000000001f8
    4. core::hash_set<core::pair<core::basic_string<char, core::StringStorageDefault<char> > const, int, true>, core::hash_pair<core::hash<core::basic_string<char, core::StringStorageDefault<char> > >, core::basic_string<char, core::StringStorageDefault<char> > const, int>, core::equal_pair<std::__1::equal_to<core::basic_string<char, core::StringStorageDefault<char> > >, core::basic_string<char, core::StringStorageDefault<char> > const, int> >::node* core::hash_set<core::pair<core::basic_string<char, core::StringStorageDefault<char> > const, int, true>, core::hash_pair<core::hash<core::basic_string<char, core::StringStorageDefault<char> > >, core::basic_string<char, core::StringStorageDefault<char> > const, int>, core::equal_pair<std::__1::equal_to<core::basic_string<char, core::StringStorageDefault<char> > >, core::basic_string<char, core::StringStorageDefault<char> > const, int> >::lookup<core::basic_string<char, core::StringStorageDefault<char> > >(core::basic_string<char, core::StringStorageDefault<char> > const&) const
    5. keyboard_arrow_down
    6.  
    7.  
    8.  
    9. hash_set.h - Line 658
    10.  
    11. core::hash_set<core::pair<core::basic_string<char, core::StringStorageDefault<char> > const, int, true>, core::hash_pair<core::hash<core::basic_string<char, core::StringStorageDefault<char> > >, core::basic_string<char, core::StringStorageDefault<char> > const, int>, core::equal_pair<std::__1::equal_to<core::basic_string<char, core::StringStorageDefault<char> > >, core::basic_string<char, core::StringStorageDefault<char> > const, int> >::node* core::hash_set<core::pair<core::basic_string<char, core::StringStorageDefault<char> > const, int, true>, core::hash_pair<core::hash<core::basic_string<char, core::StringStorageDefault<char> > >, core::basic_string<char, core::StringStorageDefault<char> > const, int>, core::equal_pair<std::__1::equal_to<core::basic_string<char, core::StringStorageDefault<char> > >, core::basic_string<char, core::StringStorageDefault<char> > const, int> >::lookup<core::basic_string<char, core::StringStorageDefault<char> > >(core::basic_string<char, core::StringStorageDefault<char> > const&) const + 658
    12.  
    13. 1
    14. hash_set.h - Line 308
    15. MonoManager::GetScriptingClass(char const*, char const*, char const*) + 308
    16.  
    17. 2
    18. CommonScriptingClasses.cpp - Line 132
    19. OptionalMethod(char const*, char const*, char const*, char const*) + 132
    20.  
    21. 3
    22. CommonScriptingClasses.cpp - Line 141
    23. RequireMethod(char const*, char const*, char const*, char const*) + 141
    24.  
    25. 4
    26. UnityWebRequestScriptingClasses.cpp - Line 24
    27. InitializeUnityWebRequestScriptingClasses() + 24
    28.  
    29. 5
    30. UnityWebRequestScriptingClasses.cpp - Line 166
    31. GetUnityWebRequestScriptingClassesPtr() + 166
    32.  
    33. 6
    34. UnityWebRequestScriptingClasses.cpp - Line 175
    35. GetUnityWebRequestScriptingClasses() + 175
    36.  
    37. 7
    38. RedirectHelper.cpp - Line 94
    39. RedirectHelper::RedirectTo(core::basic_string<char, core::StringStorageDefault<char> > const&, core::basic_string<char, core::StringStorageDefault<char> > const&) + 94
    40.  
    41. 8
    42. String.h - Line 217
    43. UnityWebRequestProto<UnityWebRequestTransport, AtomicRefCounter, RedirectHelper, ResponseHelper, DownloadHandler, UploadHandler, CertificateHandler, HeaderHelper, AsyncOperation>::Job_RedirectTo_BackgroundThread(UnityWebRequestProto<UnityWebRequestTransport, AtomicRefCounter, RedirectHelper, ResponseHelper, DownloadHandler, UploadHandler, CertificateHandler, HeaderHelper, AsyncOperation>*) + 217
    44.  
    45. 9
    46. JobQueue.cpp - Line 412
    47. JobQueue::Exec(JobInfo*, long long, int) + 412
    48.  
    49. 10
    50. JobQueue.cpp - Line 673
    51. JobQueue::Steal(JobGroup*, JobInfo*, long long, int, bool) + 673
    52.  
    53. 11
    54. JobQueue.cpp - Line 832
    55. JobQueue::ExecuteJobFromQueue() + 832
    56.  
    57. 12
    58. JobQueue.cpp - Line 890
    59. JobQueue::ProcessJobs(void*) + 890
    60.  
    61. 13
    62. JobQueue.cpp - Line 976
    63. JobQueue::WorkLoop(void*) + 976
    64.  
    65. 14
    66. Thread.cpp - Line 76
    67. Thread::RunThreadWrapper(void*) + 76
    68.  
    69. 15
    70. libsystem_pthread.dylib
    71. _pthread_body + 128
    72.  
    73. 17
    74. libsystem_pthread.dylib
    75. thread_start + 4
     
  11. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,920
    Although the result is similar here, I think this crash differs from most in this thread. Most of the crashes have happened during shutdown.

    If this one is reproducible, we would like a bug report about it.
     
  12. findlimit4desire

    findlimit4desire

    Joined:
    Nov 19, 2018
    Posts:
    2
    We get the similar issue from Crashlytics as Jeremy after upgraded from Unity 2017.4.30f1 to Unity 2018.4.10f1. And after some code review, there is no subscriber to the event
    Application.wantsToQuit
    .

    Could this issue be related to different behavior between Unity 2017.4.30f1 and Unity 2018.4.10f1? Because we made little changes between two releases except upgrading Unity.

    Here is our crash log
    Code (CSharp):
    1.  
    2. Crashed: com.apple.main-thread
    3. 0  Example App                    0x105188844 core::hash_set<core::pair<core::basic_string<char, core::StringStorageDefault<char> > const, int, true>, core::hash_pair<core::hash<core::basic_string<char, core::StringStorageDefault<char> > >, core::basic_string<char, core::StringStorageDefault<char> > const, int>, core::equal_pair<std::__1::equal_to<core::basic_string<char, core::StringStorageDefault<char> > >, core::basic_string<char, core::StringStorageDefault<char> > const, int> >::node* core::hash_set<core::pair<core::basic_string<char, core::StringStorageDefault<char> > const, int, true>, core::hash_pair<core::hash<core::basic_string<char, core::StringStorageDefault<char> > >, core::basic_string<char, core::StringStorageDefault<char> > const, int>, core::equal_pair<std::__1::equal_to<core::basic_string<char, core::StringStorageDefault<char> > >, core::basic_string<char, core::StringStorageDefault<char> > const, int> >::lookup<core::basic_string<char, core::StringStorageDefault<char> > >(core::basic_string<char, core::StringStorageDefault<char> > const&) const + 658 (hash_set.h:658)
    4. 1  Example App                    0x105186204 MonoManager::GetScriptingClass(char const*, char const*, char const*) + 308 (hash_set.h:308)
    5. 2  Example App                    0x104d4376c InitializeCoreScriptingClasses() + 24 (CoreScriptingClasses.cpp:24)
    6. 3  Example App                    0x104d436dc GetCoreScriptingClassesPtr() + 1909 (CoreScriptingClasses.cpp:1909)
    7. 4  Example App                    0x104d43258 Scripting::UnityEngine::ApplicationProxy::Internal_ApplicationWantsToQuit(ScriptingExceptionPtr*) + 718 (CoreScriptingClasses.cpp:718)
    8. 5  Example App                    0x1050e966c NotifyPlayerQuit(bool) + 298 (Player.cpp:298)
    9. 6  Example App                    0x1050e9e50 PlayerCleanup(bool) + 570 (Player.cpp:570)
    10. 7  Example App                    0x10537805c UnityCleanup + 227 (LibEntryPoint.mm:227)
    11. 8  Example App                    0x10443ab9c -[UnityAppController applicationWillTerminate:] + 405 (UnityAppController.mm:405)
    12. 9  UIKitCore                      0x188e1396c -[UIApplication _terminateWithStatus:] + 244
    13. 10 UIKitCore                      0x1885e8ec0 -[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:] + 124
    14. 11 UIKitCore                      0x1885e8b40 -[_UISceneLifecycleMultiplexer forceExitWithTransitionContext:scene:] + 216
    15. 12 UIKitCore                      0x188e09edc -[UIApplication workspaceShouldExit:withTransitionContext:] + 212
    16. 13 FrontBoardServices             0x189e92b00 -[FBSUIApplicationWorkspaceShim workspaceShouldExit:withTransitionContext:] + 84
    17. 14 FrontBoardServices             0x189ebe184 __83-[FBSWorkspaceScenesClient willTerminateWithTransitionContext:withAcknowledgement:]_block_invoke_2 + 76
    18. 15 FrontBoardServices             0x189ea40f8 -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 232
    19. 16 FrontBoardServices             0x189ebe114 __83-[FBSWorkspaceScenesClient willTerminateWithTransitionContext:withAcknowledgement:]_block_invoke + 124
    20. 17 libdispatch.dylib              0x184ace184 _dispatch_client_callout + 16
    21. 18 libdispatch.dylib              0x184a77038 _dispatch_block_invoke_direct$VARIANT$mp + 224
    22. 19 FrontBoardServices             0x189ee3540 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 40
    23. 20 FrontBoardServices             0x189ee320c -[FBSSerialQueue _queue_performNextIfPossible] + 404
    24. 21 FrontBoardServices             0x189ee3734 -[FBSSerialQueue _performNextFromRunLoopSource] + 28
    25. 22 CoreFoundation                 0x184d7e7e0 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
    26. 23 CoreFoundation                 0x184d7e738 __CFRunLoopDoSource0 + 80
    27. 24 CoreFoundation                 0x184d7ded0 __CFRunLoopDoSources0 + 180
    28. 25 CoreFoundation                 0x184d7901c __CFRunLoopRun + 1080
    29. 26 CoreFoundation                 0x184d788bc CFRunLoopRunSpecific + 464
    30. 27 GraphicsServices               0x18ebe4328 GSEventRunModal + 104
    31. 28 UIKitCore                      0x188e0e6d4 UIApplicationMain + 1936
    32. 29 Example App                    0x104424ce0 main + 41 (main.mm:41)
    33. 30 libdyld.dylib                  0x184c03460 start + 4
    34.  
     
    Last edited: Nov 1, 2019
  13. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,920
    This does look rather odd. Is this something you can reproduce? If so, we might need a bug report on this.
     
  14. jeremy_gram

    jeremy_gram

    Joined:
    Jun 21, 2018
    Posts:
    14
    FYI: we still see this crash in Unity2018.4.11f1
     
  15. findlimit4desire

    findlimit4desire

    Joined:
    Nov 19, 2018
    Posts:
    2
    No, we still can't reproduce but just keep seeing this on Crashlytics.
     
    dan_ginovker likes this.
  16. nnhhaadd

    nnhhaadd

    Joined:
    Sep 7, 2015
    Posts:
    11
    Hi, recently we also got a lot of crash reports from Crashlytics.
    After trying to create the crash locally, we found out that the app will produce a crash if it’s killed when it’s still in the foreground. But instead of getting the log trace similar to the one in the crash report, we got the crashLog2. Only sometimes we can get the crashLog1 which is similar to the log trace in the crash report.
    The build was using Unity 2018.4.10f1
     

    Attached Files:

  17. xman800

    xman800

    Joined:
    Feb 27, 2017
    Posts:
    25
    @JoshPeterson I received an email from Unity Support on 12/13/19 that the case I submitted for this issue (1145982) is resolved in 2020.1.0a17. Can you confirm the fix is for the issue reported in this thread? And will the fix be back-ported to other Unity release streams, especially 2018 LTS?
     
  18. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,920
    Yes, it looks like that fix will be back ported to 2018.4 LTS. I'm not sure when it will land though. I think that information should be available on the public issue tracker link though: https://issuetracker.unity3d.com/is...at-hash-set-dot-h-645-49-during-unity-cleanup
     
    xman800 likes this.
  19. xman800

    xman800

    Joined:
    Feb 27, 2017
    Posts:
    25
    This issue (1145982) is listed as fixed in the 2018.4.16f1 release notes, but I just got a crash report of it on Unity Dashboard for my game, using 2018.4.16f1 (on iOS 13.3.1) :(
     
  20. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,920
    It could be that the issue you experience is subtly different. Can you provide details about the call stack for the crash?
     
  21. xman800

    xman800

    Joined:
    Feb 27, 2017
    Posts:
    25
    Attached is the crash info from Unity's Dashboard.
     

    Attached Files:

  22. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,920
    That does look like the same issue. I've re-opened the bug report so that we can investigate more.
     
  23. dkt597

    dkt597

    Joined:
    Jan 2, 2016
    Posts:
    1
    Hi @JoshPeterson I'm getting the similar crash on exiting the ios app (only in production not while debugging)
    I've verified this crash happens in 2018.4.18f1 , 2019.4.0f1
    Here is the crash report stack from device ( Unity 2018.4.18f1):

    Exception Type: EXC_CRASH (SIGKILL)
    Exception Codes: 0x0000000000000000, 0x0000000000000000
    Exception Note: EXC_CORPSE_NOTIFY
    Termination Reason: Namespace SPRINGBOARD, Code 0x8badf00d
    Termination Description: SPRINGBOARD, process-exit watchdog transgression: application<com.company_name.product_name>:468 exhausted real (wall clock) time allowance of 5.00 seconds | ProcessVisibility: Foreground | ProcessState: Running | WatchdogEvent: process-exit | WatchdogVisibility: Foreground | WatchdogCPUStatistics: ( | "Elapsed total CPU time (seconds): 2.080 (user 2.080, system 0.000), 21% CPU", | "Elapsed application CPU time (seconds): 0.210, 2% CPU" | )
    Triggered by Thread: 0

    Thread 0 name: Dispatch queue: com.apple.main-thread
    Thread 0 Crashed:
    0 libsystem_kernel.dylib 0x0000000186d51b58 __psynch_cvwait + 8
    1 libsystem_pthread.dylib 0x0000000186c6bd18 _pthread_cond_wait$VARIANT$mp + 732
    2 product_name 0x0000000101e33884 il2cpp::eek:s::posix::posixWaitObject::Wait(unsigned int, bool) + 15136900 (PosixWaitObject.cpp:159)
    3 product_name 0x0000000101e2a89c il2cpp::eek:s::Thread::Join(unsigned int) + 15100060 (Thread.cpp:212)
    4 product_name 0x0000000101e4a0f0 il2cpp::vm::Thread::Stop(Il2CppInternalThread*) + 15229168 (Thread.cpp:790)
    5 product_name 0x0000000101e68db8 threadpool_ms_cleanup() + 15355320 (threadpool-ms.cpp:690)
    6 product_name 0x0000000101e52408 il2cpp::vm::Runtime::Shutdown() + 15262728 (Runtime.cpp:418)
    7 product_name 0x000000010188f7a8 CleanupIl2Cpp() + 9222056 (MonoManager_Il2Cpp.cpp:276)
    8 product_name 0x00000001017f8e10 PlayerCleanup(bool) + 8605200 (Player.cpp:610)
    9 product_name 0x0000000101a5460c UnityCleanup + 11077132 (LibEntryPoint.mm:227)
    10 product_name 0x0000000100fded1c -[UnityAppController applicationWillTerminate:] + 109852 (UnityAppController.mm:412)
    11 UIKitCore 0x000000018b008a04 -[UIApplication _terminateWithStatus:] + 244
    12 UIKitCore 0x000000018a7a6218 -[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:] + 124
    13 UIKitCore 0x000000018a7a5ea0 -[_UISceneLifecycleMultiplexer forceExitWithTransitionContext:scene:] + 216
    14 UIKitCore 0x000000018affeba4 -[UIApplication workspaceShouldExit:withTransitionContext:] + 212
    15 FrontBoardServices 0x000000018c0cc8a0 -[FBSUIApplicationWorkspaceShim workspaceShouldExit:withTransitionContext:] + 84
    16 FrontBoardServices 0x000000018c0f79bc __83-[FBSWorkspaceScenesClient willTerminateWithTransitionContext:withAcknowledgement:]_block_invoke_2 + 76
    17 FrontBoardServices 0x000000018c0ddbfc -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 232
    18 FrontBoardServices 0x000000018c0f794c __83-[FBSWorkspaceScenesClient willTerminateWithTransitionContext:withAcknowledgement:]_block_invoke + 124
    19 libdispatch.dylib 0x0000000186c22524 _dispatch_client_callout + 16
    20 libdispatch.dylib 0x0000000186bcb434 _dispatch_block_invoke_direct$VARIANT$mp + 224
    21 FrontBoardServices 0x000000018c11c850 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 40
    22 FrontBoardServices 0x000000018c11c51c -[FBSSerialQueue _queue_performNextIfPossible] + 404
    23 FrontBoardServices 0x000000018c11ca44 -[FBSSerialQueue _performNextFromRunLoopSource] + 28
    24 CoreFoundation 0x0000000186edac18 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
    25 CoreFoundation 0x0000000186edab70 __CFRunLoopDoSource0 + 80
    26 CoreFoundation 0x0000000186eda2f8 __CFRunLoopDoSources0 + 184
    27 CoreFoundation 0x0000000186ed5328 __CFRunLoopRun + 788
    28 CoreFoundation 0x0000000186ed4ce8 CFRunLoopRunSpecific + 424
    29 GraphicsServices 0x000000019101f38c GSEventRunModal + 160
    30 UIKitCore 0x000000018b003444 UIApplicationMain + 1932
    31 product_name 0x0000000100fc8860 main + 18528 (main.mm:41)
    32 libdyld.dylib 0x0000000186d5c8f0 start + 4

    Hope this will give you some hints to figure the bug.
    Thanks
     
  24. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,920
    Do you happen to have the call stacks from all other threads when this crash happens?
     
  25. andrefbr21

    andrefbr21

    Joined:
    Jan 27, 2013
    Posts:
    10
    Hello @JoshPeterson, I am having the same problem as well with unity 2018.4.26

    I will try to send here as many stack traces I can from my app, hope it helps. (There should be a button on analytics that generated a .txt file with all the thread stacks, do anyone know if this is possible?)


    Code (CSharp):
    1. Crashed: IL2CPP Threadpool worker
    2. 0  tarneebmasters                 0x106785dd4 core::hash_set<core::pair<core::basic_string<char, core::StringStorageDefault<char> > const, int, true>, core::hash_pair<core::hash<core::basic_string<char, core::StringStorageDefault<char> > >, core::basic_string<char, core::StringStorageDefault<char> > const, int>, core::equal_pair<std::__1::equal_to<core::basic_string<char, core::StringStorageDefault<char> > >, core::basic_string<char, core::StringStorageDefault<char> > const, int> >::node* core::hash_set<core::pair<core::basic_string<char, core::StringStorageDefault<char> > const, int, true>, core::hash_pair<core::hash<core::basic_string<char, core::StringStorageDefault<char> > >, core::basic_string<char, core::StringStorageDefault<char> > const, int>, core::equal_pair<std::__1::equal_to<core::basic_string<char, core::StringStorageDefault<char> > >, core::basic_string<char, core::StringStorageDefault<char> > const, int> >::lookup<core::basic_string<char, core::StringStorageDefault<char> > >(core::basic_string<char, core::StringStorageDefault<char> > const&) const + 658 (hash_set.h:658)
    3. 1  tarneebmasters                 0x106783354 MonoManager::GetScriptingClass(char const*, char const*, char const*) + 308 (hash_set.h:308)
    4. 2  tarneebmasters                 0x106209c10 InitializeCoreScriptingClasses() + 24 (CoreScriptingClasses.cpp:24)
    5. 3  tarneebmasters                 0x106209b80 GetCoreScriptingClassesPtr() + 1907 (CoreScriptingClasses.cpp:1907)
    6. 4  tarneebmasters                 0x106345d78 void TransferScriptingObject<JSONRead>(JSONRead&, ScriptingObjectPtr, ScriptingClassPtr, MonoScriptCache const*) + 12 (BuildSerializationCommandQueueFor.h:12)
    7. 5  tarneebmasters                 0x106361f6c JSONUtility::DeserializeObject(core::basic_string<char, core::StringStorageDefault<char> >&, ScriptingClassPtr, core::basic_string<char, core::StringStorageDefault<char> >&, TransferInstructionFlags) + 124 (JSONRead.cpp:124)
    8. 6  tarneebmasters                 0x106361e7c FromJsonInternal(core::basic_string<char, core::StringStorageDefault<char> > const&, ScriptingObjectPtr, ScriptingClassPtr, ScriptingExceptionPtr*) + 19 (JsonUtility.bindings.cpp:19)
    9. 7  tarneebmasters                 0x1063f7084 JsonUtility_CUSTOM_FromJsonInternal(Il2CppString*, Il2CppObject*, Il2CppObject*) + 46 (JsonUtility.bindings.gen.cpp:46)
    10. 8  tarneebmasters                 0x108435834 -[VNGFMDatabase initWithPath:].cold.1 + 4399798324
    11. 9  tarneebmasters                 0x1074c0778 -[VNGFMDatabase initWithPath:].cold.1 + 4383590264
    12. 10 tarneebmasters                 0x108233844 -[VNGFMDatabase initWithPath:].cold.1 + 4397692996
    13. 11 tarneebmasters                 0x108225aa8 -[VNGFMDatabase initWithPath:].cold.1 + 4397636264
    14. 12 tarneebmasters                 0x108233fac -[VNGFMDatabase initWithPath:].cold.1 + 4397694892
    15. 13 tarneebmasters                 0x108233de8 -[VNGFMDatabase initWithPath:].cold.1 + 4397694440
    16. 14 tarneebmasters                 0x10823d874 -[VNGFMDatabase initWithPath:].cold.1 + 4397734004
    17. 15 tarneebmasters                 0x104f9639c RuntimeInvoker_FalseSByte_t9070AEA2966184235653CB9B4D33B149CDA831DF(void (*)(), MethodInfo const*, void*, void**) + 39723 (Il2CppInvokerTable.cpp:39723)
    18. 16 tarneebmasters                 0x106e03bc8 worker_thread(void*) + 253 (ThreadPoolWorkerThread.cpp:253)
    19. 17 tarneebmasters                 0x106e24764 il2cpp::vm::ThreadStart(void*) + 717 (Thread.cpp:717)
    20. 18 tarneebmasters                 0x106e04cac il2cpp::os::Thread::RunWrapper(void*) + 173 (Thread.cpp:173)
    21. 19 tarneebmasters                 0x106e071cc il2cpp::os::ThreadImpl::ThreadStartWrapper(void*) + 106 (ThreadImpl.cpp:106)
    22. 20 libsystem_pthread.dylib        0x18a8f2d98 _pthread_start + 156
    23. 21 libsystem_pthread.dylib        0x18a8f674c thread_start + 8
    Code (CSharp):
    1. com.apple.main-thread
    2. 0  libsystem_kernel.dylib         0x18a9b0198 mach_msg_trap + 8
    3. 1  libsystem_kernel.dylib         0x18a9af60c mach_msg + 72
    4. 2  libEmbeddedSystemAUs.dylib     0x1a9367240 AURemoteIO::Stop() + 632
    5. 3  libEmbeddedSystemAUs.dylib     0x1a9303b8c AUMethodStop(void*) + 72
    6. 4  tarneebmasters                 0x106d8d82c FMOD::OutputCoreAudio::stopCallback(FMOD_OUTPUT_STATE*) + 12192840
    7. 5  tarneebmasters                 0x106da428c FMOD::SystemI::closeEx(bool) + 12285608
    8. 6  tarneebmasters                 0x106d9cb28 FMOD::System::close() + 12255044
    9. 7  tarneebmasters                 0x1064c7994 AudioManager::CloseFMOD() + 1604 (AudioManager.cpp:1604)
    10. 8  tarneebmasters                 0x1064c744c AudioManager::MainThreadCleanup() + 495 (AudioManager.cpp:495)
    11. 9  tarneebmasters                 0x106587e24 delete_object_internal_step1(Object*) + 396 (BaseObject.cpp:396)
    12. 10 tarneebmasters                 0x1065877e8 delete_object_internal(Object*) + 499 (BaseObject.h:499)
    13. 11 tarneebmasters                 0x1066db950 CleanupAllObjects() + 481 (SaveAndLoadHelper.cpp:481)
    14. 12 tarneebmasters                 0x1066dbb7c CleanupEngine() + 521 (SaveAndLoadHelper.cpp:521)
    15. 13 tarneebmasters                 0x1066e5d7c PlayerCleanup(bool) + 595 (Player.cpp:595)
    16. 14 tarneebmasters                 0x1069bb114 UnityCleanup + 227 (LibEntryPoint.mm:227)
    17. 15 tarneebmasters                 0x104e89504 -[UnityAppController applicationWillTerminate:] + 443 (UnityAppController.mm:443)
    18. 16 tarneebmasters                 0x106ea5bec -[OneSignalAppDelegate oneSignalApplicationWillTerminate:] + 242 (UIApplicationDelegate+OneSignal.m:242)
    19. 17 UIKitCore                      0x18ec959a4 -[UIApplication _terminateWithStatus:] + 244
    20. 18 UIKitCore                      0x18e4330d0 -[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:] + 124
    21. 19 UIKitCore                      0x18e432d58 -[_UISceneLifecycleMultiplexer forceExitWithTransitionContext:scene:] + 216
    22. 20 UIKitCore                      0x18ec8bb44 -[UIApplication workspaceShouldExit:withTransitionContext:] + 212
    23. 21 FrontBoardServices             0x18fd5c8a0 -[FBSUIApplicationWorkspaceShim workspaceShouldExit:withTransitionContext:] + 84
    24. 22 FrontBoardServices             0x18fd879bc __83-[FBSWorkspaceScenesClient willTerminateWithTransitionContext:withAcknowledgement:]_block_invoke_2 + 76
    25. 23 FrontBoardServices             0x18fd6dbfc -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 232
    26. 24 FrontBoardServices             0x18fd8794c __83-[FBSWorkspaceScenesClient willTerminateWithTransitionContext:withAcknowledgement:]_block_invoke + 124
    27. 25 libdispatch.dylib              0x18a8a2524 _dispatch_client_callout + 16
    28. 26 libdispatch.dylib              0x18a84b434 _dispatch_block_invoke_direct$VARIANT$mp + 224
    29. 27 FrontBoardServices             0x18fdac850 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 40
    30. 28 FrontBoardServices             0x18fdac51c -[FBSSerialQueue _queue_performNextIfPossible] + 404
    31. 29 FrontBoardServices             0x18fdaca44 -[FBSSerialQueue _performNextFromRunLoopSource] + 28
    32. 30 CoreFoundation                 0x18ab5aad8 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
    33. 31 CoreFoundation                 0x18ab5aa30 __CFRunLoopDoSource0 + 80
    34. 32 CoreFoundation                 0x18ab5a1b8 __CFRunLoopDoSources0 + 184
    35. 33 CoreFoundation                 0x18ab551e8 __CFRunLoopRun + 788
    36. 34 CoreFoundation                 0x18ab54ba8 CFRunLoopRunSpecific + 424
    37. 35 GraphicsServices               0x194ccb344 GSEventRunModal + 160
    38. 36 UIKitCore                      0x18ec903e4 UIApplicationMain + 1932
    39. 37 tarneebmasters                 0x104e730e0 main + 41 (main.mm:41)
    40. 38 libdyld.dylib                  0x18a9dc8f0 start + 4
    Code (CSharp):
    1. com.apple.uikit.eventfetch-thread
    2. 0  libsystem_kernel.dylib         0x18a9b0198 mach_msg_trap + 8
    3. 1  libsystem_kernel.dylib         0x18a9af60c mach_msg + 72
    4. 2  CoreFoundation                 0x18ab5a328 __CFRunLoopServiceMachPort + 148
    5. 3  CoreFoundation                 0x18ab5535c __CFRunLoopRun + 1160
    6. 4  CoreFoundation                 0x18ab54ba8 CFRunLoopRunSpecific + 424
    7. 5  Foundation                     0x18aea601c -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 228
    8. 6  Foundation                     0x18aea5efc -[NSRunLoop(NSRunLoop) runUntilDate:] + 88
    9. 7  UIKitCore                      0x18ed3357c -[UIEventFetcher threadMain] + 152
    10. 8  Foundation                     0x18afd4e20 __NSThread__start__ + 848
    11. 9  libsystem_pthread.dylib        0x18a8f2d98 _pthread_start + 156
    12. 10 libsystem_pthread.dylib        0x18a8f674c thread_start + 8
    Code (CSharp):
    1. JavaScriptCore bmalloc scavenger
    2. 0  libsystem_kernel.dylib         0x18a9d1b58 __psynch_cvwait + 8
    3. 1  libsystem_pthread.dylib        0x18a8ebce4 _pthread_cond_wait$VARIANT$mp + 680
    4. 2  libc++.1.dylib                 0x18aa237ac std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 24
    5. 3  JavaScriptCore                 0x199af5904 void std::__1::condition_variable_any::wait<std::__1::unique_lock<bmalloc::Mutex> >(std::__1::unique_lock<bmalloc::Mutex>&) + 108
    6. 4  JavaScriptCore                 0x199af95dc bmalloc::Scavenger::threadRunLoop() + 160
    7. 5  JavaScriptCore                 0x199af92ec bmalloc::Scavenger::Scavenger(std::__1::lock_guard<bmalloc::Mutex> const&) + 10
    8. 6  JavaScriptCore                 0x199afa530 std::__1::__thread_specific_ptr<std::__1::__thread_struct>::set_pointer(std::__1::__thread_struct*) + 38
    9. 7  libsystem_pthread.dylib        0x18a8f2d98 _pthread_start + 156
    10. 8  libsystem_pthread.dylib        0x18a8f674c thread_start + 8
    Code (CSharp):
    1. WebThread
    2. 0  libsystem_kernel.dylib         0x18a9b0198 mach_msg_trap + 8
    3. 1  libsystem_kernel.dylib         0x18a9af60c mach_msg + 72
    4. 2  CoreFoundation                 0x18ab5a328 __CFRunLoopServiceMachPort + 148
    5. 3  CoreFoundation                 0x18ab5535c __CFRunLoopRun + 1160
    6. 4  CoreFoundation                 0x18ab54ba8 CFRunLoopRunSpecific + 424
    7. 5  WebCore                        0x1930f5eb8 RunWebThread(void*) + 612
    8. 6  libsystem_pthread.dylib        0x18a8f2d98 _pthread_start + 156
    9. 7  libsystem_pthread.dylib        0x18a8f674c thread_start + 8
    Code (CSharp):
    1. GC Finalizer
    2. 0  libsystem_kernel.dylib         0x18a9d1b58 __psynch_cvwait + 8
    3. 1  libsystem_pthread.dylib        0x18a8ebce4 _pthread_cond_wait$VARIANT$mp + 680
    4. 2  tarneebmasters                 0x106e0dd6c il2cpp::os::posix::PosixWaitObject::Wait(unsigned int, bool) + 126 (PosixWaitObject.cpp:126)
    5. 3  tarneebmasters                 0x106de75d8 il2cpp::gc::FinalizerThread(void*) + 301 (BoehmGC.cpp:301)
    6. 4  tarneebmasters                 0x106e04cac il2cpp::os::Thread::RunWrapper(void*) + 173 (Thread.cpp:173)
    7. 5  tarneebmasters                 0x106e071cc il2cpp::os::ThreadImpl::ThreadStartWrapper(void*) + 106 (ThreadImpl.cpp:106)
    8. 6  libsystem_pthread.dylib        0x18a8f2d98 _pthread_start + 156
    9. 7  libsystem_pthread.dylib        0x18a8f674c thread_start + 8
    Code (CSharp):
    1. Job.Worker 0
    2. 0  libsystem_kernel.dylib         0x18a9b01d4 semaphore_wait_trap + 8
    3. 1  libdispatch.dylib              0x18a848c90 _dispatch_sema4_wait$VARIANT$mp + 24
    4. 2  libdispatch.dylib              0x18a8492e8 _dispatch_semaphore_wait_slow + 140
    5. 3  tarneebmasters                 0x106666fec CappedSemaphore::WaitForSignal() + 29 (ThreadUtility.h:29)
    6. 4  tarneebmasters                 0x1066b8900 JobQueue::ProcessJobs(void*) + 40 (AtomicOps.h:40)
    7. 5  tarneebmasters                 0x1066b7d7c JobQueue::WorkLoop(void*) + 976 (JobQueue.cpp:976)
    8. 6  tarneebmasters                 0x10672cf30 Thread::RunThreadWrapper(void*) + 76 (Thread.cpp:76)
    9. 7  libsystem_pthread.dylib        0x18a8f2d98 _pthread_start + 156
    10. 8  libsystem_pthread.dylib        0x18a8f674c thread_start + 8
    Code (CSharp):
    1. Background Job.Worker 0
    2. 0  libsystem_kernel.dylib         0x18a9b01d4 semaphore_wait_trap + 8
    3. 1  libdispatch.dylib              0x18a848c90 _dispatch_sema4_wait$VARIANT$mp + 24
    4. 2  libdispatch.dylib              0x18a8492e8 _dispatch_semaphore_wait_slow + 140
    5. 3  tarneebmasters                 0x106666fec CappedSemaphore::WaitForSignal() + 29 (ThreadUtility.h:29)
    6. 4  tarneebmasters                 0x1066b8900 JobQueue::ProcessJobs(void*) + 40 (AtomicOps.h:40)
    7. 5  tarneebmasters                 0x1066b7d7c JobQueue::WorkLoop(void*) + 976 (JobQueue.cpp:976)
    8. 6  tarneebmasters                 0x10672cf30 Thread::RunThreadWrapper(void*) + 76 (Thread.cpp:76)
    9. 7  libsystem_pthread.dylib        0x18a8f2d98 _pthread_start + 156
    10. 8  libsystem_pthread.dylib        0x18a8f674c thread_start + 8
    Code (CSharp):
    1. Background Job.Worker 1
    2. 0  libsystem_kernel.dylib         0x18a9b01d4 semaphore_wait_trap + 8
    3. 1  libdispatch.dylib              0x18a848c90 _dispatch_sema4_wait$VARIANT$mp + 24
    4. 2  libdispatch.dylib              0x18a8492e8 _dispatch_semaphore_wait_slow + 140
    5. 3  tarneebmasters                 0x106666fec CappedSemaphore::WaitForSignal() + 29 (ThreadUtility.h:29)
    6. 4  tarneebmasters                 0x1066b8900 JobQueue::ProcessJobs(void*) + 40 (AtomicOps.h:40)
    7. 5  tarneebmasters                 0x1066b7d7c JobQueue::WorkLoop(void*) + 976 (JobQueue.cpp:976)
    8. 6  tarneebmasters                 0x10672cf30 Thread::RunThreadWrapper(void*) + 76 (Thread.cpp:76)
    9. 7  libsystem_pthread.dylib        0x18a8f2d98 _pthread_start + 156
    10. 8  libsystem_pthread.dylib        0x18a8f674c thread_start + 8
    Code (CSharp):
    1. Background Job.Worker 2
    2. 0  libsystem_kernel.dylib         0x18a9b01d4 semaphore_wait_trap + 8
    3. 1  libdispatch.dylib              0x18a848c90 _dispatch_sema4_wait$VARIANT$mp + 24
    4. 2  libdispatch.dylib              0x18a8492e8 _dispatch_semaphore_wait_slow + 140
    5. 3  tarneebmasters                 0x106666fec CappedSemaphore::WaitForSignal() + 29 (ThreadUtility.h:29)
    6. 4  tarneebmasters                 0x1066b8900 JobQueue::ProcessJobs(void*) + 40 (AtomicOps.h:40)
    7. 5  tarneebmasters                 0x1066b7d7c JobQueue::WorkLoop(void*) + 976 (JobQueue.cpp:976)
    8. 6  tarneebmasters                 0x10672cf30 Thread::RunThreadWrapper(void*) + 76 (Thread.cpp:76)
    9. 7  libsystem_pthread.dylib        0x18a8f2d98 _pthread_start + 156
    10. 8  libsystem_pthread.dylib        0x18a8f674c thread_start + 8
    Code (CSharp):
    1. Background Job.Worker 3
    2. 0  libsystem_kernel.dylib         0x18a9b01d4 semaphore_wait_trap + 8
    3. 1  libdispatch.dylib              0x18a848c90 _dispatch_sema4_wait$VARIANT$mp + 24
    4. 2  libdispatch.dylib              0x18a8492e8 _dispatch_semaphore_wait_slow + 140
    5. 3  tarneebmasters                 0x106666fec CappedSemaphore::WaitForSignal() + 29 (ThreadUtility.h:29)
    6. 4  tarneebmasters                 0x1066b8900 JobQueue::ProcessJobs(void*) + 40 (AtomicOps.h:40)
    7. 5  tarneebmasters                 0x1066b7d7c JobQueue::WorkLoop(void*) + 976 (JobQueue.cpp:976)
    8. 6  tarneebmasters                 0x10672cf30 Thread::RunThreadWrapper(void*) + 76 (Thread.cpp:76)
    9. 7  libsystem_pthread.dylib        0x18a8f2d98 _pthread_start + 156
    10. 8  libsystem_pthread.dylib        0x18a8f674c thread_start + 8
    Code (CSharp):
    1. Background Job.Worker 4
    2. 0  libsystem_kernel.dylib         0x18a9b01d4 semaphore_wait_trap + 8
    3. 1  libdispatch.dylib              0x18a848c90 _dispatch_sema4_wait$VARIANT$mp + 24
    4. 2  libdispatch.dylib              0x18a8492e8 _dispatch_semaphore_wait_slow + 140
    5. 3  tarneebmasters                 0x106666fec CappedSemaphore::WaitForSignal() + 29 (ThreadUtility.h:29)
    6. 4  tarneebmasters                 0x1066b8900 JobQueue::ProcessJobs(void*) + 40 (AtomicOps.h:40)
    7. 5  tarneebmasters                 0x1066b7d7c JobQueue::WorkLoop(void*) + 976 (JobQueue.cpp:976)
    8. 6  tarneebmasters                 0x10672cf30 Thread::RunThreadWrapper(void*) + 76 (Thread.cpp:76)
    9. 7  libsystem_pthread.dylib        0x18a8f2d98 _pthread_start + 156
    10. 8  libsystem_pthread.dylib        0x18a8f674c thread_start + 8
    Code (CSharp):
    1. Background Job.Worker 5
    2. 0  libsystem_kernel.dylib         0x18a9b01d4 semaphore_wait_trap + 8
    3. 1  libdispatch.dylib              0x18a848c90 _dispatch_sema4_wait$VARIANT$mp + 24
    4. 2  libdispatch.dylib              0x18a8492e8 _dispatch_semaphore_wait_slow + 140
    5. 3  tarneebmasters                 0x106666fec CappedSemaphore::WaitForSignal() + 29 (ThreadUtility.h:29)
    6. 4  tarneebmasters                 0x1066b8900 JobQueue::ProcessJobs(void*) + 40 (AtomicOps.h:40)
    7. 5  tarneebmasters                 0x1066b7d7c JobQueue::WorkLoop(void*) + 976 (JobQueue.cpp:976)
    8. 6  tarneebmasters                 0x10672cf30 Thread::RunThreadWrapper(void*) + 76 (Thread.cpp:76)
    9. 7  libsystem_pthread.dylib        0x18a8f2d98 _pthread_start + 156
    10. 8  libsystem_pthread.dylib        0x18a8f674c thread_start + 8
    Code (CSharp):
    1. Background Job.Worker 6
    2. 0  libsystem_kernel.dylib         0x18a9b01d4 semaphore_wait_trap + 8
    3. 1  libdispatch.dylib              0x18a848c90 _dispatch_sema4_wait$VARIANT$mp + 24
    4. 2  libdispatch.dylib              0x18a8492e8 _dispatch_semaphore_wait_slow + 140
    5. 3  tarneebmasters                 0x106666fec CappedSemaphore::WaitForSignal() + 29 (ThreadUtility.h:29)
    6. 4  tarneebmasters                 0x1066b8900 JobQueue::ProcessJobs(void*) + 40 (AtomicOps.h:40)
    7. 5  tarneebmasters                 0x1066b7d7c JobQueue::WorkLoop(void*) + 976 (JobQueue.cpp:976)
    8. 6  tarneebmasters                 0x10672cf30 Thread::RunThreadWrapper(void*) + 76 (Thread.cpp:76)
    9. 7  libsystem_pthread.dylib        0x18a8f2d98 _pthread_start + 156
    10. 8  libsystem_pthread.dylib        0x18a8f674c thread_start + 8
    Code (CSharp):
    1. IL2CPP Threadpool worker
    2. 0  tarneebmasters                 0x106e30b00 il2cpp::vm::SetupTypeHierarchyLocked(Il2CppClass*, il2cpp::os::FastAutoLock const&) + 1346 (Class.cpp:1346)
    3. 1  tarneebmasters                 0x106e2ed50 il2cpp::vm::Class::SetupTypeHierarchy(Il2CppClass*) + 82 (Mutex.h:82)
    4. 2  tarneebmasters                 0x106e2f550 il2cpp::vm::Class::IsSubclassOf(Il2CppClass*, Il2CppClass*, bool) + 700 (Class.cpp:700)
    5. 3  tarneebmasters                 0x106791f40 EmitInvokeInterfaceMethodCommandIfRequired(ScriptingMethodPtr, ScriptingClassPtr, ScriptingClassPtr, SerializationCommandQueueBuilder&, TransferFunctionScriptingTraits const&, bool, bool) + 16 (BuildSerializationCommandQueueFor.cpp:16)
    6. 4  tarneebmasters                 0x106790d40 BuildSerializationCommandQueueFor(BuildSerializationCommandQueueArgs const&, SerializationCommandQueueBuilder&, AllowNameConversions*&, bool, TransferField_Info const*) + 85 (BuildSerializationCommandQueueFor.cpp:85)
    7. 5  tarneebmasters                 0x106345da4 void TransferScriptingObject<JSONRead>(JSONRead&, ScriptingObjectPtr, ScriptingClassPtr, MonoScriptCache const*) + 109 (TransferScriptingObjectImpl.h:109)
    8. 6  tarneebmasters                 0x106361f6c JSONUtility::DeserializeObject(core::basic_string<char, core::StringStorageDefault<char> >&, ScriptingClassPtr, core::basic_string<char, core::StringStorageDefault<char> >&, TransferInstructionFlags) + 124 (JSONRead.cpp:124)
    9. 7  tarneebmasters                 0x106361e7c FromJsonInternal(core::basic_string<char, core::StringStorageDefault<char> > const&, ScriptingObjectPtr, ScriptingClassPtr, ScriptingExceptionPtr*) + 19 (JsonUtility.bindings.cpp:19)
    10. 8  tarneebmasters                 0x1063f7084 JsonUtility_CUSTOM_FromJsonInternal(Il2CppString*, Il2CppObject*, Il2CppObject*) + 46 (JsonUtility.bindings.gen.cpp:46)
    11. 9  tarneebmasters                 0x108435834 -[VNGFMDatabase initWithPath:].cold.1 + 4399798324
    12. 10 tarneebmasters                 0x1074c0778 -[VNGFMDatabase initWithPath:].cold.1 + 4383590264
    13. 11 tarneebmasters                 0x108233844 -[VNGFMDatabase initWithPath:].cold.1 + 4397692996
    14. 12 tarneebmasters                 0x108225aa8 -[VNGFMDatabase initWithPath:].cold.1 + 4397636264
    15. 13 tarneebmasters                 0x108233fac -[VNGFMDatabase initWithPath:].cold.1 + 4397694892
    16. 14 tarneebmasters                 0x108233de8 -[VNGFMDatabase initWithPath:].cold.1 + 4397694440
    17. 15 tarneebmasters                 0x10823d874 -[VNGFMDatabase initWithPath:].cold.1 + 4397734004
    18. 16 tarneebmasters                 0x104f9639c RuntimeInvoker_FalseSByte_t9070AEA2966184235653CB9B4D33B149CDA831DF(void (*)(), MethodInfo const*, void*, void**) + 39723 (Il2CppInvokerTable.cpp:39723)
    19. 17 tarneebmasters                 0x106e03bc8 worker_thread(void*) + 253 (ThreadPoolWorkerThread.cpp:253)
    20. 18 tarneebmasters                 0x106e24764 il2cpp::vm::ThreadStart(void*) + 717 (Thread.cpp:717)
    21. 19 tarneebmasters                 0x106e04cac il2cpp::os::Thread::RunWrapper(void*) + 173 (Thread.cpp:173)
    22. 20 tarneebmasters                 0x106e071cc il2cpp::os::ThreadImpl::ThreadStartWrapper(void*) + 106 (ThreadImpl.cpp:106)
    23. 21 libsystem_pthread.dylib        0x18a8f2d98 _pthread_start + 156
    24. 22 libsystem_pthread.dylib        0x18a8f674c thread_start + 8

    Code (CSharp):
    1. NSOperationQueue 0x12a4b05a0 (QOS: UNSPECIFIED)
    2. 0  libsystem_kernel.dylib         0x18a9d1b58 __psynch_cvwait + 8
    3. 1  libsystem_pthread.dylib        0x18a8ebce4 _pthread_cond_wait$VARIANT$mp + 680
    4. 2  tarneebmasters                 0x105f1dca4 -[USRVWebRequest makeRequest] + 78 (USRVWebRequest.m:78)
    5. 3  tarneebmasters                 0x105f1f458 -[USRVWebRequestOperation main] + 22 (USRVWebRequestOperation.m:22)
    6. 4  Foundation                     0x18afb364c __NSOPERATION_IS_INVOKING_MAIN__ + 20
    7. 5  Foundation                     0x18aebc414 -[NSOperation start] + 740
    8. 6  Foundation                     0x18afb4044 __NSOPERATIONQUEUE_IS_STARTING_AN_OPERATION__ + 20
    9. 7  Foundation                     0x18afb3b10 __NSOQSchedule_f + 180
    10. 8  libdispatch.dylib              0x18a854c8c _dispatch_block_async_invoke2 + 104
    11. 9  libdispatch.dylib              0x18a8a2524 _dispatch_client_callout + 16
    12. 10 libdispatch.dylib              0x18a84ae98 _dispatch_continuation_pop$VARIANT$mp + 412
    13. 11 libdispatch.dylib              0x18a84a5ec _dispatch_async_redirect_invoke + 656
    14. 12 libdispatch.dylib              0x18a857438 _dispatch_root_queue_drain + 376
    15. 13 libdispatch.dylib              0x18a857bf8 _dispatch_worker_thread2 + 124
    16. 14 libsystem_pthread.dylib        0x18a8f3b38 _pthread_wqthread + 212
    17. 15 libsystem_pthread.dylib        0x18a8f6740 start_wqthread + 8
     
    JoshPeterson likes this.
  26. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,920
    Thanks for the information. We're not actively investigating this at the moment, but if you want to submit a new bug report and link to this forum post, we can have a look.
     
  27. appsscity1

    appsscity1

    Joined:
    Feb 6, 2020
    Posts:
    20
    Hey @JoshPeterson

    We are getting a crash related to il2cpp lot of times and here is the crash screenshot from xcode and crash details in attached zip file.

    Please look into it and give us a possible solution as soon as you can.
     

    Attached Files:

  28. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,920
    I'm not entirely sure what is happening here, but I suspect that the application is shutting down. During shutdown the IL2CPP runtime waits for threads executing managed code to complete. It looks like there is the thread in the managed method TSTrafficSpawner::CheckNearLanesLoop which is waiting on something. I suspect that thread never exits and the OS eventually kills the application.
     
  29. appsscity1

    appsscity1

    Joined:
    Feb 6, 2020
    Posts:
    20
    Thanks @JoshPeterson

    So basically reason behind this is a thread which is running and not stopping when user closing the app.
     
  30. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,920
    Yes, that seems to be the case in most of stack traces I have seen around that issue. In some early cases, that was a problem with the libil2cpp runtime itself. I think we have corrected those cases, but the same kind of symptom can occur for other threads as well.