Help needed for Xcode crash reports

I have a published app and I received some crash reports in Xcode from devices that are using my app. I have a hard time understanding the crash reports . I can see that an objective-c exception is thrown, but the backtrace does not lead to some line in my own code as far as I understand. I have no idea how to trace this crash to my own code.


I will give the exception below, but I am especially looking for someone that can help analyzing this problem with me and teach me some things about crash logs. If you are willing to help me a little further, please contact me However any help in the comments is also very much appreciated!


Date/Time:           2018-04-02 16:14:43.43 +0100
Launch Time:         2018-04-02 16:13:40.40 +0100
OS Version:          iOS 9.3.5 (13G36)
Report Version:      105


Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note:  EXC_CORPSE_NOTIFY
Triggered by Thread:  0


Last Exception Backtrace:
0   CoreFoundation                 0x2467b916 __exceptionPreprocess + 122 (NSException.m:162)
1   libobjc.A.dylib               0x23e16e12 objc_exception_throw + 34 (objc-exception.mm:531)
2   UIKit                         0x28f66aac -[UIViewController _presentViewController:withAnimationController:completion:] + 4636 (UIViewController.m:6316)
3   UIKit                         0x28f68d20 __62-[UIViewController presentViewController:animated:completion:]_block_invoke + 332 (UIViewController.m:6814)
4   UIKit                         0x28cf9254 -[_UIViewControllerTransitionCoordinator _applyBlocks:releaseBlocks:] + 200 (UIViewControllerTransitioning.m:854)
5   UIKit                         0x28d253c8 -[_UIViewControllerTransitionContext _runAlongsideCompletions] + 124 (UIViewControllerTransitioning.m:303)
6   UIKit                         0x28d24164 -[_UIViewControllerTransitionContext completeTransition:] + 104 (UIViewControllerTransitioning.m:236)
7   Foundation                     0x24e99af0 __NSFireDelayedPerform + 464 (NSRunLoop.m:602)
8   CoreFoundation                 0x2463e58a __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 10 (CFRunLoop.c:1628)
9   CoreFoundation                 0x2463e1bc __CFRunLoopDoTimer + 932 (CFRunLoop.c:2167)
10  CoreFoundation                 0x2463c008 __CFRunLoopRun + 1480 (CFRunLoop.c:2306)
11  CoreFoundation                 0x2458b224 CFRunLoopRunSpecific + 516 (CFRunLoop.c:2814)
12  CoreFoundation                 0x2458b010 CFRunLoopRunInMode + 104 (CFRunLoop.c:2844)
13  GraphicsServices               0x25b7bac4 GSEventRunModal + 156 (GSEvent.c:2245)
14  UIKit                         0x28c5f184 UIApplicationMain + 140 (UIApplication.m:3772)
15  PlantGuide                     0xbe190 main + 48 (String+Utilities.swift:16)
16  libdyld.dylib                 0x2423386e tlv_get_addr + 42 (threadLocalHelpers.s:311)


Global Trace Buffer (reverse chronological seconds):
1.087994     AppleJPEG                 0x0000000025db8dcd [0x1817aa00] Created session
1.226235     AppleJPEG                 0x0000000025db8dcd [0x18950000] Created session
8.039378     AppleJPEG                 0x0000000025dbb393 [0x18183600] Decoding completed without errors
8.039378     AppleJPEG                 0x0000000025db9a43 [0x18183600] Options: 1x-1 [FFFFFFFF,FFFFFFFF] 00024060
8.039378     AppleJPEG                 0x0000000025db9923 [0x18183600] Decoding: C0 0x004B004B 0x000A304A 0x11111100 0x00000000 11396
8.040816     AppleJPEG                 0x0000000025dbb393 [0x18166200] Decoding completed without errors
8.043140     AppleJPEG                 0x0000000025db9a43 [0x18166200] Options: 120x92 [FFFFFFFF,FFFFFFFF] 00025060
8.043140     AppleJPEG                 0x0000000025db9923 [0x18166200] Decoding: C0 0x0078005C 0x000F304A 0x11111100 0x00000000 25426
8.043643     AppleJPEG                 0x0000000025dbb393 [0x1816dc00] Decoding completed without errors
8.046067     AppleJPEG                 0x0000000025db9a43 [0x1816dc00] Options: 1x-1 [FFFFFFFF,FFFFFFFF] 00024060
8.046067     AppleJPEG                 0x0000000025db9923 [0x1816dc00] Decoding: C0 0x004B004B 0x000A304A 0x11111100 0x00000000 12997
8.192279     AppleJPEG                 0x0000000025db8dcd [0x18183600] Created session
8.216453     AppleJPEG                 0x0000000025db8dcd [0x18166200] Created session
8.234132     AppleJPEG                 0x0000000025db8dcd [0x1816dc00] Created session
35.180092    AppleJPEG                 0x0000000025dbb393 [0x18145200] Decoding completed without errors
35.180533    AppleJPEG                 0x0000000025db9a43 [0x18145200] Options: 1x-1 [FFFFFFFF,FFFFFFFF] 00024060
35.180533    AppleJPEG                 0x0000000025db9923 [0x18145200] Decoding: C0 0x004B004B 0x000A304A 0x11111100 0x00000000 12105
35.186333    AppleJPEG                 0x0000000025db8dcd [0x18145200] Created session
35.479885    AppleJPEG                 0x0000000025dbb393 [0x18984000] Decoding completed without errors
35.483076    AppleJPEG                 0x0000000025db9a43 [0x18984000] Options: 1x-1 [FFFFFFFF,FFFFFFFF] 00024060
35.483076    AppleJPEG                 0x0000000025db9923 [0x18984000] Decoding: C0 0x004B004B 0x000A304A 0x11111100 0x00000000 11967
35.485603    AppleJPEG                 0x0000000025db8dcd [0x18984000] Created session
38.057993    AppleJPEG                 0x0000000025dbb393 [0x18122600] Decoding completed without errors
38.058877    AppleJPEG                 0x0000000025db9a43 [0x18122600] Options: 1x-1 [FFFFFFFF,FFFFFFFF] 00024060


Thread 0 name:
Thread 0 Crashed:
0   libsystem_kernel.dylib         0x24306c5c __pthread_kill + 8
1   libsystem_pthread.dylib       0x243b0732 pthread_kill + 62 (pthread.c:1247)
2   libsystem_c.dylib             0x2429b0ac abort + 108 (abort.c:91)
3   libc++abi.dylib               0x23df2ae4 abort_message + 108 (abort_message.cpp:47)
4   libc++abi.dylib               0x23e0b69e default_terminate_handler() + 266 (cxa_default_handlers.cpp:67)
5   libobjc.A.dylib               0x23e170b0 _objc_terminate() + 192 (objc-exception.mm:678)
6   libc++abi.dylib               0x23e08e16 std::__terminate(void (*)()) + 78 (cxa_handlers.cpp:67)
7   libc++abi.dylib               0x23e088f8 __cxa_rethrow + 100 (cxa_exception.cpp:480)
8   libobjc.A.dylib               0x23e16f5e objc_exception_rethrow + 42 (objc-exception.mm:581)
9   CoreFoundation                 0x2458b2ae CFRunLoopRunSpecific + 654 (CFRunLoop.c:2827)
10  CoreFoundation                 0x2458b014 CFRunLoopRunInMode + 108 (CFRunLoop.c:2844)
11  GraphicsServices               0x25b7bac8 GSEventRunModal + 160 (GSEvent.c:2245)
12  UIKit                         0x28c5f188 UIApplicationMain + 144 (UIApplication.m:3772)
13  PlantGuide                     0x000be194 main + 52 (String+Utilities.swift:16)
14  libdyld.dylib                 0x24233872 start + 2 (start_glue.s:64)


Thread 1 name:
Thread 1:
0   libsystem_kernel.dylib         0x243082f8 kevent_qos + 24
1   libdispatch.dylib             0x241fdd60 _dispatch_mgr_invoke + 256 (source.c:2542)
2   libdispatch.dylib             0x241fdabe _dispatch_mgr_thread$VARIANT$mp + 38 (source.c:2573)


Thread 2:
0   libsystem_kernel.dylib         0x24307864 __workq_kernreturn + 8
1   libsystem_pthread.dylib       0x243adb34 _pthread_wqthread + 1036 (pthread.c:1999)
2   libsystem_pthread.dylib       0x243ad718 start_wqthread + 8 (pthread_asm.s:147)


Thread 3:
0   libsystem_kernel.dylib         0x24307864 __workq_kernreturn + 8
1   libsystem_pthread.dylib       0x243adb34 _pthread_wqthread + 1036 (pthread.c:1999)
2   libsystem_pthread.dylib       0x243ad718 start_wqthread + 8 (pthread_asm.s:147)


Thread 4:
0   libsystem_kernel.dylib         0x24307864 __workq_kernreturn + 8
1   libsystem_pthread.dylib       0x243adb34 _pthread_wqthread + 1036 (pthread.c:1999)
2   libsystem_pthread.dylib       0x243ad718 start_wqthread + 8 (pthread_asm.s:147)


Thread 5:
0   libsystem_kernel.dylib         0x24307864 __workq_kernreturn + 8
1   libsystem_pthread.dylib       0x243adb34 _pthread_wqthread + 1036 (pthread.c:1999)
2   libsystem_pthread.dylib       0x243ad718 start_wqthread + 8 (pthread_asm.s:147)


Thread 0 crashed with ARM Thread State (32-bit):
    r0: 0x00000000    r1: 0x00000000      r2: 0x00000000      r3: 0x2428db1d
    r4: 0x00000006    r5: 0x3b5cb000      r6: 0x3a80b304      r7: 0x002544e8
    r8: 0x1e77cb70    r9: 0x23e0c8fd     r10: 0x86ee5ab2     r11: 0x1e77cb94
    ip: 0x00000148    sp: 0x002544dc      lr: 0x243b0733      pc: 0x24306c5c
  cpsr: 0x00000010

Replies

It should be possible to work out the immediate cause of this exception but I’ll need the full crash report. The snippet you posted is missing the Binary Images section, which is crucial.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"