Error when trying to run built RN app on physical device

Incident Identifier: ED46E3D9-8FEE-4F60-89C8-DBABECDC0A15
CrashReporter Key:   f3a1a4a0d7c8eb77112f52e6dc1bdcbb56d53eab
Hardware Model:      iPhone12,8
Process:             celsius [614]
Path:                /private/var/containers/Bundle/Application/05BF68D0-9F01-4D6D-8E85-C8A360934CEF/celsius.app/celsius
Identifier:          network.celsius.wallet
Version:             5.3.0 (155)
AppStoreTools:       13F17a
Code Type:           ARM-64 (Native)
Role:                Foreground
Parent Process:      launchd [1]
Coalition:           network.celsius.wallet [453]

Date/Time:           2023-08-30 08:39:47.6470 +0200
Launch Time:         2023-08-30 08:39:47.5198 +0200
OS Version:          iPhone OS 15.6 (19G71)
Release Type:        User
Baseband Version:    3.04.01
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                	       0x19e568288 __exceptionPreprocess + 220
1   libobjc.A.dylib               	       0x1b7297744 objc_exception_throw + 60
2   celsius                       	       0x10274ca18 0x102508000 + 2378264
3   celsius                       	       0x1025682b4 0x102508000 + 393908
4   celsius                       	       0x10256779c 0x102508000 + 391068
5   celsius                       	       0x10274edd8 0x102508000 + 2387416
6   celsius                       	       0x10274e620 0x102508000 + 2385440
7   celsius                       	       0x10250dff8 0x102508000 + 24568
8   UIKitCore                     	       0x1a0c72a44 -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 340
9   UIKitCore                     	       0x1a0e59a78 -[UIApplication _callInitializationDelegatesWithActions:forCanvas:payload:fromOriginatingProcess:] + 3572
10  UIKitCore                     	       0x1a0e42678 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1180
11  UIKitCore                     	       0x1a0ca01a8 -[_UISceneLifecycleMultiplexer completeApplicationLaunchWithFBSScene:transitionContext:] + 152
12  UIKitCore                     	       0x1a0afa57c _UIScenePerformActionsWithLifecycleActionMask + 104
13  UIKitCore                     	       0x1a0c25090 __101-[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:]_block_invoke + 216
14  UIKitCore                     	       0x1a0d44fe0 -[_UISceneLifecycleMultiplexer _performBlock:withApplicationOfDeactivationReasons:fromReasons:] + 248
15  UIKitCore                     	       0x1a0f83c58 -[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:] + 772
16  UIKitCore                     	       0x1a0f0f1e0 -[_UISceneLifecycleMultiplexer uiScene:transitionedFromState:withTransitionContext:] + 340
17  UIKitCore                     	       0x1a0afb368 __186-[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]_block_invoke + 196
18  UIKitCore                     	       0x1a0bbb3c0 +[BSAnimationSettings(UIKit) tryAnimatingWithSettings:actions:completion:] + 892
19  UIKitCore                     	       0x1a0afd26c _UISceneSettingsDiffActionPerformChangesWithTransitionContext + 276
20  UIKitCore                     	       0x1a0be7544 -[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:] + 384
21  UIKitCore                     	       0x1a106c240 __64-[UIScene scene:didUpdateWithDiff:transitionContext:completion:]_block_invoke.615 + 776
22  UIKitCore                     	       0x1a0b2b64c -[UIScene _emitSceneSettingsUpdateResponseForCompletion:afterSceneUpdateWork:] + 256
23  UIKitCore                     	       0x1a0b6efac -[UIScene scene:didUpdateWithDiff:transitionContext:completion:] + 288
24  UIKitCore                     	       0x1a0ca4fac -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 584
25  UIKitCore                     	       0x1a0be5808 -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 388
26  FrontBoardServices            	       0x1b0797294 -[FBSScene _callOutQueue_agent_didCreateWithTransitionContext:completion:] + 440
27  FrontBoardServices            	       0x1b07bd090 __94-[FBSWorkspaceScenesClient createWithSceneID:groupID:parameters:transitionContext:completion:]_block_invoke.215 + 128
28  FrontBoardServices            	       0x1b0778308 -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 240
29  FrontBoardServices            	       0x1b0779958 __94-[FBSWorkspaceScenesClient createWithSceneID:groupID:parameters:transitionContext:completion:]_block_invoke + 372
30  libdispatch.dylib             	       0x19e1cfa30 _dispatch_client_callout + 20
31  libdispatch.dylib             	       0x19e1d34e0 _dispatch_block_invoke_direct + 264
32  FrontBoardServices            	       0x1b0779c70 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 48
33  FrontBoardServices            	       0x1b0779040 -[FBSSerialQueue _targetQueue_performNextIfPossible] + 220
34  FrontBoardServices            	       0x1b077d700 -[FBSSerialQueue _performNextFromRunLoopSource] + 28
35  CoreFoundation                	       0x19e58a414 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28
36  CoreFoundation                	       0x19e59b1a0 __CFRunLoopDoSource0 + 208
37  CoreFoundation                	       0x19e4d4694 __CFRunLoopDoSources0 + 268
38  CoreFoundation                	       0x19e4da05c __CFRunLoopRun + 828
39  CoreFoundation                	       0x19e4edbc8 CFRunLoopRunSpecific + 600
40  GraphicsServices              	       0x1ba658374 GSEventRunModal + 164
41  UIKitCore                     	       0x1a0e61b58 -[UIApplication _run] + 1100
42  UIKitCore                     	       0x1a0be3090 UIApplicationMain + 364
43  celsius                       	       0x10250e3b8 0x102508000 + 25528
44  dyld                          	       0x103035da4 start + 520


VM - pmap_enter failed with resource shortage


Thread 0 name:   Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0   libsystem_kernel.dylib        	       0x1d6096b38 __pthread_kill + 8
1   libsystem_pthread.dylib       	       0x20f7b33bc pthread_kill + 268
2   libsystem_c.dylib             	       0x1a967a524 abort + 168
3   celsius                       	       0x10295d2f0 -[MSPLCrashReporter setCrashCallbacks:].cold.1 + 0
4   celsius                       	       0x102942d70 uncaught_exception_handler + 4435312 (PLCrashReporter.m:366)
5   CoreFoundation                	       0x19e5e9570 __handleUncaughtException + 712
6   libobjc.A.dylib               	       0x1b729dc5c _objc_terminate() + 132
7   celsius                       	       0x102937270 MSACCrashesUncaughtCXXTerminateHandler() + 4387440 (MSACCrashesCXXExceptionHandler.mm:164)
8   libc++abi.dylib               	       0x1b73a1f18 std::__terminate(void (*)()) + 20
9   libc++abi.dylib               	       0x1b73a1eb4 std::terminate() + 64
10  libdispatch.dylib             	       0x19e1cfa44 _dispatch_client_callout + 40
11  libdispatch.dylib             	       0x19e1d34e0 _dispatch_block_invoke_direct + 264
12  FrontBoardServices            	       0x1b0779c70 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 48
13  FrontBoardServices            	       0x1b0779040 -[FBSSerialQueue _targetQueue_performNextIfPossible] + 220
14  FrontBoardServices            	       0x1b077d700 -[FBSSerialQueue _performNextFromRunLoopSource] + 28
15  CoreFoundation                	       0x19e58a414 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28
16  CoreFoundation                	       0x19e59b1a0 __CFRunLoopDoSource0 + 208
17  CoreFoundation                	       0x19e4d4694 __CFRunLoopDoSources0 + 268
18  CoreFoundation                	       0x19e4da05c __CFRunLoopRun + 828
19  CoreFoundation                	       0x19e4edbc8 CFRunLoopRunSpecific + 600
20  GraphicsServices              	       0x1ba658374 GSEventRunModal + 164
21  UIKitCore                     	       0x1a0e61b58 -[UIApplication _run] + 1100
22  UIKitCore                     	       0x1a0be3090 UIApplicationMain + 364
23  celsius                       	       0x10250e3b8 main + 25528 (main.m:14)
24  dyld                          	       0x103035da4 start + 520

Thread 1:
0   libsystem_pthread.dylib       	       0x20f7ace54 start_wqthread + 0

Thread 2 name:   Dispatch queue: com.apple.UIKit.KeyboardManagement
Thread 2:
0   libsystem_kernel.dylib        	       0x1d6091138 __ulock_wait + 8
1   libdispatch.dylib             	       0x19e1d0420 _dlock_wait + 56
2   libdispatch.dylib             	       0x19e1d01d4 _dispatch_thread_event_wait_slow + 56
3   libdispatch.dylib             	       0x19e1def70 __DISPATCH_WAIT_FOR_QUEUE__ + 356
4   libdispatch.dylib             	       0x19e1deb28 _dispatch_sync_f_slow + 144
5   UIKitCore                     	       0x1a0cbba20 __37-[_UIRemoteKeyboards startConnection]_block_invoke_3 + 136
6   CoreFoundation                	       0x19e4f0b24 __invoking___ + 148
7   CoreFoundation                	       0x19e50e610 -[NSInvocation invoke] + 468
8   Foundation                    	       0x19fcfc918 __NSXPCCONNECTION_IS_CALLING_OUT_TO_REPLY_BLOCK__ + 24
9   Foundation                    	       0x19fd1df54 -[NSXPCConnection _decodeAndInvokeReplyBlockWithEvent:sequence:replyInfo:] + 572
10  Foundation                    	       0x19fcf8460 __88-[NSXPCConnection _sendInvocation:orArguments:count:methodSignature:selector:withProxy:]_block_invoke_3 + 212
11  libxpc.dylib                  	       0x20f7e26ac _xpc_connection_reply_callout + 124
12  libxpc.dylib                  	       0x20f7d5bcc _xpc_connection_call_reply_async + 88
13  libdispatch.dylib             	       0x19e1cfab0 _dispatch_client_callout3 + 20
14  libdispatch.dylib             	       0x19e1ed214 _dispatch_mach_msg_async_reply_invoke + 340
15  libdispatch.dylib             	       0x19e1d7000 _dispatch_lane_serial_drain + 376
16  libdispatch.dylib             	       0x19e1d7cb4 _dispatch_lane_invoke + 444
17  libdispatch.dylib             	       0x19e1e2500 _dispatch_workloop_worker_thread + 648
18  libsystem_pthread.dylib       	       0x20f7ad0bc _pthread_wqthread + 288
19  libsystem_pthread.dylib       	       0x20f7ace5c start_wqthread + 8

Thread 3:
0   libsystem_pthread.dylib       	       0x20f7ace54 start_wqthread + 0

Thread 4 name:   Dispatch queue: branchIsolationQueue
Thread 4:
0   libsystem_kernel.dylib        	       0x1d60904dc semaphore_wait_trap + 8
1   libdispatch.dylib             	       0x19e1cffcc _dispatch_sema4_wait + 28
2   libdispatch.dylib             	       0x19e1d0674 _dispatch_semaphore_wait_slow + 132
3   celsius                       	       0x102544a24 __23-[Branch loadUserAgent]_block_invoke + 248356 (Branch.m:897)
4   libdispatch.dylib             	       0x19e1cde6c _dispatch_call_block_and_release + 32
5   libdispatch.dylib             	       0x19e1cfa30 _dispatch_client_callout + 20
6   libdispatch.dylib             	       0x19e1d7124 _dispatch_lane_serial_drain + 668
7   libdispatch.dylib             	       0x19e1d7c80 _dispatch_lane_invoke + 392
8   libdispatch.dylib             	       0x19e1e2500 _dispatch_workloop_worker_thread + 648
9   libsystem_pthread.dylib       	       0x20f7ad0bc _pthread_wqthread + 288
10  libsystem_pthread.dylib       	       0x20f7ace5c start_wqthread + 8

Thread 5 name:  com.apple.uikit.eventfetch-thread
Thread 5:
0   libsystem_kernel.dylib        	       0x1d60904a0 mach_msg_trap + 8
1   libsystem_kernel.dylib        	       0x1d6090ae4 mach_msg + 76
2   CoreFoundation                	       0x19e4d5d30 __CFRunLoopServiceMachPort + 372
3   CoreFoundation                	       0x19e4da1bc __CFRunLoopRun + 1180
4   CoreFoundation                	       0x19e4edbc8 CFRunLoopRunSpecific + 600
5   Foundation                    	       0x19fce0444 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 236
6   Foundation                    	       0x19fd21e0c -[NSRunLoop(NSRunLoop) runUntilDate:] + 92
7   UIKitCore                     	       0x1a0ddbcc4 -[UIEventFetcher threadMain] + 524
8   Foundation                    	       0x19fd3041c __NSThread__start__ + 808
9   libsystem_pthread.dylib       	       0x20f7ad9ac _pthread_start + 148
10  libsystem_pthread.dylib       	       0x20f7ace68 thread_start + 8

The presence of the Last Exception Backtrace section indicates that your app crashed due to an unhandled language exception. Looking at that backtrace we see this:

Last Exception Backtrace:
0   CoreFoundation  … __exceptionPreprocess + 220
1   libobjc.A.dylib … objc_exception_throw + 60
2   celsius         … 0x102508000 + 2378264
3   celsius         … 0x102508000 + 393908
4   celsius         … 0x102508000 + 391068
5   celsius         … 0x102508000 + 2387416
6   celsius         … 0x102508000 + 2385440
7   celsius         … 0x102508000 + 24568
8   UIKitCore       … -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 340
…

In frame 8 we see UIKit call your code, and in frame 2 we see your code throwing the exception. Your code, frames 7 through 2, is not symbolicated, which means it hard to see why it’s done that. The next step is to uncover the identify of those frames. See Adding Identifiable Symbol Names to a Crash Report for advice on how to do that.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Error when trying to run built RN app on physical device
 
 
Q