iOS 15 crashes

We are seeing significant increase in crashes in iOS 15. Most of the crashes are from UIKitCore. As of now we are not able to reproduce the issue.

Can someone point out what could be causing these high number of crashes in iOS 15?

Thread 0 name: Thread 0 Crashed: 0 libsystem_kernel.dylib 0x00000001ba964014 __psynch_cvwait + 8 1 libsystem_pthread.dylib 0x00000001f339f20c _pthread_cond_wait + 1236 (pthread_cond.c:636) 2 XYZ 0x0000000105c2b338 il2cpp::os::posix::PosixWaitObject::Wait(unsigned int, bool) + 328 (PosixWaitObject.cpp:125) 3 XYZ 0x0000000105c227f0 il2cpp::os::Event::Wait(unsigned int, bool) + 16 (Event.cpp:44) 4 XYZ 0x0000000105c227f0 il2cpp::os::Thread::Join(unsigned int) + 16 (Thread.cpp:209) 5 XYZ 0x0000000105c227f0 il2cpp::os::Thread::Join() + 24 (Thread.cpp:203) 6 XYZ 0x0000000105c42b40 il2cpp::vm::Thread::KillAllBackgroundThreadsAndWaitForForegroundThreads() + 516 (Thread.cpp:316) 7 XYZ 0x0000000105c4b998 il2cpp::vm::Runtime::Shutdown() + 76 (Runtime.cpp:426) 8 XYZ 0x00000001053a995c CleanupIl2Cpp() + 20 (MonoManager_Il2Cpp.cpp:276) 9 XYZ 0x0000000105301d80 PlayerCleanup(bool) + 84 (Player.cpp:627) 10 XYZ 0x00000001055ec264 UnityCleanup + 16 (LibEntryPoint.mm:220) 11 XYZ 0x0000000104743d28 -[UnityAppController applicationWillTerminate:] + 36 (UnityAppController.mm:796) 12 UIKitCore 0x00000001873d98f4 -[UIApplication _terminateWithStatus:] + 244 (UIApplication.m:6844) 13 UIKitCore 0x0000000186ac67b4 -[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:] + 128 (_UISceneLifecycleMultiplexer.m:808) 14 UIKitCore 0x0000000186cb7314 -[_UISceneLifecycleMultiplexer forceExitWithTransitionContext:scene:] + 224 (_UISceneLifecycleMultiplexer.m:482) 15 UIKitCore 0x00000001873d6574 -[UIApplication workspaceShouldExit:withTransitionContext:] + 212 (UIApplication.m:3776) 16 FrontBoardServices 0x0000000195f42c98 __63-[FBSWorkspaceScenesClient willTerminateWithTransitionContext:]_block_invoke_2 + 80 (FBSWorkspaceScenesClient.m:331) 17 FrontBoardServices 0x0000000195efd884 -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 240 (FBSWorkspace.m:352) 18 FrontBoardServices 0x0000000195f42c30 __63-[FBSWorkspaceScenesClient willTerminateWithTransitionContext:]_block_invoke + 132 (FBSWorkspaceScenesClient.m:328) 19 libdispatch.dylib 0x0000000183d1a5b0 _dispatch_client_callout + 20 (object.m:560) 20 libdispatch.dylib 0x0000000183d1e0e4 _dispatch_block_invoke_direct + 268 (queue.c:484) 21 FrontBoardServices 0x0000000195eff164 FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK + 48 (FBSSerialQueue.m:157) 22 FrontBoardServices 0x0000000195efe5a4 -[FBSSerialQueue _targetQueue_performNextIfPossible] + 220 (FBSSerialQueue.m:181) 23 FrontBoardServices 0x0000000195f02bb4 -[FBSSerialQueue _performNextFromRunLoopSource] + 28 (FBSSerialQueue.m:194) 24 CoreFoundation 0x00000001840c8a7c CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 28 (CFRunLoop.c:1967) 25 CoreFoundation 0x00000001840d9498 __CFRunLoopDoSource0 + 208 (CFRunLoop.c:2011) 26 CoreFoundation 0x00000001840142bc __CFRunLoopDoSources0 + 376 (CFRunLoop.c:2056) 27 CoreFoundation 0x000000018401995c __CFRunLoopRun + 820 (CFRunLoop.c:2930) 28 CoreFoundation 0x000000018402d24c CFRunLoopRunSpecific + 600 (CFRunLoop.c:3247) 29 GraphicsServices 0x000000019fbd7484 GSEventRunModal + 164 (GSEvent.c:2200) 30 UIKitCore 0x00000001869a4110 -[UIApplication _run] + 1100 (UIApplication.m:3441) 31 UIKitCore 0x0000000186721088 UIApplicationMain + 2204 (UIApplication.m:4981) 32 XYZ 0x0000000104725588 main + 184 (main.mm:72) 33 dyld 0x00000001092b5e64 start + 520 (dyldMain.cpp:888)

  • Are you using third party libraries (as FaceBook ) ? If so, may be you have to get an update from them. It may also be that iOS 15 is less tolerant.

  • Could you please post a full crash report? This looks like you might be stuck in a deadlock, but that's hard to say without the full crash log.

Add a Comment

Replies

Attached full crash report.

This looks like a crash while the application is terminating. There is [UIApplication _terminateWithStatus:] on the stack, so the application is in the process of terminating when it crashes.

Also Thread 0, 1, 4, 6 and 15 are all waiting in __psynch_cvwait, waiting for some resource to become available. Thread 0 has this ominous sounding method on the stack: il2cpp::vm::Thread::KillAllBackgroundThreadsAndWaitForForegroundThreads(). So my guess would be that something else might be waiting for the main thread and you are running in a deadlock here. There are some symbols missing, maybe they would give you more clues as to what is going on.

I have the same crash log. Did you find the source error @EshwarZy? Was it related to the Unity engine or the main thread waiting? thanks

Having the same issue. I use Unity 2020.3.18f1 and stack trace looks like

#0	(null) in __psynch_cvwait ()
#1	(null) in _pthread_cond_wait ()
#2	0x0000000109abd7cc in il2cpp::os::posix::PosixWaitObject::Wait(unsigned int, bool) ()
#3	0x0000000109ab5190 in il2cpp::os::Thread::Join() ()
#4	0x0000000109adb028 in il2cpp::vm::Thread::KillAllBackgroundThreadsAndWaitForForegroundThreads() ()
#5	0x0000000109ae81a8 in il2cpp::vm::Runtime::Shutdown() ()
#6	0x000000010939ab60 in CleanupIl2Cpp() ()
#7	0x00000001092b1740 in PlayerCleanup(bool) ()
#8	0x000000010967ce74 in UnityCleanup ()
#9	0x0000000108db2a20 in -[UnityAppController applicationWillTerminate:] at /..../build/ios/Classes/UnityAppController.mm:490
#10	(null) in -[UIApplication _terminateWithStatus:] ()

Although it doesn't affect user experience, I see many crashes on appstore connect page which leads to worse ASO so I need help if anyone has better understanding.

Hi EshwarZy, did you resolve this issue? We have the same issue. There are so many crashes in our game. Can you tell me how to resolve it if you found the solution? Thanks~  @EshwarZy