Search Unity

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

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

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

  1. cruelbob

    cruelbob

    Joined:
    May 26, 2014
    Posts:
    20
    We noticed this crash after release in app store with unity 2018.1.7f1. It wasn't noticed in debug builds. This is stacktrace.
    #22. EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x00000000000001f8
    Crashed: IL2CPP Threadpool worker
    0 supergame 0x1062baec8 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 (hash_set.h:566)
    1 supergame 0x1062b80bc MonoManager::GetScriptingClass(char const*, char const*, char const*) (hash_set.h:308)
    2 supergame 0x105eec620 InitializeCoreScriptingClasses() (CoreScriptingClasses.cpp:25)
    3 supergame 0x105eec594 GetCoreScriptingClassesPtr() (CoreScriptingClasses.cpp:1439)
    4 supergame 0x105eec490 GetCoreScriptingClasses() (CoreScriptingClasses.cpp:1448)
    5 supergame 0x1062b4c88 scripting_stack_trace_info_for(ScriptingExceptionPtr, StackTraceInfo&) (ScriptingTypes.h:69)
    6 supergame 0x1062b8600 Scripting::LogException(ScriptingExceptionPtr, int, char const*, bool) (Scripting.cpp:765)
    7 supergame 0x1058596ac UnhandledExceptionHandler_PrintException_m385608237 (il2cpp-codegen-il2cpp.h:285)
    8 supergame 0x1058595bc UnhandledExceptionHandler_HandleUnhandledException_m2430609357 (Bulk_UnityEngine.CoreModule_1.cpp:32161)
    9 supergame 0x105ac9534 UnhandledExceptionEventHandler_Invoke_m1545705626 (Bulk_mscorlib_20.cpp:43720)
    10 supergame 0x105e3a324 RuntimeInvoker_Void_t1185182177_RuntimeObject_RuntimeObject(void (*)(), MethodInfo const*, void*, void**) (Il2CppInvokerTable.cpp:97596)
    11 supergame 0x10691c07c il2cpp::vm::Runtime::CallUnhandledExceptionDelegate(Il2CppDomain*, Il2CppDelegate*, Il2CppException*) (Runtime.cpp:490)
    12 supergame 0x10691c000 il2cpp::vm::Runtime::UnhandledException(Il2CppException*) (Runtime.cpp:591)
    13 supergame 0x10691e0f0 il2cpp::vm::ThreadStart(void*) (Thread.cpp:671)
    14 supergame 0x1068e976c il2cpp::os::Thread::RunWrapper(void*) (Thread.cpp:169)
    15 supergame 0x1068f2424 il2cpp::os::ThreadImpl::ThreadStartWrapper(void*) (ThreadImpl.cpp:106)
    16 libsystem_pthread.dylib 0x1816ed220 _pthread_body + 272
    17 libsystem_pthread.dylib 0x1816ed110 _pthread_body + 290
    18 libsystem_pthread.dylib 0x1816ebb10 thread_start + 4

    --

    #0. com.apple.main-thread
    0 libsystem_kernel.dylib 0x18154d0e8 __psynch_cvwait + 8
    1 libsystem_pthread.dylib 0x1816f3f10 _pthread_cond_wait$VARIANT$armv81 + 684
    2 supergame 0x1068ee824 il2cpp::os::posix::PosixWaitObject::Wait(unsigned int, bool) (PosixWaitObject.cpp:159)
    3 supergame 0x1068e984c il2cpp::os::Thread::Join(unsigned int) (Thread.cpp:207)
    4 supergame 0x10691e1dc il2cpp::vm::Thread::Stop(Il2CppInternalThread*) (Thread.cpp:752)
    5 supergame 0x1068e6274 threadpool_ms_cleanup() (threadpool-ms.cpp:252)
    6 supergame 0x10691b320 il2cpp::vm::Runtime::Shutdown() (Runtime.cpp:356)
    7 supergame 0x1062b834c CleanupIl2Cpp() (MonoManager_Il2Cpp.cpp:277)
    8 supergame 0x1061faab8 PlayerCleanup(bool) (Player.cpp:621)
    9 supergame 0x10601aad4 UnityCleanup (LibEntryPoint.mm:216)
    10 supergame 0x1040c4858 -[UnityAppController applicationWillTerminate:] (UnityAppController.mm:396)
    11 UIKit 0x18b9b4e08 -[UIApplication _terminateWithStatus:] + 220
    12 UIKit 0x18bcd38c4 __98-[__UICanvasLifecycleMonitor_Compatability deactivateEventsOnly:withContext:forceExit:completion:]_block_invoke.271 + 336
    13 UIKit 0x18babd884 _runAfterCACommitDeferredBlocks + 296
    14 UIKit 0x18bab3958 _cleanUpAfterCAFlushAndRunDeferredBlocks + 384
    15 UIKit 0x18b99851c _afterCACommitHandler + 132
    16 CoreFoundation 0x181a6e910 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 32
    17 CoreFoundation 0x181a6c238 __CFRunLoopDoObservers + 412
    18 CoreFoundation 0x181a6c884 __CFRunLoopRun + 1436
    19 CoreFoundation 0x18198cda8 CFRunLoopRunSpecific + 552
    20 GraphicsServices 0x183972020 GSEventRunModal + 100
    21 UIKit 0x18b9ac758 UIApplicationMain + 236
    22 supergame 0x1040ae170 main (main.mm:33)
    23 libdyld.dylib 0x18141dfc0 start + 4

    #1. com.apple.uikit.eventfetch-thread
    0 libsystem_kernel.dylib 0x18152bde8 mach_msg_trap + 8
    1 libsystem_kernel.dylib 0x18152bc60 mach_msg + 72
    2 CoreFoundation 0x181a6ee40 __CFRunLoopServiceMachPort + 196
    3 CoreFoundation 0x181a6c908 __CFRunLoopRun + 1568
    4 CoreFoundation 0x18198cda8 CFRunLoopRunSpecific + 552
    5 Foundation 0x182401674 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 304
    6 Foundation 0x18240151c -[NSRunLoop(NSRunLoop) runUntilDate:] + 148
    7 UIKit 0x18b691768 -[UIEventFetcher threadMain] + 136
    8 Foundation 0x182511efc __NSThread__start__ + 1040
    9 libsystem_pthread.dylib 0x1816ed220 _pthread_body + 272
    10 libsystem_pthread.dylib 0x1816ed110 _pthread_body + 290
    11 libsystem_pthread.dylib 0x1816ebb10 thread_start + 4

    #2. GC Finalizer
    0 libsystem_kernel.dylib 0x18154d0e8 __psynch_cvwait + 8
    1 libsystem_pthread.dylib 0x1816f3ed8 _pthread_cond_wait$VARIANT$armv81 + 628
    2 supergame 0x1068ee884 il2cpp::os::posix::PosixWaitObject::Wait(unsigned int, bool) (PosixWaitObject.cpp:126)
    3 supergame 0x1068c609c il2cpp::gc::FinalizerThread(void*) (GarbageCollector.cpp:95)
    4 supergame 0x1068e976c il2cpp::os::Thread::RunWrapper(void*) (Thread.cpp:169)
    5 supergame 0x1068f2424 il2cpp::os::ThreadImpl::ThreadStartWrapper(void*) (ThreadImpl.cpp:106)
    6 libsystem_pthread.dylib 0x1816ed220 _pthread_body + 272
    7 libsystem_pthread.dylib 0x1816ed110 _pthread_body + 290
    8 libsystem_pthread.dylib 0x1816ebb10 thread_start + 4

    #3. AVAudioSession Notify Thread
    0 libsystem_kernel.dylib 0x18152bde8 mach_msg_trap + 8
    1 libsystem_kernel.dylib 0x18152bc60 mach_msg + 72
    2 CoreFoundation 0x181a6ee40 __CFRunLoopServiceMachPort + 196
    3 CoreFoundation 0x181a6c908 __CFRunLoopRun + 1568
    4 CoreFoundation 0x18198cda8 CFRunLoopRunSpecific + 552
    5 AVFAudio 0x187488398 GenericRunLoopThread::Entry(void*) + 164
    6 AVFAudio 0x1874b27a8 CAPThread::Entry(CAPThread*) + 88
    7 libsystem_pthread.dylib 0x1816ed220 _pthread_body + 272
    8 libsystem_pthread.dylib 0x1816ed110 _pthread_body + 290
    9 libsystem_pthread.dylib 0x1816ebb10 thread_start + 4

    #4. com.twitter.crashlytics.ios.MachExceptionServer
    0 supergame 0x1069429dc CLSProcessRecordAllThreads (CLSProcess.c:376)
    1 supergame 0x1069429dc CLSProcessRecordAllThreads (CLSProcess.c:376)
    2 supergame 0x106942e50 CLSProcessRecordAllThreads (CLSProcess.c:407)
    3 supergame 0x106933770 CLSHandler (CLSHandler.m:26)
    4 supergame 0x10692ea38 CLSMachExceptionServer (CLSMachException.c:446)
    5 libsystem_pthread.dylib 0x1816ed220 _pthread_body + 272
    6 libsystem_pthread.dylib 0x1816ed110 _pthread_body + 290
    7 libsystem_pthread.dylib 0x1816ebb10 thread_start + 4

    #5. UnityGfxDeviceWorker
    0 libsystem_kernel.dylib 0x18152be24 semaphore_wait_trap + 8
    1 libdispatch.dylib 0x1813ea0dc _dispatch_sema4_wait$VARIANT$armv81 + 24
    2 libdispatch.dylib 0x1813eaa58 _dispatch_semaphore_wait_slow + 128
    3 supergame 0x106254e0c ThreadedStreamBuffer::HandleOutOfBufferToReadFrom(unsigned int&, unsigned int&) (ExtendedAtomicOps-arm64.h:95)
    4 supergame 0x1065407e4 GfxDeviceWorker::RunCommand(ThreadedStreamBuffer&) (ThreadedStreamBuffer.h:302)
    5 supergame 0x10607a38c GfxDeviceWorkerAutoreleasePoolProxy (GfxDeviceMetal.mm:3499)
    6 supergame 0x106548470 GfxDeviceWorker::RunExt(ThreadedStreamBuffer&) (GfxDeviceWorker.cpp:152)
    7 supergame 0x1065405d4 GfxDeviceWorker::RunGfxDeviceWorker(void*) (GfxDeviceWorker.cpp:377)
    8 supergame 0x106254494 Thread::RunThreadWrapper(void*) (Thread.cpp:36)
    9 libsystem_pthread.dylib 0x1816ed220 _pthread_body + 272
    10 libsystem_pthread.dylib 0x1816ed110 _pthread_body + 290
    11 libsystem_pthread.dylib 0x1816ebb10 thread_start + 4

    #6. com.apple.NSURLConnectionLoader
    0 libsystem_kernel.dylib 0x18152bde8 mach_msg_trap + 8
    1 libsystem_kernel.dylib 0x18152bc60 mach_msg + 72
    2 CoreFoundation 0x181a6ee40 __CFRunLoopServiceMachPort + 196
    3 CoreFoundation 0x181a6c908 __CFRunLoopRun + 1568
    4 CoreFoundation 0x18198cda8 CFRunLoopRunSpecific + 552
    5 CFNetwork 0x18229a6e0 -[__CoreSchedulingSetRunnable runForever] + 220
    6 Foundation 0x182511efc __NSThread__start__ + 1040
    7 libsystem_pthread.dylib 0x1816ed220 _pthread_body + 272
    8 libsystem_pthread.dylib 0x1816ed110 _pthread_body + 290
    9 libsystem_pthread.dylib 0x1816ebb10 thread_start + 4

    #7. com.apple.CoreMotion.MotionThread
    0 libsystem_kernel.dylib 0x18152bde8 mach_msg_trap + 8
    1 libsystem_kernel.dylib 0x18152bc60 mach_msg + 72
    2 CoreFoundation 0x181a6ee40 __CFRunLoopServiceMachPort + 196
    3 CoreFoundation 0x181a6c908 __CFRunLoopRun + 1568
    4 CoreFoundation 0x18198cda8 CFRunLoopRunSpecific + 552
    5 CoreFoundation 0x1819dcb28 CFRunLoopRun + 116
    6 CoreMotion 0x186f839dc CLStartStopAdvertisingBeacon + 231572
    7 libsystem_pthread.dylib 0x1816ed220 _pthread_body + 272
    8 libsystem_pthread.dylib 0x1816ed110 _pthread_body + 290
    9 libsystem_pthread.dylib 0x1816ebb10 thread_start + 4

    #8. Timer-Scheduler
    0 libsystem_kernel.dylib 0x18154d0e8 __psynch_cvwait + 8
    1 libsystem_pthread.dylib 0x1816f3f10 _pthread_cond_wait$VARIANT$armv81 + 684
    2 supergame 0x1068ee824 il2cpp::os::posix::PosixWaitObject::Wait(unsigned int, bool) (PosixWaitObject.cpp:159)
    3 supergame 0x1068e86e4 il2cpp::os::Handle::WaitAny(std::__1::vector<il2cpp::os::Handle*, std::__1::allocator<il2cpp::os::Handle*> > const&, int) (Handle.cpp:22)
    4 supergame 0x1068da228 il2cpp::icalls::mscorlib::System::Threading::WaitHandle::Wait_internal(void**, int, bool, int) (WaitHandle.cpp:125)
    5 supergame 0x105ab02a0 WaitHandle_WaitOneNative_m1570412167 (Bulk_mscorlib_20.cpp:21877)
    6 supergame 0x105ab012c WaitHandle_InternalWaitOne_m2623089400 (Bulk_mscorlib_20.cpp:21147)
    7 supergame 0x105aaec14 Scheduler_SchedulerThread_m10185948 (Bulk_mscorlib_20.cpp:19789)
    8 supergame 0x105aaa2b8 ThreadHelper_ThreadStart_Context_m3608880784 (Bulk_mscorlib_20.cpp:15755)
    9 supergame 0x105a74530 ExecutionContext_RunInternal_m3256186641 (Bulk_mscorlib_19.cpp:28711)
    10 supergame 0x105e3a1e4 RuntimeInvoker_Void_t1185182177(void (*)(), MethodInfo const*, void*, void**) (Il2CppInvokerTable.cpp:97554)
    11 supergame 0x10691b624 il2cpp::vm::Runtime::DelegateInvoke(Il2CppDelegate*, void**, Il2CppException**) (Runtime.cpp:439)
    12 supergame 0x1068d9ed8 il2cpp::icalls::mscorlib::System::Threading::ThreadStart(void*) (Thread.cpp:160)
    13 supergame 0x1068e976c il2cpp::os::Thread::RunWrapper(void*) (Thread.cpp:169)
    14 supergame 0x1068f2424 il2cpp::os::ThreadImpl::ThreadStartWrapper(void*) (ThreadImpl.cpp:106)
    15 libsystem_pthread.dylib 0x1816ed220 _pthread_body + 272
    16 libsystem_pthread.dylib 0x1816ed110 _pthread_body + 290
    17 libsystem_pthread.dylib 0x1816ebb10 thread_start + 4

    #9. Thread
    0 libsystem_kernel.dylib 0x18154d0e8 __psynch_cvwait + 8
    1 libsystem_pthread.dylib 0x1816f3ed8 _pthread_cond_wait$VARIANT$armv81 + 628
    2 libc++.1.dylib 0x180c042ec std::__1::condition_variable::__do_timed_wait(std::__1::unique_lock<std::__1::mutex>&, std::__1::chrono::time_point<std::__1::chrono::system_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >) + 96
    3 JavaScriptCore 0x1891156e8 std::__1::cv_status std::__1::condition_variable::wait_until<std::__1::chrono::steady_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >(std::__1::unique_lock<std::__1::mutex>&, std::__1::chrono::time_point<std::__1::chrono::steady_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > > const&) + 124
    4 JavaScriptCore 0x189115598 std::__1::cv_status std::__1::condition_variable_any::wait_until<std::__1::unique_lock<bmalloc::Mutex>, std::__1::chrono::steady_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >(std::__1::unique_lock<bmalloc::Mutex>&, std::__1::chrono::time_point<std::__1::chrono::steady_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > > const&) + 112
    5 JavaScriptCore 0x1891150dc bmalloc::Scavenger::threadRunLoop() + 272
    6 JavaScriptCore 0x189114e18 bmalloc::Scavenger::Scavenger(std::__1::lock_guard<bmalloc::StaticMutex>&) + 10
    7 JavaScriptCore 0x189115234 void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, void (*)(bmalloc::Scavenger*), bmalloc::Scavenger*> >(void*) + 44
    8 libsystem_pthread.dylib 0x1816ed220 _pthread_body + 272
    9 libsystem_pthread.dylib 0x1816ed110 _pthread_body + 290
    10 libsystem_pthread.dylib 0x1816ebb10 thread_start + 4

    #10. Thread
    0 libsystem_kernel.dylib 0x18154dd78 __workq_kernreturn + 8
    1 libsystem_pthread.dylib 0x1816ebeb4 _pthread_wqthread + 928
    2 libsystem_pthread.dylib 0x1816ebb08 start_wqthread + 4

    #11. com.helpshift.inbox.poller:1532683649 (QOS: UNSPECIFIED)
    0 libsystem_kernel.dylib 0x18154d604 __semwait_signal + 8
    1 libsystem_c.dylib 0x18146612c nanosleep + 212
    2 Foundation 0x182511214 +[NSThread sleepForTimeInterval:] + 136
    3 supergame 0x106a11600 __39-[HsPoller executeSyncActionWithDelay:]_block_invoke + 2332688
    4 Foundation 0x1824eee88 __NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK__ + 16
    5 Foundation 0x1824308d0 -[NSBlockOperation main] + 72
    6 Foundation 0x18242fcac -[__NSOperationInternal _start:] + 848
    7 Foundation 0x1824f076c __NSOQSchedule_f + 404
    8 libdispatch.dylib 0x1813b8a60 _dispatch_client_callout + 16
    9 libdispatch.dylib 0x1813f57c8 _dispatch_continuation_pop$VARIANT$armv81 + 416
    10 libdispatch.dylib 0x1813f41a0 _dispatch_async_redirect_invoke$VARIANT$armv81 + 596
    11 libdispatch.dylib 0x1813fa3c4 _dispatch_root_queue_drain + 592
    12 libdispatch.dylib 0x1813fa110 _dispatch_worker_thread3 + 112
    13 libsystem_pthread.dylib 0x1816ebfac _pthread_wqthread + 1176
    14 libsystem_pthread.dylib 0x1816ebb08 start_wqthread + 4

    #12. com.helpshift.inbox.poller:1532683649 (QOS: UNSPECIFIED)
    0 libsystem_kernel.dylib 0x18154d604 __semwait_signal + 8
    1 libsystem_c.dylib 0x18146612c nanosleep + 212
    2 Foundation 0x182511214 +[NSThread sleepForTimeInterval:] + 136
    3 supergame 0x106a11600 __39-[HsPoller executeSyncActionWithDelay:]_block_invoke + 2332688
    4 Foundation 0x1824eee88 __NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK__ + 16
    5 Foundation 0x1824308d0 -[NSBlockOperation main] + 72
    6 Foundation 0x18242fcac -[__NSOperationInternal _start:] + 848
    7 Foundation 0x1824f076c __NSOQSchedule_f + 404
    8 libdispatch.dylib 0x1813b8a60 _dispatch_client_callout + 16
    9 libdispatch.dylib 0x1813f57c8 _dispatch_continuation_pop$VARIANT$armv81 + 416
    10 libdispatch.dylib 0x1813f4254 _dispatch_async_redirect_invoke$VARIANT$armv81 + 776
    11 libdispatch.dylib 0x1813fa3c4 _dispatch_root_queue_drain + 592
    12 libdispatch.dylib 0x1813fa110 _dispatch_worker_thread3 + 112
    13 libsystem_pthread.dylib 0x1816ebfac _pthread_wqthread + 1176
    14 libsystem_pthread.dylib 0x1816ebb08 start_wqthread + 4

    #13. Thread
    0 libsystem_pthread.dylib 0x1816ebb04 start_wqthread + 122

    #14. Thread
    0 libsystem_kernel.dylib 0x18154dd78 __workq_kernreturn + 8
    1 libsystem_pthread.dylib 0x1816ec0a0 _pthread_wqthread + 1420
    2 libsystem_pthread.dylib 0x1816ebb08 start_wqthread + 4

    #15. Thread
    0 libsystem_kernel.dylib 0x18154dd78 __workq_kernreturn + 8
    1 libsystem_pthread.dylib 0x1816ebeb4 _pthread_wqthread + 928
    2 libsystem_pthread.dylib 0x1816ebb08 start_wqthread + 4

    #16. Thread
    0 libsystem_kernel.dylib 0x18154dd78 __workq_kernreturn + 8
    1 libsystem_pthread.dylib 0x1816ec0a0 _pthread_wqthread + 1420
    2 libsystem_pthread.dylib 0x1816ebb08 start_wqthread + 4

    #17. IL2CPP Threadpool worker
    0 libsystem_kernel.dylib 0x18154d0e8 __psynch_cvwait + 8
    1 libsystem_pthread.dylib 0x1816f3ed8 _pthread_cond_wait$VARIANT$armv81 + 628
    2 supergame 0x1068e9dd4 il2cpp::os::ConditionVariableImpl::TimedWait(il2cpp::os::FastMutexImpl*, unsigned int) (ConditionVariableImpl.cpp:52)
    3 supergame 0x1068e7d24 worker_thread(void*) (ThreadPoolWorkerThread.cpp:88)
    4 supergame 0x10691e020 il2cpp::vm::ThreadStart(void*) (Thread.cpp:679)
    5 supergame 0x1068e976c il2cpp::os::Thread::RunWrapper(void*) (Thread.cpp:169)
    6 supergame 0x1068f2424 il2cpp::os::ThreadImpl::ThreadStartWrapper(void*) (ThreadImpl.cpp:106)
    7 libsystem_pthread.dylib 0x1816ed220 _pthread_body + 272
    8 libsystem_pthread.dylib 0x1816ed110 _pthread_body + 290
    9 libsystem_pthread.dylib 0x1816ebb10 thread_start + 4

    #18. IL2CPP Threadpool worker
    0 libsystem_kernel.dylib 0x18154d0e8 __psynch_cvwait + 8
    1 libsystem_pthread.dylib 0x1816f3ed8 _pthread_cond_wait$VARIANT$armv81 + 628
    2 supergame 0x1068e9dd4 il2cpp::os::ConditionVariableImpl::TimedWait(il2cpp::os::FastMutexImpl*, unsigned int) (ConditionVariableImpl.cpp:52)
    3 supergame 0x1068e7d24 worker_thread(void*) (ThreadPoolWorkerThread.cpp:88)
    4 supergame 0x10691e020 il2cpp::vm::ThreadStart(void*) (Thread.cpp:679)
    5 supergame 0x1068e976c il2cpp::os::Thread::RunWrapper(void*) (Thread.cpp:169)
    6 supergame 0x1068f2424 il2cpp::os::ThreadImpl::ThreadStartWrapper(void*) (ThreadImpl.cpp:106)
    7 libsystem_pthread.dylib 0x1816ed220 _pthread_body + 272
    8 libsystem_pthread.dylib 0x1816ed110 _pthread_body + 290
    9 libsystem_pthread.dylib 0x1816ebb10 thread_start + 4

    #19. Thread
    0 libsystem_kernel.dylib 0x18154dd78 __workq_kernreturn + 8
    1 libsystem_pthread.dylib 0x1816ebeb4 _pthread_wqthread + 928
    2 libsystem_pthread.dylib 0x1816ebb08 start_wqthread + 4

    #20. Thread
    0 libsystem_kernel.dylib 0x18154dd78 __workq_kernreturn + 8
    1 libsystem_pthread.dylib 0x1816ebeb4 _pthread_wqthread + 928
    2 libsystem_pthread.dylib 0x1816ebb08 start_wqthread + 4

    #21. Thread
    0 libsystem_kernel.dylib 0x18154dd78 __workq_kernreturn + 8
    1 libsystem_pthread.dylib 0x1816ebeb4 _pthread_wqthread + 928
    2 libsystem_pthread.dylib 0x1816ebb08 start_wqthread + 4

    #22. Crashed: IL2CPP Threadpool worker
    0 supergame 0x1062baec8 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 (hash_set.h:566)
    1 supergame 0x1062b80bc MonoManager::GetScriptingClass(char const*, char const*, char const*) (hash_set.h:308)
    2 supergame 0x105eec620 InitializeCoreScriptingClasses() (CoreScriptingClasses.cpp:25)
    3 supergame 0x105eec594 GetCoreScriptingClassesPtr() (CoreScriptingClasses.cpp:1439)
    4 supergame 0x105eec490 GetCoreScriptingClasses() (CoreScriptingClasses.cpp:1448)
    5 supergame 0x1062b4c88 scripting_stack_trace_info_for(ScriptingExceptionPtr, StackTraceInfo&) (ScriptingTypes.h:69)
    6 supergame 0x1062b8600 Scripting::LogException(ScriptingExceptionPtr, int, char const*, bool) (Scripting.cpp:765)
    7 supergame 0x1058596ac UnhandledExceptionHandler_PrintException_m385608237 (il2cpp-codegen-il2cpp.h:285)
    8 supergame 0x1058595bc UnhandledExceptionHandler_HandleUnhandledException_m2430609357 (Bulk_UnityEngine.CoreModule_1.cpp:32161)
    9 supergame 0x105ac9534 UnhandledExceptionEventHandler_Invoke_m1545705626 (Bulk_mscorlib_20.cpp:43720)
    10 supergame 0x105e3a324 RuntimeInvoker_Void_t1185182177_RuntimeObject_RuntimeObject(void (*)(), MethodInfo const*, void*, void**) (Il2CppInvokerTable.cpp:97596)
    11 supergame 0x10691c07c il2cpp::vm::Runtime::CallUnhandledExceptionDelegate(Il2CppDomain*, Il2CppDelegate*, Il2CppException*) (Runtime.cpp:490)
    12 supergame 0x10691c000 il2cpp::vm::Runtime::UnhandledException(Il2CppException*) (Runtime.cpp:591)
    13 supergame 0x10691e0f0 il2cpp::vm::ThreadStart(void*) (Thread.cpp:671)
    14 supergame 0x1068e976c il2cpp::os::Thread::RunWrapper(void*) (Thread.cpp:169)
    15 supergame 0x1068f2424 il2cpp::os::ThreadImpl::ThreadStartWrapper(void*) (ThreadImpl.cpp:106)
    16 libsystem_pthread.dylib 0x1816ed220 _pthread_body + 272
    17 libsystem_pthread.dylib 0x1816ed110 _pthread_body + 290
    18 libsystem_pthread.dylib 0x1816ebb10 thread_start + 4

    #23. IL2CPP Threadpool worker
    0 libsystem_kernel.dylib 0x18154d0e8 __psynch_cvwait + 8
    1 libsystem_pthread.dylib 0x1816f3ed8 _pthread_cond_wait$VARIANT$armv81 + 628
    2 supergame 0x1068e9dd4 il2cpp::os::ConditionVariableImpl::TimedWait(il2cpp::os::FastMutexImpl*, unsigned int) (ConditionVariableImpl.cpp:52)
    3 supergame 0x1068e7d24 worker_thread(void*) (ThreadPoolWorkerThread.cpp:88)
    4 supergame 0x10691e020 il2cpp::vm::ThreadStart(void*) (Thread.cpp:679)
    5 supergame 0x1068e976c il2cpp::os::Thread::RunWrapper(void*) (Thread.cpp:169)
    6 supergame 0x1068f2424 il2cpp::os::ThreadImpl::ThreadStartWrapper(void*) (ThreadImpl.cpp:106)
    7 libsystem_pthread.dylib 0x1816ed220 _pthread_body + 272
    8 libsystem_pthread.dylib 0x1816ed110 _pthread_body + 290
    9 libsystem_pthread.dylib 0x1816ebb10 thread_start + 4

    #24. IL2CPP Threadpool worker
    0 libsystem_kernel.dylib 0x18154d0e8 __psynch_cvwait + 8
    1 libsystem_pthread.dylib 0x1816f3ed8 _pthread_cond_wait$VARIANT$armv81 + 628
    2 supergame 0x1068e9dd4 il2cpp::os::ConditionVariableImpl::TimedWait(il2cpp::os::FastMutexImpl*, unsigned int) (ConditionVariableImpl.cpp:52)
    3 supergame 0x1068e7d24 worker_thread(void*) (ThreadPoolWorkerThread.cpp:88)
    4 supergame 0x10691e020 il2cpp::vm::ThreadStart(void*) (Thread.cpp:679)
    5 supergame 0x1068e976c il2cpp::os::Thread::RunWrapper(void*) (Thread.cpp:169)
    6 supergame 0x1068f2424 il2cpp::os::ThreadImpl::ThreadStartWrapper(void*) (ThreadImpl.cpp:106)
    7 libsystem_pthread.dylib 0x1816ed220 _pthread_body + 272
    8 libsystem_pthread.dylib 0x1816ed110 _pthread_body + 290
    9 libsystem_pthread.dylib 0x1816ebb10 thread_start + 4
     
    Last edited: Jul 31, 2018
    dan_ginovker likes this.
  2. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,771
    Often crashes in MonoManager::GetScriptingClass indicate something is wrong with engine code stripping. If you get to a point where you can reproduce this issue, maybe try it without engine code stripping enabled (if it is enabled).

    Otherwise, I'm not sure about the cause of the issue.
     
  3. cruelbob

    cruelbob

    Joined:
    May 26, 2014
    Posts:
    20
    Note that main thread is calling il2cpp::vm::Runtime::Shutdown while crashed thread is trying to log exception. May be this is cause of the crash?
     
  4. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,771
    Ahh, that is interesting, I did not notice that. Some code must be throwing an exception during shutdown. Maybe there is an order of operations problem here.

    Is this something you have been able to reproduce locally?
     
  5. cruelbob

    cruelbob

    Joined:
    May 26, 2014
    Posts:
    20
    We have caught another stacktrace with same error. This time main thread crashed.

    #0. EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x00000000000001f8
    Crashed: com.apple.main-thread
    0 supergame 0x1066aaec8 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 (hash_set.h:566)
    1 supergame 0x1066a80bc MonoManager::GetScriptingClass(char const*, char const*, char const*) (hash_set.h:308)
    2 supergame 0x1062dc620 InitializeCoreScriptingClasses() (CoreScriptingClasses.cpp:25)
    3 supergame 0x1062dc594 GetCoreScriptingClassesPtr() (CoreScriptingClasses.cpp:1439)
    4 supergame 0x1062dc490 GetCoreScriptingClasses() (CoreScriptingClasses.cpp:1448)
    5 supergame 0x1065ea220 NotifyPlayerQuit(bool) (Player.cpp:309)
    6 supergame 0x1065eaa84 PlayerCleanup(bool) (Player.cpp:585)
    7 supergame 0x10640aad4 UnityCleanup (LibEntryPoint.mm:216)
    8 supergame 0x1044b4858 -[UnityAppController applicationWillTerminate:] (UnityAppController.mm:396)
    9 UIKit 0x18dbf4e08 -[UIApplication _terminateWithStatus:] + 220
    10 UIKit 0x18df138c4 __98-[__UICanvasLifecycleMonitor_Compatability deactivateEventsOnly:withContext:forceExit:completion:]_block_invoke.271 + 336
    11 UIKit 0x18dcfd884 _runAfterCACommitDeferredBlocks + 296
    12 UIKit 0x18dcf3958 _cleanUpAfterCAFlushAndRunDeferredBlocks + 384
    13 UIKit 0x18dbd851c _afterCACommitHandler + 132
    14 CoreFoundation 0x183cae910 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 32
    15 CoreFoundation 0x183cac238 __CFRunLoopDoObservers + 412
    16 CoreFoundation 0x183cac884 __CFRunLoopRun + 1436
    17 CoreFoundation 0x183bccda8 CFRunLoopRunSpecific + 552
    18 GraphicsServices 0x185bb2020 GSEventRunModal + 100
    19 UIKit 0x18dbec758 UIApplicationMain + 236
    20 supergame 0x10449e170 main (main.mm:33)
    21 libdyld.dylib 0x18365dfc0 start + 4

    --

    #0. Crashed: com.apple.main-thread
    0 supergame 0x1066aaec8 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 (hash_set.h:566)
    1 supergame 0x1066a80bc MonoManager::GetScriptingClass(char const*, char const*, char const*) (hash_set.h:308)
    2 supergame 0x1062dc620 InitializeCoreScriptingClasses() (CoreScriptingClasses.cpp:25)
    3 supergame 0x1062dc594 GetCoreScriptingClassesPtr() (CoreScriptingClasses.cpp:1439)
    4 supergame 0x1062dc490 GetCoreScriptingClasses() (CoreScriptingClasses.cpp:1448)
    5 supergame 0x1065ea220 NotifyPlayerQuit(bool) (Player.cpp:309)
    6 supergame 0x1065eaa84 PlayerCleanup(bool) (Player.cpp:585)
    7 supergame 0x10640aad4 UnityCleanup (LibEntryPoint.mm:216)
    8 supergame 0x1044b4858 -[UnityAppController applicationWillTerminate:] (UnityAppController.mm:396)
    9 UIKit 0x18dbf4e08 -[UIApplication _terminateWithStatus:] + 220
    10 UIKit 0x18df138c4 __98-[__UICanvasLifecycleMonitor_Compatability deactivateEventsOnly:withContext:forceExit:completion:]_block_invoke.271 + 336
    11 UIKit 0x18dcfd884 _runAfterCACommitDeferredBlocks + 296
    12 UIKit 0x18dcf3958 _cleanUpAfterCAFlushAndRunDeferredBlocks + 384
    13 UIKit 0x18dbd851c _afterCACommitHandler + 132
    14 CoreFoundation 0x183cae910 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 32
    15 CoreFoundation 0x183cac238 __CFRunLoopDoObservers + 412
    16 CoreFoundation 0x183cac884 __CFRunLoopRun + 1436
    17 CoreFoundation 0x183bccda8 CFRunLoopRunSpecific + 552
    18 GraphicsServices 0x185bb2020 GSEventRunModal + 100
    19 UIKit 0x18dbec758 UIApplicationMain + 236
    20 supergame 0x10449e170 main (main.mm:33)
    21 libdyld.dylib 0x18365dfc0 start + 4

    #1. com.apple.root.default-qos
    0 libsystem_kernel.dylib 0x18376be24 semaphore_wait_trap + 8
    1 libdispatch.dylib 0x1835faf48 _dispatch_sema4_wait$VARIANT$mp + 24
    2 libdispatch.dylib 0x1835fb8e0 _dispatch_semaphore_wait_slow + 136
    3 CFNetwork 0x18431511c CFURLConnectionSendSynchronousRequest + 292
    4 CFNetwork 0x184343324 +[NSURLConnection sendSynchronousRequest:returningResponse:error:] + 116
    5 supergame 0x106d7a7b0 +[HSCoreAPICalls makeHSApiCallToURI:method:data:response:error:] + 1780160
    6 supergame 0x106e8bbe8 -[HSConfigAPICalls fetchConfig] + 2899448
    7 supergame 0x106e6f8a0 -[HSConfigController fetchConfig] + 2783920
    8 supergame 0x106e1f6d8 __30+[SupportInternal fetchConfig]_block_invoke + 2455784
    9 libdispatch.dylib 0x1835f8aa0 _dispatch_call_block_and_release + 24
    10 libdispatch.dylib 0x1835f8a60 _dispatch_client_callout + 16
    11 libdispatch.dylib 0x1835ffb84 _dispatch_queue_override_invoke$VARIANT$mp + 716
    12 libdispatch.dylib 0x183605cac _dispatch_root_queue_drain + 588
    13 libdispatch.dylib 0x1836059fc _dispatch_worker_thread3 + 120
    14 libsystem_pthread.dylib 0x18392bfac _pthread_wqthread + 1176
    15 libsystem_pthread.dylib 0x18392bb08 start_wqthread + 4

    #2. com.apple.root.default-qos.overcommit
    0 libsystem_kernel.dylib 0x18378dd78 __workq_kernreturn + 8
    1 libsystem_pthread.dylib 0x183937334 _pthread_workqueue_addthreads + 72
    2 libdispatch.dylib 0x183602594 _dispatch_global_queue_poke_slow + 120
    3 libdispatch.dylib 0x183605d44 _dispatch_root_queue_drain + 740
    4 libdispatch.dylib 0x1836059fc _dispatch_worker_thread3 + 120
    5 libsystem_pthread.dylib 0x18392bfac _pthread_wqthread + 1176
    6 libsystem_pthread.dylib 0x18392bb08 start_wqthread + 4

    #3. Thread
    0 libsystem_pthread.dylib 0x18392bb04 start_wqthread + 122

    #4. com.apple.uikit.eventfetch-thread
    0 libsystem_kernel.dylib 0x18376bde8 mach_msg_trap + 8
    1 libsystem_kernel.dylib 0x18376bc60 mach_msg + 72
    2 CoreFoundation 0x183caee40 __CFRunLoopServiceMachPort + 196
    3 CoreFoundation 0x183cac908 __CFRunLoopRun + 1568
    4 CoreFoundation 0x183bccda8 CFRunLoopRunSpecific + 552
    5 Foundation 0x184641674 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 304
    6 Foundation 0x1846414dc -[NSRunLoop(NSRunLoop) runUntilDate:] + 84
    7 UIKit 0x18d8d1768 -[UIEventFetcher threadMain] + 136
    8 Foundation 0x184751efc __NSThread__start__ + 1040
    9 libsystem_pthread.dylib 0x18392d220 _pthread_body + 272
    10 libsystem_pthread.dylib 0x18392d110 _pthread_body + 290
    11 libsystem_pthread.dylib 0x18392bb10 thread_start + 4

    #5. com.apple.root.default-qos
    0 libsystem_kernel.dylib 0x18376be24 semaphore_wait_trap + 8
    1 libdispatch.dylib 0x1835faf48 _dispatch_sema4_wait$VARIANT$mp + 24
    2 libdispatch.dylib 0x1835fb8e0 _dispatch_semaphore_wait_slow + 136
    3 CFNetwork 0x18431511c CFURLConnectionSendSynchronousRequest + 292
    4 CFNetwork 0x184343324 +[NSURLConnection sendSynchronousRequest:returningResponse:error:] + 116
    5 supergame 0x106d7a7b0 +[HSCoreAPICalls makeHSApiCallToURI:method:data:response:error:] + 1780160
    6 supergame 0x106d8c7c8 -[HSFunnelAPICalls sendSessionEvents:] + 1853912
    7 supergame 0x106e897e8 __34+[HSFunnelModel sendSessionEvents]_block_invoke + 2890232
    8 libdispatch.dylib 0x1835f8aa0 _dispatch_call_block_and_release + 24
    9 libdispatch.dylib 0x1835f8a60 _dispatch_client_callout + 16
    10 libdispatch.dylib 0x1835ffb84 _dispatch_queue_override_invoke$VARIANT$mp + 716
    11 libdispatch.dylib 0x183605cac _dispatch_root_queue_drain + 588
    12 libdispatch.dylib 0x1836059fc _dispatch_worker_thread3 + 120
    13 libsystem_pthread.dylib 0x18392bfac _pthread_wqthread + 1176
    14 libsystem_pthread.dylib 0x18392bb08 start_wqthread + 4

    #6. config-queue
    0 libsystem_kernel.dylib 0x18376be24 semaphore_wait_trap + 8
    1 libdispatch.dylib 0x1835faf48 _dispatch_sema4_wait$VARIANT$mp + 24
    2 libdispatch.dylib 0x1835fb8e0 _dispatch_semaphore_wait_slow + 136
    3 CFNetwork 0x18431511c CFURLConnectionSendSynchronousRequest + 292
    4 CFNetwork 0x184343324 +[NSURLConnection sendSynchronousRequest:returningResponse:error:] + 116
    5 supergame 0x106d7a7b0 +[HSCoreAPICalls makeHSApiCallToURI:method:data:response:error:] + 1780160
    6 supergame 0x106e8bd50 -[HSConfigAPICalls fetchWebSocketConfigForPlatformID:] + 2899808
    7 supergame 0x106e24a2c __77-[HsWebSocketConfigManager refreshConfigForPlatformID:withCompletionHandler:]_block_invoke + 2477116
    8 libdispatch.dylib 0x1835f8aa0 _dispatch_call_block_and_release + 24
    9 libdispatch.dylib 0x1835f8a60 _dispatch_client_callout + 16
    10 libdispatch.dylib 0x1836029b4 _dispatch_queue_serial_drain$VARIANT$mp + 608
    11 libdispatch.dylib 0x1836032fc _dispatch_queue_invoke$VARIANT$mp + 336
    12 libdispatch.dylib 0x183603cc8 _dispatch_root_queue_drain_deferred_wlh$VARIANT$mp + 340
    13 libdispatch.dylib 0x18360c098 _dispatch_workloop_worker_thread$VARIANT$mp + 668
    14 libsystem_pthread.dylib 0x18392be70 _pthread_wqthread + 860
    15 libsystem_pthread.dylib 0x18392bb08 start_wqthread + 4

    #7. com.helpshift.inbox.poller:1533019860 (QOS: UNSPECIFIED)
    0 libsystem_kernel.dylib 0x18376be24 semaphore_wait_trap + 8
    1 libdispatch.dylib 0x1835faf48 _dispatch_sema4_wait$VARIANT$mp + 24
    2 libdispatch.dylib 0x1835fb8e0 _dispatch_semaphore_wait_slow + 136
    3 supergame 0x106dbd95c -[HsCampaignsInboxNetworkManager sync] + 2055020
    4 supergame 0x106e016a0 __39-[HsPoller executeSyncActionWithDelay:]_block_invoke + 2332848
    5 Foundation 0x18472ee88 __NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK__ + 16
    6 Foundation 0x1846708d0 -[NSBlockOperation main] + 72
    7 Foundation 0x18466fcac -[__NSOperationInternal _start:] + 848
    8 Foundation 0x18473076c __NSOQSchedule_f + 404
    9 libdispatch.dylib 0x1835f8a60 _dispatch_client_callout + 16
    10 libdispatch.dylib 0x183600e94 _dispatch_continuation_pop$VARIANT$mp + 424
    11 libdispatch.dylib 0x1835ff7cc _dispatch_async_redirect_invoke$VARIANT$mp + 604
    12 libdispatch.dylib 0x183605cac _dispatch_root_queue_drain + 588
    13 libdispatch.dylib 0x1836059fc _dispatch_worker_thread3 + 120
    14 libsystem_pthread.dylib 0x18392bfac _pthread_wqthread + 1176
    15 libsystem_pthread.dylib 0x18392bb08 start_wqthread + 4

    #8. GC Finalizer
    0 libsystem_kernel.dylib 0x18378d0e8 __psynch_cvwait + 8
    1 libsystem_pthread.dylib 0x18392fc90 _pthread_cond_wait$VARIANT$mp + 644
    2 supergame 0x106cde884 il2cpp::os::posix::PosixWaitObject::Wait(unsigned int, bool) (PosixWaitObject.cpp:126)
    3 supergame 0x106cb609c il2cpp::gc::FinalizerThread(void*) (GarbageCollector.cpp:95)
    4 supergame 0x106cd976c il2cpp::os::Thread::RunWrapper(void*) (Thread.cpp:169)
    5 supergame 0x106ce2424 il2cpp::os::ThreadImpl::ThreadStartWrapper(void*) (ThreadImpl.cpp:106)
    6 libsystem_pthread.dylib 0x18392d220 _pthread_body + 272
    7 libsystem_pthread.dylib 0x18392d110 _pthread_body + 290
    8 libsystem_pthread.dylib 0x18392bb10 thread_start + 4

    #9. BatchDeleteObjects
    0 libsystem_kernel.dylib 0x18376be24 semaphore_wait_trap + 8
    1 libdispatch.dylib 0x1835faf48 _dispatch_sema4_wait$VARIANT$mp + 24
    2 libdispatch.dylib 0x1835fb8e0 _dispatch_semaphore_wait_slow + 136
    3 supergame 0x106644e0c ThreadedStreamBuffer::HandleOutOfBufferToReadFrom(unsigned int&, unsigned int&) (ExtendedAtomicOps-arm64.h:95)
    4 supergame 0x1065da700 BatchDeleteStep2Threaded(void*) (ThreadedStreamBuffer.h:302)
    5 supergame 0x106644494 Thread::RunThreadWrapper(void*) (Thread.cpp:36)
    6 libsystem_pthread.dylib 0x18392d220 _pthread_body + 272
    7 libsystem_pthread.dylib 0x18392d110 _pthread_body + 290
    8 libsystem_pthread.dylib 0x18392bb10 thread_start + 4

    #10. AsyncReadManager
    0 libsystem_kernel.dylib 0x18376be24 semaphore_wait_trap + 8
    1 libdispatch.dylib 0x1835faf48 _dispatch_sema4_wait$VARIANT$mp + 24
    2 libdispatch.dylib 0x1835fb8e0 _dispatch_semaphore_wait_slow + 136
    3 supergame 0x10653116c AsyncReadManagerThreaded::ThreadEntry() (Mutex.h:29)
    4 supergame 0x106530c6c AsyncReadManagerThreaded::StaticThreadEntry(void*) (AsyncReadManagerThreaded.cpp:81)
    5 supergame 0x106644494 Thread::RunThreadWrapper(void*) (Thread.cpp:36)
    6 libsystem_pthread.dylib 0x18392d220 _pthread_body + 272
    7 libsystem_pthread.dylib 0x18392d110 _pthread_body + 290
    8 libsystem_pthread.dylib 0x18392bb10 thread_start + 4

    #11. AVAudioSession Notify Thread
    0 libsystem_kernel.dylib 0x18376bde8 mach_msg_trap + 8
    1 libsystem_kernel.dylib 0x18376bc60 mach_msg + 72
    2 CoreFoundation 0x183caee40 __CFRunLoopServiceMachPort + 196
    3 CoreFoundation 0x183cac908 __CFRunLoopRun + 1568
    4 CoreFoundation 0x183bccda8 CFRunLoopRunSpecific + 552
    5 AVFAudio 0x1896c8398 GenericRunLoopThread::Entry(void*) + 164
    6 AVFAudio 0x1896f27a8 CAPThread::Entry(CAPThread*) + 88
    7 libsystem_pthread.dylib 0x18392d220 _pthread_body + 272
    8 libsystem_pthread.dylib 0x18392d110 _pthread_body + 290
    9 libsystem_pthread.dylib 0x18392bb10 thread_start + 4

    #12. Thread
    0 libsystem_pthread.dylib 0x18392bb04 start_wqthread + 122

    #13. Thread
    0 libsystem_pthread.dylib 0x18392bb04 start_wqthread + 122

    #14. com.twitter.crashlytics.ios.MachExceptionServer
    0 supergame 0x106d329dc CLSProcessRecordAllThreads (CLSProcess.c:376)
    1 supergame 0x106d329dc CLSProcessRecordAllThreads (CLSProcess.c:376)
    2 supergame 0x106d32e50 CLSProcessRecordAllThreads (CLSProcess.c:407)
    3 supergame 0x106d23770 CLSHandler (CLSHandler.m:26)
    4 supergame 0x106d1ea38 CLSMachExceptionServer (CLSMachException.c:446)
    5 libsystem_pthread.dylib 0x18392d220 _pthread_body + 272
    6 libsystem_pthread.dylib 0x18392d110 _pthread_body + 290
    7 libsystem_pthread.dylib 0x18392bb10 thread_start + 4

    #15. com.apple.NSURLSession-work
    0 libsystem_kernel.dylib 0x18376be24 semaphore_wait_trap + 8
    1 libdispatch.dylib 0x1835faf48 _dispatch_sema4_wait$VARIANT$mp + 24
    2 libdispatch.dylib 0x1835fb8e0 _dispatch_semaphore_wait_slow + 136
    3 CFNetwork 0x18434b6a0 -[__NSURLBackgroundSession _onqueue_uploadTaskForRequest:uploadFile:bodyData:completion:] + 1340
    4 CFNetwork 0x18434b070 __80-[__NSURLBackgroundSession uploadTaskForRequest:uploadFile:bodyData:completion:]_block_invoke + 40
    5 CFNetwork 0x18434a564 __68-[__NSURLBackgroundSession performBlockOnQueueAndRethrowExceptions:]_block_invoke + 76
    6 libdispatch.dylib 0x1835f8a60 _dispatch_client_callout + 16
    7 libdispatch.dylib 0x1836015bc _dispatch_queue_barrier_sync_invoke_and_complete + 56
    8 CFNetwork 0x18434a4c4 -[__NSURLBackgroundSession performBlockOnQueueAndRethrowExceptions:] + 144
    9 CFNetwork 0x18434afd0 -[__NSURLBackgroundSession uploadTaskForRequest:uploadFile:bodyData:completion:] + 196
    10 supergame 0x106dee1f4 -[HsBackgroundTransport uploadRequest:withCompletionBlock:] + 2253828
    11 supergame 0x106e8b770 -[HsNetworkDispatcher dispatchRequest:withCompletionBlock:] + 2898304
    12 supergame 0x106e3c1e0 -[HsNetworkManager addRequest:withCompletionBlock:] + 2573296
    13 supergame 0x106e079ac -[HsSessionNetworkManager sync] + 2358204
    14 supergame 0x106dad4bc __54-[HsSyncController dispatchForDataType:andIsFullSync:]_block_invoke + 1988300
    15 libdispatch.dylib 0x1835f8a60 _dispatch_client_callout + 16
    16 libdispatch.dylib 0x1836015bc _dispatch_queue_barrier_sync_invoke_and_complete + 56
    17 supergame 0x106dad43c -[HsSyncController dispatchForDataType:andIsFullSync:] + 1988172
    18 supergame 0x106dad334 -[HsSyncController triggerSyncForDataTypes:andShouldCheckSpecification:] + 1987908
    19 supergame 0x106daec3c -[HsSyncController onBackground] + 1994316
    20 supergame 0x106dce194 __57-[HsApplicationLifeCycleCallback dispatchLifeCycleEvent:]_block_invoke + 2122660
    21 libdispatch.dylib 0x1835f8aa0 _dispatch_call_block_and_release + 24
    22 libdispatch.dylib 0x1835f8a60 _dispatch_client_callout + 16
    23 libdispatch.dylib 0x1836029b4 _dispatch_queue_serial_drain$VARIANT$mp + 608
    24 libdispatch.dylib 0x1836032fc _dispatch_queue_invoke$VARIANT$mp + 336
    25 libdispatch.dylib 0x183603cc8 _dispatch_root_queue_drain_deferred_wlh$VARIANT$mp + 340
    26 libdispatch.dylib 0x18360c098 _dispatch_workloop_worker_thread$VARIANT$mp + 668
    27 libsystem_pthread.dylib 0x18392be70 _pthread_wqthread + 860
    28 libsystem_pthread.dylib 0x18392bb08 start_wqthread + 4

    #16. Thread
    0 libsystem_pthread.dylib 0x18392bb04 start_wqthread + 122

    #17. Thread
    0 libsystem_pthread.dylib 0x18392bb04 start_wqthread + 122

    #18. Thread
    0 libsystem_kernel.dylib 0x18378dd78 __workq_kernreturn + 8
    1 libsystem_pthread.dylib 0x18392c0a0 _pthread_wqthread + 1420
    2 libsystem_pthread.dylib 0x18392bb08 start_wqthread + 4

    #19. Thread
    0 libsystem_kernel.dylib 0x18378dd78 __workq_kernreturn + 8
    1 libsystem_pthread.dylib 0x18392beb4 _pthread_wqthread + 928
    2 libsystem_pthread.dylib 0x18392bb08 start_wqthread + 4

     
  6. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,771
    I think this issue is worth a bug report - it certainly looks like Unity is crashing on shutdown.
     
  7. youdk

    youdk

    Joined:
    May 26, 2016
    Posts:
    7
    What's going on with this issue?

    We got the same issue, it sames main-thread is shutting down, another thread threw an exception and when handling the exception, thread crashed because some "string" problem.

    Crashed: Thread
    0 TestApp 0x103028f74 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 (hash_set.h:636)
    1 TestApp 0x103025cc8 MonoManager::GetScriptingClass(char const*, char const*, char const*) (hash_set.h:308)
    2 TestApp 0x102ba6e24 InitializeCoreScriptingClasses() (CoreScriptingClasses.cpp:25)
    3 TestApp 0x102ba6d98 GetCoreScriptingClassesPtr() (CoreScriptingClasses.cpp:1686)
    4 TestApp 0x102ba6bdc GetCoreScriptingClasses() (CoreScriptingClasses.cpp:1695)
    5 TestApp 0x1030220b4 scripting_stack_trace_info_for(ScriptingExceptionPtr, StackTraceInfo&) (ScriptingTypes.h:69)
    6 TestApp 0x103026204 Scripting::LogException(ScriptingExceptionPtr, int, char const*, bool) (Scripting.cpp:764)
    7 TestApp 0x104c55000 unsigned long long flatbuffers::HashFnv1a<unsigned long long>(char const*) + 20955716
    8 TestApp 0x104c54f10 unsigned long long flatbuffers::HashFnv1a<unsigned long long>(char const*) + 20955476
    9 TestApp 0x104dfa648 unsigned long long flatbuffers::HashFnv1a<unsigned long long>(char const*) + 22681740
    10 TestApp 0x102635b18 RuntimeInvoker_Void_t1185182177_RuntimeObject_RuntimeObject(void (*)(), MethodInfo const*, void*, void**) (Il2CppInvokerTable.cpp:61738)
    11 TestApp 0x1037abc40 il2cpp::vm::Runtime::Invoke(MethodInfo const*, void*, void**, Il2CppException**) (Runtime.cpp:521)
    12 TestApp 0x1037ac8d8 il2cpp::vm::Runtime::CallUnhandledExceptionDelegate(Il2CppDomain*, Il2CppDelegate*, Il2CppException*) (Runtime.cpp:458)
    13 TestApp 0x1037ac7f0 il2cpp::vm::Runtime::UnhandledException(Il2CppException*) (Runtime.cpp:614)
    14 TestApp 0x10376da24 il2cpp::icalls::mscorlib::System::Threading::ThreadStart(void*) (Thread.cpp:169)
    15 TestApp 0x103779ab0 il2cpp::eek:s::Thread::RunWrapper(void*) (Thread.cpp:169)
    16 TestApp 0x103782f1c il2cpp::eek:s::ThreadImpl::ThreadStartWrapper(void*) (ThreadImpl.cpp:106)
    17 libsystem_pthread.dylib 0x1b05dc25c _pthread_body + 128
    18 libsystem_pthread.dylib 0x1b05dc1bc _pthread_start + 48
    19 libsystem_pthread.dylib 0x1b05dfcf4 thread_start + 4
    Main-Thread:
    com.apple.main-thread
    0 libsystem_kernel.dylib 0x1b0556f0c __psynch_cvwait + 8
    1 libsystem_pthread.dylib 0x1b05d4cbc _pthread_cond_wait$VARIANT$mp + 688
    2 TestApp 0x10377e6b4 il2cpp::eek:s::posix::posixWaitObject::Wait(unsigned int, bool) (PosixWaitObject.cpp:159)
    3 TestApp 0x103779b94 il2cpp::eek:s::Thread::Join(unsigned int) (Thread.cpp:207)
    4 TestApp 0x1037aee10 il2cpp::vm::Thread::KillAllBackgroundThreadsAndWaitForForegroundThreads() (Thread.cpp:284)
    5 TestApp 0x1037ab8e0 il2cpp::vm::Runtime::Shutdown() (Runtime.cpp:367)
    6 TestApp 0x103025f4c CleanupIl2Cpp() (MonoManager_Il2Cpp.cpp:278)
    7 TestApp 0x102f455b4 PlayerCleanup(bool) (Player.cpp:614)
    8 TestApp 0x102d187dc UnityCleanup (LibEntryPoint.mm:220)
    9 TestApp 0x10237b488 -[UnityAppController applicationWillTerminate:] (UnityAppController.mm:410)
    10 UIKitCore 0x1ddcde264 <redacted> + 216
    11 UIKitCore 0x1dd572670 <redacted> + 352
    12 UIKitCore 0x1ddce29bc <redacted> + 296
    13 UIKitCore 0x1ddcd09b8 <redacted> + 384
    14 UIKitCore 0x1ddcff9c0 <redacted> + 132
    15 CoreFoundation 0x1b09507cc __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 32
    16 CoreFoundation 0x1b094b460 __CFRunLoopDoObservers + 412
    17 CoreFoundation 0x1b094ba00 __CFRunLoopRun + 1264
    18 CoreFoundation 0x1b094b1f0 CFRunLoopRunSpecific + 436
    19 GraphicsServices 0x1b2bc4584 GSEventRunModal + 100
    20 UIKitCore 0x1ddcd6d40 UIApplicationMain + 212
    21 TestApp 0x102364cc0 main (main.mm:33)
    22 libdyld.dylib 0x1b040abb4 start + 4
     
  8. youdk

    youdk

    Joined:
    May 26, 2016
    Posts:
    7
    We are using Unity 2018.2.15f and disabled engine code strip. We also got this crash a lot:
    Crashed: Thread
    0 Test App11 0x103028f74 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 (hash_set.h:636)
    1 Test App11 0x103025cc8 MonoManager::GetScriptingClass(char const*, char const*, char const*) (hash_set.h:308)
    2 Test App11 0x102ba6e24 InitializeCoreScriptingClasses() (CoreScriptingClasses.cpp:25)
    3 Test App11 0x102ba6d98 GetCoreScriptingClassesPtr() (CoreScriptingClasses.cpp:1686)
    4 Test App11 0x102ba6bdc GetCoreScriptingClasses() (CoreScriptingClasses.cpp:1695)
    5 Test App11 0x1030220b4 scripting_stack_trace_info_for(ScriptingExceptionPtr, StackTraceInfo&) (ScriptingTypes.h:69)
    6 Test App11 0x103026204 Scripting::LogException(ScriptingExceptionPtr, int, char const*, bool) (Scripting.cpp:764)
    7 Test App11 0x104c55000 unsigned long long flatbuffers::HashFnv1a<unsigned long long>(char const*) + 20955716
    8 Test App11 0x104c54f10 unsigned long long flatbuffers::HashFnv1a<unsigned long long>(char const*) + 20955476
    9 Test App11 0x104dfa648 unsigned long long flatbuffers::HashFnv1a<unsigned long long>(char const*) + 22681740
    10 Test App11 0x102635b18 RuntimeInvoker_Void_t1185182177_RuntimeObject_RuntimeObject(void (*)(), MethodInfo const*, void*, void**) (Il2CppInvokerTable.cpp:61738)
    11 Test App11 0x1037abc40 il2cpp::vm::Runtime::Invoke(MethodInfo const*, void*, void**, Il2CppException**) (Runtime.cpp:521)
    12 Test App11 0x1037ac8d8 il2cpp::vm::Runtime::CallUnhandledExceptionDelegate(Il2CppDomain*, Il2CppDelegate*, Il2CppException*) (Runtime.cpp:458)
    13 Test App11 0x1037ac7f0 il2cpp::vm::Runtime::UnhandledException(Il2CppException*) (Runtime.cpp:614)
    14 Test App11 0x10376da24 il2cpp::icalls::mscorlib::System::Threading::ThreadStart(void*) (Thread.cpp:169)
    15 Test App11 0x103779ab0 il2cpp::eek:s::Thread::RunWrapper(void*) (Thread.cpp:169)
    16 Test App11 0x103782f1c il2cpp::eek:s::ThreadImpl::ThreadStartWrapper(void*) (ThreadImpl.cpp:106)
    17 libsystem_pthread.dylib 0x1b05dc25c _pthread_body + 128
    18 libsystem_pthread.dylib 0x1b05dc1bc _pthread_start + 48
    19 libsystem_pthread.dylib 0x1b05dfcf4 thread_start + 4

    By the way, the Main thread is shutting down:
    com.apple.main-thread
    0 libsystem_kernel.dylib 0x1b0556f0c __psynch_cvwait + 8
    1 libsystem_pthread.dylib 0x1b05d4cbc _pthread_cond_wait$VARIANT$mp + 688
    2 Test App11 0x10377e6b4 il2cpp::eek:s::posix::posixWaitObject::Wait(unsigned int, bool) (PosixWaitObject.cpp:159)
    3 Test App11 0x103779b94 il2cpp::eek:s::Thread::Join(unsigned int) (Thread.cpp:207)
    4 Test App11 0x1037aee10 il2cpp::vm::Thread::KillAllBackgroundThreadsAndWaitForForegroundThreads() (Thread.cpp:284)
    5 Test App11 0x1037ab8e0 il2cpp::vm::Runtime::Shutdown() (Runtime.cpp:367)
    6 Test App11 0x103025f4c CleanupIl2Cpp() (MonoManager_Il2Cpp.cpp:278)
    7 Test App11 0x102f455b4 PlayerCleanup(bool) (Player.cpp:614)
    8 Test App11 0x102d187dc UnityCleanup (LibEntryPoint.mm:220)
    9 Test App11 0x10237b488 -[UnityAppController applicationWillTerminate:] (UnityAppController.mm:410)
    10 UIKitCore 0x1ddcde264 <redacted> + 216
    11 UIKitCore 0x1dd572670 <redacted> + 352
    12 UIKitCore 0x1ddce29bc <redacted> + 296
    13 UIKitCore 0x1ddcd09b8 <redacted> + 384
    14 UIKitCore 0x1ddcff9c0 <redacted> + 132
    15 CoreFoundation 0x1b09507cc __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 32
    16 CoreFoundation 0x1b094b460 __CFRunLoopDoObservers + 412
    17 CoreFoundation 0x1b094ba00 __CFRunLoopRun + 1264
    18 CoreFoundation 0x1b094b1f0 CFRunLoopRunSpecific + 436
    19 GraphicsServices 0x1b2bc4584 GSEventRunModal + 100
    20 UIKitCore 0x1ddcd6d40 UIApplicationMain + 212
    21 Test App11 0x102364cc0 main (main.mm:33)
    22 libdyld.dylib 0x1b040abb4 start + 4


    Please help!!!
     
  9. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,771
    I'm not sure about the cause of this issue. Can you submit a bug report for it?
     
  10. youdk

    youdk

    Joined:
    May 26, 2016
    Posts:
    7
    Hi, JoshPeterson

    Thanks for you advice. I have reported a but to Unity, this is the reply from Unity.

    Thank you for reporting this issue.

    Unfortunately, we do not support builds or Unity versions of 2018.1 and 2018.2 anymore. Please upgrade your Unity version and if the issue is still present please attach a minimal project which reproduces the issue with the steps how to reproduce.

    If you have any further questions feel free to ask.

    Best regards,
    Vita
    Unity QA Team
     
  11. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,771
    What is the bug number for this issue? I'll have a look at it.
     
  12. halilkayim

    halilkayim

    Joined:
    Feb 27, 2018
    Posts:
    21
    Did this get resolved somehow? We've been seeing this error on Crashlytics for a long time, but I haven't been able to reproduce the crash myself.
     
  13. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,771
    I don't believe that it was resolved yet, sorry. We don't have a reproducible case for it yet.
     
  14. Antony-Blackett

    Antony-Blackett

    Joined:
    Feb 15, 2011
    Posts:
    1,772
    I'm getting these crashes too. Any eta?
     
  15. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,771
    No, we've not had a reproducible test case for this issue, so we've not been able to correct it. If you can submit a bug report with a test case, I would appreciate it.
     
  16. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,771
    I've just merged a possible fix for this crash in the 2019.1.1f1 release of Unity. The same fix will be coming to the 2018.3 and 2019.2 release streams soon as well.

    We've not been able to reproduce this crash, so the fix is more of a defensive change, and we cannot be certain that it corrects this issue. So I'd love to hear any feedback from those who can try it once it is available. Thanks!
     
    facundo_unity961 likes this.
  17. Jonathan-FourFats

    Jonathan-FourFats

    Joined:
    Apr 21, 2016
    Posts:
    20
    can you please also request this fix on 2017.4 LTS branch thank you.
     
  18. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,771
    We will back port this change to 2017.4. I expect it to be in the 2017.4.28 Unity release.
     
  19. xman800

    xman800

    Joined:
    Feb 27, 2017
    Posts:
    25
    What is the Unity issue ID?
     
  20. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,771
    We don't have an issue ID for this problem, as we never had a reproducible bug report for it. The possible fix I mentioned above is (or will be) in the following Unity versions:

    2017.4.28f1
    2018.4.0f1
    2019.1.1f1
    2019.2.0b3
    2019.3.0a5
     
  21. xman800

    xman800

    Joined:
    Feb 27, 2017
    Posts:
    25
    Thanks Josh. My game is built with Unity 2018.4.0f1 and Apple reported the following user traceback on it, which is different than the one @cruelbob reported to start this thread, but also is in GetScriptingClass() during shutdown, so it looks like the possible fix doesn't address all cases, unfortunately:

    Thread 0 Crashed:
    0 myapp 0x0000000102a2ca50 core::hash_set<core::pair<core::basic_string<char, core::StringStorageDefault<char> > const, int,... + 68 (hash_set.h:658)
    1 myapp 0x0000000102a2a4f8 MonoManager::GetScriptingClass(char const*, char const*, char const*) + 104 (hash_map.h:185)
    2 myapp 0x00000001025e9048 InitializeCoreScriptingClasses() + 108 (CoreScriptingClasses.cpp:24)
    3 myapp 0x00000001025e8fb8 GetCoreScriptingClassesPtr() + 28 (CoreScriptingClasses.cpp:1914)
    4 myapp 0x00000001025e8af8 Scripting::UnityEngine::ApplicationProxy::Internal_ApplicationWantsToQuit(ScriptingExceptionPtr*) + 24 (CoreScriptingClasses.cpp:1923)
    5 myapp 0x0000000102999e80 NotifyPlayerQuit(bool) + 80 (Player.cpp:298)
    6 myapp 0x000000010299a6b8 PlayerCleanup(bool) + 32 (Player.cpp:570)
    7 myapp 0x0000000102be2c48 UnityCleanup + 84 (LibEntryPoint.mm:223)
    8 myapp 0x0000000102506c54 -[UnityAppController applicationWillTerminate:] + 24 (UnityAppController.mm:403)
    9 UIKitCore 0x00000001e2c0ee24 -[UIApplication _terminateWithStatus:] + 220 (UIApplication.m:6442)
    10 UIKitCore 0x00000001e24cbbdc __98-[__UICanvasLifecycleMonitor_Compatability deactivateEventsOnly:withContext:forceExit:complet... + 344 (_UICanvasLifecycleMonitor.m:527)
    11 UIKitCore 0x00000001e2c12fdc _runAfterCACommitDeferredBlocks + 296 (UIApplication.m:2750)
    12 UIKitCore 0x00000001e2c01b2c _cleanUpAfterCAFlushAndRunDeferredBlocks + 352 (UIApplication.m:2728)
    13 UIKitCore 0x00000001e2c2e744 _afterCACommitHandler + 116 (UIApplication.m:2780)
    14 CoreFoundation 0x00000001b665589c __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 32 (CFRunLoop.c:1822)
    15 CoreFoundation 0x00000001b66505c4 __CFRunLoopDoObservers + 412 (CFRunLoop.c:1932)
    16 CoreFoundation 0x00000001b6650b40 __CFRunLoopRun + 1228 (CFRunLoop.c:2950)
    17 CoreFoundation 0x00000001b6650354 CFRunLoopRunSpecific + 436 (CFRunLoop.c:3247)
    18 GraphicsServices 0x00000001b885079c GSEventRunModal + 104 (GSEvent.c:2245)
    19 UIKitCore 0x00000001e2c07b68 UIApplicationMain + 212 (UIApplication.m:4353)
    20 myapp 0x00000001024f0df0 main + 160 (main.mm:41)
    21 libdyld.dylib 0x00000001b61168e0 start + 4
     
  22. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,771
    Do you happen to have the call stacks from all threads?
     
    xman800 likes this.
  23. xman800

    xman800

    Joined:
    Feb 27, 2017
    Posts:
    25
    Yes. See below:

    Hardware Model: iPhone9,3
    Process: myapp [3155]
    AppStoreTools: 10E121a
    AppVariant: 1:iPhone9,3:10
    Code Type: ARM-64 (Native)
    Role: Non UI
    Parent Process: launchd [1]


    Date/Time: 2019-05-31 21:18:18.1904 +0530
    Launch Time: 2019-05-31 21:18:15.8036 +0530
    OS Version: iPhone OS 12.2 (16E227)
    Baseband Version: 3.03.04
    Report Version: 104

    Exception Type: EXC_BAD_ACCESS (SIGSEGV)
    Exception Subtype: KERN_INVALID_ADDRESS at 0x00000000000001f8
    VM Region Info: 0x1f8 is not in any region. Bytes before following region: 4333682184
    REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
    UNUSED SPACE AT START
    --->
    __TEXT 00000001024ec000-00000001024f0000 [ 16K] r-x/r-x SM=COW ...pp/myapp

    Triggered by Thread: 0

    Thread 0 name:
    Thread 0 Crashed:
    0 myapp 0x0000000102a2ca50 core::hash_set<core::pair<core::basic_string<char, core::StringStorageDefault<char> > const, int,... + 68 (hash_set.h:658)
    1 myapp 0x0000000102a2a4f8 MonoManager::GetScriptingClass(char const*, char const*, char const*) + 104 (hash_map.h:185)
    2 myapp 0x00000001025e9048 InitializeCoreScriptingClasses() + 108 (CoreScriptingClasses.cpp:24)
    3 myapp 0x00000001025e8fb8 GetCoreScriptingClassesPtr() + 28 (CoreScriptingClasses.cpp:1914)
    4 myapp 0x00000001025e8af8 Scripting::UnityEngine::ApplicationProxy::Internal_ApplicationWantsToQuit(ScriptingExceptionPtr*) + 24 (CoreScriptingClasses.cpp:1923)
    5 myapp 0x0000000102999e80 NotifyPlayerQuit(bool) + 80 (Player.cpp:298)
    6 myapp 0x000000010299a6b8 PlayerCleanup(bool) + 32 (Player.cpp:570)
    7 myapp 0x0000000102be2c48 UnityCleanup + 84 (LibEntryPoint.mm:223)
    8 myapp 0x0000000102506c54 -[UnityAppController applicationWillTerminate:] + 24 (UnityAppController.mm:403)
    9 UIKitCore 0x00000001e2c0ee24 -[UIApplication _terminateWithStatus:] + 220 (UIApplication.m:6442)
    10 UIKitCore 0x00000001e24cbbdc __98-[__UICanvasLifecycleMonitor_Compatability deactivateEventsOnly:withContext:forceExit:complet... + 344 (_UICanvasLifecycleMonitor.m:527)
    11 UIKitCore 0x00000001e2c12fdc _runAfterCACommitDeferredBlocks + 296 (UIApplication.m:2750)
    12 UIKitCore 0x00000001e2c01b2c _cleanUpAfterCAFlushAndRunDeferredBlocks + 352 (UIApplication.m:2728)
    13 UIKitCore 0x00000001e2c2e744 _afterCACommitHandler + 116 (UIApplication.m:2780)
    14 CoreFoundation 0x00000001b665589c __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 32 (CFRunLoop.c:1822)
    15 CoreFoundation 0x00000001b66505c4 __CFRunLoopDoObservers + 412 (CFRunLoop.c:1932)
    16 CoreFoundation 0x00000001b6650b40 __CFRunLoopRun + 1228 (CFRunLoop.c:2950)
    17 CoreFoundation 0x00000001b6650354 CFRunLoopRunSpecific + 436 (CFRunLoop.c:3247)
    18 GraphicsServices 0x00000001b885079c GSEventRunModal + 104 (GSEvent.c:2245)
    19 UIKitCore 0x00000001e2c07b68 UIApplicationMain + 212 (UIApplication.m:4353)
    20 myapp 0x00000001024f0df0 main + 160 (main.mm:41)
    21 libdyld.dylib 0x00000001b61168e0 start + 4

    Thread 1:
    0 libsystem_pthread.dylib 0x00000001b62e7cd0 start_wqthread + 0

    Thread 2:
    0 libsystem_pthread.dylib 0x00000001b62e7cd0 start_wqthread + 0

    Thread 3 name:
    Thread 3:
    0 libsystem_kernel.dylib 0x00000001b62570f4 mach_msg_trap + 8
    1 libsystem_kernel.dylib 0x00000001b62565a0 mach_msg + 72 (mach_msg.c:103)
    2 CoreFoundation 0x00000001b6655cb4 __CFRunLoopServiceMachPort + 236 (CFRunLoop.c:2615)
    3 CoreFoundation 0x00000001b6650bc4 __CFRunLoopRun + 1360 (CFRunLoop.c:2971)
    4 CoreFoundation 0x00000001b6650354 CFRunLoopRunSpecific + 436 (CFRunLoop.c:3247)
    5 Foundation 0x00000001b701dfcc -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 300 (NSRunLoop.m:367)
    6 Foundation 0x00000001b701de5c -[NSRunLoop(NSRunLoop) runUntilDate:] + 96 (NSRunLoop.m:411)
    7 UIKitCore 0x00000001e2ced540 -[UIEventFetcher threadMain] + 136 (UIEventFetcher.m:606)
    8 Foundation 0x00000001b714a6e4 __NSThread__start__ + 984 (NSThread.m:1175)
    9 libsystem_pthread.dylib 0x00000001b62e42c0 _pthread_body + 128 (pthread.c:857)
    10 libsystem_pthread.dylib 0x00000001b62e4220 _pthread_start + 44 (pthread.c:884)
    11 libsystem_pthread.dylib 0x00000001b62e7cdc thread_start + 4

    Thread 4:
    0 libsystem_pthread.dylib 0x00000001b62e7cd0 start_wqthread + 0

    Thread 5:
    0 libsystem_pthread.dylib 0x00000001b62e7cd0 start_wqthread + 0

    Thread 6 name:
    Thread 6:
    0 libsystem_kernel.dylib 0x00000001b6261ee4 __psynch_cvwait + 8
    1 libsystem_pthread.dylib 0x00000001b62dccf8 _pthread_cond_wait$VARIANT$mp + 636 (pthread_cond.c:578)
    2 myapp 0x0000000102fa4bd0 il2cpp::eek:s::posix::posixWaitObject::Wait(unsigned int, bool) + 408 (PosixWaitObject.cpp:125)
    3 myapp 0x0000000102f80ed8 il2cpp::gc::FinalizerThread(void*) + 144 (GarbageCollector.cpp:93)
    4 myapp 0x0000000102f9c740 il2cpp::eek:s::Thread::RunWrapper(void*) + 84 (Thread.cpp:173)
    5 myapp 0x0000000102f9e924 il2cpp::eek:s::ThreadImpl::ThreadStartWrapper(void*) + 36 (ThreadImpl.cpp:104)
    6 libsystem_pthread.dylib 0x00000001b62e42c0 _pthread_body + 128 (pthread.c:857)
    7 libsystem_pthread.dylib 0x00000001b62e4220 _pthread_start + 44 (pthread.c:884)
    8 libsystem_pthread.dylib 0x00000001b62e7cdc thread_start + 4

    Thread 7 name:
    Thread 7:
    0 libsystem_kernel.dylib 0x00000001b6257130 semaphore_wait_trap + 8
    1 libdispatch.dylib 0x00000001b60a7798 _dispatch_sema4_wait$VARIANT$mp + 24 (lock.c:134)
    2 libdispatch.dylib 0x00000001b60a821c _dispatch_semaphore_wait_slow + 140 (semaphore.c:132)
    3 myapp 0x000000010292712c CappedSemaphore::WaitForSignal() + 72 (Semaphore.h:27)
    4 myapp 0x000000010296f880 JobQueue::processJobs(void*) + 180 (WorkerController.h:20)
    5 myapp 0x000000010296ed2c JobQueue::WorkLoop(void*) + 12 (JobQueue.cpp:960)
    6 myapp 0x00000001029de1e0 Thread::RunThreadWrapper(void*) + 516 (Thread.cpp:76)
    7 libsystem_pthread.dylib 0x00000001b62e42c0 _pthread_body + 128 (pthread.c:857)
    8 libsystem_pthread.dylib 0x00000001b62e4220 _pthread_start + 44 (pthread.c:884)
    9 libsystem_pthread.dylib 0x00000001b62e7cdc thread_start + 4

    Thread 8 name:
    Thread 8:
    0 libsystem_kernel.dylib 0x00000001b6257130 semaphore_wait_trap + 8
    1 libdispatch.dylib 0x00000001b60a7798 _dispatch_sema4_wait$VARIANT$mp + 24 (lock.c:134)
    2 libdispatch.dylib 0x00000001b60a821c _dispatch_semaphore_wait_slow + 140 (semaphore.c:132)
    3 myapp 0x000000010292712c CappedSemaphore::WaitForSignal() + 72 (Semaphore.h:27)
    4 myapp 0x000000010296f880 JobQueue::processJobs(void*) + 180 (WorkerController.h:20)
    5 myapp 0x000000010296ed2c JobQueue::WorkLoop(void*) + 12 (JobQueue.cpp:960)
    6 myapp 0x00000001029de1e0 Thread::RunThreadWrapper(void*) + 516 (Thread.cpp:76)
    7 libsystem_pthread.dylib 0x00000001b62e42c0 _pthread_body + 128 (pthread.c:857)
    8 libsystem_pthread.dylib 0x00000001b62e4220 _pthread_start + 44 (pthread.c:884)
    9 libsystem_pthread.dylib 0x00000001b62e7cdc thread_start + 4

    Thread 9 name:
    Thread 9:
    0 libsystem_kernel.dylib 0x00000001b6257130 semaphore_wait_trap + 8
    1 libdispatch.dylib 0x00000001b60a7798 _dispatch_sema4_wait$VARIANT$mp + 24 (lock.c:134)
    2 libdispatch.dylib 0x00000001b60a821c _dispatch_semaphore_wait_slow + 140 (semaphore.c:132)
    3 myapp 0x000000010292712c CappedSemaphore::WaitForSignal() + 72 (Semaphore.h:27)
    4 myapp 0x000000010296f880 JobQueue::processJobs(void*) + 180 (WorkerController.h:20)
    5 myapp 0x000000010296ed2c JobQueue::WorkLoop(void*) + 12 (JobQueue.cpp:960)
    6 myapp 0x00000001029de1e0 Thread::RunThreadWrapper(void*) + 516 (Thread.cpp:76)
    7 libsystem_pthread.dylib 0x00000001b62e42c0 _pthread_body + 128 (pthread.c:857)
    8 libsystem_pthread.dylib 0x00000001b62e4220 _pthread_start + 44 (pthread.c:884)
    9 libsystem_pthread.dylib 0x00000001b62e7cdc thread_start + 4

    Thread 10 name:
    Thread 10:
    0 libsystem_kernel.dylib 0x00000001b6257130 semaphore_wait_trap + 8
    1 libdispatch.dylib 0x00000001b60a7798 _dispatch_sema4_wait$VARIANT$mp + 24 (lock.c:134)
    2 libdispatch.dylib 0x00000001b60a821c _dispatch_semaphore_wait_slow + 140 (semaphore.c:132)
    3 myapp 0x000000010292712c CappedSemaphore::WaitForSignal() + 72 (Semaphore.h:27)
    4 myapp 0x000000010296f880 JobQueue::processJobs(void*) + 180 (WorkerController.h:20)
    5 myapp 0x000000010296ed2c JobQueue::WorkLoop(void*) + 12 (JobQueue.cpp:960)
    6 myapp 0x00000001029de1e0 Thread::RunThreadWrapper(void*) + 516 (Thread.cpp:76)
    7 libsystem_pthread.dylib 0x00000001b62e42c0 _pthread_body + 128 (pthread.c:857)
    8 libsystem_pthread.dylib 0x00000001b62e4220 _pthread_start + 44 (pthread.c:884)
    9 libsystem_pthread.dylib 0x00000001b62e7cdc thread_start + 4

    Thread 11 name:
    Thread 11:
    0 libsystem_kernel.dylib 0x00000001b6257130 semaphore_wait_trap + 8
    1 libdispatch.dylib 0x00000001b60a7798 _dispatch_sema4_wait$VARIANT$mp + 24 (lock.c:134)
    2 libdispatch.dylib 0x00000001b60a821c _dispatch_semaphore_wait_slow + 140 (semaphore.c:132)
    3 myapp 0x000000010292712c CappedSemaphore::WaitForSignal() + 72 (Semaphore.h:27)
    4 myapp 0x000000010296f880 JobQueue::processJobs(void*) + 180 (WorkerController.h:20)
    5 myapp 0x000000010296ed2c JobQueue::WorkLoop(void*) + 12 (JobQueue.cpp:960)
    6 myapp 0x00000001029de1e0 Thread::RunThreadWrapper(void*) + 516 (Thread.cpp:76)
    7 libsystem_pthread.dylib 0x00000001b62e42c0 _pthread_body + 128 (pthread.c:857)
    8 libsystem_pthread.dylib 0x00000001b62e4220 _pthread_start + 44 (pthread.c:884)
    9 libsystem_pthread.dylib 0x00000001b62e7cdc thread_start + 4

    Thread 12 name:
    Thread 12:
    0 libsystem_kernel.dylib 0x00000001b6257130 semaphore_wait_trap + 8
    1 libdispatch.dylib 0x00000001b60a7798 _dispatch_sema4_wait$VARIANT$mp + 24 (lock.c:134)
    2 libdispatch.dylib 0x00000001b60a821c _dispatch_semaphore_wait_slow + 140 (semaphore.c:132)
    3 myapp 0x000000010292712c CappedSemaphore::WaitForSignal() + 72 (Semaphore.h:27)
    4 myapp 0x000000010296f880 JobQueue::processJobs(void*) + 180 (WorkerController.h:20)
    5 myapp 0x000000010296ed2c JobQueue::WorkLoop(void*) + 12 (JobQueue.cpp:960)
    6 myapp 0x00000001029de1e0 Thread::RunThreadWrapper(void*) + 516 (Thread.cpp:76)
    7 libsystem_pthread.dylib 0x00000001b62e42c0 _pthread_body + 128 (pthread.c:857)
    8 libsystem_pthread.dylib 0x00000001b62e4220 _pthread_start + 44 (pthread.c:884)
    9 libsystem_pthread.dylib 0x00000001b62e7cdc thread_start + 4

    Thread 13 name:
    Thread 13:
    0 libsystem_kernel.dylib 0x00000001b6257130 semaphore_wait_trap + 8
    1 libdispatch.dylib 0x00000001b60a7798 _dispatch_sema4_wait$VARIANT$mp + 24 (lock.c:134)
    2 libdispatch.dylib 0x00000001b60a821c _dispatch_semaphore_wait_slow + 140 (semaphore.c:132)
    3 myapp 0x000000010292712c CappedSemaphore::WaitForSignal() + 72 (Semaphore.h:27)
    4 myapp 0x000000010296f880 JobQueue::processJobs(void*) + 180 (WorkerController.h:20)
    5 myapp 0x000000010296ed2c JobQueue::WorkLoop(void*) + 12 (JobQueue.cpp:960)
    6 myapp 0x00000001029de1e0 Thread::RunThreadWrapper(void*) + 516 (Thread.cpp:76)
    7 libsystem_pthread.dylib 0x00000001b62e42c0 _pthread_body + 128 (pthread.c:857)
    8 libsystem_pthread.dylib 0x00000001b62e4220 _pthread_start + 44 (pthread.c:884)
    9 libsystem_pthread.dylib 0x00000001b62e7cdc thread_start + 4

    Thread 14 name:
    Thread 14:
    0 libsystem_kernel.dylib 0x00000001b6257130 semaphore_wait_trap + 8
    1 libdispatch.dylib 0x00000001b60a7798 _dispatch_sema4_wait$VARIANT$mp + 24 (lock.c:134)
    2 libdispatch.dylib 0x00000001b60a821c _dispatch_semaphore_wait_slow + 140 (semaphore.c:132)
    3 myapp 0x000000010292712c CappedSemaphore::WaitForSignal() + 72 (Semaphore.h:27)
    4 myapp 0x000000010296f880 JobQueue::processJobs(void*) + 180 (WorkerController.h:20)
    5 myapp 0x000000010296ed2c JobQueue::WorkLoop(void*) + 12 (JobQueue.cpp:960)
    6 myapp 0x00000001029de1e0 Thread::RunThreadWrapper(void*) + 516 (Thread.cpp:76)
    7 libsystem_pthread.dylib 0x00000001b62e42c0 _pthread_body + 128 (pthread.c:857)
    8 libsystem_pthread.dylib 0x00000001b62e4220 _pthread_start + 44 (pthread.c:884)
    9 libsystem_pthread.dylib 0x00000001b62e7cdc thread_start + 4

    Thread 15 name:
    Thread 15:
    0 libsystem_kernel.dylib 0x00000001b6257130 semaphore_wait_trap + 8
    1 libdispatch.dylib 0x00000001b60a7798 _dispatch_sema4_wait$VARIANT$mp + 24 (lock.c:134)
    2 libdispatch.dylib 0x00000001b60a821c _dispatch_semaphore_wait_slow + 140 (semaphore.c:132)
    3 myapp 0x000000010292712c CappedSemaphore::WaitForSignal() + 72 (Semaphore.h:27)
    4 myapp 0x000000010296f880 JobQueue::processJobs(void*) + 180 (WorkerController.h:20)
    5 myapp 0x000000010296ed2c JobQueue::WorkLoop(void*) + 12 (JobQueue.cpp:960)
    6 myapp 0x00000001029de1e0 Thread::RunThreadWrapper(void*) + 516 (Thread.cpp:76)
    7 libsystem_pthread.dylib 0x00000001b62e42c0 _pthread_body + 128 (pthread.c:857)
    8 libsystem_pthread.dylib 0x00000001b62e4220 _pthread_start + 44 (pthread.c:884)
    9 libsystem_pthread.dylib 0x00000001b62e7cdc thread_start + 4

    Thread 16 name:
    Thread 16:
    0 libsystem_kernel.dylib 0x00000001b6257130 semaphore_wait_trap + 8
    1 libdispatch.dylib 0x00000001b60a7798 _dispatch_sema4_wait$VARIANT$mp + 24 (lock.c:134)
    2 libdispatch.dylib 0x00000001b60a821c _dispatch_semaphore_wait_slow + 140 (semaphore.c:132)
    3 myapp 0x000000010292712c CappedSemaphore::WaitForSignal() + 72 (Semaphore.h:27)
    4 myapp 0x000000010296f880 JobQueue::processJobs(void*) + 180 (WorkerController.h:20)
    5 myapp 0x000000010296ed2c JobQueue::WorkLoop(void*) + 12 (JobQueue.cpp:960)
    6 myapp 0x00000001029de1e0 Thread::RunThreadWrapper(void*) + 516 (Thread.cpp:76)
    7 libsystem_pthread.dylib 0x00000001b62e42c0 _pthread_body + 128 (pthread.c:857)
    8 libsystem_pthread.dylib 0x00000001b62e4220 _pthread_start + 44 (pthread.c:884)
    9 libsystem_pthread.dylib 0x00000001b62e7cdc thread_start + 4

    Thread 17 name:
    Thread 17:
    0 libsystem_kernel.dylib 0x00000001b6257130 semaphore_wait_trap + 8
    1 libdispatch.dylib 0x00000001b60a7798 _dispatch_sema4_wait$VARIANT$mp + 24 (lock.c:134)
    2 libdispatch.dylib 0x00000001b60a821c _dispatch_semaphore_wait_slow + 140 (semaphore.c:132)
    3 myapp 0x000000010292712c CappedSemaphore::WaitForSignal() + 72 (Semaphore.h:27)
    4 myapp 0x000000010296f880 JobQueue::processJobs(void*) + 180 (WorkerController.h:20)
    5 myapp 0x000000010296ed2c JobQueue::WorkLoop(void*) + 12 (JobQueue.cpp:960)
    6 myapp 0x00000001029de1e0 Thread::RunThreadWrapper(void*) + 516 (Thread.cpp:76)
    7 libsystem_pthread.dylib 0x00000001b62e42c0 _pthread_body + 128 (pthread.c:857)
    8 libsystem_pthread.dylib 0x00000001b62e4220 _pthread_start + 44 (pthread.c:884)
    9 libsystem_pthread.dylib 0x00000001b62e7cdc thread_start + 4

    Thread 18 name:
    Thread 18:
    0 libsystem_kernel.dylib 0x00000001b6257130 semaphore_wait_trap + 8
    1 libdispatch.dylib 0x00000001b60a7798 _dispatch_sema4_wait$VARIANT$mp + 24 (lock.c:134)
    2 libdispatch.dylib 0x00000001b60a821c _dispatch_semaphore_wait_slow + 140 (semaphore.c:132)
    3 myapp 0x000000010292712c CappedSemaphore::WaitForSignal() + 72 (Semaphore.h:27)
    4 myapp 0x000000010296f880 JobQueue::processJobs(void*) + 180 (WorkerController.h:20)
    5 myapp 0x000000010296ed2c JobQueue::WorkLoop(void*) + 12 (JobQueue.cpp:960)
    6 myapp 0x00000001029de1e0 Thread::RunThreadWrapper(void*) + 516 (Thread.cpp:76)
    7 libsystem_pthread.dylib 0x00000001b62e42c0 _pthread_body + 128 (pthread.c:857)
    8 libsystem_pthread.dylib 0x00000001b62e4220 _pthread_start + 44 (pthread.c:884)
    9 libsystem_pthread.dylib 0x00000001b62e7cdc thread_start + 4

    Thread 19 name:
    Thread 19:
    0 libsystem_kernel.dylib 0x00000001b6257130 semaphore_wait_trap + 8
    1 libdispatch.dylib 0x00000001b60a7798 _dispatch_sema4_wait$VARIANT$mp + 24 (lock.c:134)
    2 libdispatch.dylib 0x00000001b60a821c _dispatch_semaphore_wait_slow + 140 (semaphore.c:132)
    3 myapp 0x000000010292712c CappedSemaphore::WaitForSignal() + 72 (Semaphore.h:27)
    4 myapp 0x000000010296f880 JobQueue::processJobs(void*) + 180 (WorkerController.h:20)
    5 myapp 0x000000010296ed2c JobQueue::WorkLoop(void*) + 12 (JobQueue.cpp:960)
    6 myapp 0x00000001029de1e0 Thread::RunThreadWrapper(void*) + 516 (Thread.cpp:76)
    7 libsystem_pthread.dylib 0x00000001b62e42c0 _pthread_body + 128 (pthread.c:857)
    8 libsystem_pthread.dylib 0x00000001b62e4220 _pthread_start + 44 (pthread.c:884)
    9 libsystem_pthread.dylib 0x00000001b62e7cdc thread_start + 4

    Thread 20 name:
    Thread 20:
    0 libsystem_kernel.dylib 0x00000001b6257130 semaphore_wait_trap + 8
    1 libdispatch.dylib 0x00000001b60a7798 _dispatch_sema4_wait$VARIANT$mp + 24 (lock.c:134)
    2 libdispatch.dylib 0x00000001b60a821c _dispatch_semaphore_wait_slow + 140 (semaphore.c:132)
    3 myapp 0x000000010292712c CappedSemaphore::WaitForSignal() + 72 (Semaphore.h:27)
    4 myapp 0x000000010296f880 JobQueue::processJobs(void*) + 180 (WorkerController.h:20)
    5 myapp 0x000000010296ed2c JobQueue::WorkLoop(void*) + 12 (JobQueue.cpp:960)
    6 myapp 0x00000001029de1e0 Thread::RunThreadWrapper(void*) + 516 (Thread.cpp:76)
    7 libsystem_pthread.dylib 0x00000001b62e42c0 _pthread_body + 128 (pthread.c:857)
    8 libsystem_pthread.dylib 0x00000001b62e4220 _pthread_start + 44 (pthread.c:884)
    9 libsystem_pthread.dylib 0x00000001b62e7cdc thread_start + 4

    Thread 21 name:
    Thread 21:
    0 libsystem_kernel.dylib 0x00000001b6257130 semaphore_wait_trap + 8
    1 libdispatch.dylib 0x00000001b60a7798 _dispatch_sema4_wait$VARIANT$mp + 24 (lock.c:134)
    2 libdispatch.dylib 0x00000001b60a821c _dispatch_semaphore_wait_slow + 140 (semaphore.c:132)
    3 myapp 0x000000010292712c CappedSemaphore::WaitForSignal() + 72 (Semaphore.h:27)
    4 myapp 0x000000010296f880 JobQueue::processJobs(void*) + 180 (WorkerController.h:20)
    5 myapp 0x000000010296ed2c JobQueue::WorkLoop(void*) + 12 (JobQueue.cpp:960)
    6 myapp 0x00000001029de1e0 Thread::RunThreadWrapper(void*) + 516 (Thread.cpp:76)
    7 libsystem_pthread.dylib 0x00000001b62e42c0 _pthread_body + 128 (pthread.c:857)
    8 libsystem_pthread.dylib 0x00000001b62e4220 _pthread_start + 44 (pthread.c:884)
    9 libsystem_pthread.dylib 0x00000001b62e7cdc thread_start + 4

    Thread 22 name:
    Thread 22:
    0 libsystem_kernel.dylib 0x00000001b6257130 semaphore_wait_trap + 8
    1 libdispatch.dylib 0x00000001b60a7798 _dispatch_sema4_wait$VARIANT$mp + 24 (lock.c:134)
    2 libdispatch.dylib 0x00000001b60a821c _dispatch_semaphore_wait_slow + 140 (semaphore.c:132)
    3 myapp 0x000000010292712c CappedSemaphore::WaitForSignal() + 72 (Semaphore.h:27)
    4 myapp 0x000000010296f880 JobQueue::processJobs(void*) + 180 (WorkerController.h:20)
    5 myapp 0x000000010296ed2c JobQueue::WorkLoop(void*) + 12 (JobQueue.cpp:960)
    6 myapp 0x00000001029de1e0 Thread::RunThreadWrapper(void*) + 516 (Thread.cpp:76)
    7 libsystem_pthread.dylib 0x00000001b62e42c0 _pthread_body + 128 (pthread.c:857)
    8 libsystem_pthread.dylib 0x00000001b62e4220 _pthread_start + 44 (pthread.c:884)
    9 libsystem_pthread.dylib 0x00000001b62e7cdc thread_start + 4

    Thread 23 name:
    Thread 23:
    0 libsystem_kernel.dylib 0x00000001b6257130 semaphore_wait_trap + 8
    1 libdispatch.dylib 0x00000001b60a7798 _dispatch_sema4_wait$VARIANT$mp + 24 (lock.c:134)
    2 libdispatch.dylib 0x00000001b60a821c _dispatch_semaphore_wait_slow + 140 (semaphore.c:132)
    3 myapp 0x000000010292712c CappedSemaphore::WaitForSignal() + 72 (Semaphore.h:27)
    4 myapp 0x000000010296f880 JobQueue::processJobs(void*) + 180 (WorkerController.h:20)
    5 myapp 0x000000010296ed2c JobQueue::WorkLoop(void*) + 12 (JobQueue.cpp:960)
    6 myapp 0x00000001029de1e0 Thread::RunThreadWrapper(void*) + 516 (Thread.cpp:76)
    7 libsystem_pthread.dylib 0x00000001b62e42c0 _pthread_body + 128 (pthread.c:857)
    8 libsystem_pthread.dylib 0x00000001b62e4220 _pthread_start + 44 (pthread.c:884)
    9 libsystem_pthread.dylib 0x00000001b62e7cdc thread_start + 4

    Thread 24 name:
    Thread 24:
    0 libsystem_kernel.dylib 0x00000001b6257130 semaphore_wait_trap + 8
    1 libdispatch.dylib 0x00000001b60a7798 _dispatch_sema4_wait$VARIANT$mp + 24 (lock.c:134)
    2 libdispatch.dylib 0x00000001b60a821c _dispatch_semaphore_wait_slow + 140 (semaphore.c:132)
    3 myapp 0x00000001029df15c ThreadedStreamBuffer::HandleOutOfBufferToReadFrom(ThreadedStreamBuffer::DataOffsets) + 344 (Semaphore.h:27)
    4 myapp 0x00000001029966d8 BatchDeleteStep2Threaded(void*) + 208 (ThreadedStreamBuffer.h:323)
    5 myapp 0x00000001029de1e0 Thread::RunThreadWrapper(void*) + 516 (Thread.cpp:76)
    6 libsystem_pthread.dylib 0x00000001b62e42c0 _pthread_body + 128 (pthread.c:857)
    7 libsystem_pthread.dylib 0x00000001b62e4220 _pthread_start + 44 (pthread.c:884)
    8 libsystem_pthread.dylib 0x00000001b62e7cdc thread_start + 4

    Thread 25 name:
    Thread 25:
    0 libsystem_kernel.dylib 0x00000001b6257130 semaphore_wait_trap + 8
    1 libdispatch.dylib 0x00000001b60a7798 _dispatch_sema4_wait$VARIANT$mp + 24 (lock.c:134)
    2 libdispatch.dylib 0x00000001b60a821c _dispatch_semaphore_wait_slow + 140 (semaphore.c:132)
    3 myapp 0x00000001028e12ec AsyncReadManagerThreaded::ThreadEntry() + 120 (Semaphore.h:27)
    4 myapp 0x00000001028e0f14 AsyncReadManagerThreaded::StaticThreadEntry(void*) + 12 (AsyncReadManagerThreaded.cpp:72)
    5 myapp 0x00000001029de1e0 Thread::RunThreadWrapper(void*) + 516 (Thread.cpp:76)
    6 libsystem_pthread.dylib 0x00000001b62e42c0 _pthread_body + 128 (pthread.c:857)
    7 libsystem_pthread.dylib 0x00000001b62e4220 _pthread_start + 44 (pthread.c:884)
    8 libsystem_pthread.dylib 0x00000001b62e7cdc thread_start + 4

    Thread 0 crashed with ARM Thread State (64-bit):
    x0: 0x000000004f04eb2e x1: 0x000000000000001a x2: 0x000000003e8c77ab x3: 0x00000000a637eacf
    x4: 0x00000000569ece4e x5: 0x00000000e843421b x6: 0x0000000065726f43 x7: 0x000000000000004b
    x8: 0x000000004f04a42a x9: 0x000000004c751172 x10: 0x000000002904bcbf x11: 0x000000009e3779b1
    x12: 0x00000000165667b1 x13: 0x000000002904eeb6 x14: 0x0000000105a8002a x15: 0x000000000000006c
    x16: 0x00000000642e656c x17: 0x0000000034a039e9 x18: 0x0000000000000000 x19: 0x000000016d912410
    x20: 0x00000000000001f0 x21: 0x0000000000000000 x22: 0x000000004f04eb2c x23: 0x000000010420a050
    x24: 0x0000000103a14000 x25: 0x0000000000000001 x26: 0x0000000000000010 x27: 0x0000000000000005
    x28: 0x0000000000000003 fp: 0x000000016d912400 lr: 0x0000000102a2ca4c
    sp: 0x000000016d9123c0 pc: 0x0000000102a2ca50 cpsr: 0x60000000
     
    Last edited: Jun 4, 2019
  24. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,771
    Thanks! This does look slightly different than the crash listed above. Is this something you can reproduce? It feels like we should be a new bug report for this issue.
     
    xman800 likes this.
  25. xman800

    xman800

    Joined:
    Feb 27, 2017
    Posts:
    25
    This crash is intermittently reported to me through Apple, and I have not personally been able to reproduce it.

    As a developer myself, I fully appreciate the value of reproducibility for fixing bugs, but one of my peeves with Unity as a company is that your QA department just closes any report than doesn't have a reproducible project attached (at least in my experience).

    Isn't the stack trace itself at least quite useful? Other than heap corruption issues, it can practically pinpoint the failure point. I wish there were a way to just report the stack traces (other than this forum) that didn't go through the QA department to be closed out immediately.
     
  26. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,771
    Yeah, I understand. With the number of bugs our QA team handles, reproducibility is usually necessary, because we just don't have the bandwidth to track down the cause of intermittent bugs like this. However, I would like us to improve in our handling of intermittent bugs. We don't have a great process for doing that now.

    In this case, I think it is worthwhile to submit a bug report with the stack traces from all threads. Once it is submitted, let me know the case number, and I'll update the case with some notes for our QA team to indicate that we want to investigate this even without a reproducible test case.
     
    xman800 likes this.
  27. xman800

    xman800

    Joined:
    Feb 27, 2017
    Posts:
    25
    Thanks Josh. Before I submit another bug report, can you take a look at 1145982? That's what I filed for this issue initially (that was closed by QA) when it happened with Unity 2018.3.11f1. That report has the full stack trace attached. I think it's the same issue, but if not, let me know here and I'll file a new issue and get you the case number for it.
     
  28. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,771
    I've re-opened the bug report. We will investigate it more. I can't promise a fix, but the stack trace from all threads should be helpful.
     
    xman800 likes this.
  29. Ed-Marty

    Ed-Marty

    Joined:
    Jul 16, 2015
    Posts:
    12
    We just released an update to our game, updating from 2018.2.12 to 2019.1.1, and have started seeing this crash on shutdown in Crashlytics as well. Would it be helpful to have more stack traces? They do look very similar to the ones already posted.
     
  30. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,771
    Yes, more stack traces would be helpful. Thanks!
     
  31. Ed-Marty

    Ed-Marty

    Joined:
    Jul 16, 2015
    Posts:
    12
    Another stack trace:

    Crashed: IL2CPP Threadpool worker
    EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x0000000000000210
    Crashed: IL2CPP Threadpool worker
    0 golf 0x100dc55b4 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 (hash_set.h:645)
    1 golf 0x100dc29a0 MonoManager::GetScriptingClass(char const*, char const*, char const*) (hash_set.h:308)
    2 golf 0x100908264 InitializeCoreScriptingClasses() (CoreScriptingClasses.cpp:22)
    3 golf 0x1009081d8 GetCoreScriptingClassesPtr() (CoreScriptingClasses.cpp:2025)
    4 golf 0x100907be8 GetCoreScriptingClasses() (CoreScriptingClasses.cpp:2034)
    5 golf 0x100db9988 scripting_stack_trace_info_for(ScriptingExceptionPtr, StackTraceInfo&) (ScriptingTypes.h:69)
    6 golf 0x100dc3e40 Scripting::LogExceptionFromManaged(ScriptingExceptionPtr, int, char const*, bool) (Scripting.cpp:828)
    7 golf 0x100e115b8 DebugLogHandler_CUSTOM_Internal_LogException(ScriptingReferenceWrapper<Il2CppObject*>, ScriptingReferenceWrapper<Il2CppObject*>) (Debug.bindings.gen.cpp:123)
    8 golf 0x101682da4 unsigned long long flatbuffers::HashFnv1a<unsigned long long>(char const*) + 919520
    9 golf 0x10166e800 unsigned long long flatbuffers::HashFnv1a<unsigned long long>(char const*) + 836156
    10 golf 0x102c953c0 unsigned long long flatbuffers::HashFnv1a<unsigned long long>(char const*) + 24063484
    11 golf 0x101694d8c unsigned long long flatbuffers::HashFnv1a<unsigned long long>(char const*) + 993224
    12 golf 0x102cda060 unsigned long long flatbuffers::HashFnv1a<unsigned long long>(char const*) + 24345244
    13 golf 0x102cc0788 unsigned long long flatbuffers::HashFnv1a<unsigned long long>(char const*) + 24240580
    14 golf 0x102cc1840 unsigned long long flatbuffers::HashFnv1a<unsigned long long>(char const*) + 24244860
    15 golf 0x102cd79c0 unsigned long long flatbuffers::HashFnv1a<unsigned long long>(char const*) + 24335356
    16 golf 0x1002576bc RuntimeInvoker_FalseSByte_t9070AEA2966184235653CB9B4D33B149CDA831DF(void (*)(), MethodInfo const*, void*, void**) (Il2CppInvokerTable.cpp:51465)
    17 golf 0x101421f00 worker_thread(void*) (ThreadPoolWorkerThread.cpp:253)
    18 golf 0x101444fa4 il2cpp::vm::ThreadStart(void*) (Thread.cpp:717)
    19 golf 0x101422cc4 il2cpp::eek:s::Thread::RunWrapper(void*) (Thread.cpp:176)
    20 golf 0x101425000 il2cpp::eek:s::ThreadImpl::ThreadStartWrapper(void*) (ThreadImpl.cpp:106)
    21 libsystem_pthread.dylib 0x186552908 _pthread_body + 132
    22 ??? 0x74ce8186552864 (Missing)
    23 ??? 0x4cd4818655adcc (Missing)
    com.apple.main-thread
    com.apple.main-thread
    0 libsystem_kernel.dylib 0x1864dced4 __psynch_cvwait + 8
    1 libsystem_pthread.dylib 0x186556504 _pthread_cond_wait + 684
    2 ??? 0x23e810142bf84 (Missing)
    3 golf 0x101422da4 il2cpp::eek:s::Thread::Join(unsigned int) (Thread.cpp:214)
    4 golf 0x1014450c8 il2cpp::vm::Thread::Stop(Il2CppInternalThread*) (Thread.cpp:790)
    5 golf 0x1014639e4 threadpool_ms_cleanup() (threadpool-ms.cpp:254)
    6 golf 0x10144d570 il2cpp::vm::Runtime::Shutdown() (Runtime.cpp:392)
    7 golf 0x100dc2c38 CleanupIl2Cpp() (MonoManager_Il2Cpp.cpp:292)
    8 golf 0x100cfdd78 PlayerCleanup(bool) (Player.cpp:593)
    9 golf 0x10103bc60 UnityCleanup (LibEntryPoint.mm:243)
    10 golf 0x1001911b8 -[UnityAppController applicationWillTerminate:] (UnityAppController.mm:394)
    11 UIKitCore 0x1b3c23b18 -[UIApplication _terminateWithStatus:] + 224
    12 ??? 0x4eb181b34ae96c (Missing)
    13 ??? 0x41fb01b3c27f64 (Missing)
    14 ??? 0x68901b3c16124 (Missing)
    15 ??? 0x127981b3c447a4 (Missing)
    16 ??? 0x39081868d99d8 (Missing)
    17 ??? 0x630a01868d44d0 (Missing)
    18 ??? 0x552581868d4a30 (Missing)
    19 ??? 0x589081868d4254 (Missing)
    20 ??? 0x19438188b13d8c (Missing)
    21 ??? 0x740781b3c1c4c0 (Missing)
    22 ??? 0x19a5010017beb0 (Missing)
    23 libdyld.dylib 0x186390fd8 start + 4
    com.apple.uikit.eventfetch-thread
    com.apple.uikit.eventfetch-thread
    0 libsystem_kernel.dylib 0x1864d1c60 mach_msg_trap + 8
    1 libsystem_kernel.dylib 0x1864d10e8 mach_msg + 76
    2 ??? 0xd9b81868d9e10 (Missing)
    3 ??? 0x400301868d4ab4 (Missing)
    4 ??? 0x54ec01868d4254 (Missing)
    5 ??? 0x231581872b404c (Missing)
    6 ??? 0x443d81872b3ed4 (Missing)
    7 ??? 0x74b981b3d080d4 (Missing)
    8 ??? 0x29a81872b2c4c (Missing)
    9 ??? 0x554701873e8e54 (Missing)
    10 ??? 0x76f38186552908 (Missing)
    11 ??? 0x5b340186552864 (Missing)
    12 ??? 0x469a018655adcc (Missing)
    GC Finalizer
    GC Finalizer
    0 libsystem_kernel.dylib 0x1864dced4 __psynch_cvwait + 8
    1 libsystem_pthread.dylib 0x1865564d0 _pthread_cond_wait + 632
    2 ??? 0x70f8010142bfe4 (Missing)
    3 golf 0x101403178 il2cpp::gc::FinalizerThread(void*) (BoehmGC.cpp:307)
    4 golf 0x101422cc4 il2cpp::eek:s::Thread::RunWrapper(void*) (Thread.cpp:176)
    5 golf 0x101425000 il2cpp::eek:s::ThreadImpl::ThreadStartWrapper(void*) (ThreadImpl.cpp:106)
    6 libsystem_pthread.dylib 0x186552908 _pthread_body + 132
    7 ??? 0x5c260186552864 (Missing)
    8 ??? 0x622f818655adcc (Missing)
    UnityGfxDeviceWorker
    UnityGfxDeviceWorker
    0 libsystem_kernel.dylib 0x1864d1c9c semaphore_wait_trap + 8
    1 libdispatch.dylib 0x186359f6c _dispatch_sema4_wait + 28
    2 ??? 0x3a7e018635aa24 (Missing)
    3 ??? 0x4d500100d48204 (Missing)
    4 golf 0x100b2a590 GfxDeviceWorker::RunCommand(ThreadedStreamBuffer&) (GfxDeviceWorker.cpp:496)
    5 golf 0x101017170 GfxDeviceWorkerAutoreleasePoolProxy (GfxDeviceMetal.mm:4144)
    6 golf 0x100b31a1c GfxDeviceWorker::RunExt(ThreadedStreamBuffer&) (GfxDeviceWorker.cpp:490)
    7 golf 0x100b2a2fc GfxDeviceWorker::RunGfxDeviceWorker(void*) (GfxDeviceWorker.cpp:454)
    8 golf 0x100d47234 Thread::RunThreadWrapper(void*) (Thread.cpp:87)
    9 libsystem_pthread.dylib 0x186552908 _pthread_body + 132
    10 ??? 0x28578186552864 (Missing)
    11 ??? 0x58ad818655adcc (Missing)
    AVAudioSession Notify Thread
    AVAudioSession Notify Thread
    0 libsystem_kernel.dylib 0x1864d1c60 mach_msg_trap + 8
    1 libsystem_kernel.dylib 0x1864d10e8 mach_msg + 76
    2 ??? 0x6af801868d9e10 (Missing)
    3 ??? 0x496f01868d4ab4 (Missing)
    4 ??? 0x2a8801868d4254 (Missing)
    5 ??? 0x1f96018c897294 (Missing)
    6 ??? 0x3968818c8c1edc (Missing)
    7 ??? 0x20260186552908 (Missing)
    8 ??? 0x11930186552864 (Missing)
    9 ??? 0x6aa8818655adcc (Missing)
    com.apple.NSURLConnectionLoader
    com.apple.NSURLConnectionLoader
    0 libsystem_kernel.dylib 0x1864d1c60 mach_msg_trap + 8
    1 libsystem_kernel.dylib 0x1864d10e8 mach_msg + 76
    2 ??? 0x6df981868d9e10 (Missing)
    3 ??? 0x84581868d4ab4 (Missing)
    4 ??? 0x358581868d4254 (Missing)
    5 ??? 0x542a8186ef5c88 (Missing)
    6 ??? 0x55e281872b2c4c (Missing)
    7 ??? 0x4cf481873e8e54 (Missing)
    8 ??? 0x1ee10186552908 (Missing)
    9 ??? 0x266c0186552864 (Missing)
    10 ??? 0x2b0a018655adcc (Missing)
    com.apple.CoreMotion.MotionThread
    com.apple.CoreMotion.MotionThread
    0 libsystem_kernel.dylib 0x1864d1c60 mach_msg_trap + 8
    1 libsystem_kernel.dylib 0x1864d10e8 mach_msg + 76
    2 ??? 0x7ed501868d9e10 (Missing)
    3 ??? 0x721481868d4ab4 (Missing)
    4 ??? 0x309181868d4254 (Missing)
    5 ??? 0x3cc281868d4f88 (Missing)
    6 ??? 0x2e9f018c2f39f4 (Missing)
    7 ??? 0x3330186552908 (Missing)
    8 ??? 0x2a678186552864 (Missing)
    9 ??? 0x418018655adcc (Missing)
    com.twitter.crashlytics.ios.MachExceptionServer
    com.twitter.crashlytics.ios.MachExceptionServer
    0 golf 0x10040d7dc CLSProcessRecordAllThreads + 4312930268
    1 golf 0x10040dbc4 CLSProcessRecordAllThreads + 4312931268
    2 golf 0x1003fd44c CLSHandler + 4312863820
    3 golf 0x1003f882c CLSMachExceptionServer + 4312844332
    4 libsystem_pthread.dylib 0x186552908 _pthread_body + 132
    5 ??? 0x6ed18186552864 (Missing)
    6 ??? 0x2281818655adcc (Missing)
    JavaScriptCore bmalloc scavenger
    JavaScriptCore bmalloc scavenger
    0 libsystem_kernel.dylib 0x1864dced4 __psynch_cvwait + 8
    1 libsystem_pthread.dylib 0x1865564d0 _pthread_cond_wait + 632
    2 ??? 0x47c8185ae4990 (Missing)
    3 ??? 0x741e018dbfd50c (Missing)
    4 ??? 0x6c65818dc01560 (Missing)
    5 ??? 0x50de818dc00cfc (Missing)
    6 ??? 0x6337818dc02724 (Missing)
    7 ??? 0x67008186552908 (Missing)
    8 ??? 0x30228186552864 (Missing)
    9 ??? 0x461b018655adcc (Missing)
    WebThread
    WebThread
    0 libsystem_kernel.dylib 0x1864d1c60 mach_msg_trap + 8
    1 libsystem_kernel.dylib 0x1864d10e8 mach_msg + 76
    2 ??? 0x146a01868d9e10 (Missing)
    3 ??? 0x68c181868d4ab4 (Missing)
    4 ??? 0x18e181868d4254 (Missing)
    5 ??? 0x7630818f77e5ec (Missing)
    6 ??? 0x7028186552908 (Missing)
    7 ??? 0x3e4a8186552864 (Missing)
    8 ??? 0x34018655adcc (Missing)
    Timer-Scheduler
    Timer-Scheduler
    0 libsystem_kernel.dylib 0x1864dced4 __psynch_cvwait + 8
    1 libsystem_pthread.dylib 0x186556504 _pthread_cond_wait + 684
    2 ??? 0x660f810142bf84 (Missing)
    3 golf 0x10141a210 il2cpp::icalls::mscorlib::System::Threading::WaitHandle::Wait_internal(void**, int, bool, int) (WaitHandle.cpp:92)
    4 golf 0x102cda9b4 unsigned long long flatbuffers::HashFnv1a<unsigned long long>(char const*) + 24347632
    5 golf 0x102cda85c unsigned long long flatbuffers::HashFnv1a<unsigned long long>(char const*) + 24347288
    6 golf 0x102cd9664 unsigned long long flatbuffers::HashFnv1a<unsigned long long>(char const*) + 24342688
    7 golf 0x102cd5808 unsigned long long flatbuffers::HashFnv1a<unsigned long long>(char const*) + 24326724
    8 golf 0x102cc0788 unsigned long long flatbuffers::HashFnv1a<unsigned long long>(char const*) + 24240580
    9 golf 0x102cc1840 unsigned long long flatbuffers::HashFnv1a<unsigned long long>(char const*) + 24244860
    10 golf 0x102cd5808 unsigned long long flatbuffers::HashFnv1a<unsigned long long>(char const*) + 24326724
    11 golf 0x100256064 RuntimeInvoker_TrueVoid_t22962CB4C05B1D89B55A6E1139F0E87A90987017(void (*)(), MethodInfo const*, void*, void**) (Il2CppInvokerTable.cpp:50906)
    12 golf 0x10144d9a0 il2cpp::vm::Runtime::Invoke(MethodInfo const*, void*, void**, Il2CppException**) (Runtime.cpp:550)
    13 golf 0x101419d2c il2cpp::icalls::mscorlib::System::Threading::ThreadStart(void*) (Thread.cpp:159)
    14 golf 0x101422cc4 il2cpp::eek:s::Thread::RunWrapper(void*) (Thread.cpp:176)
    15 golf 0x101425000 il2cpp::eek:s::ThreadImpl::ThreadStartWrapper(void*) (ThreadImpl.cpp:106)
    16 libsystem_pthread.dylib 0x186552908 _pthread_body + 132
    17 ??? 0x4fbf8186552864 (Missing)
    18 ??? 0x8fe018655adcc (Missing)
    WebCore: LocalStorage
    WebCore: LocalStorage
    0 libsystem_kernel.dylib 0x1864dced4 __psynch_cvwait + 8
    1 libsystem_pthread.dylib 0x1865564d0 _pthread_cond_wait + 632
    2 ??? 0x7db5018dbc3758 (Missing)
    3 ??? 0x57c818dba9fe8 (Missing)
    4 ??? 0x29ce0190ed7208 (Missing)
    5 ??? 0x3d360190ed9f80 (Missing)
    6 ??? 0x28aa0190ed9564 (Missing)
    7 ??? 0x2b79818dbc1a90 (Missing)
    8 ??? 0x643c018dbc2f50 (Missing)
    9 ??? 0x9708186552908 (Missing)
    10 ??? 0x3abf0186552864 (Missing)
    11 ??? 0x4fe4018655adcc (Missing)
    com.apple.CFNetwork.CustomProtocols
    com.apple.CFNetwork.CustomProtocols
    0 libsystem_kernel.dylib 0x1864d1c60 mach_msg_trap + 8
    1 libsystem_kernel.dylib 0x1864d10e8 mach_msg + 76
    2 ??? 0x271601868d9e10 (Missing)
    3 ??? 0x69a901868d4ab4 (Missing)
    4 ??? 0x260401868d4254 (Missing)
    5 ??? 0x13c28186ef5c88 (Missing)
    6 ??? 0x93101872b2c4c (Missing)
    7 ??? 0x1b4281873e8e54 (Missing)
    8 ??? 0x7c3b0186552908 (Missing)
    9 ??? 0xdc68186552864 (Missing)
    10 ??? 0x4666818655adcc (Missing)
    Thread #1
    Thread
    0 libsystem_kernel.dylib 0x1864ddb64 __workq_kernreturn + 8
    1 libsystem_pthread.dylib 0x186554b7c _pthread_wqthread + 536
    2 ??? 0x397d818655adc4 (Missing)
    Thread #2
    Thread
    0 libsystem_kernel.dylib 0x1864ddb64 __workq_kernreturn + 8
    1 libsystem_pthread.dylib 0x186554abc _pthread_wqthread + 344
    2 ??? 0x1f61018655adc4 (Missing)
    Thread #3
    Thread
    0 libsystem_kernel.dylib 0x1864ddb64 __workq_kernreturn + 8
    1 libsystem_pthread.dylib 0x186554b7c _pthread_wqthread + 536
    2 ??? 0x3bc6818655adc4 (Missing)
    Thread #4
    Thread
    0 libsystem_kernel.dylib 0x1864ddb64 __workq_kernreturn + 8
    1 libsystem_pthread.dylib 0x186554b7c _pthread_wqthread + 536
    2 ??? 0x26dd818655adc4 (Missing)
    Thread #5
    Thread
    0 libsystem_kernel.dylib 0x1864ddb64 __workq_kernreturn + 8
    1 libsystem_pthread.dylib 0x186554abc _pthread_wqthread + 344
    2 ??? 0x73f7818655adc4 (Missing)
    IL2CPP Threadpool worker
    IL2CPP Threadpool worker
    0 libsystem_kernel.dylib 0x1864dced4 __psynch_cvwait + 8
    1 libsystem_pthread.dylib 0x1865564d0 _pthread_cond_wait + 632
    2 ??? 0x38d2810142b060 (Missing)
    3 golf 0x101421fe8 worker_thread(void*) (ThreadPoolWorkerThread.cpp:88)
    4 golf 0x101444fa4 il2cpp::vm::ThreadStart(void*) (Thread.cpp:717)
    5 golf 0x101422cc4 il2cpp::eek:s::Thread::RunWrapper(void*) (Thread.cpp:176)
    6 golf 0x101425000 il2cpp::eek:s::ThreadImpl::ThreadStartWrapper(void*) (ThreadImpl.cpp:106)
    7 libsystem_pthread.dylib 0x186552908 _pthread_body + 132
    8 ??? 0x1cc00186552864 (Missing)
    9 ??? 0x8c1018655adcc (Missing)
    Thread #6
    Thread
    0 libsystem_kernel.dylib 0x1864d1cb4 semaphore_timedwait_trap + 8
    1 libdispatch.dylib 0x18635a058 _dispatch_sema4_timedwait + 68
    2 ??? 0x433d018635a9ec (Missing)
    3 ??? 0x19588186368660 (Missing)
    4 ??? 0x2d718186552908 (Missing)
    5 ??? 0x63ff0186552864 (Missing)
    6 ??? 0x5bb4018655adcc (Missing)
    Thread #7
    Thread
    0 libsystem_kernel.dylib 0x1864ddb64 __workq_kernreturn + 8
    1 libsystem_pthread.dylib 0x186554abc _pthread_wqthread + 344
    2 ??? 0x56c2818655adc4 (Missing)
    Thread #8
    Thread
    0 libsystem_kernel.dylib 0x1864ddb64 __workq_kernreturn + 8
    1 libsystem_pthread.dylib 0x186554abc _pthread_wqthread + 344
    2 ??? 0x33b4818655adc4 (Missing)
    Thread #9
    Thread
    0 libsystem_kernel.dylib 0x1864ddb64 __workq_kernreturn + 8
    1 libsystem_pthread.dylib 0x186554b7c _pthread_wqthread + 536
    2 ??? 0x527e818655adc4 (Missing)
    Thread #10
    Thread
    0 libsystem_kernel.dylib 0x1864d1cb4 semaphore_timedwait_trap + 8
    1 libdispatch.dylib 0x18635a058 _dispatch_sema4_timedwait + 68
    2 ??? 0x7f3e018635a9ec (Missing)
    3 ??? 0x744f0186368660 (Missing)
    4 ??? 0x575a0186552908 (Missing)
    5 ??? 0x698d0186552864 (Missing)
    6 ??? 0x479c018655adcc (Missing)
    Thread #11
    Thread
    0 libsystem_kernel.dylib 0x1864d1cb4 semaphore_timedwait_trap + 8
    1 libdispatch.dylib 0x18635a058 _dispatch_sema4_timedwait + 68
    2 ??? 0x2874018635a9ec (Missing)
    3 ??? 0x134a8186368660 (Missing)
    4 ??? 0x71420186552908 (Missing)
    5 ??? 0x5990186552864 (Missing)
    6 ??? 0x498e818655adcc (Missing)
     
  32. KB73

    KB73

    Joined:
    Feb 7, 2013
    Posts:
    234
    Here is ours

    This is occuring in iOS 12 on all devices

    Crashed: IL2CPP Threadpool worker

    EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x00000000000001f8



    Crashed: IL2CPP Threadpool worker

    0 legacy 0x10544eb24 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 (hash_set.h:636)

    1 legacy 0x10544bb74 MonoManager::GetScriptingClass(char const*, char const*, char const*) (hash_set.h:308)

    2 legacy 0x10502eeb0 InitializeCoreScriptingClasses() (CoreScriptingClasses.cpp:25)

    3 legacy 0x10502ee24 GetCoreScriptingClassesPtr() (CoreScriptingClasses.cpp:1686)

    4 legacy 0x10502ec58 GetCoreScriptingClasses() (CoreScriptingClasses.cpp:1695)

    5 legacy 0x105448060 PostprocessStacktrace(char const*, core::basic_string<char, core::StringStorageDefault<char> >&) (ScriptingTypes.h:69)

    6 legacy 0x10544852c scripting_stack_trace_info_for(ScriptingExceptionPtr, StackTraceInfo&) (ScriptingApi_Il2Cpp.cpp:498)

    7 legacy 0x10544c0b8 Scripting::LogException(ScriptingExceptionPtr, int, char const*, bool) (Scripting.cpp:766)

    8 legacy 0x10729ac68 plcrash::async::dwarf_cfa_state_iterator<unsigned long long, long long>::next(unsigned int*, plcrash::async::plcrash_dwarf_cfa_reg_rule_t*, unsigned long long*) + 26524676

    9 legacy 0x10729ab78 plcrash::async::dwarf_cfa_state_iterator<unsigned long long, long long>::next(unsigned int*, plcrash::async::plcrash_dwarf_cfa_reg_rule_t*, unsigned long long*) + 26524436

    10 legacy 0x1074846b8 plcrash::async::dwarf_cfa_state_iterator<unsigned long long, long long>::next(unsigned int*, plcrash::async::plcrash_dwarf_cfa_reg_rule_t*, unsigned long long*) + 28530260

    11 legacy 0x104f82a40 RuntimeInvoker_Void_t1185182177_RuntimeObject_RuntimeObject(void (*)(), MethodInfo const*, void*, void**) (Il2CppInvokerTable.cpp:4335807040)

    12 legacy 0x105a92060 il2cpp::vm::Runtime::Invoke(MethodInfo const*, void*, void**, Il2CppException**) (Runtime.cpp:522)

    13 legacy 0x105a92cec il2cpp::vm::Runtime::CallUnhandledExceptionDelegate(Il2CppDomain*, Il2CppDelegate*, Il2CppException*) (Runtime.cpp:459)

    14 legacy 0x105a92c08 il2cpp::vm::Runtime::UnhandledException(Il2CppException*) (Runtime.cpp:615)

    15 legacy 0x105a94a40 il2cpp::vm::ThreadStart(void*) (Thread.cpp:671)

    16 legacy 0x105a5fa60 il2cpp::eek:s::Thread::RunWrapper(void*) (Thread.cpp:168)

    17 legacy 0x105a68274 il2cpp::eek:s::ThreadImpl::ThreadStartWrapper(void*) (ThreadImpl.cpp:106)

    18 libsystem_pthread.dylib 0x21d6d825c _pthread_body + 128

    19 libsystem_pthread.dylib 0x21d6d81bc _pthread_start + 48

    20 libsystem_pthread.dylib 0x21d6dbcf4 thread_start + 4
     
  33. KB73

    KB73

    Joined:
    Feb 7, 2013
    Posts:
    234
     
    Last edited: Jun 4, 2019
  34. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,771
    These stack traces all look pretty similar. I'm suspecting now that our proposed change did not actually correct the original problem here.

    Can anyone confirm that they have stopped seeing a similar crash with the versions I listed above? Also, if anyone is able to reproduce this locally with some case, that would be a great help.
     
  35. Vipatronon

    Vipatronon

    Joined:
    Aug 23, 2016
    Posts:
    11
    Hi!

    Here in our application, we download an asset bundle hosted in our servers and through image recognition we start a new scene that is inside the bundle we just have downloaded. The particular scene we are trying to open has some functionalities made with the Bolt asset, and just with this scene we catch this error, but it occurs 80% of the times we try to start this scene, so I think Bolt is not the problem. All other scenes without bolt features works pretty well

    I'm sending you the crash report that I got whenever this errors occurs.

    I tested using the following unity versions:
    • 2018.3.2f1
    • 2019.1.1f1
    • 2019.1.4f1
    Let me know if you need some other info

    Kind regards
     

    Attached Files:

  36. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,771
    I don't see any symbols in these call stacks, so it is difficult to tell if this crash is related to the issue being discussed in this thread, unfortunately.
     
  37. Vipatronon

    Vipatronon

    Joined:
    Aug 23, 2016
    Posts:
    11
    Right... Is there any other way to get another stacktrace? By xcode maybe? If not, should I open another thread to discuss this error?

    I read that this exception could be related to an wide range of things, so I thought this could be related
     
  38. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,771
    Sorry, I was not trying minimize your issue, I just wanted to clarify that it looks different.

    If this is something you can reproduce locally, then catching it in Xcode will provide the most useful information. If you can get better debug information, then it is probably worth a new forum thread.
     
  39. MagicMiikka

    MagicMiikka

    Joined:
    Aug 23, 2014
    Posts:
    14
    We have this issue on 2018.4.3f1 as well

    Based on our event logs, the player does not manage to properly initialize the game at this point and all of our custom data is empty at this point.
    We use Crashlytics (fabric) for issue reporting and have not migrated to FireBase (yet)
     

    Attached Files:

  40. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,771
    Interesting - the crash indicates that the application is shutting down. Do you mean that the game is actually starting, then immediately shutting down for some reason?
     
  41. MagicMiikka

    MagicMiikka

    Joined:
    Aug 23, 2014
    Posts:
    14
    Yes, that's what it is indicating.
    The game has not managed to get basic events logged into the Crashlytics events such as AppStart.

    Unfortunately we do not have a local repro yet but this is one of our most common native crashes on iOS.
     
  42. MagicMiikka

    MagicMiikka

    Joined:
    Aug 23, 2014
    Posts:
    14
    I managed to repro the crash (on 2018.4.1f1).
    I did this by continuous re-starts of the application.
    As the app was restarting I force closed it immediately.
    I managed to get this to happen 3 times within a minute by varying the shutdown time.

    My suspicion is now that Unity hasn't managed load something it's trying to shut down.
     
    dan_ginovker likes this.
  43. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,771
    Great! Can you submit a bug report that includes the project and these details?
     
  44. stopiccot_tds

    stopiccot_tds

    Joined:
    Oct 1, 2016
    Posts:
    111
  45. cope6961

    cope6961

    Joined:
    May 11, 2019
    Posts:
    1
    Ive been getting this error a lot too... any fix/update?
     
  46. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,771
    No, unfortunately we don't have a case where this is reproducible yet. If you have one, please submit a bug report. Thanks!
     
  47. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,771
    It looks like we do have a reproducible test case for this issue, see https://issuetracker.unity3d.com/issues/ios-crash-during-shutdown

    We've not come up with a solution yet, but at least in the test case we have, the problem is caused by calls into the Unity API (specifically Debug.LogException in this case, but maybe others as well), during the shutdown process.

    So, for anyone experiencing this, it might be worth checking your code which runs on non-main threads. Does it call into the Unity API? If so, could that call happen while the player is shutting down? In general, the Unity API is not thread safe, so calls to it should only occur on the main thread. However, it is really unsafe to make calls on the background thread during shutdown.

    We will see if we can do something to avoid a crash in this case, but it may not be possible for the Unity API to call succeed in these conditions.
     
    xman800 likes this.
  48. xman800

    xman800

    Joined:
    Feb 27, 2017
    Posts:
    25
    But Unity throws an exception if you attempt to call the Unity API on a non-main thread, right?
     
  49. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,771
    For many APIs, that is true, but not for all, unfortunately. Only APIs that end up calling to the main engine code will throw an exception.

    Also note that even throwing a managed exception during shutdown might be a problem. The .NET VM runtime is in the process of shutting down, so it may not be able to properly through an exception.
     
    xman800 likes this.
  50. xman800

    xman800

    Joined:
    Feb 27, 2017
    Posts:
    25
    @JoshPeterson Do you know if it would still be unsafe to call Debug.Log from a non-main thread when Debug.unityLogger.logEnabled == false? That's the scenario I have in my production code where I get this crash.