I have a crash that only occurs on Apple review: when they try to login the app crashes.
I tested it with real iPhones in test environment and in Ad-hoc several times and the crash never occurred before.
After the review I made some research and I found some similar things and I have been trying out but I can't event simulate the same issue here (I also tried to change Xcode debug to release and he crash does not happen).
Here is what they said it happened at the review:
Upon further review and a fresh install of your app we continue to
find that your app crashed on an iPad running iOS 8.4 and iPhone
running iOS 8.4 when we:
1. Launch App
2. Input provided demo account credentials
3. Tap "Login"
4. Application crashes.
Here is the symbolicated log:
Last Exception Backtrace:
0 CoreFoundation 0x1820ac2d8 __exceptionPreprocess + 132
1 libobjc.A.dylib 0x193c7c0e4 objc_exception_throw + 60
2 CoreFoundation 0x1820ac198 +[NSException raise:format:arguments:] + 116
3 Foundation 0x182f60ed4 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 112
4 UIKit 0x186b4f1e0 -[UIKeyboardTaskQueue waitUntilAllTasksAreFinished] + 184
5 UIKit 0x186b4f8c8 -[UIKeyboardImpl setDelegate:force:] + 636
6 UIKit 0x186b48b3c -[UIPeripheralHost(UIKitInternal) _reloadInputViewsForResponder:] + 1212
7 UIKit 0x186c2709c -[UIResponder _finishResignFirstResponder] + 184
8 UIKit 0x187277730 -[UITextField _finishResignFirstResponder] + 56
9 UIKit 0x186bced5c -[UIResponder resignFirstResponder] + 320
10 UIKit 0x186c508bc -[UITextField resignFirstResponder] + 124
11 UIKit 0x186d4b170 -[UITextField _setEnabled:animated:] + 128
12 PioNET 0x100051110 -[LoginViewController startLogging] (LoginViewController.m:667)
13 Foundation 0x182faddb8 __NSThread__main__ + 1072
14 libsystem_pthread.dylib 0x1944dbdc8 _pthread_body + 164
15 libsystem_pthread.dylib 0x1944dbd24 _pthread_start + 160
16 libsystem_pthread.dylib 0x1944d8ef8 thread_start + 4
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0:
0 PioNET 0x00000001000e3274 +[AFNetworkReachabilityManager sharedManager] (AFNetworkReachabilityManager.m:113)
1 PioNET 0x00000001000dee9c +[AFHTTPRequestOperationManager manager] (AFHTTPRequestOperationManager.m:41)
2 PioNET 0x000000010004db98 -[LoginViewController authentication:andPassword:] (LoginViewController.m:247)
3 PioNET 0x0000000100050cfc -[LoginViewController loginProcess:andPassword:] (LoginViewController.m:641)
4 PioNET 0x00000001000514b4 -[LoginViewController login:] (LoginViewController.m:692)
5 UIKit 0x0000000186b59394 -[UIApplication sendAction:to:from:forEvent:] + 92
6 UIKit 0x0000000186b42470 -[UIControl _sendActionsForEvents:withEvent:] + 608
7 UIKit 0x0000000186b58d30 -[UIControl touchesEnded:withEvent:] + 588
8 UIKit 0x0000000186b589bc -[UIWindow _sendTouchesForEvent:] + 696
9 UIKit 0x0000000186b51ef8 -[UIWindow sendEvent:] + 680
10 UIKit 0x0000000186b2511c -[UIApplication sendEvent:] + 260
11 UIKit 0x0000000186dc62b4 _UIApplicationHandleEventFromQueueEvent + 15420
12 UIKit 0x0000000186b23630 _UIApplicationHandleEventQueue + 1712
13 CoreFoundation 0x000000018206423c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 20
14 CoreFoundation 0x00000001820634e0 __CFRunLoopDoSources0 + 260
15 CoreFoundation 0x0000000182061590 __CFRunLoopRun + 708
16 CoreFoundation 0x0000000181f8d2d0 CFRunLoopRunSpecific + 392
17 GraphicsServices 0x000000018b8bb6f8 GSEventRunModal + 164
18 UIKit 0x0000000186b8af3c UIApplicationMain + 1484
19 PioNET 0x00000001000709b0 main (main.m:14)
20 libdyld.dylib 0x0000000194326a04 start + 0
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x0000000194424c24 kevent64 + 8
1 libdispatch.dylib 0x0000000194309e6c _dispatch_mgr_invoke + 272
2 libdispatch.dylib 0x00000001942fb998 _dispatch_mgr_thread + 48
Thread 2:
0 libsystem_kernel.dylib 0x000000019443fc78 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x00000001944d92d8 _pthread_wqthread + 988
2 libsystem_pthread.dylib 0x00000001944d8eec start_wqthread + 0
Thread 3:
0 libsystem_kernel.dylib 0x000000019443fc78 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x00000001944d92d8 _pthread_wqthread + 988
2 libsystem_pthread.dylib 0x00000001944d8eec start_wqthread + 0
Thread 4:
0 libsystem_kernel.dylib 0x000000019443fc78 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x00000001944d92d8 _pthread_wqthread + 988
2 libsystem_pthread.dylib 0x00000001944d8eec start_wqthread + 0
Thread 5:
0 libsystem_kernel.dylib 0x000000019443fc78 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x00000001944d92d8 _pthread_wqthread + 988
2 libsystem_pthread.dylib 0x00000001944d8eec start_wqthread + 0
Thread 6:
0 libsystem_kernel.dylib 0x000000019443fc78 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x00000001944d92d8 _pthread_wqthread + 988
2 libsystem_pthread.dylib 0x00000001944d8eec start_wqthread + 0
Thread 7 name: com.apple.NSURLConnectionLoader
Thread 7:
0 libsystem_kernel.dylib 0x0000000194424e0c mach_msg_trap + 8
1 libsystem_kernel.dylib 0x0000000194424c84 mach_msg + 68
2 CoreFoundation 0x0000000182063720 __CFRunLoopServiceMachPort + 196
3 CoreFoundation 0x0000000182061674 __CFRunLoopRun + 936
4 CoreFoundation 0x0000000181f8d2d0 CFRunLoopRunSpecific + 392
5 CFNetwork 0x0000000181a6a590 +[NSURLConnection(Loader) _resourceLoadLoop:] + 436
6 Foundation 0x0000000182faddb4 __NSThread__main__ + 1068
7 libsystem_pthread.dylib 0x00000001944dbdc4 _pthread_body + 160
8 libsystem_pthread.dylib 0x00000001944dbd20 _pthread_start + 156
9 libsystem_pthread.dylib 0x00000001944d8ef4 thread_start + 0
Thread 8 name: com.apple.CFSocket.private
Thread 8:
0 libsystem_kernel.dylib 0x000000019443f498 __select + 8
1 CoreFoundation 0x0000000182069124 __CFSocketManager + 668
2 libsystem_pthread.dylib 0x00000001944dbdc4 _pthread_body + 160
3 libsystem_pthread.dylib 0x00000001944dbd20 _pthread_start + 156
4 libsystem_pthread.dylib 0x00000001944d8ef4 thread_start + 0
Thread 9:
0 libsystem_kernel.dylib 0x0000000194424e0c mach_msg_trap + 8
1 libsystem_kernel.dylib 0x0000000194424c84 mach_msg + 68
2 CoreFoundation 0x0000000182063720 __CFRunLoopServiceMachPort + 196
3 CoreFoundation 0x0000000182061674 __CFRunLoopRun + 936
4 CoreFoundation 0x0000000181f8d2d0 CFRunLoopRunSpecific + 392
5 CoreFoundation 0x0000000181fdf358 CFRunLoopRun + 108
6 CoreMotion 0x00000001829982b8 0x182950000 + 295608
7 libsystem_pthread.dylib 0x00000001944dbdc4 _pthread_body + 160
8 libsystem_pthread.dylib 0x00000001944dbd20 _pthread_start + 156
9 libsystem_pthread.dylib 0x00000001944d8ef4 thread_start + 0
Thread 10 Crashed:
0 libsystem_kernel.dylib 0x000000019443f270 __pthread_kill + 8
1 libsystem_pthread.dylib 0x00000001944dd16c pthread_kill + 108
2 libsystem_c.dylib 0x00000001943b6b14 abort + 108
3 libc++abi.dylib 0x0000000193449414 abort_message + 112
4 libc++abi.dylib 0x0000000193468b88 default_terminate_handler() + 300
5 libobjc.A.dylib 0x0000000193c7c3bc _objc_terminate() + 124
6 libc++abi.dylib 0x0000000193465bb0 std::__terminate(void (*)()) + 12
7 libc++abi.dylib 0x0000000193465474 __cxa_throw + 132
8 libobjc.A.dylib 0x0000000193c7c200 objc_exception_throw + 344
9 CoreFoundation 0x00000001820ac194 +[NSException raise:format:arguments:] + 112
10 Foundation 0x0000000182f60ed0 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 108
11 UIKit 0x0000000186b4f1dc -[UIKeyboardTaskQueue waitUntilAllTasksAreFinished] + 180
12 UIKit 0x0000000186b4f8c4 -[UIKeyboardImpl setDelegate:force:] + 632
13 UIKit 0x0000000186b48b38 -[UIPeripheralHost(UIKitInternal) _reloadInputViewsForResponder:] + 1208
14 UIKit 0x0000000186c27098 -[UIResponder _finishResignFirstResponder] + 180
15 UIKit 0x000000018727772c -[UITextField _finishResignFirstResponder] + 52
16 UIKit 0x0000000186bced58 -[UIResponder resignFirstResponder] + 316
17 UIKit 0x0000000186c508b8 -[UITextField resignFirstResponder] + 120
18 UIKit 0x0000000186d4b16c -[UITextField _setEnabled:animated:] + 124
19 PioNET 0x000000010005110c -[LoginViewController startLogging] (LoginViewController.m:667)
20 Foundation 0x0000000182faddb4 __NSThread__main__ + 1068
21 libsystem_pthread.dylib 0x00000001944dbdc4 _pthread_body + 160
22 libsystem_pthread.dylib 0x00000001944dbd20 _pthread_start + 156
23 libsystem_pthread.dylib 0x00000001944d8ef4 thread_start + 0
Thread 10 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000000 x1: 0x0000000000000000 x2: 0x0000000000000000 x3: 0x00000001700ed0b7
x4: 0x0000000193469dfd x5: 0x0000000105476460 x6: 0x000000000000006e x7: 0x0000000000000fa0
x8: 0x0000000008000000 x9: 0x0000000004000000 x10: 0x0000000000000200 x11: 0x0000000000000000
x12: 0x0000000000000000 x13: 0x0000000000000000 x14: 0x0000000000000002 x15: 0x0000000000000000
x16: 0x0000000000000148 x17: 0x0000000000000000 x18: 0x0000000000000000 x19: 0x0000000000000006
x20: 0x0000000105478000 x21: 0x00000001983f1ce8 x22: 0x0000000170010360 x23: 0x0000000000000000
x24: 0x0000000000000000 x25: 0x0000000000000000 x26: 0x0000000187316681 x27: 0x0000000194c08000
x28: 0x0000000000000110 fp: 0x00000001054763c0 lr: 0x00000001944dd170
sp: 0x00000001054763a0 pc: 0x000000019443f270 cpsr: 0x00000000
Do you use some third party control? It's not rare some controls crash when compiled for release.
You can try to turn off the code optimizations for the release build and test if it crashes.
Looks like it crashed at
0 PioNET 0x00000001000e3274 +[AFNetworkReachabilityManager sharedManager] (AFNetworkReachabilityManager.m:113)
That class, AFNetworkReachabilityManager, has something to do with if the network is reachable or not. Have you tried testing your application under different network situations, like no internet or poor internet connectivity? That might be where they're seeing the crash.
Related
I would be so appreciated if anybody could spend their time to help me!!!
What I am facing now
I was trying to present an view controller from extension and the app crashed without leading me the line of error code.
What I tried:
I Added many breakpoints, found that if I don't present the table view controller to show the correct info, no crash. But after the presentation, after the info is loaded rightly in the table, seconds later, crash happens.
What I can provide:
I can provide the full crash report:
Incident Identifier: 03B53A6D-E069-4C4B-98C0-CB61C8C1A688
CrashReporter Key: 1dd64f8867f0eda63dfc5248be178fbebdd71653
Hardware Model: iPhone9,2
Process: EverykeyAutofillExtension [98811]
Path: /private/var/containers/Bundle/Application/63F02B78-71D9-405B-AC3F-314868CA262D/Privacy.app/PlugIns/PrivacyExtension.appex/EverykeyAutofillExtension
Identifier: comPrivacy.ios.PrivacyAutofillExtension
Version: 12 (2.4.0)
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd [1]
Coalition: com.Privacy.ios.PrivacyAutofillExtension [24965]
Date/Time: 2020-08-26 14:20:40.7959 -0400
Launch Time: 2020-08-26 14:20:03.4675 -0400
OS Version: iPhone OS 13.5.1 (17F80)
Release Type: User
Baseband Version: 7.60.01
Report Version: 104
Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000001, 0x000000019819e9d0
Termination Signal: Trace/BPT trap: 5
Termination Reason: Namespace SIGNAL, Code 0x5
Terminating Process: exc handler [98811]
Triggered by Thread: 1
Last Exception Backtrace:
0 CoreFoundation 0x19853d794 __exceptionPreprocess + 224
1 libobjc.A.dylib 0x19825fbcc objc_exception_throw + 55
2 Foundation 0x198a151fc _AssertAutolayoutOnAllowedThreadsOnly + 419
3 Foundation 0x19882207c -[NSISEngine _optimizeWithoutRebuilding] + 67
4 Foundation 0x198821f98 -[NSISEngine optimize] + 111
5 Foundation 0x198821c0c -[NSISEngine performPendingChangeNotifications] + 111
6 UIKitCore 0x19ca97e88 -[UIView+ 15605384 (CALayerDelegate) _wantsReapplicationOfAutoLayoutWithLayoutDirtyOnEntry:] + 171
7 UIKitCore 0x19ca988c4 -[UIView+ 15608004 (CALayerDelegate) layoutSublayersOfLayer:] + 2247
8 QuartzCore 0x19f02b724 -[CALayer layoutSublayers] + 283
9 QuartzCore 0x19f03187c CA::Layer::layout_if_needed+ 1407100 (CA::Transaction*) + 467
10 QuartzCore 0x19f03c3c0 CA::Layer::layout_and_display_if_needed+ 1450944 (CA::Transaction*) + 139
11 QuartzCore 0x19ef84f1c CA::Context::commit_transaction+ 700188 (CA::Transaction*, double) + 295
12 QuartzCore 0x19efae8bc CA::Transaction::commit+ 870588 () + 675
13 QuartzCore 0x19efaf85c CA::Transaction::release_thread+ 874588 (void*) + 227
14 libsystem_pthread.dylib 0x198256f8c _pthread_tsd_cleanup + 579
15 libsystem_pthread.dylib 0x198253df4 _pthread_exit + 79
16 libsystem_pthread.dylib 0x198254e64 _pthread_wqthread_exit + 95
17 libsystem_pthread.dylib 0x198254c04 _pthread_wqthread + 415
18 libsystem_pthread.dylib 0x198257740 start_wqthread + 7
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0:
0 libsystem_kernel.dylib 0x0000000198311198 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x000000019831060c mach_msg + 72
2 CoreFoundation 0x00000001984bb468 __CFRunLoopServiceMachPort + 148
3 CoreFoundation 0x00000001984b649c __CFRunLoopRun + 1160
4 CoreFoundation 0x00000001984b5ce8 CFRunLoopRunSpecific + 424
5 GraphicsServices 0x00000001a260038c GSEventRunModal + 160
6 UIKitCore 0x000000019c5e4444 UIApplicationMain + 1932
7 libxpc.dylib 0x00000001981218fc _xpc_objc_main.cold.3 + 208
8 libxpc.dylib 0x000000019810d4f0 _xpc_objc_main + 212
9 libxpc.dylib 0x000000019810fb4c xpc_main + 148
10 Foundation 0x0000000198834534 +[NSXPCListener serviceListener] + 0
11 PlugInKit 0x00000001a599fd50 0x1a5989000 + 93520
12 PlugInKit 0x00000001a599fa68 0x1a5989000 + 92776
13 PlugInKit 0x00000001a59a015c 0x1a5989000 + 94556
14 Foundation 0x0000000198a0d2c0 NSExtensionMain + 64
15 libdyld.dylib 0x000000019833d8f0 start + 4
Thread 1 Crashed:
0 libsystem_c.dylib 0x000000019819e9d0 __abort + 144
1 libsystem_c.dylib 0x000000019819e9d0 __abort + 144
2 libsystem_c.dylib 0x000000019819e940 __abort + 0
3 libc++abi.dylib 0x0000000198306cc0 __cxxabiv1::__aligned_malloc_with_fallback+ 76992 (unsigned long) + 0
4 libc++abi.dylib 0x00000001982f8e10 demangling_unexpected_handler+ 19984 () + 0
5 libobjc.A.dylib 0x000000019825fe80 _objc_terminate+ 24192 () + 124
6 libc++abi.dylib 0x000000019830614c std::__terminate(void (*)+ 74060 ()) + 16
7 libc++abi.dylib 0x0000000198308bd8 __cxa_get_exception_ptr + 0
8 libc++abi.dylib 0x0000000198308b98 __cxxabiv1::exception_cleanup_func+ 84888 (_Unwind_Reason_Code, _Unwind_Exception*) + 0
9 libobjc.A.dylib 0x000000019825fcf8 _objc_exception_destructor+ 23800 (void*) + 0
10 Foundation 0x0000000198a151fc -[NSISEngine tryToOptimizeReturningMutuallyExclusiveConstraints] + 0
11 Foundation 0x000000019882207c -[NSISEngine _optimizeWithoutRebuilding] + 68
12 Foundation 0x0000000198821f98 -[NSISEngine optimize] + 112
13 Foundation 0x0000000198821c0c -[NSISEngine performPendingChangeNotifications] + 112
14 UIKitCore 0x000000019ca97e88 -[UIView+ 15605384 (CALayerDelegate) _wantsReapplicationOfAutoLayoutWithLayoutDirtyOnEntry:] + 172
15 UIKitCore 0x000000019ca988c4 -[UIView+ 15608004 (CALayerDelegate) layoutSublayersOfLayer:] + 2248
16 QuartzCore 0x000000019f02b724 -[CALayer layoutSublayers] + 284
17 QuartzCore 0x000000019f03187c CA::Layer::layout_if_needed+ 1407100 (CA::Transaction*) + 468
18 QuartzCore 0x000000019f03c3c0 CA::Layer::layout_and_display_if_needed+ 1450944 (CA::Transaction*) + 140
19 QuartzCore 0x000000019ef84f1c CA::Context::commit_transaction+ 700188 (CA::Transaction*, double) + 296
20 QuartzCore 0x000000019efae8bc CA::Transaction::commit+ 870588 () + 676
21 QuartzCore 0x000000019efaf85c CA::Transaction::release_thread+ 874588 (void*) + 228
22 libsystem_pthread.dylib 0x0000000198256f8c _pthread_tsd_cleanup + 580
23 libsystem_pthread.dylib 0x0000000198253df4 _pthread_exit + 80
24 libsystem_pthread.dylib 0x0000000198254e64 _pthread_wqthread_legacy_worker_wrap + 0
25 libsystem_pthread.dylib 0x0000000198254c04 _pthread_wqthread + 416
26 libsystem_pthread.dylib 0x0000000198257740 start_wqthread + 8
Thread 2 name: com.apple.uikit.eventfetch-thread
Thread 2:
0 libsystem_kernel.dylib 0x0000000198311198 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x000000019831060c mach_msg + 72
2 CoreFoundation 0x00000001984bb468 __CFRunLoopServiceMachPort + 148
3 CoreFoundation 0x00000001984b649c __CFRunLoopRun + 1160
4 CoreFoundation 0x00000001984b5ce8 CFRunLoopRunSpecific + 424
5 Foundation 0x00000001987f901c -[NSRunLoop+ 32796 (NSRunLoop) runMode:beforeDate:] + 228
6 Foundation 0x00000001987f8efc -[NSRunLoop+ 32508 (NSRunLoop) runUntilDate:] + 88
7 UIKitCore 0x000000019c6875dc -[UIEventFetcher threadMain] + 152
8 Foundation 0x0000000198927e20 __NSThread__start__ + 848
9 libsystem_pthread.dylib 0x0000000198253d98 _pthread_start + 156
10 libsystem_pthread.dylib 0x000000019825774c thread_start + 8
Thread 3:
0 libsystem_pthread.dylib 0x0000000198257738 start_wqthread + 0
Thread 4 name: com.apple.NSURLConnectionLoader
Thread 4:
0 libsystem_kernel.dylib 0x0000000198311198 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x000000019831060c mach_msg + 72
2 CoreFoundation 0x00000001984bb468 __CFRunLoopServiceMachPort + 148
3 CoreFoundation 0x00000001984b649c __CFRunLoopRun + 1160
4 CoreFoundation 0x00000001984b5ce8 CFRunLoopRunSpecific + 424
5 CFNetwork 0x000000019b776894 0x19b775000 + 6292
6 Foundation 0x0000000198927e20 __NSThread__start__ + 848
7 libsystem_pthread.dylib 0x0000000198253d98 _pthread_start + 156
8 libsystem_pthread.dylib 0x000000019825774c thread_start + 8
Thread 5:
0 libsystem_pthread.dylib 0x0000000198257738 start_wqthread + 0
Thread 6:
0 libsystem_pthread.dylib 0x0000000198257738 start_wqthread + 0
Thread 7:
0 libsystem_pthread.dylib 0x0000000198257738 start_wqthread + 0
Thread 1 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000000 x1: 0x0000000000000000 x2: 0x0000000000000000 x3: 0x0000000000000001
x4: 0x0000000000000000 x5: 0x0000000000989680 x6: 0x000000000000006e x7: 0xffffffffffffffec
x8: 0x00000000ffffffe7 x9: 0x00000001e565b228 x10: 0x00000000000003e8 x11: 0x000000000000000b
x12: 0x00000001d388d080 x13: 0x0000000000000001 x14: 0x0000000000000010 x15: 0x0000000000000007
x16: 0x0000000000000030 x17: 0x0000000000000000 x18: 0x0000000000000000 x19: 0x000000016fa62b58
x20: 0x00000001e2581810 x21: 0x000000016fa62c10 x22: 0x0000000281b4ce40 x23: 0x00000001d3b33000
x24: 0x0000000000000001 x25: 0x0000000000000068 x26: 0x000000000000009c x27: 0x0000000000000068
x28: 0x000000002b310019 fp: 0x000000016fa62b70 lr: 0x000000019819e9d0
sp: 0x000000016fa62b40 pc: 0x000000019819e9d0 cpsr: 0x40000000
esr: 0xf2000001 Address size fault
Look, Your app crashed at:
Triggered by Thread: 1
and use
[CALayer layoutSublayers]
looks like, You're updating UI not in main thread somewhere
Whenever you see something like this
1 libobjc.A.dylib 0x19825fbcc objc_exception_throw + 55
You should go to the breakpoints tab in Xcode, click the + button, then Exception Breakpoint...
This will create a breakpoint called "All Objective-C exceptions". This will pause the debugger at the moment the exception is thrown, letting you see the exact misuse of Apple's API that is causing the exception.
I had an app in the App Store with lots of crashes, but I can't reproduce it myself.
I have lots of crash logs but they don't contain a backtrace making it difficult to diagnose the issue.
The crash logs show CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER which possibly could be caused by a notification being sent to a deallocated observer according to other questions on SO.
However the app only runs on iOS 10+, and according to Apple its not necessary to de-register observers from iOS 9 onwards unless they are block observers. Which my app doesn't use so that can't be the cause as far as my own apps notifications are concerned.
Incident Identifier: 77AB1312-9C1F-4BC1-957E-B742856DC635
CrashReporter Key: 6ad59ac64c53d2fc92208e8df23d4ddc8fed39fd
Hardware Model: iPhone10,3
Process: My App [378]
Path: /private/var/containers/Bundle/Application/99C2E2C8-9655-4D07-9608-870B5DD17C21/My app.app/My app
Identifier: com.myapp
OS Version: iPhone OS 10.3.2 (14F89)
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd [1]
Coalition: com.myapp[498]
Date/Time: 2018-06-06 00:18:34.2085 -0700
Launch Time: 2018-06-06 00:17:39.1406 -0700
Baseband Version: 2.03.00
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Triggered by Thread: 0
Thread 0 name:
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x000000018ec4d014 __pthread_kill + 8
1 libsystem_pthread.dylib 0x000000018ed17264 pthread_kill + 112 (pthread.c:1366)
2 libsystem_c.dylib 0x000000018ebc19c4 abort + 140 (abort.c:91)
3 libswiftCore.dylib 0x0000000100ad976c 0x1007ec000 + 3069804
4 libswiftCore.dylib 0x0000000100b0614c 0x1007ec000 + 3252556
5 CoreFoundation 0x000000018fc56f54 ___forwarding___ + 916 (NSForwarding.m:3126)
6 CoreFoundation 0x000000018fb52d4c _CF_forwarding_prep_0 + 92
7 CoreFoundation 0x000000018fbed5f4 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 20 (CFNotificationCenter.c:650)
8 CoreFoundation 0x000000018fbecd08 _CFXRegistrationPost + 400 (CFNotificationCenter.c:164)
9 CoreFoundation 0x000000018fbeca84 ___CFXNotificationPost_block_invoke + 60 (CFNotificationCenter.c:1031)
10 CoreFoundation 0x000000018fc5b7a8 -[_CFXNotificationRegistrar find:object:observer:enumerator:] + 1412 (CFXNotificationRegistrar.m:163)
11 CoreFoundation 0x000000018fb3095c _CFXNotificationPost + 376 (CFNotificationCenter.c:1028)
12 Foundation 0x0000000190642930 -[NSNotificationCenter postNotificationName:object:userInfo:] + 68 (NSNotification.m:482)
13 UIKit 0x0000000195e07ea8 -[UIApplication _stopDeactivatingForReason:] + 1124 (UIApplication.m:1534)
14 UIKit 0x0000000196005b4c __62-[UIApplication _sceneSettingsPostLifecycleEventDiffInspector]_block_invoke.1259 + 124 (UIApplication.m:3247)
15 FrontBoardServices 0x00000001917e4be8 __52-[FBSSettingsDiffInspector inspectDiff:withContext:]_block_invoke.27 + 204 (FBSSettingsDiffInspector.m:46)
16 Foundation 0x00000001906fc7fc __NSIndexSetEnumerate + 724 (NSIndexSet.m:1347)
17 BaseBoard 0x0000000191757510 -[BSSettingsDiff inspectChangesWithBlock:] + 104 (BSSettingsDiff.m:187)
18 FrontBoardServices 0x00000001917dece4 -[FBSSettingsDiff inspectOtherChangesWithBlock:] + 88 (FBSSettingsDiff.m:65)
19 FrontBoardServices 0x00000001917e49bc -[FBSSettingsDiffInspector inspectDiff:withContext:] + 280 (FBSSettingsDiffInspector.m:44)
20 UIKit 0x00000001960064d4 __70-[UIApplication scene:didUpdateWithDiff:transitionContext:completion:]_block_invoke + 196 (UIApplication.m:3346)
21 UIKit 0x0000000196006124 -[UIApplication scene:didUpdateWithDiff:transitionContext:completion:] + 892 (UIApplication.m:3357)
22 UIKit 0x00000001963407c8 -[UIApplicationSceneClientAgent scene:handleEvent:withCompletion:] + 464 (UIApplicationSceneClientAgent.m:74)
23 FrontBoardServices 0x00000001917ce22c __80-[FBSSceneImpl updater:didUpdateSettings:withDiff:transitionContext:completion:]_block_invoke.376 + 208 (FBSSceneImpl.m:598)
24 FrontBoardServices 0x00000001917fb884 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 36 (FBSSerialQueue.m:158)
25 FrontBoardServices 0x00000001917fb6f0 -[FBSSerialQueue _performNext] + 176 (FBSSerialQueue.m:177)
26 FrontBoardServices 0x00000001917fbaa0 -[FBSSerialQueue _performNextFromRunLoopSource] + 56 (FBSSerialQueue.m:206)
27 CoreFoundation 0x000000018fc0142c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24 (CFRunLoop.c:1943)
28 CoreFoundation 0x000000018fc00d9c __CFRunLoopDoSources0 + 540 (CFRunLoop.c:1989)
29 CoreFoundation 0x000000018fbfe9a8 __CFRunLoopRun + 744 (CFRunLoop.c:2821)
30 CoreFoundation 0x000000018fb2eda4 CFRunLoopRunSpecific + 424 (CFRunLoop.c:3113)
31 GraphicsServices 0x0000000191598074 GSEventRunModal + 100 (GSEvent.c:2245)
32 UIKit 0x0000000195de9058 UIApplicationMain + 208 (UIApplication.m:4089)
33 My App 0x00000001000be2e4 main + 56 (MyFile.swift:17)
34 libdyld.dylib 0x000000018eb3d59c start + 4
hread 1:
0 libsystem_pthread.dylib 0x0000000220f92064 start_wqthread + 0
Thread 2 name:
Thread 2:
0 libsystem_kernel.dylib 0x0000000220ef6ac8 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x0000000220ef6940 mach_msg + 72 (mach_msg.c:103)
2 CoreFoundation 0x000000022131d2f0 __CFRunLoopServiceMachPort + 236 (CFRunLoop.c:2615)
3 CoreFoundation 0x000000022131af80 __CFRunLoopRun + 1404 (CFRunLoop.c:2971)
4 CoreFoundation 0x0000000221254abc CFRunLoopRunSpecific + 436 (CFRunLoop.c:3247)
5 Foundation 0x0000000221cd0544 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 300 (NSRunLoop.m:367)
6 Foundation 0x0000000221cd03f0 -[NSRunLoop(NSRunLoop) runUntilDate:] + 148 (NSRunLoop.m:411)
7 UIKitCore 0x000000024c433a7c -[UIEventFetcher threadMain] + 136 (UIEventFetcher.m:524)
8 Foundation 0x0000000221de0a94 __NSThread__start__ + 1040 (NSThread.m:1175)
9 libsystem_pthread.dylib 0x0000000220f931e4 _pthread_body + 128 (pthread.c:804)
10 libsystem_pthread.dylib 0x0000000220f93164 _pthread_start + 40 (pthread.c:827)
11 libsystem_pthread.dylib 0x0000000220f92070 thread_start + 4
Thread 3 name:
Thread 3:
0 libsystem_kernel.dylib 0x0000000220ef6ac8 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x0000000220ef6940 mach_msg + 72 (mach_msg.c:103)
2 CoreFoundation 0x000000022131d2f0 __CFRunLoopServiceMachPort + 236 (CFRunLoop.c:2615)
3 CoreFoundation 0x000000022131af80 __CFRunLoopRun + 1404 (CFRunLoop.c:2971)
4 CoreFoundation 0x0000000221254abc CFRunLoopRunSpecific + 436 (CFRunLoop.c:3247)
5 CFNetwork 0x0000000221b5fc8c -[__CoreSchedulingSetRunnable runForever] + 212 (CoreSchedulingSet.mm:1365)
6 Foundation 0x0000000221de0a94 __NSThread__start__ + 1040 (NSThread.m:1175)
7 libsystem_pthread.dylib 0x0000000220f931e4 _pthread_body + 128 (pthread.c:804)
8 libsystem_pthread.dylib 0x0000000220f93164 _pthread_start + 40 (pthread.c:827)
9 libsystem_pthread.dylib 0x0000000220f92070 thread_start + 4
Thread 4 name:
Thread 4:
0 libsystem_kernel.dylib 0x0000000220f184ac __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x0000000220f9a638 _pthread_cond_wait$VARIANT$armv81 + 620 (pthread_cond.c:578)
2 libc++.1.dylib 0x00000002205b2e28 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 24 (__threading_support:278)
3 JavaScriptCore 0x0000000228f44524 void std::__1::condition_variable_any::wait<std::__1::unique_lock<bmalloc::Mutex> >(std::__1::unique_lock<bmalloc::Mutex>&) + 104 (condition_variable:204)
4 JavaScriptCore 0x0000000228f48300 bmalloc::Scavenger::threadRunLoop() + 172 (condition_variable:213)
5 JavaScriptCore 0x0000000228f47ac4 bmalloc::Scavenger::threadEntryPoint(bmalloc::Scavenger*) + 12 (Scavenger.cpp:352)
6 JavaScriptCore 0x0000000228f494b8 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 (type_traits:4428)
7 libsystem_pthread.dylib 0x0000000220f931e4 _pthread_body + 128 (pthread.c:804)
8 libsystem_pthread.dylib 0x0000000220f93164 _pthread_start + 40 (pthread.c:827)
9 libsystem_pthread.dylib 0x0000000220f92070 thread_start + 4
Thread 5 name:
Thread 5:
0 libsystem_kernel.dylib 0x0000000220efb088 kevent + 8
1 Realm 0x00000001025f112c realm::_impl::ExternalCommitHelper::listen() + 212 (external_commit_helper.cpp:202)
2 Realm 0x00000001025f1d20 std::__1::__async_func<realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&)::$_0>::operator()() + 28 (external_commit_helper.cpp:159)
3 Realm 0x00000001025f1ca8 std::__1::__async_assoc_state<void, std::__1::__async_func<realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&)::$_0> >::__execute() + 28 (future:1039)
4 Realm 0x00000001025f1e58 std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, void (std::__1::__async_assoc_state<void, std::__1::__async_func<realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&)::$_0> >::*)(), std::__1::__async_assoc_state<void, std::__1::__async_func<realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&)::$_0> >*> >(void*, void*) + 64 (type_traits:4232)
5 libsystem_pthread.dylib 0x0000000220f931e4 _pthread_body + 128 (pthread.c:804)
6 libsystem_pthread.dylib 0x0000000220f93164 _pthread_start + 40 (pthread.c:827)
7 libsystem_pthread.dylib 0x0000000220f92070 thread_start + 4
Thread 6 name:
Thread 6:
0 libsystem_kernel.dylib 0x0000000220ef6ac8 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x0000000220ef6940 mach_msg + 72 (mach_msg.c:103)
2 CoreFoundation 0x000000022131d2f0 __CFRunLoopServiceMachPort + 236 (CFRunLoop.c:2615)
3 CoreFoundation 0x000000022131af80 __CFRunLoopRun + 1404 (CFRunLoop.c:2971)
4 CoreFoundation 0x0000000221254abc CFRunLoopRunSpecific + 436 (CFRunLoop.c:3247)
5 AVFAudio 0x0000000227a31cd0 GenericRunLoopThread::Entry(void*) + 164 (GenericRunLoopThread.h:92)
6 AVFAudio 0x0000000227a5ce94 CAPThread::Entry(CAPThread*) + 88
7 libsystem_pthread.dylib 0x0000000220f931e4 _pthread_body + 128 (pthread.c:804)
8 libsystem_pthread.dylib 0x0000000220f93164 _pthread_start + 40 (pthread.c:827)
9 libsystem_pthread.dylib 0x0000000220f92070 thread_start + 4
Thread 7:
0 libsystem_pthread.dylib 0x0000000220f92064 start_wqthread + 0
Thread 8:
0 libsystem_pthread.dylib 0x0000000220f92064 start_wqthread + 0
Thread 9:
0 libsystem_pthread.dylib 0x0000000220f92064 start_wqthread + 0
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000000 x1: 0x0000000000000000 x2: 0x0000000000000000 x3: 0x0000000282a1a766
x4: 0x0000000103938280 x5: 0x0000000000000020 x6: 0x0046000004210103 x7: 0x00000000ffba0038
x8: 0x0000000000000800 x9: 0x0000000220f98b44 x10: 0x0000000220f9408c x11: 0x000000025b529562
x12: 0x000000025b529562 x13: 0x0000000000000018 x14: 0x0000000000000001 x15: 0x0000000000000881
x16: 0x0000000000000148 x17: 0x0000000000000000 x18: 0x0000000000000000 x19: 0x0000000000000006
x20: 0x0000000259099100 x21: 0x000000000000002d x22: 0x0000000000000303 x23: 0x00000002590991e0
x24: 0x0000000000000000 x25: 0x000000024d2a3912 x26: 0x0000000102eec200 x27: 0x000000025909cf10
x28: 0x0000000000000001 fp: 0x000000016ddd9960 lr: 0x0000000220f98c70
sp: 0x000000016ddd9930 pc: 0x0000000220f186a4 cpsr: 0x00000000
FYI Line 17 of MyFile.swift is just this:
#objc class RealmDatabase : NSObject
{
var configuration:Realm.Configuration? = nil // Line 17
Thats just a declaration of an optional, so I don't see how that could cause any problems.
Are there any other clues as to what the problem could be?
Just a wild stab in the dark:
One reason that this error can happen is due to ARC and weak references.
A common pattern in iOS is the delegate pattern, where a separate object is constructed to handle the messages of another object. These references are often weak, so that you don't get a memory cycle, where two objects own a strong reference to each other.
Now, it could be, somewhere in your code, that you are generating a RealmDatabase instance somewhere, and handing it off to another object as a weak reference. If this is the case, then it will be destroyed by ARC as soon as all the strong references to it are gone: for example, if it is being referenced by a Realm connection instance of some sort, and the connection is dropped.
This is just a wild guess, but if you are dynamically creating RealmDatabase instances when certain events happen, store references to those objects in a stored property on some object, as an optional, to keep them from being destroyed by ARC.
Good luck, and I hope you solve this for your users.
I recently made some changes to my app that was already on the app store, and a couple days later, I find that my new version gets rejected for crashing on launch. Which is strange because I tested it n an ipad air, and iphone 6 and an iphone 5 and it worked on all 3. I got the following crash log from apple and I was wondering if anyone could help me decipher where the error is, as this is my first time having such a nasty error.
Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000001, 0x0000000101380a1c
Termination Signal: Trace/BPT trap: 5
Termination Reason: Namespace SIGNAL, Code 0x5
Terminating Process: exc handler [0]
Triggered by Thread: 0
Filtered syslog:
None found
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 resumeToolkit 0x0000000101380a1c 0x10136c000 + 84508
1 resumeToolkit 0x0000000101380a64 0x10136c000 + 84580
2 UIKit 0x000000018cf15a00 -[UIViewController loadViewIfRequired] + 1040
3 UIKit 0x000000018cf155d8 -[UIViewController view] + 28
4 resumeToolkit 0x000000010138aef4 0x10136c000 + 126708
5 resumeToolkit 0x000000010138a5a0 0x10136c000 + 124320
6 resumeToolkit 0x000000010138a664 0x10136c000 + 124516
7 UIKit 0x000000018cf15a00 -[UIViewController loadViewIfRequired] + 1040
8 UIKit 0x000000018cf155d8 -[UIViewController view] + 28
9 UIKit 0x000000018cf1c1a4 -[UIWindow addRootViewControllerViewIfPossible] + 136
10 UIKit 0x000000018cf19404 -[UIWindow _setHidden:forced:] + 272
11 UIKit 0x000000018cf882e8 -[UIWindow makeKeyAndVisible] + 48
12 resumeToolkit 0x000000010139f4d0 0x10136c000 + 210128
13 resumeToolkit 0x000000010139b464 0x10136c000 + 193636
14 UIKit 0x000000018cf842c4 -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 384
15 UIKit 0x000000018d175bc4 -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 3436
16 UIKit 0x000000018d17aa14 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1712
17 UIKit 0x000000018d4162a8 __111-[__UICanvasLifecycleMonitor_Compatability _scheduleFirstCommitForScene:transition:firstActivation:completion:]_block_invoke + 800
18 UIKit 0x000000018d6ee100 +[_UICanvas _enqueuePostSettingUpdateTransactionBlock:] + 160
19 UIKit 0x000000018d415f0c -[__UICanvasLifecycleMonitor_Compatability _scheduleFirstCommitForScene:transition:firstActivation:completion:] + 252
20 UIKit 0x000000018d41676c -[__UICanvasLifecycleMonitor_Compatability activateEventsOnly:withContext:completion:] + 732
21 UIKit 0x000000018db9b7c0 __82-[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:]_block_invoke + 260
22 UIKit 0x000000018db9b664 -[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:] + 448
23 UIKit 0x000000018d9092cc __125-[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:]_block_invoke + 220
24 UIKit 0x000000018daa23cc _performActionsWithDelayForTransitionContext + 112
25 UIKit 0x000000018d90917c -[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:] + 252
26 UIKit 0x000000018d6ed760 -[_UICanvas scene:didUpdateWithDiff:transitionContext:completion:] + 364
27 UIKit 0x000000018d179158 -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 540
28 UIKit 0x000000018d58edbc -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 364
29 FrontBoardServices 0x000000018601e1f0 -[FBSSceneImpl _didCreateWithTransitionContext:completion:] + 364
30 FrontBoardServices 0x0000000186026af8 __56-[FBSWorkspace client:handleCreateScene:withCompletion:]_block_invoke_2 + 224
31 libdispatch.dylib 0x00000001832daa14 _dispatch_client_callout + 16
32 libdispatch.dylib 0x00000001832e2200 _dispatch_block_invoke_direct$VARIANT$mp + 288
33 FrontBoardServices 0x00000001860527f8 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 36
34 FrontBoardServices 0x000000018605249c -[FBSSerialQueue _performNext] + 404
35 FrontBoardServices 0x0000000186052a38 -[FBSSerialQueue _performNextFromRunLoopSource] + 56
36 CoreFoundation 0x000000018390377c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
37 CoreFoundation 0x00000001839036fc __CFRunLoopDoSource0 + 88
38 CoreFoundation 0x0000000183902f84 __CFRunLoopDoSources0 + 204
39 CoreFoundation 0x0000000183900b5c __CFRunLoopRun + 1048
40 CoreFoundation 0x0000000183820c58 CFRunLoopRunSpecific + 436
41 GraphicsServices 0x00000001856ccf84 GSEventRunModal + 100
42 UIKit 0x000000018cf795c4 UIApplicationMain + 236
43 resumeToolkit 0x00000001013750b4 0x10136c000 + 37044
44 libdyld.dylib 0x000000018334056c start + 4
Thread 1:
0 libsystem_kernel.dylib 0x0000000183470d80 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000183582eec _pthread_wqthread + 884
2 libsystem_pthread.dylib 0x0000000183582b6c start_wqthread + 4
Thread 2:
0 libsystem_kernel.dylib 0x0000000183470d80 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000183582eec _pthread_wqthread + 884
2 libsystem_pthread.dylib 0x0000000183582b6c start_wqthread + 4
Thread 3:
0 libsystem_kernel.dylib 0x0000000183470d80 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000183582eec _pthread_wqthread + 884
2 libsystem_pthread.dylib 0x0000000183582b6c start_wqthread + 4
Thread 4 name: com.apple.uikit.eventfetch-thread
Thread 4:
0 libsystem_kernel.dylib 0x000000018344f568 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x000000018344f3e0 mach_msg + 72
2 CoreFoundation 0x0000000183903108 __CFRunLoopServiceMachPort + 196
3 CoreFoundation 0x0000000183900cd4 __CFRunLoopRun + 1424
4 CoreFoundation 0x0000000183820c58 CFRunLoopRunSpecific + 436
5 Foundation 0x0000000184255594 -[NSRunLoop+ 50580 (NSRunLoop) runMode:beforeDate:] + 304
6 Foundation 0x00000001842749ac -[NSRunLoop+ 178604 (NSRunLoop) runUntilDate:] + 96
7 UIKit 0x000000018dae37a8 -[UIEventFetcher threadMain] + 136
8 Foundation 0x00000001843570f4 __NSThread__start__ + 996
9 libsystem_pthread.dylib 0x00000001835842b4 _pthread_body + 308
10 libsystem_pthread.dylib 0x0000000183584180 _pthread_body + 0
11 libsystem_pthread.dylib 0x0000000183582b74 thread_start + 4
Thread 5:
0 libsystem_kernel.dylib 0x0000000183470d80 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000183582eec _pthread_wqthread + 884
2 libsystem_pthread.dylib 0x0000000183582b6c start_wqthread + 4
Thread 6:
0 libsystem_kernel.dylib 0x000000018344f5bc semaphore_timedwait_trap + 8
1 libdispatch.dylib 0x00000001832dd000 _dispatch_sema4_timedwait$VARIANT$mp + 84
2 libdispatch.dylib 0x00000001832dd870 _dispatch_semaphore_wait_slow + 72
3 libdispatch.dylib 0x00000001832e91d8 _dispatch_worker_thread + 256
4 libsystem_pthread.dylib 0x00000001835842b4 _pthread_body + 308
5 libsystem_pthread.dylib 0x0000000183584180 _pthread_body + 0
6 libsystem_pthread.dylib 0x0000000183582b74 thread_start + 4
Thread 7:
0 libsystem_kernel.dylib 0x00000001834700f0 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x0000000183586ce4 _pthread_cond_wait$VARIANT$mp + 640
2 libc++.1.dylib 0x0000000182b26f34 std::__1::condition_variable::__do_timed_wait+ 32564 (std::__1::unique_lock&, std::__1::chrono::time_point > >) + 96
3 JavaScriptCore 0x000000018acc9168 std::__1::cv_status std::__1::condition_variable::wait_until > >+ 10133864 (std::__1::unique_lock&, std::__1::chrono::time_point > > const&) + 124
4 JavaScriptCore 0x000000018acc903c std::__1::cv_status std::__1::condition_variable_any::wait_until, std::__1::chrono::steady_clock, std::__1::chrono::duration > >+ 10133564 (std::__1::unique_lock&, std::__1::chrono::time_point > > const&) + 108
5 JavaScriptCore 0x000000018acc8ec0 bmalloc::AsyncTask::threadRunLoop+ 10133184 () + 280
6 JavaScriptCore 0x000000018acc91b8 void* std::__1::__thread_proxy >, void (*)(bmalloc::AsyncTask*), bmalloc::AsyncTask*> >+ 10133944 (void*) + 44
7 libsystem_pthread.dylib 0x00000001835842b4 _pthread_body + 308
8 libsystem_pthread.dylib 0x0000000183584180 _pthread_body + 0
9 libsystem_pthread.dylib 0x0000000183582b74 thread_start + 4
Thread 8 name: WebThread
Thread 8:
0 libsystem_kernel.dylib 0x0000000183470138 __psynch_mutexwait + 8
1 libsystem_pthread.dylib 0x0000000183587660 _pthread_mutex_lock_wait + 96
2 libsystem_pthread.dylib 0x00000001835875a4 _pthread_mutex_lock_slow$VARIANT$mp + 264
3 WebCore 0x000000018b797f4c _WebTryThreadLock+ 278348 (bool) + 128
4 WebCore 0x000000018b797eac WebRunLoopLock+ 278188 (__CFRunLoopObserver*, unsigned long, void*) + 44
5 CoreFoundation 0x0000000183902cdc __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 32
6 CoreFoundation 0x0000000183900694 __CFRunLoopDoObservers + 412
7 CoreFoundation 0x0000000183900e38 __CFRunLoopRun + 1780
8 CoreFoundation 0x0000000183820c58 CFRunLoopRunSpecific + 436
9 WebCore 0x000000018b79584c RunWebThread+ 268364 (void*) + 560
10 libsystem_pthread.dylib 0x00000001835842b4 _pthread_body + 308
11 libsystem_pthread.dylib 0x0000000183584180 _pthread_body + 0
12 libsystem_pthread.dylib 0x0000000183582b74 thread_start + 4
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000000 x1: 0x000000018dca8460 x2: 0x0000000000000303 x3: 0x000000016ea90b68
x4: 0x0000000000000000 x5: 0x0000000000000000 x6: 0x0000000000000000 x7: 0x000000016ea90fc8
x8: 0x0000000000000000 x9: 0x0000000000000000 x10: 0x0000000000000000 x11: 0x0000010c000001ff
x12: 0x0000000149019000 x13: 0x000005a1b47f9c4f x14: 0xfffffffeb82c60bf x15: 0x000000000000001c
x16: 0x0000000101a3f138 x17: 0x000000018d8ffce0 x18: 0xfffffff01449925c x19: 0x0000000000000000
x20: 0x0000000147d39f40 x21: 0x00000001014f6000 x22: 0x00000001c41e6100 x23: 0x0000000000000001
x24: 0x0000000000000000 x25: 0x00000001c00df170 x26: 0x00000000000003c8 x27: 0x0000000148059978
x28: 0x0000000000000350 fp: 0x000000016ea911c0 lr: 0x0000000101380788
sp: 0x000000016ea91090 pc: 0x0000000101380a1c cpsr: 0x40000000
For anyone still struggling with this, the way I resolved this was by going to window -> organizer and then downloaded the DSYM of the version from which the crash logs were from. My problem was that for some reason the proper DSYM was not being used to symbolicate the code.
I'm developing an app which uses an external accessory and the app crashes at some point. The hardest thing to debug is an app that crashes and the device can't be connected to Xcode.
The crash log I'm getting is not symbolised and I didn't succeeded in making it more clear.
Can anyone give me a hit in what is wrong with my code from the crash log attached.
Incident Identifier: 9BB6134A-68AF-4D88-9DF4-E1AB5F00F429
CrashReporter Key: 7c5ffd5961e66395d76785cd412baf0761515cbb
Hardware Model: iPad5,4
Process: reFlash [666]
Path: /private/var/containers/Bundle/Application/4E98396D-5D6B-4FF1-8992-389A73E4A17D/reFlash.app/reFlash
Identifier: com.softescu.reflash
Version: 1 (1.06)
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd [1]
Coalition: com.softescu.reflash [663]
Date/Time: 2017-05-17 17:06:26.2257 +0300
Launch Time: 2017-05-17 17:05:51.8520 +0300
OS Version: iPhone OS 10.2.1 (14D27)
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Triggered by Thread: 3
Application Specific Information:
abort() called
Filtered syslog:
None found
Last Exception Backtrace:
0 CoreFoundation 0x18a2451b8 __exceptionPreprocess + 124
1 libobjc.A.dylib 0x188c7c55c objc_exception_throw + 56
2 CoreFoundation 0x18a245100 +[NSException raise:format:] + 116
3 CoreFoundation 0x18a13fd90 -[__NSCFString substringWithRange:] + 168
4 reFlash 0x1000a3d10 0x10006c000 + 228624
5 reFlash 0x1000a3224 0x10006c000 + 225828
6 reFlash 0x100085448 0x10006c000 + 103496
7 reFlash 0x10008914c 0x10006c000 + 119116
8 reFlash 0x1000cc41c 0x10006c000 + 394268
9 reFlash 0x1000cb704 0x10006c000 + 390916
10 ExternalAccessory 0x1979f5ff8 -[EAInputStream _streamEventTrigger] + 504
11 CoreFoundation 0x18a1f2b5c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
12 CoreFoundation 0x18a1f24a4 __CFRunLoopDoSources0 + 524
13 CoreFoundation 0x18a1f00a4 __CFRunLoopRun + 804
14 CoreFoundation 0x18a11e2b8 CFRunLoopRunSpecific + 444
15 Foundation 0x18ac5b26c -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 304
16 Foundation 0x18acafaa0 -[NSRunLoop(NSRunLoop) run] + 88
17 reFlash 0x100088d88 0x10006c000 + 118152
18 Foundation 0x18ad58e68 __NSThread__start__ + 1024
19 libsystem_pthread.dylib 0x1892d9850 _pthread_body + 240
20 libsystem_pthread.dylib 0x1892d9760 _pthread_start + 284
21 libsystem_pthread.dylib 0x1892d6d94 thread_start + 4
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0:
0 libsystem_kernel.dylib 0x00000001891f5188 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001891f4ff8 mach_msg + 72
2 CoreFoundation 0x000000018a1f25d0 __CFRunLoopServiceMachPort + 192
3 CoreFoundation 0x000000018a1f01ec __CFRunLoopRun + 1132
4 CoreFoundation 0x000000018a11e2b8 CFRunLoopRunSpecific + 444
5 GraphicsServices 0x000000018bbd2198 GSEventRunModal + 180
6 UIKit 0x000000019015e7fc -[UIApplication _run] + 684
7 UIKit 0x0000000190159534 UIApplicationMain + 208
8 reFlash 0x000000010009f4c8 0x10006c000 + 210120
9 libdyld.dylib 0x00000001891015b8 start + 4
Thread 1 name: com.apple.uikit.eventfetch-thread
Thread 1:
0 libsystem_kernel.dylib 0x00000001891f5188 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001891f4ff8 mach_msg + 72
2 CoreFoundation 0x000000018a1f25d0 __CFRunLoopServiceMachPort + 192
3 CoreFoundation 0x000000018a1f01ec __CFRunLoopRun + 1132
4 CoreFoundation 0x000000018a11e2b8 CFRunLoopRunSpecific + 444
5 Foundation 0x000000018ac5b26c -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 304
6 Foundation 0x000000018ac7bdd0 -[NSRunLoop(NSRunLoop) runUntilDate:] + 96
7 UIKit 0x0000000190ad2c38 -[UIEventFetcher threadMain] + 136
8 Foundation 0x000000018ad58e68 __NSThread__start__ + 1024
9 libsystem_pthread.dylib 0x00000001892d9850 _pthread_body + 240
10 libsystem_pthread.dylib 0x00000001892d9760 _pthread_body + 0
11 libsystem_pthread.dylib 0x00000001892d6d94 thread_start + 4
Thread 2 name: GAIThread
Thread 2:
0 libsystem_kernel.dylib 0x00000001891f5188 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001891f4ff8 mach_msg + 72
2 CoreFoundation 0x000000018a1f25d0 __CFRunLoopServiceMachPort + 192
3 CoreFoundation 0x000000018a1f01ec __CFRunLoopRun + 1132
4 CoreFoundation 0x000000018a11e2b8 CFRunLoopRunSpecific + 444
5 Foundation 0x000000018ac5b26c -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 304
6 Foundation 0x000000018acafaa0 -[NSRunLoop(NSRunLoop) run] + 88
7 reFlash 0x00000001000afe0c 0x10006c000 + 278028
8 Foundation 0x000000018ad58e68 __NSThread__start__ + 1024
9 libsystem_pthread.dylib 0x00000001892d9850 _pthread_body + 240
10 libsystem_pthread.dylib 0x00000001892d9760 _pthread_body + 0
11 libsystem_pthread.dylib 0x00000001892d6d94 thread_start + 4
Thread 3 Crashed:
0 libsystem_kernel.dylib 0x0000000189213014 __pthread_kill + 8
1 libsystem_pthread.dylib 0x00000001892db450 pthread_kill + 112
2 libsystem_c.dylib 0x0000000189187400 abort + 140
3 libc++abi.dylib 0x0000000188c512d4 __cxa_bad_cast + 0
4 libc++abi.dylib 0x0000000188c6b688 std::__terminate(void (*)()) + 44
5 libc++abi.dylib 0x0000000188c6b234 __cxa_rethrow + 144
6 libobjc.A.dylib 0x0000000188c7c71c objc_exception_rethrow + 44
7 CoreFoundation 0x000000018a11e32c CFRunLoopRunSpecific + 560
8 Foundation 0x000000018ac5b26c -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 304
9 Foundation 0x000000018acafaa0 -[NSRunLoop(NSRunLoop) run] + 88
10 reFlash 0x0000000100088d88 0x10006c000 + 118152
11 Foundation 0x000000018ad58e68 __NSThread__start__ + 1024
12 libsystem_pthread.dylib 0x00000001892d9850 _pthread_body + 240
13 libsystem_pthread.dylib 0x00000001892d9760 _pthread_body + 0
14 libsystem_pthread.dylib 0x00000001892d6d94 thread_start + 4
Thread 4 name: com.apple.CFSocket.private
Thread 4:
0 libsystem_kernel.dylib 0x000000018921323c __select + 8
1 CoreFoundation 0x000000018a1f9468 __CFSocketManager + 640
2 libsystem_pthread.dylib 0x00000001892d9850 _pthread_body + 240
3 libsystem_pthread.dylib 0x00000001892d9760 _pthread_body + 0
4 libsystem_pthread.dylib 0x00000001892d6d94 thread_start + 4
Thread 5 name: com.apple.NSURLConnectionLoader
Thread 5:
0 libsystem_kernel.dylib 0x00000001891f5188 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001891f4ff8 mach_msg + 72
2 CoreFoundation 0x000000018a1f25d0 __CFRunLoopServiceMachPort + 192
3 CoreFoundation 0x000000018a1f01ec __CFRunLoopRun + 1132
4 CoreFoundation 0x000000018a11e2b8 CFRunLoopRunSpecific + 444
5 CFNetwork 0x000000018a923a70 +[NSURLConnection(Loader) _resourceLoadLoop:] + 336
6 Foundation 0x000000018ad58e68 __NSThread__start__ + 1024
7 libsystem_pthread.dylib 0x00000001892d9850 _pthread_body + 240
8 libsystem_pthread.dylib 0x00000001892d9760 _pthread_body + 0
9 libsystem_pthread.dylib 0x00000001892d6d94 thread_start + 4
Thread 6:
0 libsystem_pthread.dylib 0x00000001892d6d88 start_wqthread + 0
Thread 7:
0 libsystem_pthread.dylib 0x00000001892d6d88 start_wqthread + 0
Thread 8:
0 libsystem_pthread.dylib 0x00000001892d6d88 start_wqthread + 0
Thread 9:
0 libsystem_pthread.dylib 0x00000001892d6d88 start_wqthread + 0
Thread 3 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000000 x1: 0x0000000000000000 x2: 0x0000000000000000 x3: 0x00000001700fb4b1
x4: 0x0000000188c6f963 x5: 0x000000016e292ab0 x6: 0x000000000000006e x7: 0x0000000000000340
x8: 0x0000000008000000 x9: 0x0000000004000000 x10: 0x0000000000000031 x11: 0xffffffffffffffff
x12: 0x000000018919e772 x13: 0x0000000000000000 x14: 0x0000030000000300 x15: 0x0000000000000000
x16: 0x0000000000000148 x17: 0x0000000188c96d54 x18: 0x0000000000000000 x19: 0x0000000000000006
x20: 0x000000016e293000 x21: 0x000000016e292ab0 x22: 0x00000001af2bcbb8 x23: 0x0000000000000001
x24: 0x0000000170018750 x25: 0x0000000000000000 x26: 0x0000000000000001 x27: 0x0000000000000000
x28: 0x0000000000000000 fp: 0x000000016e292a10 lr: 0x00000001892db450
sp: 0x000000016e2929f0 pc: 0x0000000189213014 cpsr: 0x00000000
My submission to the App Store was rejected due to a crash. However, I am unable to reproduce the crash on multiple hardware devices and simulators. I've symbolicated the crash log, and it seems the issue is occurring in an area of code where the app is fetching some data from a server and closing a UIAlertController that notifies the user to "Please wait..." Below is the crash log.
Date/Time: 2017-05-06 00:27:06.7009 +0700
Launch Time: 2017-05-06 00:26:43.8793 +0700
OS Version: iPhone OS 10.3.1 (14E304)
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Triggered by Thread: 1
Application Specific Information:
abort() called
Filtered syslog:
None found
Last Exception Backtrace:
0 CoreFoundation 0x18c47efd8 __exceptionPreprocess + 124
1 libobjc.A.dylib 0x18aee0538 objc_exception_throw + 56
2 CoreFoundation 0x18c47eeac +[NSException raise:format:arguments:] + 104
3 Foundation 0x18cf16710 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 112
4 UIKit 0x192823454 -[UIApplication _cachedSystemAnimationFenceCreatingIfNecessary:] + 196
5 UIKit 0x192823514 -[UIApplication _systemAnimationFenceCreatingIfNecessary:] + 24
6 UIKit 0x19287c7a0 +[UIWindow _synchronizedDrawingFence] + 116
7 UIKit 0x192a3a150 +[_UIKeyboardChangedInformation informationForKeyboardUp:withIAV:] + 104
8 UIKit 0x192d338d4 -[_UIRemoteKeyboards prepareToMoveKeyboard:withIAV:showing:forScreen:] + 464
9 UIKit 0x19266bc04 -[UIPeripheralHost(UIKitInternal) setInputViews:animationStyle:] + 820
10 UIKit 0x192688cf4 -[UIPeripheralHost(UIKitInternal) _restoreInputViewsWithId:animated:] + 584
11 UIKit 0x19291bd64 -[UIViewController _restoreInputViewsForPresentation] + 280
12 UIKit 0x1928f6e3c -[UIPresentationController runTransitionForCurrentState] + 1560
13 UIKit 0x1928f50f8 -[UIPresentationController _dismissWithAnimationController:interactionController:target:didEndSelector:] + 764
14 UIKit 0x19291b8c0 -[UIViewController _dismissViewControllerWithAnimationController:interactionController:completion:] + 464
15 UIKit 0x1926d0cd4 -[UIViewController _dismissViewControllerWithTransition:from:completion:] + 600
16 UIKit 0x192678b6c -[UIViewController dismissViewControllerWithTransition:completion:] + 1144
17 UIKit 0x19267894c -[UIViewController dismissViewControllerWithTransition:completion:] + 600
18 UIKit 0x19291ab68 -[UIViewController _performCoordinatedPresentOrDismiss:animated:] + 524
19 UIKit 0x1926786c0 -[UIViewController dismissViewControllerAnimated:completion:] + 152
20 DinokEtp 0x1001014c4 specialized ViewController.(downloadCaseTypesFile(workFlowVersionMobileShouleBeOn : Double, validateUserResponse : ValidateUserResponse) -> ()).(closure #1) (ViewController.swift:360)
21 DinokEtp 0x1000fd84c ViewController.(downloadCaseTypesFile(workFlowVersionMobileShouleBeOn : Double, validateUserResponse : ValidateUserResponse) -> ()).(closure #1) (ViewController.swift:0)
22 DinokEtp 0x100101b38 partial apply for ViewController.(downloadCaseTypesFile(workFlowVersionMobileShouleBeOn : Double, validateUserResponse : ValidateUserResponse) -> ()).(closure #1) (ViewController.swift:0)
23 CFNetwork 0x18ca89358 __85-[__NSURLSessionLocal downloadTaskForRequest:downloadFilePath:resumeData:completion:]_block_invoke + 32
24 CFNetwork 0x18caeb18c __50-[__NSCFLocalDownloadTask _private_fileCompletion]_block_invoke.321 + 84
25 Foundation 0x18cf4d804 __NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK__ + 16
26 Foundation 0x18ce92760 -[NSBlockOperation main] + 96
27 Foundation 0x18ce82b18 -[__NSOperationInternal _start:] + 612
28 Foundation 0x18cf4fba0 __NSOQSchedule_f + 228
29 libdispatch.dylib 0x18b3369a0 _dispatch_client_callout + 16
30 libdispatch.dylib 0x18b344ad4 _dispatch_queue_serial_drain + 928
31 libdispatch.dylib 0x18b33a2cc _dispatch_queue_invoke + 884
32 libdispatch.dylib 0x18b346a50 _dispatch_root_queue_drain + 540
33 libdispatch.dylib 0x18b3467d0 _dispatch_worker_thread3 + 124
34 libsystem_pthread.dylib 0x18b53f1d0 _pthread_wqthread + 1096
35 libsystem_pthread.dylib 0x18b53ed7c start_wqthread + 4
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0:
0 libsystem_kernel.dylib 0x000000018b45b224 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x000000018b45b09c mach_msg + 72
2 CoreFoundation 0x000000018c42ce88 __CFRunLoopServiceMachPort + 192
3 CoreFoundation 0x000000018c42aadc __CFRunLoopRun + 1060
4 CoreFoundation 0x000000018c35ad94 CFRunLoopRunSpecific + 424
5 GraphicsServices 0x000000018ddc4074 GSEventRunModal + 100
6 UIKit 0x000000019260c130 UIApplicationMain + 208
7 DinokEtp 0x00000001000654bc main (EMSCaseUpload.swift:14)
8 libdyld.dylib 0x000000018b36959c start + 4
Thread 1 name: Dispatch queue: NSOperationQueue 0x17003e2c0 :: NSOperation 0x17025e5d0 (QOS: DEFAULT)
Thread 1 Crashed:
0 libsystem_kernel.dylib 0x000000018b479014 __pthread_kill + 8
1 libsystem_pthread.dylib 0x000000018b543334 pthread_kill + 112
2 libsystem_c.dylib 0x000000018b3ed9c4 abort + 140
3 libc++abi.dylib 0x000000018aeb91b0 __cxa_bad_cast + 0
4 libc++abi.dylib 0x000000018aed2c04 default_unexpected_handler() + 0
5 libobjc.A.dylib 0x000000018aee0820 _objc_terminate() + 124
6 libc++abi.dylib 0x000000018aecf5d4 std::__terminate(void (*)()) + 16
7 libc++abi.dylib 0x000000018aecf640 std::terminate() + 60
8 libdispatch.dylib 0x000000018b3369b4 _dispatch_client_callout + 36
9 libdispatch.dylib 0x000000018b344ad4 _dispatch_queue_serial_drain + 928
10 libdispatch.dylib 0x000000018b33a2cc _dispatch_queue_invoke + 884
11 libdispatch.dylib 0x000000018b346a50 _dispatch_root_queue_drain + 540
12 libdispatch.dylib 0x000000018b3467d0 _dispatch_worker_thread3 + 124
13 libsystem_pthread.dylib 0x000000018b53f1d0 _pthread_wqthread + 1096
14 libsystem_pthread.dylib 0x000000018b53ed7c start_wqthread + 4
Thread 2:
0 libsystem_pthread.dylib 0x000000018b53ed78 start_wqthread + 0
Thread 3 name: com.apple.uikit.eventfetch-thread
Thread 3:
0 libsystem_kernel.dylib 0x000000018b45b224 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x000000018b45b09c mach_msg + 72
2 CoreFoundation 0x000000018c42ce88 __CFRunLoopServiceMachPort + 192
3 CoreFoundation 0x000000018c42aadc __CFRunLoopRun + 1060
4 CoreFoundation 0x000000018c35ad94 CFRunLoopRunSpecific + 424
5 Foundation 0x000000018ce74d64 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 304
6 Foundation 0x000000018ce95b34 -[NSRunLoop(NSRunLoop) runUntilDate:] + 96
7 UIKit 0x0000000192f965f8 -[UIEventFetcher threadMain] + 136
8 Foundation 0x000000018cf722c8 __NSThread__start__ + 996
9 libsystem_pthread.dylib 0x000000018b54175c _pthread_body + 240
10 libsystem_pthread.dylib 0x000000018b54166c _pthread_body + 0
11 libsystem_pthread.dylib 0x000000018b53ed84 thread_start + 4
Thread 4:
0 libsystem_kernel.dylib 0x000000018b479a88 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x000000018b53f274 _pthread_wqthread + 1260
2 libsystem_pthread.dylib 0x000000018b53ed7c start_wqthread + 4
Thread 5:
0 libsystem_pthread.dylib 0x000000018b53ed78 start_wqthread + 0
Thread 6 name: com.apple.NSURLConnectionLoader
Thread 6:
0 libsystem_kernel.dylib 0x000000018b45b224 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x000000018b45b09c mach_msg + 72
2 CoreFoundation 0x000000018c42ce88 __CFRunLoopServiceMachPort + 192
3 CoreFoundation 0x000000018c42aadc __CFRunLoopRun + 1060
4 CoreFoundation 0x000000018c35ad94 CFRunLoopRunSpecific + 424
5 CFNetwork 0x000000018cb66ca4 +[NSURLConnection(Loader) _resourceLoadLoop:] + 404
6 Foundation 0x000000018cf722c8 __NSThread__start__ + 996
7 libsystem_pthread.dylib 0x000000018b54175c _pthread_body + 240
8 libsystem_pthread.dylib 0x000000018b54166c _pthread_body + 0
9 libsystem_pthread.dylib 0x000000018b53ed84 thread_start + 4
Thread 1 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000000 x1: 0x0000000000000000 x2: 0x0000000000000000 x3: 0x00000001700f8c37
x4: 0x000000018aed3b07 x5: 0x000000016de9a850 x6: 0x000000000000006e x7: 0xffffffffffffffec
x8: 0x000000000c000000 x9: 0x0000000004000000 x10: 0x000000000000000b x11: 0x000000000000000b
x12: 0x0000000000000010 x13: 0x000000018c6c9c0e x14: 0x0000030000000300 x15: 0x0000000000000000
x16: 0x0000000000000148 x17: 0x0000000000000000 x18: 0x0000000000000000 x19: 0x0000000000000006
x20: 0x000000016de9b000 x21: 0x000000016de9a850 x22: 0x00000001700ff380 x23: 0x0000000000000004
x24: 0x00000001b1ebd400 x25: 0x0000000000000000 x26: 0x00000001b1ebd400 x27: 0x000000016de9b0e0
x28: 0x0000000000000000 fp: 0x000000016de9a7b0 lr: 0x000000018b543334
sp: 0x000000016de9a790 pc: 0x000000018b479014 cpsr: 0x00000000
I would recommend double checking that you are not interacting with that UIAlertController (or any other UIKit API) outside the main thread (aka, Thread 0 above). Many UIKit APIs are designed to be used only from the main thread.
Worth noting that the crash happened on Thread 1…
If you are in doubt, wrap the call with:
DispatchQueue.main.async {
// Call UIAlertController code here...
}