Random Crash on IOS unity game - ios

I am building for IOS and after 20 days of torture the game is now working. The problem is it only works 50 % of the time. The other 50% it crashes on startup, this is the error that is returning in the device log. Any idea what might bring that ? I deleted facebook, firebase and googlesignin libraries because they didn't want to work at all in the ios build.
What happens is I open the game and i get a black screen for a bit. Then it closes the game and this error returns. On the first build form XCode it works and opens correctly. Any ideas ?
Incident Identifier: 8112E4E8-3C9D-4DE3-A414-1AF905C63A00
CrashReporter Key: cbb6618220f871820f24baa58e3e282b833a7cca
Hardware Model: iPhone9,3
Process: dragononlinemmorpg [559]
Path: /private/var/containers/Bundle/Application/97F19A54-D4EA-4D20-94BA-DF88D87C9D8E/dragononlinemmorpg.app/dragononlinemmorpg
Identifier: nedi.game.dragononlinemmorpg
Version: 5.2 (5.2)
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd [1]
Coalition: nedi.game.dragononlinemmorpg [598]
Date/Time: 2021-01-17 23:01:00.6253 +0200
Launch Time: 2021-01-17 23:00:40.4692 +0200
OS Version: iPhone OS 14.3 (18C66)
Release Type: User
Baseband Version: 5.01.01
Report Version: 104
Exception Type: EXC_CRASH (SIGKILL)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Termination Reason: Namespace SPRINGBOARD, Code 0x8badf00d
Termination Description: SPRINGBOARD, <RBSTerminateContext| domain:10 code:0x8BADF00D explanation:process-launch watchdog transgression: application<nedi.game.dragononlinemmorpg>:559 exhausted real (wall clock) time allowance of 20.00 seconds | ProcessVisibility: Foreground | ProcessState: Running | WatchdogEvent: process-launch | WatchdogVisibility: Foreground | WatchdogCPUStatistics: ( | "Elapsed total CPU time (seconds): 6.820 (user 6.820, system 0.000), 17% CPU", | "Elapsed application CPU time (seconds): 0.171, 0% CPU" | ) reportType:CrashLog maxTerminationResistance:Interactive>
Triggered by Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x00000001c334d290 __ulock_wait + 8
1 libdispatch.dylib 0x00000001970515a4 _dlock_wait + 52
2 libdispatch.dylib 0x00000001970514e4 _dispatch_once_wait$VARIANT$mp + 112
3 UIKitCore 0x0000000199915fa4 -[_UIApplicationConfigurationLoader _loadInitializationContext] + 120
4 UIKitCore 0x0000000199916270 -[_UIApplicationConfigurationLoader applicationInitializationContext] + 28
5 UIKitCore 0x00000001998fe9a8 -[_UIScreenInitialDisplayConfigurationLoader initialDisplayContext] + 176
6 UIKitCore 0x00000001998fec84 +[UIScreen initialize] + 124
7 libobjc.A.dylib 0x00000001ab7da064 CALLING_SOME_+initialize_METHOD + 20
8 libobjc.A.dylib 0x00000001ab7e00b0 initializeNonMetaClass + 712
9 libobjc.A.dylib 0x00000001ab7e1410 initializeAndMaybeRelock+ 37904 (objc_class*, objc_object*, mutex_tt<false>&, bool) + 300
10 libobjc.A.dylib 0x00000001ab7ef52c lookUpImpOrForward + 856
11 libobjc.A.dylib 0x00000001ab7da820 _objc_msgSend_uncached + 64
12 UIKitCore 0x0000000199916764 _UIGetCurrentFallbackTraitCollection + 96
13 UIKitCore 0x000000019a1b7f18 UIViewCommonInitWithFrame + 580
14 UIKitCore 0x000000019a1b7c7c -[UIView initWithFrame:] + 124
15 WebKit 0x00000001a30db4c4 -[WKWebView initWithFrame:configuration:] + 48
16 WebKit 0x00000001a30e2e94 -[WKWebView initWithFrame:] + 92
17 UnityFramework 0x0000000107f887b4 +[UniWebView load] + 24676276 (UniWebView.m:125)
18 libobjc.A.dylib 0x00000001ab7e825c load_images + 944
19 libdyld.dylib 0x00000001970dc0f4 invocation function for block in dyld3::AllImages::runInitialzersBottomUp+ 65780 (dyld3::closure::Image const*) + 220
20 libdyld.dylib 0x00000001970cee4c dyld3::closure::Image::forEachImageToInitBefore(void + 11852 (unsigned int, bool&) block_pointer) const + 92
21 libdyld.dylib 0x00000001970dcb28 dyld3::AllImages::loadImage+ 68392 (Diagnostics&, char const*, unsigned int, dyld3::closure::DlopenClosure const*, bool, bool, bool, bool, void const*) + 776
22 libdyld.dylib 0x00000001970dc678 dyld3::AllImages::dlopen+ 67192 (Diagnostics&, char const*, bool, bool, bool, bool, bool, void const*, bool) + 872
23 libdyld.dylib 0x00000001970de294 dyld3::dlopen_internal+ 74388 (char const*, int, void*) + 368
24 libdyld.dylib 0x00000001970d1590 dlopen_internal+ 21904 (char const*, int, void*) + 108
25 CoreFoundation 0x00000001973d1048 _CFBundleDlfcnLoadFramework + 136
26 CoreFoundation 0x00000001973a2984 _CFBundleLoadExecutableAndReturnError + 376
27 Foundation 0x000000019863fba8 -[NSBundle loadAndReturnError:] + 332
28 dragononlinemmorpg 0x0000000104df7c94 UnityFrameworkLoad() + 31892 (main.mm:12)
29 dragononlinemmorpg 0x0000000104df7d98 main + 32152 (main.mm:25)
30 libdyld.dylib 0x00000001970cd568 start + 4
Thread 1 name: Dispatch queue: com.apple.uikit.applicationSupportClient
Thread 1:
0 libsystem_kernel.dylib 0x00000001c334c66c __psynch_mutexwait + 8
1 libsystem_pthread.dylib 0x00000001dfba4358 _pthread_mutex_firstfit_lock_wait + 88
2 libsystem_pthread.dylib 0x00000001dfba42ac _pthread_mutex_firstfit_lock_slow$VARIANT$mp + 224
3 libdyld.dylib 0x00000001970de16c dyld3::dlopen_internal+ 74092 (char const*, int, void*) + 72
4 libdyld.dylib 0x00000001970d1590 dlopen_internal+ 21904 (char const*, int, void*) + 108
5 SoftLinking 0x00000001d7be5f30 _sl_dlopen_audited + 44
6 BoardServices 0x00000001afd8338c __34+[BSServiceManager sharedInstance]_block_invoke + 860
7 libdispatch.dylib 0x00000001970ae280 _dispatch_client_callout + 16
8 libdispatch.dylib 0x00000001970522f4 _dispatch_once_callout + 28
9 BoardServices 0x00000001afd8302c +[BSServiceManager sharedInstance] + 64
10 BoardServices 0x00000001afd7c024 +[BSServiceConnection _connectionWithEndpoint:clientContextBuilder:] + 316
11 UIKitServices 0x000000019b21ecb0 __44-[UISApplicationSupportClient _remoteTarget]_block_invoke + 204
12 libdispatch.dylib 0x00000001970ae280 _dispatch_client_callout + 16
13 libdispatch.dylib 0x000000019705db8c _dispatch_lane_barrier_sync_invoke_and_complete + 56
14 UIKitServices 0x000000019b21ebac -[UISApplicationSupportClient _remoteTarget] + 140
15 UIKitServices 0x000000019b21e4c8 -[UISApplicationSupportClient applicationInitializationContextWithParameters:] + 180
16 UIKitCore 0x00000001999160f8 __63-[_UIApplicationConfigurationLoader _loadInitializationContext]_block_invoke_2 + 224
17 UIKitCore 0x0000000199916010 __UIAPPLICATION_IS_LOADING_INITIALIZATION_INFO_FROM_THE_SYSTEM__ + 20
18 UIKitCore 0x0000000199915ff0 __63-[_UIApplicationConfigurationLoader _loadInitializationContext]_block_invoke + 72
19 libdispatch.dylib 0x00000001970ae280 _dispatch_client_callout + 16
20 libdispatch.dylib 0x00000001970522f4 _dispatch_once_callout + 28
21 UIKitCore 0x0000000199915fa4 -[_UIApplicationConfigurationLoader _loadInitializationContext] + 120
22 UIKitCore 0x0000000199916248 __70-[_UIApplicationConfigurationLoader startPreloadInitializationContext]_block_invoke + 24
23 libdispatch.dylib 0x00000001970ad298 _dispatch_call_block_and_release + 24
24 libdispatch.dylib 0x00000001970ae280 _dispatch_client_callout + 16
25 libdispatch.dylib 0x0000000197060074 _dispatch_root_queue_drain + 688
26 libdispatch.dylib 0x0000000197060704 _dispatch_worker_thread2 + 124
27 libsystem_pthread.dylib 0x00000001dfbab568 _pthread_wqthread + 212
28 libsystem_pthread.dylib 0x00000001dfbae874 start_wqthread + 8
Thread 2 name: JavaScriptCore bmalloc scavenger
Thread 2:
0 libsystem_kernel.dylib 0x00000001c334c61c __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x00000001dfba32fc _pthread_cond_wait$VARIANT$mp + 1180
2 libc++.1.dylib 0x00000001ab87ae0c std::__1::condition_variable::wait+ 52748 (std::__1::unique_lock<std::__1::mutex>&) + 24
3 JavaScriptCore 0x00000001a0fe4b54 void std::__1::condition_variable_any::wait<std::__1::unique_lock<bmalloc::Mutex> >+ 14871380 (std::__1::unique_lock<bmalloc::Mutex>&) + 108
4 JavaScriptCore 0x00000001a0fe9584 bmalloc::Scavenger::threadRunLoop+ 14890372 () + 252
5 JavaScriptCore 0x00000001a0fe8f98 bmalloc::Scavenger::Scavenger+ 14888856 (std::__1::scoped_lock<bmalloc::Mutex> const&) + 0
6 JavaScriptCore 0x00000001a0fea6c0 std::__1::__thread_specific_ptr<std::__1::__thread_struct>::set_pointer+ 14894784 (std::__1::__thread_struct*) + 0
7 libsystem_pthread.dylib 0x00000001dfba9b3c _pthread_start + 288
8 libsystem_pthread.dylib 0x00000001dfbae880 thread_start + 8
Thread 3:
0 libsystem_pthread.dylib 0x00000001dfbae86c start_wqthread + 0
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0xfffffffffffffffc x1: 0x0000000000000000 x2: 0x0000000000001701 x3: 0x0000000000000000
x4: 0x0000000000000010 x5: 0x0000000000000000 x6: 0x0000000000000000 x7: 0x0000000000000023
x8: 0x0000000000001307 x9: 0x0000000000000000 x10: 0x00000001e629ece8 x11: 0x01e70001e629ece9
x12: 0x0000000000ae2464 x13: 0x000061a1f0aa8465 x14: 0x0000000000000000 x15: 0x00000001f0aa8460
x16: 0x0000000000000203 x17: 0x0000000199915f2c x18: 0x0000000000000000 x19: 0x0000000000000000
x20: 0x00000001f0ab8a80 x21: 0x0000000001000002 x22: 0x0000000000001701 x23: 0x0000000106015108
x24: 0x000000016b009f90 x25: 0x00000001f0a4bdbc x26: 0x0000000105293960 x27: 0x00000001f0aa8320
x28: 0x000000000000000b fp: 0x000000016b009e40 lr: 0x00000001970515a4
sp: 0x000000016b009e20 pc: 0x00000001c334d290 cpsr: 0x00000000
esr: 0x56000080 Address size fault
Binary Images:
0x104df0000 - 0x104df7fff dragononlinemmorpg arm64 <de66ff8722fa329dae8296ae09bb3dd5> /var/containers/Bundle/Application/97F19A54-D4EA-4D20-94BA-DF88D87C9D8E/dragononlinemmorpg.app/dragononlinemmorpg
0x104ebc000 - 0x104ec7fff FBSDKGamingServicesKit arm64 <9478b59ceaf3301f895f9a259ab82fa8> /var/containers/Bundle/Application/97F19A54-D4EA-4D20-94BA-DF88D87C9D8E/dragononlinemmorpg.app/Frameworks/FBSDKGamingServicesKit.framework/FBSDKGamingServicesKit
....

Your error code is: 0x8badf00d
This has already been answered here and is likely related to the networking of your application; given in it's a dragononlinemmorpg.
Apple has documentation on how to diagnose crash reports

Related

My app crashes when not launched from Xcode

Until today was running fine, with and without Xcode. But then I upgraded the device to iOS 14.2 beta and Xcode 12.1 to test some stuff. Then I ran the app with Xcode without problems but when I tried to run it without Xcode attached it simply crashes.
I'm guessing any of my 3rd party libraries might not be compatible with the coming iOS 14.2? But then how do I find which one?
How can I debug this if just happens when the app is not debugging?
Thanks in advance.
Edit: I was able to use Xcode to retrieve this crash log:
Incident Identifier: 457D137B-4C71-4234-B00C-A7FCFB54B83E
CrashReporter Key: 8209fa6a3cb483ad2e2f83c4080e8b5156eec66d Hardware
Model: iPhone11,8 Process: city [744] Path:
/private/var/containers/Bundle/Application/BB8D479E-0C9F-4A22-ABB0-6E4371CA3CA3/city.app/city
Identifier: com.myapp.app Version: 836 (0.97)
Code Type: ARM-64 (Native) Role: Foreground
Parent Process: launchd [1] Coalition: com.myapp.app
[572]
Date/Time: 2020-11-04 17:38:27.4634 +0100 Launch Time:
2020-11-04 17:38:07.3599 +0100 OS Version: iPhone OS 14.2
(18B91) Release Type: User Baseband Version: 3.01.01 Report
Version: 104
Exception Type: EXC_CRASH (SIGKILL) Exception Codes:
0x0000000000000000, 0x0000000000000000 Exception Note:
EXC_CORPSE_NOTIFY Termination Reason: Namespace SPRINGBOARD, Code
0x8badf00d Termination Description: SPRINGBOARD, <RBSTerminateContext|
domain:10 code:0x8BADF00D explanation:process-launch watchdog
transgression: application<com.myapp.app>:744 exhausted real (wall
clock) time allowance of 20.00 seconds | ProcessVisibility: Foreground
| ProcessState: Running | WatchdogEvent: process-launch |
WatchdogVisibility: Foreground | WatchdogCPUStatistics: ( | "Elapsed
total CPU time (seconds): 9.720 (user 9.720, system 0.000), 8% CPU", |
"Elapsed application CPU time (seconds): 0.105, 0% CPU" | )
reportType:CrashLog maxTerminationResistance:Interactive> Triggered by
Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread Thread 0
Crashed: 0 libsystem_kernel.dylib 0x00000001d217bf5c
__ulock_wait + 8 1 libdispatch.dylib 0x00000001a4e71794 _dlock_wait + 56 2 libdispatch.dylib 0x00000001a4e716c0 _dispatch_once_wait + 124 3 UIKitCore 0x00000001a782c430 -[_UIApplicationConfigurationLoader
_loadInitializationContext] + 152 4 UIKitCore 0x00000001a782c77c -[_UIApplicationConfigurationLoader
applicationInitializationContext] + 32 5 UIKitCore
0x00000001a7813394 -[_UIScreenInitialDisplayConfigurationLoader
initialDisplayContext] + 180 6 UIKitCore
0x00000001a7813680 +[UIScreen initialize] + 128 7 libobjc.A.dylib
0x00000001b97cdc58 CALLING_SOME_+initialize_METHOD + 24 8
libobjc.A.dylib 0x00000001b97d4318
initializeNonMetaClass + 716 9 libobjc.A.dylib
0x00000001b97d5910 initializeAndMaybeRelock+ 39184 (objc_class*,
objc_object*, mutex_tt<false>&, bool) + 280 10 libobjc.A.dylib
0x00000001b97e4498 lookUpImpOrForward + 956 11 libobjc.A.dylib
0x00000001b97ce524 _objc_msgSend_uncached + 68 12 UIKitCore
0x00000001a782cc80 _UIGetCurrentFallbackTraitCollection + 100 13
UIKitCore 0x00000001a78299d8 +[UITraitCollection
_currentTraitCollectionWithFallback:markFallback:] + 176 14 UIKitCore 0x00000001a7831454 _UICurrentImageTraitCollection + 28 15 UIKitCore
0x00000001a78310f4 +[UIImageConfiguration
_completeConfiguration:fromConfiguration:] + 164 16 UIKitCore 0x00000001a77dfad0 +[UIImage imageNamed:inBundle:withConfiguration:]
+ 180 17 UnityFramework 0x00000001059fbb38 +[LUTheme initialize] + 10468152 (LUTheme.m:150) 18 libobjc.A.dylib
0x00000001b97cdc58 CALLING_SOME_+initialize_METHOD + 24 19
libobjc.A.dylib 0x00000001b97d4318
initializeNonMetaClass + 716 20 libobjc.A.dylib
0x00000001b97d5910 initializeAndMaybeRelock+ 39184 (objc_class*,
objc_object*, mutex_tt<false>&, bool) + 280 21 libobjc.A.dylib
0x00000001b97e4498 lookUpImpOrForward + 956 22 libobjc.A.dylib
0x00000001b97ce524 _objc_msgSend_uncached + 68 23 UnityFramework
0x00000001059ddd00 +[LUConsoleLogEntry load] + 10345728
(LUConsoleLogEntry.m:44) 24 libobjc.A.dylib
0x00000001b97dd21c load_images + 928 25 libdyld.dylib
0x00000001a4ec1840 invocation function for block in
dyld3::AllImages::runInitialzersBottomUp+ 71744 (dyld3::closure::Image
const*) + 224 26 libdyld.dylib 0x00000001a4eb318c
dyld3::closure::Image::forEachImageToInitBefore(void + 12684 (unsigned
int, bool&) block_pointer) const + 104 27 libdyld.dylib
0x00000001a4ec2344 dyld3::AllImages::loadImage+ 74564 (Diagnostics&,
char const*, unsigned int, dyld3::closure::DlopenClosure const*, bool,
bool, bool, bool, void const*) + 828 28 libdyld.dylib
0x00000001a4ec1e2c dyld3::AllImages::dlopen+ 73260 (Diagnostics&,
char const*, bool, bool, bool, bool, bool, void const*, bool) + 904 29
libdyld.dylib 0x00000001a4ec3d14
dyld3::dlopen_internal+ 81172 (char const*, int, void*) + 372 30
libdyld.dylib 0x00000001a4eb5d44 dlopen_internal+
23876 (char const*, int, void*) + 112 31 CoreFoundation
0x00000001a51d2124 _CFBundleDlfcnLoadFramework + 140 32
CoreFoundation 0x00000001a51a1e10
_CFBundleLoadExecutableAndReturnError + 384 33 Foundation 0x00000001a64d1908 -[NSBundle loadAndReturnError:] + 336 34 city
0x0000000102533cb0 UnityFrameworkLoad() + 31920 (main.mm:12) 35 city
0x0000000102533db4 main + 32180 (main.mm:25) 36 libdyld.dylib
0x00000001a4eb16c0 start + 4
Thread 1 name: Dispatch queue:
com.apple.uikit.applicationSupportClient Thread 1: 0
libsystem_kernel.dylib 0x00000001d217b204 __psynch_mutexwait +
8 1 libsystem_pthread.dylib 0x00000001ee698214
_pthread_mutex_firstfit_lock_wait + 92 2 libsystem_pthread.dylib 0x00000001ee698164 _pthread_mutex_firstfit_lock_slow + 216 3
libdyld.dylib 0x00000001a4ec3bec
dyld3::dlopen_internal+ 80876 (char const*, int, void*) + 76 4
libdyld.dylib 0x00000001a4eb5d44 dlopen_internal+
23876 (char const*, int, void*) + 112 5 SoftLinking
0x00000001e634bf50 _sl_dlopen_audited + 52 6 BoardServices
0x00000001be0cb160 __getRBSServiceInitializeSymbolLoc_block_invoke +
84 7 BoardServices 0x00000001be0c8720
__34+[BSServiceManager sharedInstance]_block_invoke + 900 8 libdispatch.dylib 0x00000001a4e70db0
_dispatch_client_callout + 20 9 libdispatch.dylib 0x00000001a4e725c8 _dispatch_once_callout + 32 10 BoardServices
0x00000001be0c8398 +[BSServiceManager sharedInstance] + 84 11
BoardServices 0x00000001be0c0924
+[BSServiceConnection _connectionWithEndpoint:clientContextBuilder:] + 324 12 UIKitServices 0x00000001a9276a50
__44-[UISApplicationSupportClient _remoteTarget]_block_invoke + 208 13 libdispatch.dylib 0x00000001a4e70db0
_dispatch_client_callout + 20 14 libdispatch.dylib 0x00000001a4e7f428 _dispatch_lane_barrier_sync_invoke_and_complete +
60 15 UIKitServices 0x00000001a9276938
-[UISApplicationSupportClient _remoteTarget] + 184 16 UIKitServices 0x00000001a9276160 -[UISApplicationSupportClient
applicationInitializationContextWithParameters:] + 196 17 UIKitCore
0x00000001a782c5b0 __63-[_UIApplicationConfigurationLoader
_loadInitializationContext]_block_invoke_2 + 228 18 UIKitCore 0x00000001a782c4c0
__UIAPPLICATION_IS_LOADING_INITIALIZATION_INFO_FROM_THE_SYSTEM__ + 28 19 UIKitCore 0x00000001a782c498
__63-[_UIApplicationConfigurationLoader _loadInitializationContext]_block_invoke + 100 20 libdispatch.dylib 0x00000001a4e70db0 _dispatch_client_callout + 20 21
libdispatch.dylib 0x00000001a4e725c8
_dispatch_once_callout + 32 22 UIKitCore 0x00000001a782c430 -[_UIApplicationConfigurationLoader
_loadInitializationContext] + 152 23 UIKitCore 0x00000001a782c740 __70-[_UIApplicationConfigurationLoader
startPreloadInitializationContext]_block_invoke + 28 24
libdispatch.dylib 0x00000001a4e6f24c
_dispatch_call_block_and_release + 32 25 libdispatch.dylib 0x00000001a4e70db0 _dispatch_client_callout + 20 26
libdispatch.dylib 0x00000001a4e81a68
_dispatch_root_queue_drain + 656 27 libdispatch.dylib 0x00000001a4e82120 _dispatch_worker_thread2 + 116 28
libsystem_pthread.dylib 0x00000001ee6947c8 _pthread_wqthread +
216 29 libsystem_pthread.dylib 0x00000001ee69b75c
start_wqthread + 8
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0xfffffffffffffffc x1: 0x0000000000000000 x2: 0x0000000000001801 x3: 0x0000000000000000
x4: 0x00000001a4e861c8 x5: 0x0000000000000000 x6: 0x0000000000000000 x7: 0x0000000000000023
x8: 0x0000000000001c07 x9: 0x0000000000001800 x10: 0x0000000000000001 x11: 0x000000000000000f x12: 0x0000000000cb4333
x13: 0x0300000204a4a729 x14: 0x0000000000000000 x15:
0x0000000204a4a728 x16: 0x0000000000000203 x17: 0x00000001a782c434
x18: 0x0000000000000000 x19: 0x0000000000000000 x20:
0x0000000204a5bf20 x21: 0x0000000001000002 x22: 0x0000000000001801
x23: 0x0000000000000008 x24: 0x0000000000000008 x25:
0x00000002049efa7c x26: 0x00000001029c39a0 x27: 0x00000002049ef000
x28: 0x00000001fad4b000 fp: 0x000000016d8cd840 lr:
0x00000001a4e71794
sp: 0x000000016d8cd820 pc: 0x00000001d217bf5c cpsr: 0x00000000 esr: 0x56000080 Address size fault
Binary Images: 0x10252c000 - 0x102533fff city arm64
<982dcb0901db3c84a30ab03723b50e64>
/var/containers/Bundle/Application/BB8D479E-0C9F-4A22-ABB0-6E4371CA3CA3/city.app/city
0x102918000 - 0x102987fff dyld arm64e
<a5f65ef3bd32370b9821b3e9cda294d2> /usr/lib/dyld 0x105000000 -
0x109c5ffff UnityFramework arm64 <e59b3708514d3bbab0f36aa67ddd48c2>
/var/containers/Bundle/Application/BB8D479E-0C9F-4A22-ABB0-6E4371CA3CA3/city.app/Frameworks/UnityFramework.framework/UnityFramework
0x1a4e6d000 - 0x1a4eaffff libdispatch.dylib arm64e
<3277bf1eb99436099b30e0186bbf3c25> /usr/lib/system/libdispatch.dylib
0x1a4eb0000 - 0x1a4eeafff libdyld.dylib arm64e
<ba60cb9e95c53646beedd313e15586cf> /usr/lib/system/libdyld.dylib
0x1a4eeb000 - 0x1a5156fff libicucore.A.dylib arm64e
<844c0712322438dcb019d7d4bbbddf17> /usr/lib/libicucore.A.dylib
0x1a5157000 - 0x1a5510fff CoreFoundation arm64e
<af3f8e01c1303464ad40c5532d273483>
/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
0x1a5511000 - 0x1a56bbfff CoreServices arm64e
<f036999028923bd39ccb7d9436a145cb>
/System/Library/Frameworks/CoreServices.framework/CoreServices
0x1a56bc000 - 0x1a5704fff WirelessDiagnostics arm64e
<7bcb1847440837d3ad100dae2432129e>
/System/Library/PrivateFrameworks/WirelessDiagnostics.framework/WirelessDiagnostics
0x1a5705000 - 0x1a577ffff SystemConfiguration arm64e
<98796725fd6c39b6af67b09485215996>
/System/Library/Frameworks/SystemConfiguration.framework/SystemConfiguration
0x1a5780000 - 0x1a5877fff CoreTelephony arm64e
<1865753878113c668fdce282c9999252>
/System/Library/Frameworks/CoreTelephony.framework/CoreTelephony
0x1a5878000 - 0x1a5d0ffff CFNetwork arm64e
<f8c7b81649ab39479309b8975a7ccea0>
/System/Library/Frameworks/CFNetwork.framework/CFNetwork 0x1a5d10000 -
0x1a641dfff libnetwork.dylib arm64e
<267d1486bbbd34efbc93d51b2460b9e9> /usr/lib/libnetwork.dylib
0x1a641e000 - 0x1a6494fff Accounts arm64e
<6c32f1bd45c730a9b5955eac14fb5142>
/System/Library/Frameworks/Accounts.framework/Accounts 0x1a6495000 -
0x1a6750fff Foundation arm64e <5c24ee4a344736bd99106f4d9616d692>
/System/Library/Frameworks/Foundation.framework/Foundation 0x1a6751000
- 0x1a6ab0fff ImageIO arm64e <ce6bb6d9752139118ba03e6b8b147f40> /System/Library/Frameworks/ImageIO.framework/ImageIO 0x1a6aca000 -
0x1a7062fff CoreGraphics arm64e <5fbf586867c23779be8102182faff4b0>
/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics
0x1a7063000 - 0x1a850efff UIKitCore arm64e
<05147936b8753ef394db9c8869bb0e34>
/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore
0x1a850f000 - 0x1a852efff libAccessibility.dylib arm64e
<b88743822b4f3f4ea0ca1408c2a86634> /usr/lib/libAccessibility.dylib
0x1a852f000 - 0x1a87b3fff QuartzCore arm64e
<dc2644e7e5e43d839110a5ae7e2c8b1f>
/System/Library/Frameworks/QuartzCore.framework/QuartzCore 0x1a87b4000
- 0x1a881ffff BackBoardServices arm64e <4827f4d1b8c13c59a7f6d4549556356a>
/System/Library/PrivateFrameworks/BackBoardServices.framework/BackBoardServices
0x1a8820000 - 0x1a88adfff TextInput arm64e
<c1bac3dcbbc138beb86782ab8c97227d>
/System/Library/PrivateFrameworks/TextInput.framework/TextInput
0x1a8917000 - 0x1a8cc1fff AppleMediaServices arm64e
<3793486f3f3b362b89c78990298a1d23>
/System/Library/PrivateFrameworks/AppleMediaServices.framework/AppleMediaServices
0x1a8cc2000 - 0x1a8e3dfff libswiftFoundation.dylib arm64e
<b3a87bce17c73fe1ad8e4f5ac865f27c>
/usr/lib/swift/libswiftFoundation.dylib 0x1a8e3e000 - 0x1a926dfff
libswiftCore.dylib arm64e <bd74e14183993d02bd9d2cab2337e1a0>
/usr/lib/swift/libswiftCore.dylib 0x1a926e000 - 0x1a9284fff
UIKitServices arm64e <4ad58e2b1d973bc38aeaedce472d1cbd>
/System/Library/PrivateFrameworks/UIKitServices.framework/UIKitServices
0x1a9285000 - 0x1a93dcfff Preferences arm64e
<3cd6d9dd89b03d1aa984f3c2ba0228e2>
As the error message tells you, "process-launch watchdog transgression: exhausted real (wall clock) time allowance of 20.00 seconds". Your app is taking too long to launch.
The reason this doesn't happen when launching from Xcode is that the watchdog is turned off under those circumstances. But it is still taking too long to launch, even from Xcode!
The reason for taking so long is that you have misunderstood how to launch. Do not perform tasks during launch (on the main thread). Your job during launch is to get out of the way and let the device launch the app and get it running. The best thing for you to do during launch is nothing. Just stand back.
If you have time-consuming tasks to perform, do them later and on a background thread.

PHImageManager requestImage Crashing

anyone has any idea what could cause a crash in request Image. I have this symbolicated crash but no idea.
I'm just trying to get the data of a photo after using the image picker. One million thanks if you have!
The problem has been found in the review of my app but I'm not able to reproduce it :(
EDit: I have Added more information about the crash log
{"app_name":"VideoLUT","timestamp":"2020-10-12 16:50:59.00 -0700","app_version":"1.06","slice_uuid":"37a6afee-cc6e-3e64-8d33-4bac9759f096","adam_id":1532861990,"build_version":"15","platform":2,"bundleID":"com.malatok.tonebox","share_with_app_devs":0,"is_first_party":0,"bug_type":"109","os_version":"iPhone OS 14.0.1 (18A393)","incident_id":"0DB9EFD3-B359-4587-AD4D-E8B83B1A398D","name":"VideoLUT"}
Incident Identifier: 0DB9EFD3-B359-4587-AD4D-E8B83B1A398D
CrashReporter Key: 8f4684b617f51ed34d09ed52c6b1a1160a43773c
Hardware Model: iPad11,3
Process: VideoLUT [1986]
Path: /private/var/containers/Bundle/Application/444CE516-B292-4EA9-A0AD-649F85479289/VideoLUT.app/VideoLUT
Identifier: com.videolut
Version: 15 (1.06)
AppStoreTools: 12A7207
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd [1]
Date/Time: 2020-10-12 16:50:59.0271 -0700
Launch Time: 2020-10-12 13:47:32.6334 -0700
OS Version: iPhone OS 14.0.1 (18A393)
Release Type: User
Baseband Version: n/a
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Triggered by Thread: 0
Application Specific Information:
abort() called
Last Exception Backtrace:
0 CoreFoundation 0x1938eb5ac __exceptionPreprocess + 220
1 libobjc.A.dylib 0x1a796542c objc_exception_throw + 59
2 CoreFoundation 0x1937f41b4 +[NSException raise:format:arguments:] + 99
3 Foundation 0x194b527bc -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 131
4 Photos 0x1a3fe7390 +[PHImageManagerRequestTracer registerRequestID:withAssetUUID:] + 287
5 Photos 0x1a40626cc -[PHImageManager runRequestWithContext:] + 683
6 Photos 0x1a4061900 -[PHImageManager requestImageDataAndOrientationForAsset:options:resultHandler:] + 995
7 VideoLUT 0x1009158d8 -[ProjectManager importPhoto13:dismiss:] + 465112 (ProjectManager.m:195)
8 VideoLUT 0x100914828 -[ProjectManager createProjectWithAsset:uti:] + 460840 (ProjectManager.m:0)
9 VideoLUT 0x1009d7eb4 __74-[HomeViewController imagePickerController:didFinishPickingMediaWithInfo:]_block_invoke + 1261236 (HomeViewController.m:347)
10 UIKitCore 0x1959f4df0 -[UIPresentationController transitionDidFinish:] + 1019
11 UIKitCore 0x1959ff25c -[_UICurrentContextPresentationController transitionDidFinish:] + 43
12 UIKitCore 0x1959f9540 __56-[UIPresentationController runTransitionForCurrentState]_block_invoke.528 + 211
13 UIKitCore 0x195b3477c -[_UIViewControllerTransitionContext completeTransition:] + 111
14 UIKitCore 0x1966f0260 -[UITransitionView notifyDidCompleteTransition:] + 243
15 UIKitCore 0x1966eff0c -[UITransitionView _didCompleteTransition:] + 1135
16 UIKitCore 0x196726ca8 -[UIViewAnimationBlockDelegate _didEndBlockAnimation:finished:context:] + 723
17 UIKitCore 0x1966f9f48 -[UIViewAnimationState sendDelegateAnimationDidStop:finished:] + 247
18 UIKitCore 0x1966fa47c -[UIViewAnimationState animationDidStop:finished:] + 247
19 UIKitCore 0x1966fa5e0 -[UIViewAnimationState animationDidStop:finished:] + 603
20 QuartzCore 0x196c51cb4 CA::Layer::run_animation_callbacks+ 1510580 (void*) + 279
21 libdispatch.dylib 0x1934e9ac8 _dispatch_client_callout + 19
22 libdispatch.dylib 0x1934f704c _dispatch_main_queue_callback_4CF + 835
23 CoreFoundation 0x1938681e4 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 15
24 CoreFoundation 0x1938623b4 __CFRunLoopRun + 2507
25 CoreFoundation 0x1938614bc CFRunLoopRunSpecific + 599
26 GraphicsServices 0x1aa2e6820 GSEventRunModal + 163
27 UIKitCore 0x196205734 -[UIApplication _run] + 1071
28 UIKitCore 0x19620ae10 UIApplicationMain + 167
29 VideoLUT 0x100931674 main + 579188 (main.m:14)
30 libdyld.dylib 0x193528e60 start + 3
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x00000001bf1a998c __pthread_kill + 8
1 libsystem_pthread.dylib 0x00000001da1c3c74 pthread_kill + 272
2 libsystem_c.dylib 0x000000019c9edbb4 abort + 104
3 libc++abi.dylib 0x00000001a7a64e24 __cxxabiv1::__aligned_malloc_with_fallback+ 65060 (unsigned long) + 0
4 libc++abi.dylib 0x00000001a7a56434 demangling_unexpected_handler+ 5172 () + 0
5 libobjc.A.dylib 0x00000001a7965710 _objc_terminate+ 42768 () + 132
6 libc++abi.dylib 0x00000001a7a642a8 std::__terminate(void (*)+ 62120 ()) + 20
7 libc++abi.dylib 0x00000001a7a64234 std::terminate+ 62004 () + 44
8 libdispatch.dylib 0x00000001934e9adc _dispatch_client_callout + 40
9 libdispatch.dylib 0x00000001934f704c _dispatch_main_queue_callback_4CF + 836
10 CoreFoundation 0x00000001938681e4 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 16
11 CoreFoundation 0x00000001938623b4 __CFRunLoopRun + 2508
12 CoreFoundation 0x00000001938614bc CFRunLoopRunSpecific + 600
13 GraphicsServices 0x00000001aa2e6820 GSEventRunModal + 164
14 UIKitCore 0x0000000196205734 -[UIApplication _run] + 1072
15 UIKitCore 0x000000019620ae10 UIApplicationMain + 168
16 VideoLUT 0x0000000100931674 main + 579188 (main.m:14)
17 libdyld.dylib 0x0000000193528e60 start + 4
Thread 1 name: com.apple.uikit.eventfetch-thread
Thread 1:
0 libsystem_kernel.dylib 0x00000001bf185dd0 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001bf185184 mach_msg + 76
2 CoreFoundation 0x0000000193867cf8 __CFRunLoopServiceMachPort + 380
3 CoreFoundation 0x0000000193861ea8 __CFRunLoopRun + 1216
4 CoreFoundation 0x00000001938614bc CFRunLoopRunSpecific + 600
5 Foundation 0x0000000194adee30 -[NSRunLoop+ 32304 (NSRunLoop) runMode:beforeDate:] + 232
6 Foundation 0x0000000194aded08 -[NSRunLoop+ 32008 (NSRunLoop) runUntilDate:] + 92
7 UIKitCore 0x00000001962b5e94 -[UIEventFetcher threadMain] + 516
8 Foundation 0x0000000194c490f0 __NSThread__start__ + 864
9 libsystem_pthread.dylib 0x00000001da1c2ca8 _pthread_start + 320
10 libsystem_pthread.dylib 0x00000001da1cb788 thread_start + 8
Thread 2 name: AVAudioSession Notify Thread
Thread 2:
0 libsystem_kernel.dylib 0x00000001bf185dd0 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001bf185184 mach_msg + 76
2 CoreFoundation 0x0000000193867cf8 __CFRunLoopServiceMachPort + 380
3 CoreFoundation 0x0000000193861ea8 __CFRunLoopRun + 1216
4 CoreFoundation 0x00000001938614bc CFRunLoopRunSpecific + 600
5 AudioSession 0x000000019b1032ac GenericRunLoopThread::Entry+ 53932 (void*) + 164
6 AudioSession 0x000000019b105390 CAPThread::Entry+ 62352 (CAPThread*) + 92
7 libsystem_pthread.dylib 0x00000001da1c2ca8 _pthread_start + 320
8 libsystem_pthread.dylib 0x00000001da1cb788 thread_start + 8
Thread 3:
0 libsystem_pthread.dylib 0x00000001da1cb774 start_wqthread + 0
Thread 4:
0 libsystem_pthread.dylib 0x00000001da1cb774 start_wqthread + 0
Thread 5:
0 libsystem_pthread.dylib 0x00000001da1cb774 start_wqthread + 0
Thread 6 name: Dispatch queue: com.apple.root.default-qos
Thread 6:
0 libsystem_kernel.dylib 0x00000001bf185e0c semaphore_wait_trap + 8
1 libdispatch.dylib 0x00000001934ea018 _dispatch_sema4_wait + 28
2 libdispatch.dylib 0x00000001934ea6b0 _dispatch_semaphore_wait_slow + 132
3 UIKitCore 0x000000019661b51c __69+[_UIAsyncInvocationObserver whenInvocationsCompleteForObservers:do:]_block_invoke_2 + 72
4 libdispatch.dylib 0x00000001934e7fd0 _dispatch_call_block_and_release + 32
5 libdispatch.dylib 0x00000001934e9ac8 _dispatch_client_callout + 20
6 libdispatch.dylib 0x00000001934eca10 _dispatch_queue_override_invoke + 692
7 libdispatch.dylib 0x00000001934fa104 _dispatch_root_queue_drain + 356
8 libdispatch.dylib 0x00000001934fa8e8 _dispatch_worker_thread2 + 116
9 libsystem_pthread.dylib 0x00000001da1c48cc _pthread_wqthread + 216
10 libsystem_pthread.dylib 0x00000001da1cb77c start_wqthread + 8
Thread 7:
0 libsystem_pthread.dylib 0x00000001da1cb774 start_wqthread + 0
Thread 8:
0 libsystem_pthread.dylib 0x00000001da1cb774 start_wqthread + 0
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000000 x1: 0x0000000000000000 x2: 0x0000000000000000 x3: 0x0000000000000000
x4: 0x000000016f559ff0 x5: 0x000000016f55a5a0 x6: 0x000000000000006e x7: 0x00000000000dab00
x8: 0x00000000000005b9 x9: 0xb08acf1d630ebb4e x10: 0x0000000000000002 x11: 0x0000000000000003
x12: 0x0000000000000000 x13: 0x0000000000000001 x14: 0x0000000000000010 x15: 0x0000000000000010
x16: 0x0000000000000148 x17: 0x00000001010c38c0 x18: 0x00000001070ad630 x19: 0x0000000000000006
x20: 0x0000000000000407 x21: 0x00000001010c39a0 x22: 0x0000000000000000 x23: 0x0000000000000000
x24: 0x0000000002ffffff x25: 0x00000001010c39a0 x26: 0x00000000000020ff x27: 0x0000000000000104
x28: 0x0000000283a0cf00 fp: 0x000000016f55a500 lr: 0x00000001da1c3c74
sp: 0x000000016f55a4e0 pc: 0x00000001bf1a998c cpsr: 0x40000000
esr: 0x56000080 Address size fault

Unable to find the cause of crash-Exception Type: EXC_BREAKPOINT (SIGTRAP)

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.

IOS13 iPad Settings crashing for already paid app

Our apps on the AppStore have been running for years without any issues. However, since the release of iOS 13, although apps still working fine, but going into
iPad Settings -> MyApp
Crashes and the settings app would end, no issues with previous iOS releases whatsoever.
I looked on the Device Logs from the XCODE Organiser, and can see the following in the logs:
Incident Identifier: DC00F244-958C-407F-BDC9-CFD7D6C3D8C8
CrashReporter Key: e5b2979fc92fb936e83ef8fdab74fbd1c0707ce3
Hardware Model: iPad6,4
Process: Preferences [530]
Path: /Applications/Preferences.app/Preferences
Identifier: com.apple.Preferences
Version: 161.2 (1)
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd [1]
Coalition: com.apple.Preferences [634]
Date/Time: 2019-10-05 06:18:38.6274 +0100
Launch Time: 2019-10-05 06:18:17.3730 +0100
OS Version: iPhone OS 13.1.2 (17A860)
Release Type: User
Baseband Version: 7.00.01
Report Version: 104
Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000001, 0x00000001a581fefc
Termination Signal: Trace/BPT trap: 5
Termination Reason: Namespace SIGNAL, Code 0x5
Terminating Process: exc handler [530]
Triggered by Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libswiftCore.dylib 0x00000001a581fefc specialized _assertionFailure+ 2154236 (_:_:file:line:flags:) + 440
1 libswiftCore.dylib 0x00000001a581fefc specialized _assertionFailure+ 2154236 (_:_:file:line:flags:) + 440
2 libswiftCore.dylib 0x00000001a563b64c _assertionFailure+ 169548 (_:_:file:line:flags:) + 32
3 SettingsUIKitPrivate 0x00000001bfce0c24 0x1bfcda000 + 27684
4 SettingsUIKitPrivate 0x00000001bfce0fd4 0x1bfcda000 + 28628
5 SwiftUI 0x00000001cd28d86c Binding.init+ 6629484 (get:set:) + 144
6 SettingsUIKitPrivate 0x00000001bfcdf654 0x1bfcda000 + 22100
7 SettingsUIKitPrivate 0x00000001bfcdca54 0x1bfcda000 + 10836
8 SettingsUIKitPrivate 0x00000001bfcdc44c 0x1bfcda000 + 9292
9 SwiftUI 0x00000001cccf88e4 DynamicPropertyBody.update+ 776420 (context:) + 1768
10 SwiftUI 0x00000001cccf9070 protocol witness for static UntypedAttribute._update+ 778352 (_:graph:attribute:) in conformance DynamicPropertyBody<A> + 36
11 AttributeGraph 0x00000001c248e458 partial apply + 28
12 AttributeGraph 0x00000001c2476a60 AG::Graph::UpdateStack::update+ 14944 () + 984
13 AttributeGraph 0x00000001c2476d24 AG::Graph::update_attribute+ 15652 (unsigned int, bool) + 372
14 AttributeGraph 0x00000001c2479e9c AG::Graph::value_ref+ 28316 (AG::attribute_t, AGTypeID, bool*) + 116
15 AttributeGraph 0x00000001c24815ac AG::Graph::EntryExit::update_entry+ 58796 () const + 64
16 AttributeGraph 0x00000001c2476a60 AG::Graph::UpdateStack::update+ 14944 () + 984
17 AttributeGraph 0x00000001c2476d24 AG::Graph::update_attribute+ 15652 (unsigned int, bool) + 372
18 AttributeGraph 0x00000001c2479e9c AG::Graph::value_ref+ 28316 (AG::attribute_t, AGTypeID, bool*) + 116
19 AttributeGraph 0x00000001c24879e4 AGGraphGetValue + 48
20 SwiftUI 0x00000001cce25c20 ViewGraph.sizeThatFits+ 2010144 (_:) + 100
21 SwiftUI 0x00000001cd2e0520 specialized ListItemHost<>.hostSizeThatFits+ 6968608 (width:) + 120
22 SwiftUI 0x00000001ccefb250 #objc ListCoreCellHost.sizeThatFits+ 2884176 (_:) + 48
23 UIKitCore 0x000000019c666b98 -[UITableViewCell systemLayoutSizeFittingSize:withHorizontalFittingPriority:verticalFittingPriority:] + 592
24 UIKitCore 0x000000019c6dce38 -[UITableView _heightForCell:atIndexPath:] + 436
25 UIKitCore 0x000000019c6c544c __53-[UITableView _configureCellForDisplay:forIndexPath:]_block_invoke + 2568
26 UIKitCore 0x000000019c971d08 +[UIView+ 15129864 (Animation) performWithoutAnimation:] + 96
27 UIKitCore 0x000000019c6c495c -[UITableView _configureCellForDisplay:forIndexPath:] + 248
28 UIKitCore 0x000000019c6d5a04 -[UITableView _createPreparedCellForGlobalRow:withIndexPath:willDisplay:] + 796
29 UIKitCore 0x000000019c6a338c -[UITableView _updateVisibleCellsNow:] + 2608
30 UIKitCore 0x000000019c6c04b0 -[UITableView layoutSubviews] + 160
31 SwiftUI 0x00000001ccef4438 UpdateCoalescingTableView.layoutSubviews+ 2855992 () + 56
32 SwiftUI 0x00000001ccef45e4 #objc UpdateCoalescingTableView.layoutSubviews+ 2856420 () + 28
33 UIKitCore 0x000000019c97f270 -[UIView+ 15184496 (CALayerDelegate) layoutSublayersOfLayer:] + 2140
34 QuartzCore 0x000000019ee6b5f8 -[CALayer layoutSublayers] + 284
35 QuartzCore 0x000000019ee6fe28 CA::Layer::layout_if_needed+ 1396264 (CA::Transaction*) + 480
36 QuartzCore 0x000000019ee7b894 CA::Layer::layout_and_display_if_needed+ 1443988 (CA::Transaction*) + 136
37 QuartzCore 0x000000019edc49f0 CA::Context::commit_transaction+ 694768 (CA::Transaction*, double) + 304
38 QuartzCore 0x000000019edee890 CA::Transaction::commit+ 866448 () + 676
39 QuartzCore 0x000000019edef284 CA::Transaction::observer_callback+ 868996 (__CFRunLoopObserver*, unsigned long, void*) + 92
40 CoreFoundation 0x0000000198463c48 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 32
41 CoreFoundation 0x000000019845eb34 __CFRunLoopDoObservers + 416
42 CoreFoundation 0x000000019845f100 __CFRunLoopRun + 1308
43 CoreFoundation 0x000000019845e8bc CFRunLoopRunSpecific + 464
44 GraphicsServices 0x00000001a22ca328 GSEventRunModal + 104
45 UIKitCore 0x000000019c4f46d4 UIApplicationMain + 1936
46 Preferences 0x0000000104869974 0x104860000 + 39284
47 libdyld.dylib 0x00000001982e9460 start + 4
Thread 1:
0 libsystem_pthread.dylib 0x0000000198206ad8 start_wqthread + 0
Thread 2:
0 libsystem_pthread.dylib 0x0000000198206ad8 start_wqthread + 0
Thread 3 name: com.apple.uikit.eventfetch-thread
Thread 3:
0 libsystem_kernel.dylib 0x00000001982bd5f4 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001982bca60 mach_msg + 72
2 CoreFoundation 0x0000000198464068 __CFRunLoopServiceMachPort + 216
3 CoreFoundation 0x000000019845f188 __CFRunLoopRun + 1444
4 CoreFoundation 0x000000019845e8bc CFRunLoopRunSpecific + 464
5 Foundation 0x000000019879e994 -[NSRunLoop+ 31124 (NSRunLoop) runMode:beforeDate:] + 228
6 Foundation 0x000000019879e874 -[NSRunLoop+ 30836 (NSRunLoop) runUntilDate:] + 88
7 UIKitCore 0x000000019c58c49c -[UIEventFetcher threadMain] + 152
8 Foundation 0x00000001988cf0b0 __NSThread__start__ + 848
9 libsystem_pthread.dylib 0x00000001982031ec _pthread_start + 124
10 libsystem_pthread.dylib 0x0000000198206aec thread_start + 8
Thread 4:
0 libsystem_pthread.dylib 0x0000000198206ad8 start_wqthread + 0
Thread 5:
0 libsystem_pthread.dylib 0x0000000198206ad8 start_wqthread + 0
Thread 6 name: com.apple.NSURLConnectionLoader
Thread 6:
0 libsystem_kernel.dylib 0x00000001982bd5f4 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001982bca60 mach_msg + 72
2 CoreFoundation 0x0000000198464068 __CFRunLoopServiceMachPort + 216
3 CoreFoundation 0x000000019845f188 __CFRunLoopRun + 1444
4 CoreFoundation 0x000000019845e8bc CFRunLoopRunSpecific + 464
5 CFNetwork 0x000000019b6d9e68 0x19b6d8000 + 7784
6 Foundation 0x00000001988cf0b0 __NSThread__start__ + 848
7 libsystem_pthread.dylib 0x00000001982031ec _pthread_start + 124
8 libsystem_pthread.dylib 0x0000000198206aec thread_start + 8
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0xe000000000000000 x1: 0x0000000280915800 x2: 0x0000000000000007 x3: 0x00000001981ce0dc
x4: 0x0000000000000000 x5: 0x000000016b59a5f0 x6: 0x0000000000000072 x7: 0x0000000000000c70
x8: 0x00000000dfc24834 x9: 0x000000000000007f x10: 0x0000000000000031 x11: 0x00000000000007fb
x12: 0x00000000000007fd x13: 0x0000000000000000 x14: 0x00000000dfe25000 x15: 0x000000000000004a
x16: 0x0000000080000000 x17: 0x000000005fe00000 x18: 0x0000000000000000 x19: 0x00000001bfcfd020
x20: 0x0000000000000002 x21: 0x0000000000000000 x22: 0x00000000000000a8 x23: 0x0000000000000000
x24: 0xe000000000000000 x25: 0x000000000000000b x26: 0x0000000000000000 x27: 0x0000000000000095
x28: 0x00000001bfce0fbc fp: 0x000000016b59a790 lr: 0x00000001a581fefc
sp: 0x000000016b59a710 pc: 0x00000001a581fefc cpsr: 0x60000000
esr: 0xf2000001 Address size fault
I'm scratching my head on this one, the app works fine, just the settings having this issue.
I have a plan about how to diagnose and fix and hopefully should resolve soon but wondered if anyone has seen this yet?
Thanks
Finally, after few hours of going through the settings, code, etc, I finally fixed it.
The approach was to:
1) Edit my APP setting's info.plist file (as text) and take out all sections into text editor, the file almost becomes blank.
2) Re-compile and run on the iPad -> STOP APP -> Go to Settings -> Click on the APP, it now works fine without my settings, so, I thought something must have caused all this.
3) Started pasting back part-by-part into the info.plist file until I finally got the offending section, which was below:
<dict>
<key>AutocapitalizationType</key>
<string>None</string>
<key>AutocorrectionType</key>
<string>No</string>
<key>DefaultValue</key>
<string>8101</string>
<key>IsSecure</key>
<string>No</string>
<key>Key</key>
<string>Admin_iTaxi Server Port</string>
<key>KeyboardType</key>
<string>NumberPad</string>
<key>Title</key>
<string>Server Port </string>
<key>Type</key>
<string>PSTextFieldSpecifier</string>
</dict>
4) Looked very strange and bizarre, ... I mean what could possibly be wrong with the above chunk?!... and why was this working on all iOSes until the latest iOS13!?...
5) Checked all spelling, re-ordered the list to make it similar to another one that does work, changed the keyboard type, other items,... started-Stopped, checked settings, same thing,... still crashing!...
6) Finally, I changed the variable name from "Admin_iTaxi Server Port" to "Admin_iTaxi Server XXXPort", re-compiled, and it worked... hmmm... why!?...
7) Went back into the startup code, and noticed that I am setting the variables (if they don't exists) with the following:
if (!IsConfigKeyExist(#"Admin_iTaxi Server Port"))
{
TempServerPortAdmin = 8102;
[[NSUserDefaults standardUserDefaults] setInteger:TempServerPortAdmin forKey:#"Admin_iTaxi Server Port"];
}
8) I then thought, the info.plist file has KEYs and TYPEs, all are set as , can't remember setting any or etc, therefore.
9) Changed the code above into:
if (!IsConfigKeyExist(#"Admin_iTaxi Server Port"))
{
TempServerPortAdmin = 8102;
[[NSUserDefaults standardUserDefaults] setValue:[NSString stringWithFormat:#"%li", TempServerPortAdmin] forKey:#"Admin_iTaxi Server Port"];
}
10) Restored the original variable name on the info.plist, start-stop-check, ... Eureeka,.. it now works...
Conclusion: somehow down the line Apple in their wisdom decided to crash the settings app when they read an Integer into a String variable... why!?... I have no idea, but the fix (as mentioned above), is NOT to store your settings as "Integer" and infect only store as "String" especially if you are going to use these settings in your info.plist file.
This solves the problem of the app's settings crashing with EXC_BREAKPOINT (SIGTRAP)
I hope this helps.
Good luck!

NO_CRASH_STACK + 0 [Xcode 10.1] Crash

Im experiencing an error in my app affecting almost 80% of my active users.
It seems it has something to do with the thread
`com.twitter.crashlytics.ios.MachExceptionServer`
but I haven't been able to track it down, the worst thing of all is that I don't even know when this crash occurs, my guess is that it happens when the app is launching in the DidFinishLaunchingWithOptions method. :/
Hope you can help me out, I am new to this crash tracking thing.
Here is the crash log.
Incident Identifier: F627A1C2-A28A-4200-8920-1F77D3C0855C
CrashReporter Key: 88dbf413f263228712a90868f4c08e9d59a715f8
Hardware Model: iPhone10,4
Process: <APP_NAME> [1285]
Path: /private/var/containers/Bundle/Application/XXXXXXXXXXXXXXXXX/<APP_NAME>.app/<APP_NAME>
Identifier: xxx.xxxxxxxx.<APP_NAME>
Version: 34 (4.0.0)
AppStoreTools: 10B63
AppVariant: 1:iPhone10,4:12
Code Type: ARM-64 (Native)
Role: Non UI
Parent Process: launchd [1]
Coalition: xxx.xxxxxx.xxxxxx [677]
Date/Time: 2018-12-16 16:41:34.1689 -0600
Launch Time: 2018-12-16 15:52:00.9225 -0600
OS Version: iPhone OS 12.1 (16B92)
Baseband Version: 2.01.07
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000f262e3bc0
VM Region Info: 0xf262e3bc0 is not in any region. Bytes after previous region: 53790784449
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
MALLOC_NANO 0000000280000000-00000002a0000000 [512.0M] rw-/rwx SM=PRV
--->
UNUSED SPACE AT END
Termination Signal: Segmentation fault: 11
Termination Reason: Namespace SIGNAL, Code 0xb
Terminating Process: exc handler [1285]
Triggered by Thread: 10
Thread 0 name:
Thread 0:
0 libsystem_kernel.dylib 0x0000000203c3bed0 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x0000000203c3b3a8 mach_msg + 72 (mach_msg.c:103)
2 CoreFoundation 0x000000020403fbc4 __CFRunLoopServiceMachPort + 236 (CFRunLoop.c:2615)
3 CoreFoundation 0x000000020403aa60 __CFRunLoopRun + 1396 (CFRunLoop.c:2971)
4 CoreFoundation 0x000000020403a1cc CFRunLoopRunSpecific + 436 (CFRunLoop.c:3247)
5 GraphicsServices 0x00000002062b1584 GSEventRunModal + 100 (GSEvent.c:2245)
6 UIKitCore 0x000000023127d054 UIApplicationMain + 212 (UIApplication.m:4347)
7 <APP_NAME> 0x0000000104ae4548 main + 17736 (AppDelegate.swift:22)
8 libdyld.dylib 0x0000000203afabb4 start + 4
Thread 1 name:
Thread 1:
0 libsystem_kernel.dylib 0x0000000203c3bed0 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x0000000203c3b3a8 mach_msg + 72 (mach_msg.c:103)
2 CoreFoundation 0x000000020403fbc4 __CFRunLoopServiceMachPort + 236 (CFRunLoop.c:2615)
3 CoreFoundation 0x000000020403aa60 __CFRunLoopRun + 1396 (CFRunLoop.c:2971)
4 CoreFoundation 0x000000020403a1cc CFRunLoopRunSpecific + 436 (CFRunLoop.c:3247)
5 Foundation 0x0000000204a2f404 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 300 (NSRunLoop.m:367)
6 Foundation 0x0000000204a2f2b0 -[NSRunLoop(NSRunLoop) runUntilDate:] + 148 (NSRunLoop.m:411)
7 UIKitCore 0x000000023136a808 -[UIEventFetcher threadMain] + 136 (UIEventFetcher.m:603)
8 Foundation 0x0000000204b621ac __NSThread__start__ + 1040 (NSThread.m:1175)
9 libsystem_pthread.dylib 0x0000000203ccb2ac _pthread_body + 128 (pthread.c:857)
10 libsystem_pthread.dylib 0x0000000203ccb20c _pthread_start + 48 (pthread.c:884)
11 libsystem_pthread.dylib 0x0000000203ccecf4 thread_start + 4
Thread 2 name: com.twitter.crashlytics.ios.MachExceptionServer
Thread 2:
0 libsystem_kernel.dylib 0x0000000203c3bed0 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x0000000203c3b3a8 mach_msg + 72
2 <APP_NAME> 0x0000000104f0c490 CLSMachExceptionServer + 952
3 libsystem_pthread.dylib 0x0000000203ccb2ac _pthread_body + 128
4 libsystem_pthread.dylib 0x0000000203ccb20c _pthread_start + 48
5 libsystem_pthread.dylib 0x0000000203ccecf4 thread_start + 4
Thread 3 name:
Thread 3:
0 libsystem_kernel.dylib 0x0000000203c3bed0 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x0000000203c3b3a8 mach_msg + 72 (mach_msg.c:103)
2 CoreFoundation 0x000000020403fbc4 __CFRunLoopServiceMachPort + 236 (CFRunLoop.c:2615)
3 CoreFoundation 0x000000020403aa60 __CFRunLoopRun + 1396 (CFRunLoop.c:2971)
4 CoreFoundation 0x000000020403a1cc CFRunLoopRunSpecific + 436 (CFRunLoop.c:3247)
5 CFNetwork 0x000000020465b834 -[__CoreSchedulingSetRunnable runForever] + 212 (CoreSchedulingSet.mm:1365)
6 Foundation 0x0000000204b621ac __NSThread__start__ + 1040 (NSThread.m:1175)
7 libsystem_pthread.dylib 0x0000000203ccb2ac _pthread_body + 128 (pthread.c:857)
8 libsystem_pthread.dylib 0x0000000203ccb20c _pthread_start + 48 (pthread.c:884)
9 libsystem_pthread.dylib 0x0000000203ccecf4 thread_start + 4
Thread 4:
0 libsystem_pthread.dylib 0x0000000203ccece8 start_wqthread + 0
Thread 5:
0 libsystem_pthread.dylib 0x0000000203ccece8 start_wqthread + 0
Thread 6:
0 libsystem_pthread.dylib 0x0000000203ccece8 start_wqthread + 0
Thread 7:
0 libsystem_pthread.dylib 0x0000000203ccece8 start_wqthread + 0
Thread 8 name:
Thread 8:
0 libsystem_malloc.dylib 0x0000000203c80c74 nanov2_allocate_from_block$VARIANT$armv81 + 220
1 libsystem_malloc.dylib 0x0000000203c80040 nanov2_allocate$VARIANT$armv81 + 140
2 libsystem_malloc.dylib 0x0000000203c80040 nanov2_allocate$VARIANT$armv81 + 140
3 libsystem_malloc.dylib 0x0000000203c80540 nanov2_calloc$VARIANT$armv81 + 136
4 libsystem_malloc.dylib 0x0000000203c8db74 malloc_zone_calloc + 140 (malloc.c:1475)
5 libsystem_malloc.dylib 0x0000000203c8e3fc calloc + 40 (malloc.c:1731)
6 libobjc.A.dylib 0x0000000203290554 class_createInstance + 72 (objc-runtime-new.mm:0)
7 libdispatch.dylib 0x0000000203ae9ad8 _os_object_alloc_realized + 40 (object.m:55)
8 libdispatch.dylib 0x0000000203ae3af4 dispatch_data_create_concat$VARIANT$armv81 + 164 (data.c:118)
9 CFNetwork 0x00000002048b8ffc invocation function for block in ConnectionProtocolReadInner(nw_protocol*, unsigned int, unsigned int, bool, long long, void (dispatch_data_s*, CFStreamError) block_pointer, void (nw_frame_array_s*, CFStreamError) block_pointer) + 152 (ConnectionProtocol.cpp:771)
10 libnetwork.dylib 0x00000002050d3474 nw_frame_array_foreach + 48 (frame_internal.h:999)
11 CFNetwork 0x00000002048b64ac ConnectionProtocolReadInner(nw_protocol*, unsigned int, unsigned int, bool, long long, void (dispatch_data_s*, CFStreamError) block_pointer, void (nw_frame_array_s*, CFStreamError) block_pointer) + 408 (ConnectionProtocol.cpp:755)
12 CFNetwork 0x00000002048b6264 ConnectionProtocolServiceReads(nw_protocol*) + 380 (ConnectionProtocol.cpp:658)
13 CFNetwork 0x00000002048b7270 ConnectionProtocolInputAvailable(nw_protocol*, nw_protocol*) + 64 (ConnectionProtocol.cpp:964)
14 libboringssl.dylib 0x0000000204f34ac8 nw_boringssl_read + 532 (protocol_boringssl.m:1177)
15 libboringssl.dylib 0x0000000204f362a4 nw_protocol_boringssl_input_available + 120 (protocol_boringssl.m:1218)
16 libusrtcp.dylib 0x00000002053d8e9c nw_protocol_tcp_wake_read + 484 (protocol_tcp.c:269)
17 libusrtcp.dylib 0x00000002053c9774 nw_protocol_tcp_input_flush + 100 (user_north.c:40)
18 libnetwork.dylib 0x0000000205167474 nw_channel_add_input_frames + 4184 (channel.c:1096)
19 libnetwork.dylib 0x00000002051663b8 nw_channel_update_input_source + 136 (channel.c:1138)
20 libnetwork.dylib 0x0000000205165c08 __nw_channel_create_block_invoke.21 + 52 (channel.c:1960)
21 libdispatch.dylib 0x0000000203aea484 _dispatch_client_callout + 16 (object.m:511)
22 libdispatch.dylib 0x0000000203ac0e14 _dispatch_continuation_pop$VARIANT$armv81 + 404 (inline_internal.h:2441)
23 libdispatch.dylib 0x0000000203ad0ab4 _dispatch_source_invoke$VARIANT$armv81 + 1704 (source.c:568)
24 libdispatch.dylib 0x0000000203ac6d70 _dispatch_workloop_invoke$VARIANT$armv81 + 1892 (inline_internal.h:2482)
25 libdispatch.dylib 0x0000000203acdf14 _dispatch_workloop_worker_thread + 584 (queue.c:5889)
26 libsystem_pthread.dylib 0x0000000203ccc0dc _pthread_wqthread + 312 (pthread.c:2363)
27 libsystem_pthread.dylib 0x0000000203ccecec start_wqthread + 4
Thread 9:
0 libsystem_pthread.dylib 0x0000000203ccece8 start_wqthread + 0
Thread 10 name:
Thread 10 Crashed:
0 libobjc.A.dylib 0x0000000203298d70 objc_msgSend + 16
1 CoreData 0x0000000206c17754 -[_PFArray dealloc] + 100 (_PFArray.m:379)
2 libobjc.A.dylib 0x000000020329b38c (anonymous namespace)::AutoreleasePoolPage::pop(void*) + 676 (NSObject.mm:1605)
3 libdispatch.dylib 0x0000000203aea464 _dispatch_last_resort_autorelease_pool_pop + 40 (object.m:488)
4 libdispatch.dylib 0x0000000203accddc _dispatch_root_queue_drain + 1080 (queue.c:6049)
5 libdispatch.dylib 0x0000000203acd35c _dispatch_worker_thread2 + 116 (queue.c:6072)
6 libsystem_pthread.dylib 0x0000000203ccc17c _pthread_wqthread + 472 (pthread.c:2353)
7 libsystem_pthread.dylib 0x0000000203ccecec start_wqthread + 4
Thread 11:
0 libsystem_pthread.dylib 0x0000000203ccece8 start_wqthread + 0
Thread 10 crashed with ARM Thread State (64-bit):
x0: 0x0000000280283bb0 x1: 0x00000002317c19b4 x2: 0x0000000000000001 x3: 0x0000000203c8019c
x4: 0x000000014a514400 x5: 0x0000000000000012 x6: 0x000000023b9c4000 x7: 0x000000016b77e538
x8: 0x0000000281685080 x9: 0x0000000000000000 x10: 0x0000000148860a00 x11: 0x0000002f0000003f
x12: 0x0000000148860d40 x13: 0x0000a69f262e3bb0 x14: 0x000000000000004c x15: 0x0000000080000000
x16: 0x0000000f262e3bb0 x17: 0x0000000206c0f138 x18: 0x0000000000000000 x19: 0x0000000282fc8b70
x20: 0x00000002317c19b4 x21: 0x000000000000000c x22: 0x0000000000000020 x23: 0x0000000000000015
x24: 0x0000000000000010 x25: 0x0000000000000000 x26: 0x0000000000000000 x27: 0x0000000000000000
x28: 0x000000016b77f0e0 fp: 0x000000016b77ea80 lr: 0x0000000206c17754
sp: 0x000000016b77ea40 pc: 0x0000000203298d70 cpsr: 0x20000000
AppDelegate
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool {
GeoBasedManager.instance.setCountry()
FBSDKApplicationDelegate.sharedInstance().application(application, didFinishLaunchingWithOptions: launchOptions)
NotificationManager.shared.retrievePushNotifications()
FirebaseApp.configure()
SwiftDate.defaultRegion = Region.local
DropDown.startListeningToKeyboard()
return true
The thread com.twitter.crashlytics.ios.MachExceptionServer is a part of the Crashlytics reporting machinery. It is present in every report that Crashlytics generates, and is not related to your issue.
From your report, that Triggered by Thread: 10 indicates which thread is at fault. From that, we can see that you've got what looks like a classic over-release.
Thread 10 name:
Thread 10 Crashed:
0 libobjc.A.dylib 0x0000000203298d70 objc_msgSend + 16
1 CoreData 0x0000000206c17754 -[_PFArray dealloc] + 100 (_PFArray.m:379)
2 libobjc.A.dylib 0x000000020329b38c (anonymous namespace)::AutoreleasePoolPage::pop(void*) + 676 (NSObject.mm:1605)
3 libdispatch.dylib 0x0000000203aea464 _dispatch_last_resort_autorelease_pool_pop + 40 (object.m:488)
4 libdispatch.dylib 0x0000000203accddc _dispatch_root_queue_drain + 1080 (queue.c:6049)
5 libdispatch.dylib 0x0000000203acd35c _dispatch_worker_thread2 + 116 (queue.c:6072)
6 libsystem_pthread.dylib 0x0000000203ccc17c _pthread_wqthread + 472 (pthread.c:2353)
7 libsystem_pthread.dylib 0x0000000203ccecec start_wqthread + 4
From frame 2 and 3, you can see that the system is cleaning up auto-released objects, from what looks like an internal dispatch queue. In there is an object that has already been deallocated, but is now being released again.
This kinds of bugs can manifest themselves in a variety of different-looking crashes. They can be hard to debug. As you are seeing, it is very hard to determine where the actual over-release occurred. Fortunately, Apple provides a few tools that can help. Check out the Zombies feature of Instruments. Good luck!

Resources