react-native
react-native copied to clipboard
facebook::hermes::inspector::detail::SerialExecutor::runLoop() crash on release
Description
We started getting facebook::hermes::inspector::detail::SerialExecutor::runLoop() crash on release production app.
Stacktrace says it is the hermes-chrome-inspector-conn thread. But we do not understand why this thread is working on release
Steps to reproduce
not have
React Native Version
0.71.7
Affected Platforms
Runtime - iOS
Output of npx react-native info
System:
OS: macOS 14.6.1
CPU: (8) arm64 Apple M1 Pro
Memory: 57.06 MB / 16.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 18.18.2
path: ~/.nvm/versions/node/v18.18.2/bin/node
Yarn:
version: 4.3.1
path: /opt/homebrew/bin/yarn
npm:
version: 9.8.1
path: ~/.nvm/versions/node/v18.18.2/bin/npm
Watchman: Not Found
Managers:
CocoaPods:
version: 1.15.2
path: /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 23.5
- iOS 17.5
- macOS 14.5
- tvOS 17.5
- visionOS 1.2
- watchOS 10.5
Android SDK:
API Levels:
- "29"
- "31"
- "32"
- "33"
- "34"
Build Tools:
- 29.0.2
- 30.0.2
- 30.0.3
- 31.0.0
- 32.1.0
- 33.0.0
- 34.0.0
System Images:
- android-31 | Google Play ARM 64 v8a
- android-33 | Google APIs ARM 64 v8a
- android-33 | Google Play ARM 64 v8a
- android-34 | Google Play ARM 64 v8a
Android NDK: 26.1.10909125
IDEs:
Android Studio: 2024.1 AI-241.15989.150.2411.11948838
Xcode:
version: 15.4/15F31d
path: /usr/bin/xcodebuild
Languages:
Java:
version: 17.0.9
path: /Users/aykutsaki/.jenv/shims/javac
Ruby:
version: 3.2.2
path: /Users/aykutsaki/.rbenv/shims/ruby
npmPackages:
"@react-native-community/cli": Not Found
react:
installed: 18.2.0
wanted: 18.2.0
react-native:
installed: 0.74.3
wanted: 0.74.3
react-native-macos: Not Found
npmGlobalPackages:
"*react-native*": Not Found
Android:
hermesEnabled: true
newArchEnabled: false
iOS:
hermesEnabled: true
newArchEnabled: false
Stacktrace or Logs
# Crashlytics - Stack trace
# Application: com.xxx.xxx
# Platform: apple
# Version: 2.2.1 (1)
# Issue: ed95091f9d424e9e4b3b5b1a3f0896b2
# Session: 75b569669ebd41e38a2f6ac71f02d7ae_DNE_0_v2
# Date: Tue Sep 03 2024 13:17:36 GMT+0300 (GMT+03:00)
com.apple.main-thread
0 libsystem_kernel.dylib 0x38c4 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x2cc8 mach_msg + 72
2 CoreFoundation 0x9974c __CFRunLoopServiceMachPort + 376
3 CoreFoundation 0x93bd0 __CFRunLoopRun + 1176
4 CoreFoundation 0x93200 CFRunLoopRunSpecific + 572
5 GraphicsServices 0x3598 GSEventRunModal + 160
6 UIKitCore 0xb21004 -[UIApplication _run] + 1052
7 UIKitCore 0xb265d8 UIApplicationMain + 164
8 xxx 0x81d4 main + 8 (main.m:8)
9 libdyld.dylib 0x1598 start + 4
Thread
0 libsystem_kernel.dylib 0x2758c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0xb5f0 _pthread_wqthread + 348
2 libsystem_pthread.dylib 0xe874 start_wqthread + 8
Thread
0 libsystem_kernel.dylib 0x2758c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0xb5f0 _pthread_wqthread + 348
2 libsystem_pthread.dylib 0xe874 start_wqthread + 8
com.apple.uikit.eventfetch-thread
0 libsystem_kernel.dylib 0x38c4 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x2cc8 mach_msg + 72
2 CoreFoundation 0x9974c __CFRunLoopServiceMachPort + 376
3 CoreFoundation 0x93bd0 __CFRunLoopRun + 1176
4 CoreFoundation 0x93200 CFRunLoopRunSpecific + 572
5 Foundation 0x8278 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 228
6 Foundation 0x8158 -[NSRunLoop(NSRunLoop) runUntilDate:] + 88
7 UIKitCore 0xbcc9fc -[UIEventFetcher threadMain] + 504
8 Foundation 0x164c48 __NSThread__start__ + 848
9 libsystem_pthread.dylib 0x9b70 _pthread_start + 288
10 libsystem_pthread.dylib 0xe880 thread_start + 8
Thread
0 libsystem_kernel.dylib 0x2758c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0xb5f0 _pthread_wqthread + 348
2 libsystem_pthread.dylib 0xe874 start_wqthread + 8
Thread
0 libsystem_pthread.dylib 0xe86c start_wqthread + 190
com.google.firebase.crashlytics.MachExceptionServer
0 xxx 0x95b58 FIRCLSProcessRecordAllThreads + 392 (FIRCLSProcess.c:392)
1 xxx 0x95f38 FIRCLSProcessRecordAllThreads + 423 (FIRCLSProcess.c:423)
2 xxx 0x8d164 FIRCLSHandler + 34 (FIRCLSHandler.m:34)
3 xxx 0x8fad0 FIRCLSMachExceptionServer + 521 (FIRCLSMachException.c:521)
4 libsystem_pthread.dylib 0x9b70 _pthread_start + 288
5 libsystem_pthread.dylib 0xe880 thread_start + 8
Thread
0 libsystem_kernel.dylib 0x2758c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0xb5f0 _pthread_wqthread + 348
2 libsystem_pthread.dylib 0xe874 start_wqthread + 8
Thread
0 libsystem_kernel.dylib 0x2758c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0xb5f0 _pthread_wqthread + 348
2 libsystem_pthread.dylib 0xe874 start_wqthread + 8
com.facebook.react.JavaScript
0 libsystem_kernel.dylib 0x38c4 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x2cc8 mach_msg + 72
2 CoreFoundation 0x9974c __CFRunLoopServiceMachPort + 376
3 CoreFoundation 0x93bd0 __CFRunLoopRun + 1176
4 CoreFoundation 0x93200 CFRunLoopRunSpecific + 572
5 xxx 0x2830d0 +[RCTCxxBridge runRunLoop] + 336 (RCTCxxBridge.mm:336)
6 Foundation 0x164c48 __NSThread__start__ + 848
7 libsystem_pthread.dylib 0x9b70 _pthread_start + 288
8 libsystem_pthread.dylib 0xe880 thread_start + 8
hades
0 libsystem_kernel.dylib 0x2672c __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x3330 _pthread_cond_wait$VARIANT$mp + 1180
2 libc++.1.dylib 0xce0c std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 24
3 hermes 0x11cca8 facebook::jsi::JSError::~JSError() + 1041936
4 hermes 0x11ca5c facebook::jsi::JSError::~JSError() + 1041348
5 libsystem_pthread.dylib 0x9b70 _pthread_start + 288
6 libsystem_pthread.dylib 0xe880 thread_start + 8
hermes-chrome-inspector-conn
0 libsystem_kernel.dylib 0x2672c __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x3330 _pthread_cond_wait$VARIANT$mp + 1180
2 libc++.1.dylib 0xce0c std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 24
3 xxx 0x3f8eb8 facebook::hermes::inspector::detail::SerialExecutor::runLoop() + 148 (condition_variable.h:148)
4 xxx 0x3ac888 void* std::__1::__thread_proxy[abi:ue170006]<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct>>, void (*)(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::function<void ()>), std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::function<void ()>>>(void*) + 476 (function.h:476)
5 libsystem_pthread.dylib 0x9b70 _pthread_start + 288
6 libsystem_pthread.dylib 0xe880 thread_start + 8
hermes-inspector
0 libsystem_kernel.dylib 0x2672c __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x3330 _pthread_cond_wait$VARIANT$mp + 1180
2 libc++.1.dylib 0xce0c std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 24
3 xxx 0x3f8eb8 facebook::hermes::inspector::detail::SerialExecutor::runLoop() + 148 (condition_variable.h:148)
4 xxx 0x3ac888 void* std::__1::__thread_proxy[abi:ue170006]<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct>>, void (*)(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::function<void ()>), std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::function<void ()>>>(void*) + 476 (function.h:476)
5 libsystem_pthread.dylib 0x9b70 _pthread_start + 288
6 libsystem_pthread.dylib 0xe880 thread_start + 8
Thread
0 libsystem_kernel.dylib 0x2758c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0xb5f0 _pthread_wqthread + 348
2 libsystem_pthread.dylib 0xe874 start_wqthread + 8
Thread
0 libsystem_pthread.dylib 0xe86c start_wqthread + 190
Thread
0 libsystem_kernel.dylib 0x2758c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0xb5f0 _pthread_wqthread + 348
2 libsystem_pthread.dylib 0xe874 start_wqthread + 8
Thread
0 libsystem_kernel.dylib 0x2758c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0xb5f0 _pthread_wqthread + 348
2 libsystem_pthread.dylib 0xe874 start_wqthread + 8
Thread
0 libsystem_kernel.dylib 0x2758c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0xb5f0 _pthread_wqthread + 348
2 libsystem_pthread.dylib 0xe874 start_wqthread + 8
AVAudioSession Notify Thread
0 libsystem_kernel.dylib 0x38c4 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x2cc8 mach_msg + 72
2 CoreFoundation 0x9974c __CFRunLoopServiceMachPort + 376
3 CoreFoundation 0x93bd0 __CFRunLoopRun + 1176
4 CoreFoundation 0x93200 CFRunLoopRunSpecific + 572
5 AudioSession 0xc158 GenericRunLoopThread::Entry(void*) + 156
6 AudioSession 0xe0b8 CAPThread::Entry(CAPThread*) + 88
7 libsystem_pthread.dylib 0x9b70 _pthread_start + 288
8 libsystem_pthread.dylib 0xe880 thread_start + 8
Thread
0 libsystem_kernel.dylib 0x3918 semaphore_timedwait_trap + 8
1 libdispatch.dylib 0x43e4 _dispatch_sema4_timedwait$VARIANT$mp + 64
2 libdispatch.dylib 0x497c _dispatch_semaphore_wait_slow + 72
3 libdispatch.dylib 0x12ef4 _dispatch_worker_thread + 308
4 libsystem_pthread.dylib 0x9b70 _pthread_start + 288
5 libsystem_pthread.dylib 0xe880 thread_start + 8
Thread
0 libsystem_kernel.dylib 0x3918 semaphore_timedwait_trap + 8
1 libdispatch.dylib 0x43e4 _dispatch_sema4_timedwait$VARIANT$mp + 64
2 libdispatch.dylib 0x497c _dispatch_semaphore_wait_slow + 72
3 libdispatch.dylib 0x12ef4 _dispatch_worker_thread + 308
4 libsystem_pthread.dylib 0x9b70 _pthread_start + 288
5 libsystem_pthread.dylib 0xe880 thread_start + 8
Thread
0 libsystem_kernel.dylib 0x3918 semaphore_timedwait_trap + 8
1 libdispatch.dylib 0x43e4 _dispatch_sema4_timedwait$VARIANT$mp + 64
2 libdispatch.dylib 0x497c _dispatch_semaphore_wait_slow + 72
3 libdispatch.dylib 0x12ef4 _dispatch_worker_thread + 308
4 libsystem_pthread.dylib 0x9b70 _pthread_start + 288
5 libsystem_pthread.dylib 0xe880 thread_start + 8
com.apple.NSURLConnectionLoader
0 libsystem_kernel.dylib 0x38c4 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x2cc8 mach_msg + 72
2 CoreFoundation 0x9974c __CFRunLoopServiceMachPort + 376
3 CoreFoundation 0x93bd0 __CFRunLoopRun + 1176
4 CoreFoundation 0x93200 CFRunLoopRunSpecific + 572
5 CFNetwork 0x2319a4 _CFURLStorageSessionCopyCache + 59740
6 Foundation 0x164c48 __NSThread__start__ + 848
7 libsystem_pthread.dylib 0x9b70 _pthread_start + 288
8 libsystem_pthread.dylib 0xe880 thread_start + 8
Reproducer
not have
Screenshots and Videos
| :warning: | Missing Reproducible Example |
|---|---|
| :information_source: | We could not detect a reproducible example in your issue report. Please provide either:
|
| :warning: | Unsupported Version of React Native |
|---|---|
| :information_source: | It looks like your issue or the example you provided uses an unsupported version of React Native. Due to the number of issues we receive, we're currently only accepting new issues against one of the supported versions. Please upgrade to latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If you cannot upgrade, please open your issue on StackOverflow to get further community support. |
| :warning: | Missing Reproducible Example |
|---|---|
| :information_source: | We could not detect a reproducible example in your issue report. Please provide either:
|
| :warning: | Unsupported Version of React Native |
|---|---|
| :information_source: | It looks like your issue or the example you provided uses an unsupported version of React Native. Due to the number of issues we receive, we're currently only accepting new issues against one of the supported versions. Please upgrade to latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If you cannot upgrade, please open your issue on StackOverflow to get further community support. |
Hi @AuroPick, sorry that you are seeing these crashes.
Version 0.71.7 is pretty old. The latest patch for 0.71 is 0.71.19. In the 12 patches between the latest and yours there might be the fix for the crash you are seeing. Also, 0.71 is out of support. I suggest that you upgrade to one of the version in the support window [0.73, 0.74, 0.75].