Closed sivaprasadkv closed 9 months ago
i hava the same problem,there are solutions?
@react-native-bot Is there a solution?
@black1997 @sivaprasadkv did you guys manage to fix this issue?
@sivaprasadkv sorry for the issue. A couple of questions to have more information:
Closing as the author is unresponsive
Description
Dear All, I am facing React-Native iOS TestFlight app random crashes with exception inside the react-native framework. Crashlog capture through TestFlight app from AppStoreConnect is as follows:
Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Exception Note: EXC_CORPSE_NOTIFY Triggered by Thread: 15
Last Exception Backtrace: 0 CoreFoundation 0x180cf7d1c exceptionPreprocess + 216 (NSException.m:200) 1 libobjc.A.dylib 0x198517ee4 objc_exception_throw + 56 (objc-exception.mm:565) 2 MyAppName 0x10020b168 RCTFatal + 668 (RCTAssert.m:146) 3 MyAppName 0x10028a84c -[RCTExceptionsManager reportFatal:stack:exceptionId:] + 488 (RCTExceptionsManager.mm:68) 4 MyAppName 0x10028b12c -[RCTExceptionsManager reportException:] + 1408 (RCTExceptionsManager.mm:135) 5 CoreFoundation 0x180c85dd0 invoking___ + 144 (:-1) 6 CoreFoundation 0x180ca1ea8 -[NSInvocation invoke] + 300 (NSForwarding.m:3378) 7 CoreFoundation 0x180cd62cc -[NSInvocation invokeWithTarget:] + 76 (NSForwarding.m:3475) 8 MyAppName 0x10023df3c -[RCTModuleMethod invokeWithBridge:module:arguments:] + 460 (RCTModuleMethod.mm:584) 9 MyAppName 0x100240530 facebook::react::invokeInner(RCTBridge, RCTModuleData, unsigned int, folly::dynamic const&, int, (anonymous namespace)::SchedulingContext) + 540 (RCTNativeModule.mm:183) 10 MyAppName 0x100240160 facebook::react::RCTNativeModule::invoke(unsigned int, folly::dynamic&&, int)::$_0::operator()() const + 68 (RCTNativeModule.mm:104) 11 MyAppName 0x100240160 invocation function for block in facebook::react::RCTNativeModule::invoke(unsigned int, folly::dynamic&&, int) + 112 (RCTNativeModule.mm:95) 12 libdispatch.dylib 0x1809b7094 _dispatch_call_block_and_release + 24 (init.c:1517) 13 libdispatch.dylib 0x1809b8094 _dispatch_client_callout + 16 (object.m:560) 14 libdispatch.dylib 0x1809934a4 _dispatch_lane_serial_drain$VARIANT$armv81 + 600 (inline_internal.h:2622) 15 libdispatch.dylib 0x180993f44 _dispatch_lane_invoke$VARIANT$armv81 + 388 (queue.c:3944) 16 libdispatch.dylib 0x18099d8e0 _dispatch_workloop_worker_thread + 608 (queue.c:6732) 17 libsystem_pthread.dylib 0x1dc044e10 _pthread_wqthread + 284 (pthread.c:2599) 18 libsystem_pthread.dylib 0x1dc04493c start_wqthread + 8 (:-1)
I tried to enable the Hermes-engine by adding the following piece of lines in iOS Podfile and did the pod install / update:
use_react_native!( :path => config[:reactNativePath],
to enable hermes on iOS, change
false
totrue
and then install pods)
But, no use of it. On launching the app, immediately app is crashing all the time due to hermes-engine. So, I disabled it again.
ReactNative version: 0.68.2 Tested iOS devices: iPhone 12 (iOS version: 15.6), and iPhone 8 (iOS version: 15.6 & 15.4).
References: https://developer.apple.com/forums/thread/704860
Appreciate on your quick response by sharing the fix / your thoughts, if any one found the solution, as we are stuck on fixing this issue. Thanks in advance.
Version
0.68.2
Output of
npx react-native info
lg@apples-MacBook-Pro homecinema-companion-app-mobile % npx react-native info info Fetching system and libraries information... System: OS: macOS 12.4 CPU: (12) x64 Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz Memory: 198.98 MB / 16.00 GB Shell: 5.8.1 - /bin/zsh Binaries: Node: 14.16.0 - /usr/local/bin/node Yarn: Not Found npm: 6.14.11 - /usr/local/bin/npm Watchman: 2022.03.21.00 - /usr/local/bin/watchman Managers: CocoaPods: 1.11.3 - /usr/local/bin/pod SDKs: iOS SDK: Platforms: DriverKit 21.4, iOS 15.5, macOS 12.3, tvOS 15.4, watchOS 8.5 Android SDK: Not Found IDEs: Android Studio: 2020.3 AI-203.7717.56.2031.7784292 Xcode: 13.4.1/13F100 - /usr/bin/xcodebuild Languages: Java: 12.0.2 - /usr/bin/javac npmPackages: @react-native-community/cli: Not Found react: 17.0.2 => 17.0.2 react-native: 0.68.2 => 0.68.2 react-native-macos: Not Found npmGlobalPackages: react-native: Not Found
Steps to reproduce
Random crashes, there is no specific steps to reproduce, but only with TestFlight / AppStore apps, not debug mode app.
Snack, code example, screenshot, or link to a repository
On enabling hermes-engine, app is crashing, screenshot is as follows: