Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all articles
Browse latest Browse all 16750

react native run on ios device crash immediately

$
0
0

I just init a new app with react-native init and run the app on real ios device with react-native run-ios --device.

The build successed and the app was install and launch, show the splash screen and immediately crash.(on simulator the app run well)

The device is iPhone XR(13.5), and it happened on others ios devices

This is the logs of the device:

Incident Identifier: 3A2CE960-5ECD-43B8-96E8-EAC608A2475FCrashReporter Key:   5d15f9ae22981721699fb5658943f2b35381377aHardware Model:      iPhone11,8Process:             xxx [2796]Path:                /private/var/containers/Bundle/Application/024F7D23-D381-4F05-9F95-75F3AB589DAE/xxx.app/xxxIdentifier:          org.reactjs.native.example.xxxVersion:             1 (1.0)Code Type:           ARM-64 (Native)Role:                ForegroundParent Process:      launchd [1]Coalition:           org.reactjs.native.example.xxx [1682]Date/Time:           2020-09-01 20:50:19.1317 +0300Launch Time:         2020-09-01 20:49:59.0333 +0300OS Version:          iPhone OS 13.5 (17F75)Release Type:        UserBaseband Version:    2.06.00Report Version:      104Exception Type:  EXC_CRASH (SIGKILL)Exception Codes: 0x0000000000000000, 0x0000000000000000Exception Note:  EXC_CORPSE_NOTIFYTermination Reason: Namespace SPRINGBOARD, Code 0x8badf00dTermination Description: SPRINGBOARD, scene-create watchdog transgression: application<org.reactjs.native.example.xxx>:2796 exhausted real (wall clock) time allowance of 18.80 seconds | ProcessVisibility: Foreground | ProcessState: Running | WatchdogEvent: scene-create | WatchdogVisibility: Foreground | WatchdogCPUStatistics: ( | "Elapsed total CPU time (seconds): 9.990 (user 9.990, system 0.000), 8% CPU", | "Elapsed application CPU time (seconds): 3.199, 3% CPU" | )Triggered by Thread:  0Thread 0 name:  Dispatch queue: com.apple.main-threadThread 0 Crashed:0   libsystem_kernel.dylib          0x00000001ba82c7c0 semaphore_wait_trap + 81   libdispatch.dylib               0x00000001ba708880 _dispatch_sema4_wait + 282   libdispatch.dylib               0x00000001ba708f18 _dispatch_semaphore_wait_slow + 1323   xxx                             0x00000001050d7f88 -[RCTBundleURLProvider isPackagerRunning:] + 5390216 (RCTBundleURLProvider.m:92)4   xxx                             0x00000001050d8520 -[RCTBundleURLProvider guessPackagerHost] + 5391648 (RCTBundleURLProvider.m:108)5   xxx                             0x00000001050d873c -[RCTBundleURLProvider packagerServerHost] + 5392188 (RCTBundleURLProvider.m:122)6   xxx                             0x00000001050d8814 -[RCTBundleURLProvider jsBundleURLForBundleRoot:fallbackURLProvider:] + 5392404 (RCTBundleURLProvider.m:132)7   xxx                             0x00000001050d8a40 -[RCTBundleURLProvider jsBundleURLForBundleRoot:fallbackResource:fallbackExtension:] + 5392960 (RCTBundleURLProvider.m:147)8   xxx                             0x00000001050d8b5c -[RCTBundleURLProvider jsBundleURLForBundleRoot:fallbackResource:] + 5393244 (RCTBundleURLProvider.m:155)9   xxx                             0x0000000104bba588 -[AppDelegate sourceURLForBridge:] + 25992 (AppDelegate.m:52)10  xxx                             0x00000001050d68c4 -[RCTBridge setUp] + 5384388 (RCTBridge.m:307)11  xxx                             0x00000001050d5c3c -[RCTBridge initWithDelegate:bundleURL:moduleProvider:launchOptions:] + 5381180 (RCTBridge.m:177)12  xxx                             0x00000001050d5960 -[RCTBridge initWithDelegate:launchOptions:] + 5380448 (RCTBridge.m:154)13  xxx                             0x0000000104bb9fec -[AppDelegate application:didFinishLaunchingWithOptions:] + 24556 (AppDelegate.m:34)14  UIKitCore                       0x00000001beba7988 -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 36015  UIKitCore                       0x00000001beba9768 -[UIApplication _callInitializationDelegatesWithActions:forCanvas:payload:fromOriginatingProcess:] + 510416  UIKitCore                       0x00000001bebaf164 -[UIApplication _runWithMainScene:transitionContext:completion:] + 125617  UIKitCore                       0x00000001be31f03c -[_UISceneLifecycleMultiplexer completeApplicationLaunchWithFBSScene:transitionContext:] + 15218  UIKitCore                       0x00000001be7ead68 _UIScenePerformActionsWithLifecycleActionMask + 11219  UIKitCore                       0x00000001be31fb70 __101-[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:]_block_invoke + 21220  UIKitCore                       0x00000001be31f59c -[_UISceneLifecycleMultiplexer _performBlock:withApplicationOfDeactivationReasons:fromReasons:] + 29621  UIKitCore                       0x00000001be31f98c -[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:] + 75622  UIKitCore                       0x00000001be31f214 -[_UISceneLifecycleMultiplexer uiScene:transitionedFromState:withTransitionContext:] + 34023  UIKitCore                       0x00000001be323930 __186-[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]_block_invoke_2 + 19624  UIKitCore                       0x00000001be709604 +[BSAnimationSettings+ 6059524 (UIKit) tryAnimatingWithSettings:actions:completion:] + 85625  UIKitCore                       0x00000001be804a0c _UISceneSettingsDiffActionPerformChangesWithTransitionContext + 26026  UIKitCore                       0x00000001be32366c __186-[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]_block_invoke + 15627  UIKitCore                       0x00000001be8048f4 _UISceneSettingsDiffActionPerformActionsWithDelayForTransitionContext + 10828  UIKitCore                       0x00000001be3234c4 -[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:] + 39229  UIKitCore                       0x00000001be189ba4 __64-[UIScene scene:didUpdateWithDiff:transitionContext:completion:]_block_invoke + 64030  UIKitCore                       0x00000001be1886a4 -[UIScene _emitSceneSettingsUpdateResponseForCompletion:afterSceneUpdateWork:] + 25631  UIKitCore                       0x00000001be1898d4 -[UIScene scene:didUpdateWithDiff:transitionContext:completion:] + 23632  UIKitCore                       0x00000001bebad3fc -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 55233  UIKitCore                       0x00000001be72fe08 -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 37634  FrontBoardServices              0x00000001bfccaffc -[FBSSceneImpl _callOutQueue_agent_didCreateWithTransitionContext:completion:] + 44035  FrontBoardServices              0x00000001bfcf15a0 __86-[FBSWorkspaceScenesClient sceneID:createWithParameters:transitionContext:completion:]_block_invoke.168 + 11636  FrontBoardServices              0x00000001bfcd5ebc -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 24037  FrontBoardServices              0x00000001bfcf1234 __86-[FBSWorkspaceScenesClient sceneID:createWithParameters:transitionContext:completion:]_block_invoke + 34438  libdispatch.dylib               0x00000001ba70833c _dispatch_client_callout + 2039  libdispatch.dylib               0x00000001ba70b0d4 _dispatch_block_invoke_direct + 26440  FrontBoardServices              0x00000001bfd176c4 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 4841  FrontBoardServices              0x00000001bfd17370 -[FBSSerialQueue _queue_performNextIfPossible] + 43242  FrontBoardServices              0x00000001bfd178dc -[FBSSerialQueue _performNextFromRunLoopSource] + 3243  CoreFoundation                  0x00000001ba9e3af4 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 2844  CoreFoundation                  0x00000001ba9e3a48 __CFRunLoopDoSource0 + 8445  CoreFoundation                  0x00000001ba9e3198 __CFRunLoopDoSources0 + 19646  CoreFoundation                  0x00000001ba9ddf38 __CFRunLoopRun + 79647  CoreFoundation                  0x00000001ba9dd8f4 CFRunLoopRunSpecific + 48048  GraphicsServices                0x00000001c4df4604 GSEventRunModal + 16449  UIKitCore                       0x00000001bebb1358 UIApplicationMain + 194450  xxx                             0x0000000104bba6f4 main + 26356 (main.m:7)51  libdyld.dylib                   0x00000001ba8592dc start + 4Thread 1:0   libsystem_pthread.dylib         0x00000001ba7759c0 start_wqthread + 0Thread 2:0   libsystem_pthread.dylib         0x00000001ba7759c0 start_wqthread + 0Thread 3 name:  com.apple.uikit.eventfetch-threadThread 3:0   libsystem_kernel.dylib          0x00000001ba82c784 mach_msg_trap + 81   libsystem_kernel.dylib          0x00000001ba82bba8 mach_msg + 762   CoreFoundation                  0x00000001ba9e3314 __CFRunLoopServiceMachPort + 1523   CoreFoundation                  0x00000001ba9de0a0 __CFRunLoopRun + 11564   CoreFoundation                  0x00000001ba9dd8f4 CFRunLoopRunSpecific + 4805   Foundation                      0x00000001bad26b18 -[NSRunLoop+ 31512 (NSRunLoop) runMode:beforeDate:] + 2326   Foundation                      0x00000001bad269f0 -[NSRunLoop+ 31216 (NSRunLoop) runUntilDate:] + 927   UIKitCore                       0x00000001bec57840 -[UIEventFetcher threadMain] + 1568   Foundation                      0x00000001bae60c10 __NSThread__start__ + 8649   libsystem_pthread.dylib         0x00000001ba76d8fc _pthread_start + 16810  libsystem_pthread.dylib         0x00000001ba7759d4 thread_start + 8Thread 4:0   libsystem_pthread.dylib         0x00000001ba7759c0 start_wqthread + 0Thread 5:0   libsystem_pthread.dylib         0x00000001ba7759c0 start_wqthread + 0Thread 6:0   libsystem_kernel.dylib          0x00000001ba851078 poll + 81   xxx                             0x00000001054ebce8 poll_dispatch + 1882   xxx                             0x00000001054e325c event_base_loop + 6083   xxx                             0x0000000104d78504 (anonymous namespace)::EventBaseBackend::eb_event_base_loop(int) + 1852676 (EventBase.cpp:104)4   xxx                             0x0000000104d6a500 folly::EventBase::loopBody(int, bool) + 1795328 (EventBase.cpp:397)5   xxx                             0x0000000104d69ef8 folly::EventBase::loop() + 1793784 (EventBase.cpp:315)6   xxx                             0x0000000104d6c184 folly::EventBase::loopForever() + 1802628 (EventBase.cpp:538)7   xxx                             0x0000000104e818e0 folly::run(folly::EventBaseManager*, folly::EventBase*, folly::Baton<true, std::__1::atomic>*, folly::Range<char const*> const&) + 2939104 (ScopedEventBaseThread.cpp:43)8   xxx                             0x0000000104e85e2c decltype(std::__1::forward<void (*)(folly::EventBaseManager*, folly::EventBase*, folly::Baton<true, std::__1::atomic>*, folly::Range<char const*> const&)>(fp)(std::__1::forward<folly::EventBaseManager*>(fp0), std::__1::forward<folly::EventBase*>(fp0), std::__1::forward<folly::Baton<true, std::__1::atomic>*>(fp0), std::__1::forward<folly::Range<char const*> >(fp0))) std::__1::__invoke<void (*)(folly::EventBaseManager*, folly::EventBase*, folly::Baton<true, std::__1::atomic>*, folly::Range<char const*> const&), folly::EventBaseManager*, folly::EventBase*, folly::Baton<true, std::__1::atomic>*, folly::Range<char const*> >(void (*&&)(folly::EventBaseManager*, folly::EventBase*, folly::Baton<true, std::__1::atomic>*, folly::Range<char const*> const&), folly::EventBaseManager*&&, folly::EventBase*&&, folly::Baton<true, std::__1::atomic>*&&, folly::Range<char const*>&&) + 2956844 (type_traits:4425)9   xxx                             0x0000000104e85d18 void std::__1::__thread_execute<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, void (*)(folly::EventBaseManager*, folly::EventBase*, folly::Baton<true, std::__1::atomic>*, folly::Range<char const*> const&), folly::EventBaseManager*, folly::EventBase*, folly::Baton<true, std::__1::atomic>*, folly::Range<char const*>, 2ul, 3ul, 4ul, 5ul>(std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, void (*)(folly::EventBaseManager*, folly::EventBase*, folly::Baton<true, std::__1::atomic>*, folly::Range<char const*> const&), folly::EventBaseManager*, folly::EventBase*, folly::Baton<true, std::__1::atomic>*, folly::Range<char const*> >&, std::__1::__tuple_indices<2ul, 3ul, 4ul, 5ul>) + 2956568 (thread:342)10  xxx                             0x0000000104e850e0 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 (*)(folly::EventBaseManager*, folly::EventBase*, folly::Baton<true, std::__1::atomic>*, folly::Range<char const*> const&), folly::EventBaseManager*, folly::EventBase*, folly::Baton<true, std::__1::atomic>*, folly::Range<char const*> > >(void*) + 2953440 (thread:351)11  libsystem_pthread.dylib         0x00000001ba76d8fc _pthread_start + 16812  libsystem_pthread.dylib         0x00000001ba7759d4 thread_start + 8Thread 7:0   libsystem_kernel.dylib          0x00000001ba851078 poll + 81   xxx                             0x00000001054ebce8 poll_dispatch + 1882   xxx                             0x00000001054e325c event_base_loop + 6083   xxx                             0x0000000104d78504 (anonymous namespace)::EventBaseBackend::eb_event_base_loop(int) + 1852676 (EventBase.cpp:104)4   xxx                             0x0000000104d6a500 folly::EventBase::loopBody(int, bool) + 1795328 (EventBase.cpp:397)5   xxx                             0x0000000104d69ef8 folly::EventBase::loop() + 1793784 (EventBase.cpp:315)6   xxx                             0x0000000104d6c184 folly::EventBase::loopForever() + 1802628 (EventBase.cpp:538)7   xxx                             0x0000000104e818e0 folly::run(folly::EventBaseManager*, folly::EventBase*, folly::Baton<true, std::__1::atomic>*, folly::Range<char const*> const&) + 2939104 (ScopedEventBaseThread.cpp:43)8   xxx                             0x0000000104e85e2c decltype(std::__1::forward<void (*)(folly::EventBaseManager*, folly::EventBase*, folly::Baton<true, std::__1::atomic>*, folly::Range<char const*> const&)>(fp)(std::__1::forward<folly::EventBaseManager*>(fp0), std::__1::forward<folly::EventBase*>(fp0), std::__1::forward<folly::Baton<true, std::__1::atomic>*>(fp0), std::__1::forward<folly::Range<char const*> >(fp0))) std::__1::__invoke<void (*)(folly::EventBaseManager*, folly::EventBase*, folly::Baton<true, std::__1::atomic>*, folly::Range<char const*> const&), folly::EventBaseManager*, folly::EventBase*, folly::Baton<true, std::__1::atomic>*, folly::Range<char const*> >(void (*&&)(folly::EventBaseManager*, folly::EventBase*, folly::Baton<true, std::__1::atomic>*, folly::Range<char const*> const&), folly::EventBaseManager*&&, folly::EventBase*&&, folly::Baton<true, std::__1::atomic>*&&, folly::Range<char const*>&&) + 2956844 (type_traits:4425)9   xxx                             0x0000000104e85d18 void std::__1::__thread_execute<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, void (*)(folly::EventBaseManager*, folly::EventBase*, folly::Baton<true, std::__1::atomic>*, folly::Range<char const*> const&), folly::EventBaseManager*, folly::EventBase*, folly::Baton<true, std::__1::atomic>*, folly::Range<char const*>, 2ul, 3ul, 4ul, 5ul>(std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, void (*)(folly::EventBaseManager*, folly::EventBase*, folly::Baton<true, std::__1::atomic>*, folly::Range<char const*> const&), folly::EventBaseManager*, folly::EventBase*, folly::Baton<true, std::__1::atomic>*, folly::Range<char const*> >&, std::__1::__tuple_indices<2ul, 3ul, 4ul, 5ul>) + 2956568 (thread:342)10  xxx                             0x0000000104e850e0 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 (*)(folly::EventBaseManager*, folly::EventBase*, folly::Baton<true, std::__1::atomic>*, folly::Range<char const*> const&), folly::EventBaseManager*, folly::EventBase*, folly::Baton<true, std::__1::atomic>*, folly::Range<char const*> > >(void*) + 2953440 (thread:351)11  libsystem_pthread.dylib         0x00000001ba76d8fc _pthread_start + 16812  libsystem_pthread.dylib         0x00000001ba7759d4 thread_start + 8Thread 8 name:  FutureTimekeeprThread 8:0   libsystem_kernel.dylib          0x00000001ba851078 poll + 81   xxx                             0x00000001054ebce8 poll_dispatch + 1882   xxx                             0x00000001054e325c event_base_loop + 6083   xxx                             0x0000000104d78504 (anonymous namespace)::EventBaseBackend::eb_event_base_loop(int) + 1852676 (EventBase.cpp:104)4   xxx                             0x0000000104d6a500 folly::EventBase::loopBody(int, bool) + 1795328 (EventBase.cpp:397)5   xxx                             0x0000000104d69ef8 folly::EventBase::loop() + 1793784 (EventBase.cpp:315)6   xxx                             0x0000000104d6c184 folly::EventBase::loopForever() + 1802628 (EventBase.cpp:538)7   xxx                             0x0000000104ef9848 folly::ThreadWheelTimekeeper::ThreadWheelTimekeeper()::$_0::operator()() const + 3430472 (ThreadWheelTimekeeper.cpp:32)8   xxx                             0x0000000104ef97dc decltype(std::__1::forward<folly::ThreadWheelTimekeeper::ThreadWheelTimekeeper()::$_0>(fp)()) std::__1::__invoke<folly::ThreadWheelTimekeeper::ThreadWheelTimekeeper()::$_0>(folly::ThreadWheelTimekeeper::ThreadWheelTimekeeper()::$_0&&) + 3430364 (type_traits:4425)9   xxx                             0x0000000104ef9738 void std::__1::__thread_execute<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, folly::ThreadWheelTimekeeper::ThreadWheelTimekeeper()::$_0>(std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, folly::ThreadWheelTimekeeper::ThreadWheelTimekeeper()::$_0>&, std::__1::__tuple_indices<>) + 3430200 (thread:342)10  xxx                             0x0000000104ef8e3c void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, folly::ThreadWheelTimekeeper::ThreadWheelTimekeeper()::$_0> >(void*) + 3427900 (thread:351)11  libsystem_pthread.dylib         0x00000001ba76d8fc _pthread_start + 16812  libsystem_pthread.dylib         0x00000001ba7759d4 thread_start + 8Thread 0 crashed with ARM Thread State (64-bit):    x0: 0x000000000000000e   x1: 0x0000000000000003   x2: 0x0000000000000028   x3: 0x0000000000000030    x4: 0x0000000000000603   x5: 0x0000000000000000   x6: 0x0000000000000000   x7: 0x0000000000000403    x8: 0x0000000000000000   x9: 0x0000000000000000  x10: 0x0000a1a2086df06f  x11: 0x0000c1a2086df06f   x12: 0x0000003700000001  x13: 0x0000000000000005  x14: 0x0000000000000100  x15: 0x0000000000000100   x16: 0xffffffffffffffdc  x17: 0x00000001fc805480  x18: 0x0000000000000000  x19: 0x0000000282a73ce0   x20: 0x0000000282a73ca0  x21: 0xffffffffffffffff  x22: 0x0000000000000001  x23: 0x00000001f6efebb2   x24: 0x0000000000000000  x25: 0x00000001f6f5ff6f  x26: 0x000000002b870064  x27: 0x0000000000000010   x28: 0x0000000000000000   fp: 0x000000016b248f40   lr: 0x00000001ba708880    sp: 0x000000016b248f30   pc: 0x00000001ba82c7c0 cpsr: 0x60000000   esr: 0x56000080  Address size fault

Viewing all articles
Browse latest Browse all 16750

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>