I have developed and distributed a Mac app on App Store. From the Organizer in Xcode, I noticed that it has a lot of crashes. And 90% of these crashes is the same crash as following:
Thread 0 Crashed: 0 libsystem_kernel.dylib 0x00007ff81ce27112 __pthread_kill + 10 1 libsystem_pthread.dylib 0x00007ff81ce5d233 pthread_kill + 263 2 libsystem_c.dylib 0x00007ff81cda9d10 abort + 123 3 libc++abi.dylib 0x00007ff81ce1a0b2 abort_message + 241 4 libc++abi.dylib 0x00007ff81ce0b1fd demangling_terminate_handler() + 266 5 libobjc.A.dylib 0x00007ff81cd08509 _objc_terminate() + 96 6 libc++abi.dylib 0x00007ff81ce194d7 std::__terminate(void (*)()) + 8 7 libc++abi.dylib 0x00007ff81ce19488 std::terminate() + 56 8 libdispatch.dylib 0x00007ff81cca6cdd _dispatch_client_callout + 28 9 libdispatch.dylib 0x00007ff81cca9746 _dispatch_continuation_pop + 460 10 libdispatch.dylib 0x00007ff81ccbaa5a _dispatch_source_invoke + 2150 11 libdispatch.dylib 0x00007ff81ccb3518 _dispatch_main_queue_callback_4CF + 759 12 CoreFoundation 0x00007ff81cf625d9 CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 9 13 CoreFoundation 0x00007ff81cf236ae __CFRunLoopRun + 2752 14 CoreFoundation 0x00007ff81cf2252d CFRunLoopRunSpecific + 563 15 HIToolbox 0x00007ff825b403e1 RunCurrentEventLoopInMode + 292 16 HIToolbox 0x00007ff825b40137 ReceiveNextEventCommon + 587 17 HIToolbox 0x00007ff825b3fed5 _BlockUntilNextEventMatchingListInModeWithFilter + 70 18 AppKit 0x00007ff81f94d8f0 _DPSNextEvent + 886 19 AppKit 0x00007ff81f94bf5c -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1411 20 AppKit 0x00007ff81f93e359 -[NSApplication run] + 586 21 AppKit 0x00007ff81f9121f8 NSApplicationMain + 816
How to fix this issue?
Your crash reports all have a crashing thread backtrace like this:
Thread 0 Crashed:
0 libsystem_kernel.dylib … __pthread_kill + 8
1 libsystem_pthread.dylib … pthread_kill + 288 (pthread.c:1681)
2 libsystem_c.dylib … abort + 180 (abort.c:118)
3 libc++abi.dylib … abort_message + 132 (abort_message.cpp:78)
4 libc++abi.dylib … demangling_terminate_handler() + 348 (cxa_default_handlers.cpp:77)
5 libobjc.A.dylib … _objc_terminate() + 144 (objc-exception.mm:496)
6 libc++abi.dylib … std::__terminate(void (*)()) + 16 (cxa_handlers.cpp:59)
7 libc++abi.dylib … std::terminate() + 108 (cxa_handlers.cpp:88)
8 libdispatch.dylib … _dispatch_client_callout + 40 (object.m:564)
9 libdispatch.dylib … _dispatch_continuation_pop + 600 (queue.c:306)
10 libdispatch.dylib … _dispatch_source_latch_and_call + 420 (source.c:596)
11 libdispatch.dylib … _dispatch_source_invoke + 832 (source.c:961)
12 libdispatch.dylib … _dispatch_main_queue_drain + 744 (queue.c:7813)
13 libdispatch.dylib … _dispatch_main_queue_callback_4CF + 44 (queue.c:7973)
14 CoreFoundation … __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 16 (CFRunLoop.c:1780)
15 CoreFoundation … __CFRunLoopRun + 1996 (CFRunLoop.c:3149)
16 CoreFoundation … CFRunLoopRunSpecific + 608 (CFRunLoop.c:3420)
17 HIToolbox … RunCurrentEventLoopInMode + 292 (EventLoop.c:455)
18 HIToolbox … ReceiveNextEventCommon + 648 (EventBlocking.c:384)
19 HIToolbox … _BlockUntilNextEventMatchingListInModeWithFilter + 76 (EventBlocking.c:171)
20 AppKit … _DPSNextEvent + 660 (CGDPSReplacement.m:806)
21 AppKit … -[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:deque…
22 AppKit … -[NSApplication run] + 476 (NSApplication.m:3509)
23 AppKit … NSApplicationMain + 880 (NSApplication.m:10132)
24 dyld … start + 2360 (dyldMain.cpp:1269)
Frames 7 through 0 indicate that your app crashed due to an unhandled language exception. Usually when this happens the crash report includes a Last Exception Backtrace
section that shows the source of the exception. That’s not present here.
The most common reason for this to be missing is that this is a C++ exception. See here for more details.
Does your app make a lot of use of C++?
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"