question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

App crash on iOS when opening deep links

See original GitHub issue

react-native info results:

System:
    OS: macOS 12.1
    CPU: (8) arm64 Apple M1
    Memory: 99.41 MB / 16.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 16.13.2 - ~/.nvm/versions/node/v16.13.2/bin/node
    Yarn: 1.22.17 - ~/.nvm/versions/node/v16.13.2/bin/yarn
    npm: 8.1.2 - ~/.nvm/versions/node/v16.13.2/bin/npm
    Watchman: 2022.01.24.00 - /usr/local/bin/watchman
  Managers:
    CocoaPods: 1.11.2 - /usr/local/bin/pod
  SDKs:
    iOS SDK:
      Platforms: DriverKit 21.2, iOS 15.2, macOS 12.1, tvOS 15.2, watchOS 8.3
    Android SDK:
      API Levels: 28, 29, 30
      Build Tools: 28.0.3, 29.0.2, 29.0.3, 30.0.2, 30.0.3
      System Images: android-28 | Intel x86 Atom_64, android-29 | Intel x86 Atom, android-29 | Google APIs Intel x86 Atom, android-30 | Google APIs Intel x86 Atom
      Android NDK: Not Found
  IDEs:
    Android Studio: 2020.3 AI-203.7717.56.2031.7678000
    Xcode: 13.2.1/13C100 - /usr/bin/xcodebuild
  Languages:
    Java: 1.8.0_275 - /usr/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: 17.0.2 => 17.0.2 
    react-native: 0.66.4 => 0.66.4 
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

react-native-splash-screen version: 3.3.0 Platform: iOS, real device

Debug mode works fine, but when builded in release mode, if the app is closed and I click on a deep link (and also universal links), the app stuck on the splash screen and after some time just crash.

If I try to remove [RNSplashScreen show];, the app works fine.

These are the crash logs:

Incident Identifier: 7C7E4F97-C302-4E8C-9E87-B31B7E67AB9C
CrashReporter Key:   09a61b8038e821549fd7456f27fbf235663bfc4a
Hardware Model:      iPhone11,8
Process:             Snowit [2288]
Path:                /private/var/containers/Bundle/Application/8C349329-DC1D-47B1-ABA0-A6F0252C3C12/Snowit.app/Snowit
Identifier:          com.ionicframework.snowit577025
Version:             5.2.2 (2)
Code Type:           ARM-64 (Native)
Role:                Foreground
Parent Process:      launchd [1]
Coalition:           com.ionicframework.snowit577025 [544]

Date/Time:           2022-02-01 14:18:05.0118 +0100
Launch Time:         2022-02-01 14:17:43.9794 +0100
OS Version:          iPhone OS 15.1 (19B74)
Release Type:        User
Baseband Version:    4.01.01
Report Version:      104

Exception Type:  EXC_CRASH (SIGKILL)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note:  EXC_CORPSE_NOTIFY
Termination Reason: FRONTBOARD 2343432205 
<RBSTerminateContext| domain:10 code:0x8BADF00D explanation:scene-create watchdog transgression: application<com.ionicframework.snowit577025>:2288 exhausted real (wall clock) time allowance of 19.56 seconds
ProcessVisibility: Foreground
ProcessState: Running
WatchdogEvent: scene-create
WatchdogVisibility: Foreground
WatchdogCPUStatistics: (
"Elapsed total CPU time (seconds): 18.450 (user 18.450, system 0.000), 15% CPU",
"Elapsed application CPU time (seconds): 5.645, 5% 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        	       0x1b86b2504 mach_msg_trap + 8
1   libsystem_kernel.dylib        	       0x1b86b2b9c mach_msg + 76
2   CoreFoundation                	       0x1817df688 __CFRunLoopServiceMachPort + 372
3   CoreFoundation                	       0x1817e397c __CFRunLoopRun + 1212
4   CoreFoundation                	       0x1817f73b8 CFRunLoopRunSpecific + 600
5   Foundation                    	       0x183012354 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 236
6   Foundation                    	       0x183053c28 -[NSRunLoop(NSRunLoop) runUntilDate:] + 92
7   Snowit                        	       0x102656d30 +[RNSplashScreen show] + 232
8   Snowit                        	       0x100f77f80 -[AppDelegate application:didFinishLaunchingWithOptions:] + 704
9   UIKitCore                     	       0x183fa7044 -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 356
10  UIKitCore                     	       0x18418eb38 -[UIApplication _callInitializationDelegatesWithActions:forCanvas:payload:fromOriginatingProcess:] + 3524
11  UIKitCore                     	       0x1841774a4 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1208
12  UIKitCore                     	       0x183fd4e44 -[_UISceneLifecycleMultiplexer completeApplicationLaunchWithFBSScene:transitionContext:] + 152
13  UIKitCore                     	       0x183e2d62c _UIScenePerformActionsWithLifecycleActionMask + 104
14  UIKitCore                     	       0x183f58b7c __101-[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:]_block_invoke + 224
15  UIKitCore                     	       0x184079380 -[_UISceneLifecycleMultiplexer _performBlock:withApplicationOfDeactivationReasons:fromReasons:] + 248
16  UIKitCore                     	       0x1842b9f8c -[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:] + 760
17  UIKitCore                     	       0x184245710 -[_UISceneLifecycleMultiplexer uiScene:transitionedFromState:withTransitionContext:] + 340
18  UIKitCore                     	       0x183e2e430 __186-[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]_block_invoke + 196
19  UIKitCore                     	       0x183eee350 +[BSAnimationSettings(UIKit) tryAnimatingWithSettings:actions:completion:] + 892
20  UIKitCore                     	       0x183e30340 _UISceneSettingsDiffActionPerformChangesWithTransitionContext + 276
21  UIKitCore                     	       0x183f1adf4 -[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:] + 384
22  UIKitCore                     	       0x1843a2260 __64-[UIScene scene:didUpdateWithDiff:transitionContext:completion:]_block_invoke.608 + 776
23  UIKitCore                     	       0x183e5ec60 -[UIScene _emitSceneSettingsUpdateResponseForCompletion:afterSceneUpdateWork:] + 256
24  UIKitCore                     	       0x183ea2524 -[UIScene scene:didUpdateWithDiff:transitionContext:completion:] + 288
25  UIKitCore                     	       0x183fd9d70 -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 572
26  UIKitCore                     	       0x183f190b4 -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 388
27  FrontBoardServices            	       0x193368e20 -[FBSScene _callOutQueue_agent_didCreateWithTransitionContext:completion:] + 440
28  FrontBoardServices            	       0x19338ecdc __94-[FBSWorkspaceScenesClient createWithSceneID:groupID:parameters:transitionContext:completion:]_block_invoke.215 + 128
29  FrontBoardServices            	       0x1933496b4 -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 240
30  FrontBoardServices            	       0x19334acf4 __94-[FBSWorkspaceScenesClient createWithSceneID:groupID:parameters:transitionContext:completion:]_block_invoke + 372
31  libdispatch.dylib             	       0x1814e3660 _dispatch_client_callout + 20
32  libdispatch.dylib             	       0x1814e7118 _dispatch_block_invoke_direct + 264
33  FrontBoardServices            	       0x19334af94 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 48
34  FrontBoardServices            	       0x19334a3d4 -[FBSSerialQueue _targetQueue_performNextIfPossible] + 220
35  FrontBoardServices            	       0x19334e9e4 -[FBSSerialQueue _performNextFromRunLoopSource] + 28
36  CoreFoundation                	       0x181893020 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28
37  CoreFoundation                	       0x1818a3ce0 __CFRunLoopDoSource0 + 208
38  CoreFoundation                	       0x1817ddfe8 __CFRunLoopDoSources0 + 268
39  CoreFoundation                	       0x1817e37f4 __CFRunLoopRun + 820
40  CoreFoundation                	       0x1817f73b8 CFRunLoopRunSpecific + 600
41  GraphicsServices              	       0x19d18738c GSEventRunModal + 164
42  UIKitCore                     	       0x1841976a8 -[UIApplication _run] + 1100
43  UIKitCore                     	       0x183f167f4 UIApplicationMain + 2092
44  Snowit                        	       0x100f784b8 main + 104
45  dyld                          	       0x108af5a24 start + 520

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

Thread 2 name:  com.apple.uikit.eventfetch-thread
Thread 2:
0   libsystem_kernel.dylib        	       0x1b86b2504 mach_msg_trap + 8
1   libsystem_kernel.dylib        	       0x1b86b2b9c mach_msg + 76
2   CoreFoundation                	       0x1817df688 __CFRunLoopServiceMachPort + 372
3   CoreFoundation                	       0x1817e397c __CFRunLoopRun + 1212
4   CoreFoundation                	       0x1817f73b8 CFRunLoopRunSpecific + 600
5   Foundation                    	       0x183012354 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 236
6   Foundation                    	       0x183053c28 -[NSRunLoop(NSRunLoop) runUntilDate:] + 92
7   UIKitCore                     	       0x1841108a4 -[UIEventFetcher threadMain] + 524
8   Foundation                    	       0x18306236c __NSThread__start__ + 808
9   libsystem_pthread.dylib       	       0x1f1b129a4 _pthread_start + 148
10  libsystem_pthread.dylib       	       0x1f1b11ea0 thread_start + 8

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

Thread 4:
0   libsystem_pthread.dylib       	       0x1f1b11e8c start_wqthread + 0

Thread 5:
0   libsystem_pthread.dylib       	       0x1f1b11e8c start_wqthread + 0

Thread 6 name:  com.google.firebase.crashlytics.MachExceptionServer
Thread 6:
0   libsystem_kernel.dylib        	       0x1b86b2504 mach_msg_trap + 8
1   libsystem_kernel.dylib        	       0x1b86b2b9c mach_msg + 76
2   Snowit                        	       0x101191510 FIRCLSMachExceptionReadMessage + 80
3   Snowit                        	       0x101191450 FIRCLSMachExceptionServer + 48
4   libsystem_pthread.dylib       	       0x1f1b129a4 _pthread_start + 148
5   libsystem_pthread.dylib       	       0x1f1b11ea0 thread_start + 8

Thread 7 name:  com.facebook.react.JavaScript
Thread 7:
0   libsystem_kernel.dylib        	       0x1b86b2504 mach_msg_trap + 8
1   libsystem_kernel.dylib        	       0x1b86b2b9c mach_msg + 76
2   CoreFoundation                	       0x1817df688 __CFRunLoopServiceMachPort + 372
3   CoreFoundation                	       0x1817e397c __CFRunLoopRun + 1212
4   CoreFoundation                	       0x1817f73b8 CFRunLoopRunSpecific + 600
5   Snowit                        	       0x101987204 +[RCTCxxBridge runRunLoop] + 704
6   Foundation                    	       0x18306236c __NSThread__start__ + 808
7   libsystem_pthread.dylib       	       0x1f1b129a4 _pthread_start + 148
8   libsystem_pthread.dylib       	       0x1f1b11ea0 thread_start + 8

Thread 8 name:  JavaScriptCore bmalloc scavenger
Thread 8:
0   libsystem_kernel.dylib        	       0x1b86b2f90 __psynch_cvwait + 8
1   libsystem_pthread.dylib       	       0x1f1b19254 _pthread_cond_wait + 1228
2   libc++.1.dylib                	       0x199f7fddc std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 28
3   JavaScriptCore                	       0x18d9181d4 void std::__1::condition_variable_any::wait<std::__1::unique_lock<bmalloc::Mutex> >(std::__1::unique_lock<bmalloc::Mutex>&) + 108
4   JavaScriptCore                	       0x18d91c9a4 bmalloc::Scavenger::threadRunLoop() + 340
5   JavaScriptCore                	       0x18d91c544 bmalloc::Scavenger::threadEntryPoint(bmalloc::Scavenger*) + 16
6   JavaScriptCore                	       0x18d91da00 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*) + 48
7   libsystem_pthread.dylib       	       0x1f1b129a4 _pthread_start + 148
8   libsystem_pthread.dylib       	       0x1f1b11ea0 thread_start + 8

Thread 9 name:  com.apple.CFStream.LegacyThread
Thread 9:
0   libsystem_kernel.dylib        	       0x1b86b2504 mach_msg_trap + 8
1   libsystem_kernel.dylib        	       0x1b86b2b9c mach_msg + 76
2   CoreFoundation                	       0x1817df688 __CFRunLoopServiceMachPort + 372
3   CoreFoundation                	       0x1817e397c __CFRunLoopRun + 1212
4   CoreFoundation                	       0x1817f73b8 CFRunLoopRunSpecific + 600
5   CoreFoundation                	       0x1818dfa70 _legacyStreamRunLoop_workThread + 300
6   libsystem_pthread.dylib       	       0x1f1b129a4 _pthread_start + 148
7   libsystem_pthread.dylib       	       0x1f1b11ea0 thread_start + 8

Thread 10 name:  com.squareup.SocketRocket.NetworkThread
Thread 10:
0   libsystem_kernel.dylib        	       0x1b86b2504 mach_msg_trap + 8
1   libsystem_kernel.dylib        	       0x1b86b2b9c mach_msg + 76
2   CoreFoundation                	       0x1817df688 __CFRunLoopServiceMachPort + 372
3   CoreFoundation                	       0x1817e397c __CFRunLoopRun + 1212
4   CoreFoundation                	       0x1817f73b8 CFRunLoopRunSpecific + 600
5   Foundation                    	       0x183012354 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 236
6   Snowit                        	       0x101a3d85c -[_RCTSRRunLoopThread main] + 356
7   Foundation                    	       0x18306236c __NSThread__start__ + 808
8   libsystem_pthread.dylib       	       0x1f1b129a4 _pthread_start + 148
9   libsystem_pthread.dylib       	       0x1f1b11ea0 thread_start + 8

Thread 11 name:  com.apple.NSURLConnectionLoader
Thread 11:
0   libsystem_kernel.dylib        	       0x1b86b2504 mach_msg_trap + 8
1   libsystem_kernel.dylib        	       0x1b86b2b9c mach_msg + 76
2   CoreFoundation                	       0x1817df688 __CFRunLoopServiceMachPort + 372
3   CoreFoundation                	       0x1817e397c __CFRunLoopRun + 1212
4   CoreFoundation                	       0x1817f73b8 CFRunLoopRunSpecific + 600
5   CFNetwork                     	       0x18226b6a0 0x181ff1000 + 2598560
6   Foundation                    	       0x18306236c __NSThread__start__ + 808
7   libsystem_pthread.dylib       	       0x1f1b129a4 _pthread_start + 148
8   libsystem_pthread.dylib       	       0x1f1b11ea0 thread_start + 8

Thread 12 name:  com.apple.CFSocket.private
Thread 12:
0   libsystem_kernel.dylib        	       0x1b86b31d0 __select + 8
1   CoreFoundation                	       0x181882740 __CFSocketManager + 648
2   libsystem_pthread.dylib       	       0x1f1b129a4 _pthread_start + 148
3   libsystem_pthread.dylib       	       0x1f1b11ea0 thread_start + 8

Thread 13 name:  Heap Helper Thread
Thread 13:
0   libsystem_kernel.dylib        	       0x1b86b2f90 __psynch_cvwait + 8
1   libsystem_pthread.dylib       	       0x1f1b19254 _pthread_cond_wait + 1228
2   JavaScriptCore                	       0x18d89f5a4 WTF::ParkingLot::parkConditionallyImpl(void const*, WTF::ScopedLambda<bool ()> const&, WTF::ScopedLambda<void ()> const&, WTF::TimeWithDynamicClockType const&) + 2756
3   JavaScriptCore                	       0x18d764564 bool WTF::Condition::waitUntilUnchecked<WTF::Lock>(WTF::Lock&, WTF::TimeWithDynamicClockType const&) + 196
4   JavaScriptCore                	       0x18d869ff0 WTF::Detail::CallableWrapper<WTF::AutomaticThread::start(WTF::AbstractLocker const&)::$_0, void>::call() + 260
5   JavaScriptCore                	       0x18d8c53cc WTF::Thread::entryPoint(WTF::Thread::NewThreadContext*) + 276
6   JavaScriptCore                	       0x18d8c7d28 WTF::wtfThreadEntryPoint(void*) + 16
7   libsystem_pthread.dylib       	       0x1f1b129a4 _pthread_start + 148
8   libsystem_pthread.dylib       	       0x1f1b11ea0 thread_start + 8

Thread 14 name:  Heap Helper Thread
Thread 14:
0   libsystem_kernel.dylib        	       0x1b86b2f90 __psynch_cvwait + 8
1   libsystem_pthread.dylib       	       0x1f1b19254 _pthread_cond_wait + 1228
2   JavaScriptCore                	       0x18d89f5a4 WTF::ParkingLot::parkConditionallyImpl(void const*, WTF::ScopedLambda<bool ()> const&, WTF::ScopedLambda<void ()> const&, WTF::TimeWithDynamicClockType const&) + 2756
3   JavaScriptCore                	       0x18d764564 bool WTF::Condition::waitUntilUnchecked<WTF::Lock>(WTF::Lock&, WTF::TimeWithDynamicClockType const&) + 196
4   JavaScriptCore                	       0x18d869ff0 WTF::Detail::CallableWrapper<WTF::AutomaticThread::start(WTF::AbstractLocker const&)::$_0, void>::call() + 260
5   JavaScriptCore                	       0x18d8c53cc WTF::Thread::entryPoint(WTF::Thread::NewThreadContext*) + 276
6   JavaScriptCore                	       0x18d8c7d28 WTF::wtfThreadEntryPoint(void*) + 16
7   libsystem_pthread.dylib       	       0x1f1b129a4 _pthread_start + 148
8   libsystem_pthread.dylib       	       0x1f1b11ea0 thread_start + 8

Thread 15 name:  Heap Helper Thread
Thread 15:
0   libsystem_kernel.dylib        	       0x1b86b2f90 __psynch_cvwait + 8
1   libsystem_pthread.dylib       	       0x1f1b19254 _pthread_cond_wait + 1228
2   JavaScriptCore                	       0x18d89f5a4 WTF::ParkingLot::parkConditionallyImpl(void const*, WTF::ScopedLambda<bool ()> const&, WTF::ScopedLambda<void ()> const&, WTF::TimeWithDynamicClockType const&) + 2756
3   JavaScriptCore                	       0x18d764564 bool WTF::Condition::waitUntilUnchecked<WTF::Lock>(WTF::Lock&, WTF::TimeWithDynamicClockType const&) + 196
4   JavaScriptCore                	       0x18d869ff0 WTF::Detail::CallableWrapper<WTF::AutomaticThread::start(WTF::AbstractLocker const&)::$_0, void>::call() + 260
5   JavaScriptCore                	       0x18d8c53cc WTF::Thread::entryPoint(WTF::Thread::NewThreadContext*) + 276
6   JavaScriptCore                	       0x18d8c7d28 WTF::wtfThreadEntryPoint(void*) + 16
7   libsystem_pthread.dylib       	       0x1f1b129a4 _pthread_start + 148
8   libsystem_pthread.dylib       	       0x1f1b11ea0 thread_start + 8

Thread 16 name:  Heap Helper Thread
Thread 16:
0   libsystem_kernel.dylib        	       0x1b86b2f90 __psynch_cvwait + 8
1   libsystem_pthread.dylib       	       0x1f1b19254 _pthread_cond_wait + 1228
2   JavaScriptCore                	       0x18d89f5a4 WTF::ParkingLot::parkConditionallyImpl(void const*, WTF::ScopedLambda<bool ()> const&, WTF::ScopedLambda<void ()> const&, WTF::TimeWithDynamicClockType const&) + 2756
3   JavaScriptCore                	       0x18d764564 bool WTF::Condition::waitUntilUnchecked<WTF::Lock>(WTF::Lock&, WTF::TimeWithDynamicClockType const&) + 196
4   JavaScriptCore                	       0x18d869ff0 WTF::Detail::CallableWrapper<WTF::AutomaticThread::start(WTF::AbstractLocker const&)::$_0, void>::call() + 260
5   JavaScriptCore                	       0x18d8c53cc WTF::Thread::entryPoint(WTF::Thread::NewThreadContext*) + 276
6   JavaScriptCore                	       0x18d8c7d28 WTF::wtfThreadEntryPoint(void*) + 16
7   libsystem_pthread.dylib       	       0x1f1b129a4 _pthread_start + 148
8   libsystem_pthread.dylib       	       0x1f1b11ea0 thread_start + 8

Thread 17 name:  Heap Helper Thread
Thread 17:
0   libsystem_kernel.dylib        	       0x1b86b2f90 __psynch_cvwait + 8
1   libsystem_pthread.dylib       	       0x1f1b19254 _pthread_cond_wait + 1228
2   JavaScriptCore                	       0x18d89f5a4 WTF::ParkingLot::parkConditionallyImpl(void const*, WTF::ScopedLambda<bool ()> const&, WTF::ScopedLambda<void ()> const&, WTF::TimeWithDynamicClockType const&) + 2756
3   JavaScriptCore                	       0x18d764564 bool WTF::Condition::waitUntilUnchecked<WTF::Lock>(WTF::Lock&, WTF::TimeWithDynamicClockType const&) + 196
4   JavaScriptCore                	       0x18d869ff0 WTF::Detail::CallableWrapper<WTF::AutomaticThread::start(WTF::AbstractLocker const&)::$_0, void>::call() + 260
5   JavaScriptCore                	       0x18d8c53cc WTF::Thread::entryPoint(WTF::Thread::NewThreadContext*) + 276
6   JavaScriptCore                	       0x18d8c7d28 WTF::wtfThreadEntryPoint(void*) + 16
7   libsystem_pthread.dylib       	       0x1f1b129a4 _pthread_start + 148
8   libsystem_pthread.dylib       	       0x1f1b11ea0 thread_start + 8

Thread 18 name:  JSC Heap Collector Thread
Thread 18:
0   libsystem_kernel.dylib        	       0x1b86b2f90 __psynch_cvwait + 8
1   libsystem_pthread.dylib       	       0x1f1b19254 _pthread_cond_wait + 1228
2   JavaScriptCore                	       0x18d89f5a4 WTF::ParkingLot::parkConditionallyImpl(void const*, WTF::ScopedLambda<bool ()> const&, WTF::ScopedLambda<void ()> const&, WTF::TimeWithDynamicClockType const&) + 2756
3   JavaScriptCore                	       0x18d764564 bool WTF::Condition::waitUntilUnchecked<WTF::Lock>(WTF::Lock&, WTF::TimeWithDynamicClockType const&) + 196
4   JavaScriptCore                	       0x18d869ff0 WTF::Detail::CallableWrapper<WTF::AutomaticThread::start(WTF::AbstractLocker const&)::$_0, void>::call() + 260
5   JavaScriptCore                	       0x18d8c53cc WTF::Thread::entryPoint(WTF::Thread::NewThreadContext*) + 276
6   JavaScriptCore                	       0x18d8c7d28 WTF::wtfThreadEntryPoint(void*) + 16
7   libsystem_pthread.dylib       	       0x1f1b129a4 _pthread_start + 148
8   libsystem_pthread.dylib       	       0x1f1b11ea0 thread_start + 8


Thread 0 crashed with ARM Thread State (64-bit):
    x0: 0x0000000010004005   x1: 0x0000000007000806   x2: 0x0000000000000000   x3: 0x0000000000000c00
    x4: 0x0000000000002503   x5: 0x00000000ffffffff   x6: 0x0000000000000000   x7: 0x0000000282ea88f0
    x8: 0x00000000fffffbbf   x9: 0x0000000007000906  x10: 0x5010b845c8e00029  x11: 0x000000b2f5180f3c
   x12: 0x00000000016e3600  x13: 0x0000000000edc801  x14: 0x0000000000000001  x15: 0x0000050000000502
   x16: 0xffffffffffffffe1  x17: 0x0000000000000500  x18: 0x0000000000000000  x19: 0x0000000000000000
   x20: 0x00000000ffffffff  x21: 0x0000000000002503  x22: 0x0000000000000c00  x23: 0x000000016ee8c590
   x24: 0x0000000007000806  x25: 0x0000000000000000  x26: 0x0000000007000806  x27: 0x0000000000002503
   x28: 0x0000000000002503   fp: 0x000000016ee8c410   lr: 0x00000001b86b2b9c
    sp: 0x000000016ee8c3c0   pc: 0x00000001b86b2504 cpsr: 0x60000000
   far: 0x00000001054fcd70  esr: 0x56000080  Address size fault

Binary Images:
       0x1b86b1000 -        0x1b86e4fff libsystem_kernel.dylib arm64e  <b1b942de75903c61980a19d80ed4da37> /usr/lib/system/libsystem_kernel.dylib
       0x1817d8000 -        0x181c2bfff CoreFoundation arm64e  <b2d21cfd378c36d5baf73f70599cfefc> /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
       0x182ffa000 -        0x1832fffff Foundation arm64e  <d59c69755af237bc93be43b80b4293a5> /System/Library/Frameworks/Foundation.framework/Foundation
       0x100f70000 -        0x1033d7fff Snowit arm64  <957b4aa0c29d3191809a482cc9051d08> /private/var/containers/Bundle/Application/8C349329-DC1D-47B1-ABA0-A6F0252C3C12/Snowit.app/Snowit
       0x183c7e000 -        0x185502fff UIKitCore arm64e  <8388eb03002b3b35a78a6a022894292e> /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore
       0x19333f000 -        0x1933eafff FrontBoardServices arm64e  <6fdec0c3e5003e06948ee34bda520801> /System/Library/PrivateFrameworks/FrontBoardServices.framework/FrontBoardServices
       0x1814df000 -        0x181525fff libdispatch.dylib arm64e  <a5cbaab3e3893548baacfab18411b94a> /usr/lib/system/libdispatch.dylib
       0x19d186000 -        0x19d18efff GraphicsServices arm64e  <44e4515eb18737f18fe028e7b087daf5> /System/Library/PrivateFrameworks/GraphicsServices.framework/GraphicsServices
       0x108adc000 -        0x108b33fff dyld arm64e  <c21dba379df93fc7b286734030e18bb1> /usr/lib/dyld
       0x1f1b11000 -        0x1f1b1cfff libsystem_pthread.dylib arm64e  <1a4a45fd1bb639df84140590ce103717> /usr/lib/system/libsystem_pthread.dylib
       0x199f76000 -        0x199fd9fff libc++.1.dylib arm64e  <255864c483d93bac8c7aad1b2d8a60cc> /usr/lib/libc++.1.dylib
       0x18c766000 -        0x18da26fff JavaScriptCore arm64e  <488fd070baee3b55ac28cee0d299f2b2> /System/Library/Frameworks/JavaScriptCore.framework/JavaScriptCore
       0x181ff1000 -        0x1824b5fff CFNetwork arm64e  <1f9e80ee1df136acbdfe22afb9a1b82e> /System/Library/Frameworks/CFNetwork.framework/CFNetwork

EOF

AppDelegate:

#import "AppDelegate.h"
#import <React/RCTBridge.h>
#import <React/RCTBundleURLProvider.h>
#import <React/RCTRootView.h>
#import <FBSDKCoreKit/FBSDKCoreKit.h>
#import <Firebase.h>
#import <GoogleMaps/GoogleMaps.h>
#import <RNSplashScreen.h>
#import <RNNotifications.h>
#import <React/RCTLinkingManager.h>
#ifdef FB_SONARKIT_ENABLED
#import <FlipperKit/FlipperClient.h>
#import <FlipperKitLayoutPlugin/FlipperKitLayoutPlugin.h>
#import <FlipperKitUserDefaultsPlugin/FKUserDefaultsPlugin.h>
#import <FlipperKitNetworkPlugin/FlipperKitNetworkPlugin.h>
#import <SKIOSNetworkPlugin/SKIOSNetworkAdapter.h>
#import <FlipperKitReactPlugin/FlipperKitReactPlugin.h>

static void InitializeFlipper(UIApplication *application) {
  FlipperClient *client = [FlipperClient sharedClient];
  SKDescriptorMapper *layoutDescriptorMapper = [[SKDescriptorMapper alloc] initWithDefaults];
  [client addPlugin:[[FlipperKitLayoutPlugin alloc] initWithRootNode:application withDescriptorMapper:layoutDescriptorMapper]];
  [client addPlugin:[[FKUserDefaultsPlugin alloc] initWithSuiteName:nil]];
  [client addPlugin:[FlipperKitReactPlugin new]];
  [client addPlugin:[[FlipperKitNetworkPlugin alloc] initWithNetworkAdapter:[SKIOSNetworkAdapter new]]];
  [client start];
}
#endif

@implementation AppDelegate

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
  [FIRApp configure];
  [RNNotifications startMonitorNotifications];
  RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions];
  RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge
                                                   moduleName:@"Snowit"
                                            initialProperties:nil];

  rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1];

  self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
  UIViewController *rootViewController = [UIViewController new];
  rootViewController.view = rootView;
  self.window.rootViewController = rootViewController;
  [self.window makeKeyAndVisible];

  [[FBSDKApplicationDelegate sharedInstance] application:application
    didFinishLaunchingWithOptions:launchOptions];

  [RNSplashScreen show];

  return YES;
}

- (NSURL *)sourceURLForBridge:(RCTBridge *)bridge
{
    #if DEBUG
      return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil];
    #else
      return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
    #endif
}

- (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken {
  [RNNotifications didRegisterForRemoteNotificationsWithDeviceToken:deviceToken];
}
- (void)application:(UIApplication *)application didFailToRegisterForRemoteNotificationsWithError:(NSError *)error {
  [RNNotifications didFailToRegisterForRemoteNotificationsWithError:error];
}
- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult result))completionHandler {
  [RNNotifications didReceiveBackgroundNotification:userInfo withCompletionHandler:completionHandler];
}

- (BOOL)application:(UIApplication *)application
   openURL:(NSURL *)url
   options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options
{
  return [RCTLinkingManager application:application openURL:url options:options];
}
- (BOOL)application:(UIApplication *)application continueUserActivity:(nonnull NSUserActivity *)userActivity
 restorationHandler:(nonnull void (^)(NSArray<id<UIUserActivityRestoring>> * _Nullable))restorationHandler
{
 return [RCTLinkingManager application:application
                  continueUserActivity:userActivity
                    restorationHandler:restorationHandler];
}

@end

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:6

github_iconTop GitHub Comments

7reactions
anijacommented, Feb 8, 2022

@anija did you manage to resolve this issue? I’m getting crash reports on production app, last couple of days…

I’ve moved to react-native-bootsplash

1reaction
ghadeeraqraa1992commented, May 29, 2022

I will move to react-native-bootsplash

Read more comments on GitHub >

github_iconTop Results From Across the Web

iOS openurl deep link crashes app and device - Stack Overflow
It opens the app without issue and processes the link fine. However if you kill the app (using the app switcher) and then...
Read more >
app crashes when opening the app from deep link #34033
Running application on M1 macbook air. I've followed the structured mention in deep linking section. Updated delegate.m and run npx uri-scheme ...
Read more >
app launch via url (deep link) cra… | Apple Developer Forums
This worked fine until I compiled it for iOS 10 (it was deprecated in iOS 9.0). Now any 9.x or 10.x devices running...
Read more >
iOS app crashes when redirecting from browser to specific ...
I am trying to authenticate a user using Azure OIDC. After successful authentication, the user should get redirected to a screen in the...
Read more >
Deep links do not open the app - Branch Help
Deep links do not open the app ; Make sure you are clicking on a deep link (e.g. https://example.app.link/fzmLEhobLD ) ; Make sure...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found