facebook / react-native

A framework for building native applications using React
https://reactnative.dev
MIT License
118.57k stars 24.28k forks source link

Crashed: com.facebook.react.JavaScript SIGTRAP 0x00000001a065be50 on IOS 13 #31247

Closed jocoders closed 10 months ago

jocoders commented 3 years ago

Description

The crash appears in the production mode on iPhone XR IOS 13 with react-native 0.63.2.

React Native version:

System:
    OS: macOS 11.2.1
    CPU: (8) arm64 Apple M1
    Memory: 263.16 MB / 16.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 15.9.0 - /opt/homebrew/bin/node
    Yarn: 1.22.10 - /opt/homebrew/bin/yarn
    npm: 7.5.3 - /opt/homebrew/bin/npm
    Watchman: 4.9.0 - /opt/homebrew/bin/watchman
  Managers:
    CocoaPods: 1.10.1 - /usr/local/bin/pod
  SDKs:
    iOS SDK:
      Platforms: iOS 14.4, DriverKit 20.2, macOS 11.1, tvOS 14.3, watchOS 7.2
    Android SDK:
      API Levels: 29, 30
      Build Tools: 29.0.0, 29.0.2, 30.0.3
      System Images: android-30 | Google APIs Intel x86 Atom
      Android NDK: Not Found
  IDEs:
    Android Studio: 4.1 AI-201.8743.12.41.7042882
    Xcode: 12.4/12D4e - /usr/bin/xcodebuild
  Languages:
    Java: 1.8.0_242-release - /usr/bin/javac
    Python: 2.7.16 - /usr/bin/python
  npmPackages:
    @react-native-community/cli: Not Found
    react: 16.13.1 => 16.13.1 
    react-native: 0.63.2 => 0.63.2 
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

Steps To Reproduce

No steps for the reproduction, just crashlytics report:

Crashed: com.facebook.react.JavaScript
0  libsystem_malloc.dylib         0x1a065be50 nanov2_allocate_from_block$VARIANT$mp.cold.1 + 36
1  libsystem_malloc.dylib         0x1a06429c0 nanov2_find_block_and_allocate$VARIANT$mp + 514
2  libsystem_malloc.dylib         0x1a0641c40 nanov2_allocate$VARIANT$mp + 124
3  libsystem_malloc.dylib         0x1a0641b74 nanov2_malloc$VARIANT$mp + 60
4  libsystem_malloc.dylib         0x1a06506c0 malloc_zone_malloc + 156
5  libsystem_malloc.dylib         0x1a06510cc malloc + 28
6  libc++abi.dylib                0x1a072b8a0 operator new(unsigned long) + 28
7  vtb.invest                     0x100efab7c std::__1::unordered_map<folly::dynamic, folly::dynamic, folly::detail::DynamicHasher, folly::detail::DynamicKeyEqual, std::__1::allocator<std::__1::pair<folly::dynamic const, folly::dynamic> > >::operator[](folly::dynamic&&) + 253 (new:253)
8  vtb.invest                     0x100fa0d7c facebook::jsi::dynamicFromValue(facebook::jsi::Runtime&, facebook::jsi::Value const&) + 860 (dynamic-inl.h:860)
9  vtb.invest                     0x100fa0ad0 facebook::jsi::dynamicFromValue(facebook::jsi::Runtime&, facebook::jsi::Value const&) + 74 (JSIDynamic.cpp:74)
10 vtb.invest                     0x100fa0ad0 facebook::jsi::dynamicFromValue(facebook::jsi::Runtime&, facebook::jsi::Value const&) + 74 (JSIDynamic.cpp:74)
11 vtb.invest                     0x100fa0ad0 facebook::jsi::dynamicFromValue(facebook::jsi::Runtime&, facebook::jsi::Value const&) + 74 (JSIDynamic.cpp:74)
12 vtb.invest                     0x100fa2a30 facebook::react::JSIExecutor::callNativeModules(facebook::jsi::Value const&, bool) + 388 (JSIExecutor.cpp:388)
13 vtb.invest                     0x100fa4660 std::__1::__function::__func<facebook::react::JSIExecutor::initializeRuntime()::$_1, std::__1::allocator<facebook::react::JSIExecutor::initializeRuntime()::$_1>, facebook::jsi::Value (facebook::jsi::Runtime&, facebook::jsi::Value const&, facebook::jsi::Value const*, unsigned long)>::operator()(facebook::jsi::Runtime&, facebook::jsi::Value const&, facebook::jsi::Value const*&&, unsigned long&&) + 1144 (jsi.h:1144)
14 vtb.invest                     0x100f9d654 std::__1::function<facebook::jsi::Value (facebook::jsi::Runtime&, facebook::jsi::Value const&, facebook::jsi::Value const*, unsigned long)>::operator()(facebook::jsi::Runtime&, facebook::jsi::Value const&, facebook::jsi::Value const*, unsigned long) const + 2548 (functional:2548)
15 vtb.invest                     0x100f9d398 facebook::jsc::JSCRuntime::createFunctionFromHostFunction(facebook::jsi::PropNameID const&, unsigned int, std::__1::function<facebook::jsi::Value (facebook::jsi::Runtime&, facebook::jsi::Value const&, facebook::jsi::Value const*, unsigned long)>)::HostFunctionMetadata::call(OpaqueJSContext const*, OpaqueJSValue*, OpaqueJSValue*, unsigned long, OpaqueJSValue const* const*, OpaqueJSValue const**) + 1150 (JSCRuntime.cpp:1150)
16 JavaScriptCore                 0x1afaab158 JSC::JSCallbackObject<JSC::JSNonFinalObject>::call(JSC::JSGlobalObject*, JSC::CallFrame*) + 428
17 JavaScriptCore                 0x1b00ade78 JSC::LLInt::setUpCall(JSC::CallFrame*, JSC::CodeSpecializationKind, JSC::JSValue, JSC::LLIntCallLinkInfo*) + 684
18 JavaScriptCore                 0x1afa56ffc llint_entry + 124780
19 JavaScriptCore                 0x1afa56f68 llint_entry + 124632
20 JavaScriptCore                 0x1afa56f68 llint_entry + 124632
21 JavaScriptCore                 0x1afa56f68 llint_entry + 124632
22 JavaScriptCore                 0x1afa56f68 llint_entry + 124632
23 JavaScriptCore                 0x1afa56f68 llint_entry + 124632
24 JavaScriptCore                 0x1afa56f68 llint_entry + 124632
25 JavaScriptCore                 0x1afa56f68 llint_entry + 124632
26 JavaScriptCore                 0x1afa38648 vmEntryToJavaScript + 248
27 JavaScriptCore                 0x1affe7718 JSC::Interpreter::executeCall(JSC::JSGlobalObject*, JSC::JSObject*, JSC::CallType, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&) + 444
28 JavaScriptCore                 0x1b0265fc8 JSC::boundThisNoArgsFunctionCall(JSC::JSGlobalObject*, JSC::CallFrame*) + 712
29 JavaScriptCore                 0x1afa597f0 llint_entry + 135008
30 JavaScriptCore                 0x1afa57010 llint_entry + 124800
31 JavaScriptCore                 0x1afa57010 llint_entry + 124800
32 JavaScriptCore                 0x1afa56f68 llint_entry + 124632
33 JavaScriptCore                 0x1afa56f68 llint_entry + 124632
34 JavaScriptCore                 0x1afa56f68 llint_entry + 124632
35 JavaScriptCore                 0x1afa56f68 llint_entry + 124632
36 JavaScriptCore                 0x1afa57010 llint_entry + 124800
37 JavaScriptCore                 0x1afa57010 llint_entry + 124800
38 JavaScriptCore                 0x1afa58444 llint_entry + 129972
39 JavaScriptCore                 0x1afa56f68 llint_entry + 124632
40 JavaScriptCore                 0x1afa57010 llint_entry + 124800
41 JavaScriptCore                 0x1afa56f68 llint_entry + 124632
42 JavaScriptCore                 0x1afa38648 vmEntryToJavaScript + 248
43 JavaScriptCore                 0x1affe7718 JSC::Interpreter::executeCall(JSC::JSGlobalObject*, JSC::JSObject*, JSC::CallType, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&) + 444
44 JavaScriptCore                 0x1b0265fc8 JSC::boundThisNoArgsFunctionCall(JSC::JSGlobalObject*, JSC::CallFrame*) + 712
45 JavaScriptCore                 0x1afa387c4 vmEntryToNative + 260
46 JavaScriptCore                 0x1affe776c JSC::Interpreter::executeCall(JSC::JSGlobalObject*, JSC::JSObject*, JSC::CallType, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&) + 528
47 JavaScriptCore                 0x1b01cd1a8 JSC::profiledCall(JSC::JSGlobalObject*, JSC::ProfilingReason, JSC::JSValue, JSC::CallType, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&) + 168
48 JavaScriptCore                 0x1afab94e0 JSObjectCallAsFunction + 504
49 vtb.invest                     0x100f9b760 facebook::jsc::JSCRuntime::call(facebook::jsi::Function const&, facebook::jsi::Value const&, facebook::jsi::Value const*, unsigned long) + 1253 (JSCRuntime.cpp:1253)
50 vtb.invest                     0x100fa4dfc facebook::jsi::Value facebook::jsi::Function::call<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, facebook::jsi::Value>(facebook::jsi::Runtime&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, facebook::jsi::Value&&) const + 224 (jsi-inl.h:224)
51 vtb.invest                     0x100fa4c5c std::__1::__function::__func<facebook::react::JSIExecutor::callFunction(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, folly::dynamic const&)::$_4, std::__1::allocator<facebook::react::JSIExecutor::callFunction(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, folly::dynamic const&)::$_4>, void ()>::operator()() + 231 (JSIExecutor.cpp:231)
52 vtb.invest                     0x100ec6100 void std::__1::__invoke_void_return_wrapper<void>::__call<void (*&)(std::__1::function<void ()> const&, std::__1::function<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > ()>), std::__1::function<void ()> const&, std::__1::function<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > ()> >(void (*&)(std::__1::function<void ()> const&, std::__1::function<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > ()>), std::__1::function<void ()> const&, std::__1::function<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > ()>&&) + 1831 (functional:1831)
53 vtb.invest                     0x100fa2660 facebook::react::JSIExecutor::callFunction(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, folly::dynamic const&) + 1831 (functional:1831)
54 vtb.invest                     0x100f97b98 std::__1::__function::__func<facebook::react::NativeToJsBridge::runOnExecutorQueue(std::__1::function<void (facebook::react::JSExecutor*)>)::$_8, std::__1::allocator<facebook::react::NativeToJsBridge::runOnExecutorQueue(std::__1::function<void (facebook::react::JSExecutor*)>)::$_8>, void ()>::operator()() + 1720 (functional:1720)
55 vtb.invest                     0x100ee39b4 facebook::react::tryAndReturnError(std::__1::function<void ()> const&) + 121780 (RCTCxxUtils.mm:121780)
56 vtb.invest                     0x100eeffe0 facebook::react::RCTMessageThread::tryFunc(std::__1::function<void ()> const&) + 68 (RCTMessageThread.mm:68)
57 vtb.invest                     0x100eefda0 invocation function for block in facebook::react::RCTMessageThread::runAsync(std::__1::function<void ()>) + 45 (RCTMessageThread.mm:45)
58 CoreFoundation                 0x1a08de90c __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 20
59 CoreFoundation                 0x1a08de098 __CFRunLoopDoBlocks + 264
60 CoreFoundation                 0x1a08d91fc __CFRunLoopRun + 808
61 CoreFoundation                 0x1a08d8ba8 CFRunLoopRunSpecific + 424
62 vtb.invest                     0x100ed8ff8 +[RCTCxxBridge runRunLoop] + 266 (RCTCxxBridge.mm:266)
63 Foundation                     0x1a0d58e20 __NSThread__start__ + 848
64 libsystem_pthread.dylib        0x1a0676d98 _pthread_start + 156
65 libsystem_pthread.dylib        0x1a067a74c thread_start + 8

Expected Results

The app does not crush in the production mode.

Any ideas about the cause and how to solve it?

Vednus commented 3 years ago

@jocoders did you ever figure this out?

stale[bot] commented 2 years ago

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions.

rogertan30 commented 2 years ago

same question for me

thiavila-sigma commented 2 years ago

Same here

uguraktas commented 1 year ago

same here

cortinico commented 10 months ago

Hey, We're cleaning up the React Native issue tracker to make sure we focus on the most important issues first.

I'm closing this one because it's stale and related to a version of React Native we no longer support. If the issue persists on the latest version, please re-open a new issue and reference this one.

Moreover, we generally can't fix issues just by looking at a stacktrace reported from your crash reporting platform. Please provide a reproducer in your future reports.

Thank you.