App is crashing to homescreen

#1

My standalone app is crashing to the homescreen whenever I get a notification while the app is foregrounded but I can’t figure out why.

Here’s the log from xcode:

Incident Identifier: B1B7F317-EAAF-4579-BC16...
CrashReporter Key:   6371031128b925fea...
Hardware Model:      iPhone10,6
Process:             ExpoKitApp [1685]
Path:                /private/var/containers/Bundle/Application/ommitted/ExpoKitApp.app/ExpoKitApp
Identifier:          io.metoo.metoo-app
Version:             1 (1.2.2)
AppStoreTools:       10B63
AppVariant:          1:iPhone10,6:12
Code Type:           ARM-64 (Native)
Role:                Foreground
Parent Process:      launchd [1]
Coalition:           io.metoo.metoo-app [846]


Date/Time:           2019-01-21 15:55:28.8151 -0500
Launch Time:         2019-01-21 15:54:43.7485 -0500
OS Version:          iPhone OS 12.1.1 (16C5050a)
Baseband Version:    2.02.02
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                	0x1b03f4ec4 __exceptionPreprocess + 228
1   libobjc.A.dylib               	0x1af5c5a40 objc_exception_throw + 55
2   CoreFoundation                	0x1b036c494 _CFThrowFormattedException + 111
3   CoreFoundation                	0x1b02e5ca0 -[__NSDictionaryM setObject:forKeyedSubscript:] + 931
4   ExpoKitApp                    	0x1048cb620 0x1046e8000 + 1979936
5   UIKitCore                     	0x1dd5217cc -[UIApplication _handleNonLaunchSpecificActions:forScene:withTransitionContext:completion:] + 3175
6   UIKitCore                     	0x1dcda39a8 __82-[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:]_block_invoke + 679
7   UIKitCore                     	0x1dcda36b0 -[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:] + 431
8   UIKitCore                     	0x1dcda8870 __125-[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:]_block_invoke + 219
9   UIKitCore                     	0x1dcda97d0 _performActionsWithDelayForTransitionContext + 111
10  UIKitCore                     	0x1dcda8728 -[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:] + 247
11  UIKitCore                     	0x1dcdad614 -[_UICanvas scene:didUpdateWithDiff:transitionContext:completion:] + 367
12  UIKitCore                     	0x1dd0f30d4 -[UIApplicationSceneClientAgent scene:handleEvent:withCompletion:] + 467
13  FrontBoardServices            	0x1b2e2c6e4 __80-[FBSSceneImpl updater:didUpdateSettings:withDiff:transitionContext:completion:]_block_invoke.359 + 227
14  libdispatch.dylib             	0x1afe2e484 _dispatch_client_callout + 15
15  libdispatch.dylib             	0x1afe053e0 _dispatch_block_invoke_direct$VARIANT$armv81 + 215
16  FrontBoardServices            	0x1b2e6aa9c __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 39
17  FrontBoardServices            	0x1b2e6a728 -[FBSSerialQueue _performNext] + 415
18  FrontBoardServices            	0x1b2e6ad44 -[FBSSerialQueue _performNextFromRunLoopSource] + 55
19  CoreFoundation                	0x1b03851f0 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 23
20  CoreFoundation                	0x1b0385170 __CFRunLoopDoSource0 + 87
21  CoreFoundation                	0x1b0384a54 __CFRunLoopDoSources0 + 175
22  CoreFoundation                	0x1b037f920 __CFRunLoopRun + 1039
23  CoreFoundation                	0x1b037f1f0 CFRunLoopRunSpecific + 435
24  GraphicsServices              	0x1b25f8584 GSEventRunModal + 99
25  UIKitCore                     	0x1dd50b5b4 UIApplicationMain + 211
26  ExpoKitApp                    	0x1046ee7f8 0x1046e8000 + 26616
27  libdyld.dylib                 	0x1afe3ebb4 start + 3


Thread 0 name:  Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0   libsystem_kernel.dylib        	0x00000001aff8b104 __pthread_kill + 8
1   libsystem_pthread.dylib       	0x00000001b000b948 pthread_kill$VARIANT$armv81 + 296
2   libsystem_c.dylib             	0x00000001afee2d78 abort + 140
3   libc++abi.dylib               	0x00000001af5acf78 __cxa_bad_cast + 0
4   libc++abi.dylib               	0x00000001af5ad120 default_unexpected_handler+ 8480 () + 0
5   libobjc.A.dylib               	0x00000001af5c5e48 _objc_terminate+ 28232 () + 124
6   libc++abi.dylib               	0x00000001af5b90fc std::__terminate(void (*)+ 57596 ()) + 16
7   libc++abi.dylib               	0x00000001af5b9188 std::terminate+ 57736 () + 84
8   libdispatch.dylib             	0x00000001afe2e498 _dispatch_client_callout + 36
9   libdispatch.dylib             	0x00000001afe053e0 _dispatch_block_invoke_direct$VARIANT$armv81 + 216
10  FrontBoardServices            	0x00000001b2e6aa9c __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 40
11  FrontBoardServices            	0x00000001b2e6a728 -[FBSSerialQueue _performNext] + 416
12  FrontBoardServices            	0x00000001b2e6ad44 -[FBSSerialQueue _performNextFromRunLoopSource] + 56
13  CoreFoundation                	0x00000001b03851f0 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
14  CoreFoundation                	0x00000001b0385170 __CFRunLoopDoSource0 + 88
15  CoreFoundation                	0x00000001b0384a54 __CFRunLoopDoSources0 + 176
16  CoreFoundation                	0x00000001b037f920 __CFRunLoopRun + 1040
17  CoreFoundation                	0x00000001b037f1f0 CFRunLoopRunSpecific + 436
18  GraphicsServices              	0x00000001b25f8584 GSEventRunModal + 100
19  UIKitCore                     	0x00000001dd50b5b4 UIApplicationMain + 212
20  ExpoKitApp                    	0x00000001046ee7f8 0x1046e8000 + 26616
21  libdyld.dylib                 	0x00000001afe3ebb4 start + 4
#2

Hey Derek,

Are you still experiencing this crash? Also, is it only occurring on iOS?

Cheers,

Adam

#3

yeah, opened an issue but it was a duplicate of https://github.com/expo/expo/issues/3223

closed #4

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.