Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Got iOS crash when upgrade to RN 0.71.8 facebook::jsi::WithRuntimeDecorator<facebook::react::(anonymous namespace)::ReentrancyCheck, facebook::jsi::Runtime #38059

Closed
hoanghcmus opened this issue Jun 26, 2023 · 3 comments

Comments

@hoanghcmus
Copy link

hoanghcmus commented Jun 26, 2023

Description

I upgrade react native from 0.63.4 to 0.71.8
After upgrade, I got crash on Crashlytics related to facebook::jsi::WithRuntimeDecorator<facebook::react::(anonymous namespace)::ReentrancyCheck, facebook::jsi::Runtime

Stacktrace here

Crashed: com.facebook.react.JavaScript
0  hermes                         0x4694 (Missing UUID dfc2559d8dda3d2d99245d5bd62a1218)
1  hermes                         0x27b1c8 dtoa_fixedpoint + 239380
2  hermes                         0x27b2c0 dtoa_fixedpoint + 239628
3  hermes                         0x22a69c hermes::vm::JSOutOfMemoryError::~JSOutOfMemoryError() + 593032
4  hermes                         0x2e30c facebook::jsi::JSError::~JSError() + 64628
5  hermes                         0x118d5c facebook::jsi::JSError::~JSError() + 1025732
6  hermes                         0x11eb58 facebook::jsi::JSError::~JSError() + 1049792
7  hermes                         0x11f370 facebook::jsi::JSError::~JSError() + 1051864
8  hermes                         0x1199c0 facebook::jsi::JSError::~JSError() + 1028904
9  hermes                         0x115504 facebook::jsi::JSError::~JSError() + 1011308
10 hermes                         0x118b48 facebook::jsi::JSError::~JSError() + 1025200
11 hermes                         0x5cb9c facebook::jsi::JSError::~JSError() + 255236
12 hermes                         0x49fb8 facebook::jsi::JSError::~JSError() + 178464
13 hermes                         0x4571c facebook::jsi::JSError::~JSError() + 159876
14 hermes                         0x272d8 facebook::jsi::JSError::~JSError() + 35904
15 hermes                         0xf7234 facebook::jsi::JSError::~JSError() + 887708
16 hermes                         0x27030 facebook::jsi::JSError::~JSError() + 35224
17 hermes                         0x46260 facebook::jsi::JSError::~JSError() + 162760
18 hermes                         0x4571c facebook::jsi::JSError::~JSError() + 159876
19 hermes                         0x272d8 facebook::jsi::JSError::~JSError() + 35904
20 hermes                         0xf7234 facebook::jsi::JSError::~JSError() + 887708
21 hermes                         0x27030 facebook::jsi::JSError::~JSError() + 35224
22 hermes                         0x46260 facebook::jsi::JSError::~JSError() + 162760
23 hermes                         0x4571c facebook::jsi::JSError::~JSError() + 159876
24 hermes                         0x272d8 facebook::jsi::JSError::~JSError() + 35904
25 hermes                         0x25bf4 facebook::jsi::JSError::~JSError() + 30044
26 hermes                         0xf6f48 facebook::jsi::JSError::~JSError() + 886960
27 hermes                         0x27030 facebook::jsi::JSError::~JSError() + 35224
28 hermes                         0x46260 facebook::jsi::JSError::~JSError() + 162760
29 hermes                         0x4571c facebook::jsi::JSError::~JSError() + 159876
30 hermes                         0x272d8 facebook::jsi::JSError::~JSError() + 35904
31 hermes                         0x25bf4 facebook::jsi::JSError::~JSError() + 30044
32 hermes                         0xf6f48 facebook::jsi::JSError::~JSError() + 886960
33 hermes                         0x27030 facebook::jsi::JSError::~JSError() + 35224
34 hermes                         0x46260 facebook::jsi::JSError::~JSError() + 162760
35 hermes                         0x4571c facebook::jsi::JSError::~JSError() + 159876
36 hermes                         0x272d8 facebook::jsi::JSError::~JSError() + 35904
37 hermes                         0x26b40 facebook::jsi::JSError::~JSError() + 33960
38 hermes                         0xbce4 facebook::hermes::HermesRuntime::rootsListLength() const + 19172
39 MYAPP                         0x6a17cc facebook::jsi::WithRuntimeDecorator<facebook::react::(anonymous namespace)::ReentrancyCheck, facebook::jsi::Runtime, facebook::jsi::Runtime>::call(facebook::jsi::Function const&, facebook::jsi::Value const&, facebook::jsi::Value const*, unsigned long) + 748 (decorator.h:748)
40 MYAPP                         0x6d30e4 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 + 257 (jsi-inl.h:257)
41 MYAPP                         0x6d2f4c 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&)::$_5, 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&)::$_5>, void ()>::operator()() + 253 (JSIExecutor.cpp:253)
42 MYAPP                         0x563314 void std::__1::__invoke_void_return_wrapper<void, true>::__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> > ()>&&) + 470 (function.h:470)
43 MYAPP                         0x6d0044 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&) + 470 (function.h:470)
44 MYAPP                         0x674948 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()() + 359 (function.h:359)
45 MYAPP                         0x5d0d0c facebook::react::tryAndReturnError(std::__1::function<void ()> const&) + 512 (function.h:512)
46 MYAPP                         0x5dcb9c facebook::react::RCTMessageThread::tryFunc(std::__1::function<void ()> const&) + 69 (RCTMessageThread.mm:69)
47 MYAPP                         0x5dc974 invocation function for block in facebook::react::RCTMessageThread::runAsync(std::__1::function<void ()>) + 46 (RCTMessageThread.mm:46)
48 CoreFoundation                 0x43924 __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 28
49 CoreFoundation                 0xac0ac __CFRunLoopDoBlocks + 368
50 CoreFoundation                 0x7c508 __CFRunLoopRun + 2452
51 CoreFoundation                 0x811e4 CFRunLoopRunSpecific + 612
52 MYAPP                         0x5c69d8 +[RCTCxxBridge runRunLoop] + 336 (RCTCxxBridge.mm:336)
53 Foundation                     0x5ace8 __NSThread__start__ + 716
54 libsystem_pthread.dylib        0x16cc _pthread_start + 148
55 libsystem_pthread.dylib        0xba4 thread_start + 8

React Native Version

0.71.8

Output of npx react-native info

System:
    OS: macOS 13.1
    CPU: (10) arm64 Apple M1 Pro
    Memory: 338.89 MB / 32.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 14.20.0 - ~/.nvm/versions/node/v14.20.0/bin/node
    Yarn: 1.22.19 - /opt/homebrew/bin/yarn
    npm: 9.6.7 - ~/.nvm/versions/node/v14.20.0/bin/npm
    Watchman: 2023.03.13.00 - /opt/homebrew/bin/watchman
  Managers:
    CocoaPods: 1.11.3 - /opt/homebrew/bin/pod
  SDKs:
    iOS SDK:
      Platforms: DriverKit 22.4, iOS 16.4, macOS 13.3, tvOS 16.4, watchOS 9.4
    Android SDK: Not Found
  IDEs:
    Android Studio: 2021.3 AI-213.7172.25.2113.9123335
    Xcode: 14.3/14E222b - /usr/bin/xcodebuild
  Languages:
    Java: 17.0.5 - /usr/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: 18.2.0 => 18.2.0 
    react-native: 0.71.8 => 0.71.8 
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found```

### Steps to reproduce

- Upgrade react-native from 0.63.4 to 0.71.8 
- Enable hermes on iOS 

### Snack, code example, screenshot, or link to a repository

I don't know where it's crash. 
@github-actions
Copy link

⚠️ Newer Version of React Native is Available!
ℹ️ You are on a supported minor version, but it looks like there's a newer patch available - 0.71.11. Please upgrade to the highest patch for your minor or latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If it does not repro, please let us know so we can close out this issue. This helps us ensure we are looking at issues that still exist in the most recent releases.

@github-actions github-actions bot added the Platform: iOS iOS applications. label Jun 26, 2023
@cortinico
Copy link
Contributor

Duplicates #35720

@shahanaahmad
Copy link

Is there any update on this issue? I am getting the same

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants