Posts

Post not yet marked as solved
8 Replies
5.8k Views
In past two weeks we encountered a sizable amount of crahes on iOS13 only. Most of them are occurring on the transition to the background and are not noticeable by the user. Some of them, however, are occurring on transition from background(after long suspension, not termination) to foreground and as such are perceived as crashes on startup of the app by the user.This particular crash, on transition to foreground, started to appear after we build our app with Xcode 11.0 GM2(and last version with release version of Xcode 11.0). We still cant reproduce them localy.Below is a sample stacktrace of one of them. All of them have "[UIWindowScene _prepareForResume]" in their stack of Thread 0 and all of them are ending in repeting "CA::Layer::mark_visible(CA::Transaction*, bool)" calls.Anything that can point us in the right direction would me much appreciated.Hardware Model: iPhone9,4 Process: App [2237] Path: /private/var/containers/Bundle/Application/C1B49130-FF6D-4CC1-9817-23D9C11CBCF3/App.app/App Identifier: *** Version: *** Code Type: ARM-64 Parent Process: ??? [1] Date/Time: 2019-10-03T13:03:09Z Launch Time: 2019-10-03T12:55:59Z OS Version: iPhone OS 13.1.2 (17A860) Report Version: 104 Exception Type: SIGSEGV Exception Codes: SEGV_ACCERR at 0x112ce040 Crashed Thread: 0 Thread 0 Crashed: 0 libobjc.A.dylib 0x00000001a7865190 objc_msgSend + 16 1 QuartzCore 0x00000001ae4cd150 CA::Layer::mark_visible(CA::Transaction*, bool) + 380 2 QuartzCore 0x00000001ae4cd12c CA::Layer::mark_visible(CA::Transaction*, bool) + 344 3 QuartzCore 0x00000001ae4cd10c CA::Layer::mark_visible(CA::Transaction*, bool) + 312 4 QuartzCore 0x00000001ae4cd10c CA::Layer::mark_visible(CA::Transaction*, bool) + 312 5 QuartzCore 0x00000001ae4cd10c CA::Layer::mark_visible(CA::Transaction*, bool) + 312 6 QuartzCore 0x00000001ae4cd10c CA::Layer::mark_visible(CA::Transaction*, bool) + 312 7 QuartzCore 0x00000001ae4cd10c CA::Layer::mark_visible(CA::Transaction*, bool) + 312 8 QuartzCore 0x00000001ae4cd10c CA::Layer::mark_visible(CA::Transaction*, bool) + 312 9 QuartzCore 0x00000001ae4cd10c CA::Layer::mark_visible(CA::Transaction*, bool) + 312 10 QuartzCore 0x00000001ae4cd10c CA::Layer::mark_visible(CA::Transaction*, bool) + 312 11 QuartzCore 0x00000001ae4cd10c CA::Layer::mark_visible(CA::Transaction*, bool) + 312 12 QuartzCore 0x00000001ae4cd10c CA::Layer::mark_visible(CA::Transaction*, bool) + 312 13 QuartzCore 0x00000001ae4cd10c CA::Layer::mark_visible(CA::Transaction*, bool) + 312 14 QuartzCore 0x00000001ae4cd10c CA::Layer::mark_visible(CA::Transaction*, bool) + 312 15 QuartzCore 0x00000001ae4cd10c CA::Layer::mark_visible(CA::Transaction*, bool) + 312 16 QuartzCore 0x00000001ae4cd10c CA::Layer::mark_visible(CA::Transaction*, bool) + 312 17 QuartzCore 0x00000001ae4cd10c CA::Layer::mark_visible(CA::Transaction*, bool) + 312 18 QuartzCore 0x00000001ae4cd10c CA::Layer::mark_visible(CA::Transaction*, bool) + 312 19 QuartzCore 0x00000001ae4d622c CA::Layer::set_visible(unsigned int) + 280 20 QuartzCore 0x00000001ae41d52c CA::Context::set_layer(void const*) + 196 21 UIKitCore 0x00000001ab323f58 +[_UIContextBinder createContextForBindable:withSubstrate:] + 1068 22 UIKitCore 0x00000001ab323a04 -[_UIContextBinder _contextForBindable:] + 152 23 UIKitCore 0x00000001ab3235f8 -[_UIContextBinder updateBindableOrderWithTest:force:] + 468 24 UIKitCore 0x00000001ab32325c -[_UIContextBinder createContextsWithTest:creationAction:] + 96 25 UIKitCore 0x00000001abd791b0 -[UIWindowScene _prepareForResume] + 80 26 UIKitCore 0x00000001ab1a0cc8 -[UIScene _emitSceneSettingsUpdateResponseForCompletion:afterSceneUpdateWork:] + 856 27 UIKitCore 0x00000001ab1a1c34 -[UIScene scene:didUpdateWithDiff:transitionContext:completion:] + 216 28 UIKitCore 0x00000001ab70ce7c -[UIApplicationSceneClientAgent scene:handleEvent:withCompletion:] + 460 29 FrontBoardServices 0x00000001acbda43c -[FBSSceneImpl updater:didUpdateSettings:withDiff:transitionContext:completion:] + 540 30 FrontBoardServices 0x00000001acbfee50 __88-[FBSWorkspaceScenesClient sceneID:updateWithSettingsDiff:transitionContext:completion:]_block_invoke_2 + 116 31 FrontBoardServices 0x00000001acbe40f8 -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 228 32 FrontBoardServices 0x00000001acbfed84 __88-[FBSWorkspaceScenesClient sceneID:updateWithSettingsDiff:transitionContext:completion:]_block_invoke + 180 33 libdispatch.dylib 0x00000001a780e184 _dispatch_client_callout + 12 34 libdispatch.dylib 0x00000001a77b7038 _dispatch_block_invoke_direct$VARIANT$mp + 220 35 FrontBoardServices 0x00000001acc23540 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 36 36 FrontBoardServices 0x00000001acc2320c -[FBSSerialQueue _queue_performNextIfPossible] + 400 37 FrontBoardServices 0x00000001acc23734 -[FBSSerialQueue _performNextFromRunLoopSource] + 24 38 CoreFoundation 0x00000001a7abe7e0 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 20 39 CoreFoundation 0x00000001a7abe738 __CFRunLoopDoSource0 + 76 40 CoreFoundation 0x00000001a7abded0 __CFRunLoopDoSources0 + 176 41 CoreFoundation 0x00000001a7ab901c __CFRunLoopRun + 1076 42 CoreFoundation 0x00000001a7ab88bc CFRunLoopRunSpecific + 460 43 GraphicsServices 0x00000001b1924328 GSEventRunModal + 100 44 UIKitCore 0x00000001abb4e6d4 UIApplicationMain + 1932 45 App 0x0000000102e6dc94 main (main.m:30) 46 libdyld.dylib 0x00000001a7943460 start + 0 Thread 1: 0 libsystem_kernel.dylib 0x00000001a79175f4 mach_msg_trap + 8 1 CoreFoundation 0x00000001a7abe068 __CFRunLoopServiceMachPort + 212 2 CoreFoundation 0x00000001a7ab9188 __CFRunLoopRun + 1440 3 CoreFoundation 0x00000001a7ab88bc CFRunLoopRunSpecific + 460 4 Foundation 0x00000001a7df8994 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 224 5 Foundation 0x00000001a7df8874 -[NSRunLoop(NSRunLoop) runUntilDate:] + 84 6 UIKitCore 0x00000001abbe649c -[UIEventFetcher threadMain] + 148 7 Foundation 0x00000001a7f290b0 __NSThread__start__ + 844 8 libsystem_pthread.dylib 0x00000001a785d1ec _pthread_start + 120 9 libsystem_pthread.dylib 0x00000001a7860aec thread_start + 4 Thread 2: 0 libsystem_kernel.dylib 0x00000001a79175f4 mach_msg_trap + 8 1 CoreFoundation 0x00000001a7abe068 __CFRunLoopServiceMachPort + 212 2 CoreFoundation 0x00000001a7ab9188 __CFRunLoopRun + 1440 3 CoreFoundation 0x00000001a7ab88bc CFRunLoopRunSpecific + 460 4 CoreFoundation 0x00000001a7ab9608 CFRunLoopRun + 56 5 CoreMotion 0x00000001b43d864c CLClientCreateIso6709Notation + 149560 6 libsystem_pthread.dylib 0x00000001a785d1ec _pthread_start + 120 7 libsystem_pthread.dylib 0x00000001a7860aec thread_start + 4 Thread 3: 0 libsystem_kernel.dylib 0x00000001a79175f4 mach_msg_trap + 8 1 CoreFoundation 0x00000001a7abe068 __CFRunLoopServiceMachPort + 212 2 CoreFoundation 0x00000001a7ab9188 __CFRunLoopRun + 1440 3 CoreFoundation 0x00000001a7ab88bc CFRunLoopRunSpecific + 460 4 CFNetwork 0x00000001aad33e68 0x1aad32000 + 7784 5 Foundation 0x00000001a7f290b0 __NSThread__start__ + 844 6 libsystem_pthread.dylib 0x00000001a785d1ec _pthread_start + 120 7 libsystem_pthread.dylib 0x00000001a7860aec thread_start + 4 Thread 4: 0 libsystem_kernel.dylib 0x00000001a7939148 __select + 8 1 libsystem_pthread.dylib 0x00000001a785d1ec _pthread_start + 120 2 libsystem_pthread.dylib 0x00000001a7860aec thread_start + 4 Thread 5: 0 libsystem_kernel.dylib 0x00000001a7938c8c __psynch_cvwait + 8 1 libc++.1.dylib 0x00000001a798a7a8 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 20 2 JavaScriptCore 0x00000001b67163fc void std::__1::condition_variable_any::wait<std::__1::unique_lock<bmalloc::Mutex> >(std::__1::unique_lock<bmalloc::Mutex>&) + 104 3 JavaScriptCore 0x00000001b6719dcc bmalloc::Scavenger::threadRunLoop() + 196 4 JavaScriptCore 0x00000001b6719ab4 bmalloc::Scavenger::threadEntryPoint(bmalloc::Scavenger*) + 8 5 JavaScriptCore 0x00000001b671adc0 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*) + 36 6 libsystem_pthread.dylib 0x00000001a785d1ec _pthread_start + 120 7 libsystem_pthread.dylib 0x00000001a7860aec thread_start + 4 Thread 6: 0 libsystem_kernel.dylib 0x00000001a79175f4 mach_msg_trap + 8 1 CoreFoundation 0x00000001a7abe068 __CFRunLoopServiceMachPort + 212 2 CoreFoundation 0x00000001a7ab9188 __CFRunLoopRun + 1440 3 CoreFoundation 0x00000001a7ab88bc CFRunLoopRunSpecific + 460 4 WebCore 0x00000001af973100 RunWebThread(void*) + 608 5 libsystem_pthread.dylib 0x00000001a785d1ec _pthread_start + 120 6 libsystem_pthread.dylib 0x00000001a7860aec thread_start + 4 Thread 7: 0 libsystem_kernel.dylib 0x00000001a79175f4 mach_msg_trap + 8 1 CoreFoundation 0x00000001a7abe068 __CFRunLoopServiceMachPort + 212 2 CoreFoundation 0x00000001a7ab9188 __CFRunLoopRun + 1440 3 CoreFoundation 0x00000001a7ab88bc CFRunLoopRunSpecific + 460 4 AVFAudio 0x00000001b4519e68 GenericRunLoopThread::Entry(void*) + 152 5 AVFAudio 0x00000001b456adf0 CAPThread::Entry(CAPThread*) + 200 6 libsystem_pthread.dylib 0x00000001a785d1ec _pthread_start + 120 7 libsystem_pthread.dylib 0x00000001a7860aec thread_start + 4 Thread 8: 0 libsystem_pthread.dylib 0x00000001a7860ad8 start_wqthread + 0 Thread 9: 0 libsystem_kernel.dylib 0x00000001a7939a74 __workq_kernreturn + 8 1 libsystem_pthread.dylib 0x00000001a7860ae0 start_wqthread + 4 Thread 10: 0 libsystem_kernel.dylib 0x00000001a7937a40 __bsdthread_ctl + 8 1 libdispatch.dylib 0x00000001a77b5d44 _dispatch_set_priority_and_mach_voucher_slow$VARIANT$mp + 156 2 libdispatch.dylib 0x00000001a77b5e7c _dispatch_set_priority_and_voucher_slow$VARIANT$mp + 108 3 libdispatch.dylib 0x00000001a77ba56c _dispatch_lane_serial_drain$VARIANT$mp + 868 4 libdispatch.dylib 0x00000001a77bae88 _dispatch_lane_invoke$VARIANT$mp + 464 5 libdispatch.dylib 0x00000001a77bbfdc _dispatch_workloop_invoke$VARIANT$mp + 1792 6 libdispatch.dylib 0x00000001a77c4340 _dispatch_workloop_worker_thread + 584 7 libsystem_pthread.dylib 0x00000001a785dfa4 _pthread_wqthread + 272 8 libsystem_pthread.dylib 0x00000001a7860ae0 start_wqthread + 4 Thread 11: 0 libsystem_kernel.dylib 0x00000001a7939170 __select_nocancel + 8 1 libsystem_dnssd.dylib 0x00000001bb6388b4 DNSServiceQueryRecord + 492 2 libsystem_info.dylib 0x00000001a79e9ea0 _mdns_query_start + 760 3 libsystem_info.dylib 0x00000001a79e8978 _mdns_search_ex + 1188 4 libsystem_info.dylib 0x00000001a79e83e4 _mdns_search + 124 5 libsystem_info.dylib 0x00000001a79e7974 mdns_addrinfo + 892 6 libsystem_info.dylib 0x00000001a79ed960 search_addrinfo + 260 7 libsystem_info.dylib 0x00000001a79f1c54 si_addrinfo + 1648 8 libsystem_info.dylib 0x00000001a79f67a8 si_list_call + 336 9 libsystem_info.dylib 0x00000001a79f6e94 si_async_launchpad + 140 10 libsystem_info.dylib 0x00000001a79f6df8 __si_async_call_block_invoke + 28 11 libdispatch.dylib 0x00000001a780d610 _dispatch_call_block_and_release + 20 12 libdispatch.dylib 0x00000001a780e184 _dispatch_client_callout + 12 13 libdispatch.dylib 0x00000001a77b6758 _dispatch_queue_override_invoke + 680 14 libdispatch.dylib 0x00000001a77c2fd0 _dispatch_root_queue_drain + 372 15 libdispatch.dylib 0x00000001a77c379c _dispatch_worker_thread2 + 124 16 libsystem_pthread.dylib 0x00000001a785df64 _pthread_wqthread + 208 17 libsystem_pthread.dylib 0x00000001a7860ae0 start_wqthread + 4 Thread 0 crashed with ARM-64 Thread State: pc: 0x00000001a7865190 fp: 0x000000016da81b50 sp: 0x000000016da81b10 x0: 0x0000000112c93740 x1: 0x00000001df1b4729 x2: 0x0000000000000001 x3: 0x0000000000000810 x4: 0x0000000000000000 x5: 0x0000000000000000 x6: 0x000000016da81a28 x7: 0x0000000000000cd0 x8: 0x00000001df1b4000 x9: 0x00000000112ce030 x10: 0x00000001ef601388 x11: 0x0000000ffffffff8 x12: 0x00000001061c5ec0 x13: 0xe0000000112ce031 x14: 0x0000000000000001 x15: 0x0000000000000036 x16: 0x00000000112ce030 x17: 0x00000001ae4c0d20 x18: 0x0000000000000000 x19: 0x0000000000000001 x20: 0x0000000281c32480 x21: 0x0000000105f50ea0 x22: 0x00000001060a3e00 x23: 0x0000000281c32480 x24: 0x0000000112c93740 x25: 0x0000000281f579e0 x26: 0x00000001ed0b9000 x27: 0xf9a3c710bbce5224 x28: 0x0000000283969380 lr: 0x00000001ae4cd150 cpsr: 0x0000000020000000
Posted Last updated
.