-
Notifications
You must be signed in to change notification settings - Fork 24.6k
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
Regression: iOS upgrading 57 -> 59 lots of crashes "Exception in HostObject::get: <unknown>" #24607
Comments
I've tried to put breakpoints near react-native/ReactCommon/jsi/JSCRuntime.cpp Line 669 in dcc40a6
|
@mhorowitz the error points to the code you wrote in a23fb1a, could you advise? |
We've added this patch, hope it will help us to find crash source --- node_modules/react-native/ReactCommon/jsi/JSCRuntime.cpp 2019-04-26 17:08:37.000000000 +0300
+++ node_modules/react-native/ReactCommon/jsi/JSCRuntime.cpp 2019-04-26 17:08:42.000000000 +0300
@@ -565,7 +565,7 @@
auto excValue =
rt.global()
.getPropertyAsFunction(rt, "Error")
- .call(rt, "Exception in HostObject::get: <unknown>");
+ .call(rt, std::string("Exception in HostObject::get:") + JSStringToSTLString(propertyName));
*exception = rt.valueRef(excValue);
return JSValueMakeUndefined(ctx);
} |
We've found the problem — getting native module with buggy |
…oad (#24633) Summary: After upgrading RN from 0.57 to 0.59.4 we've received a lot of crash reports like `Exception in HostObject::get: <unknown>` with no clue what native module caused the crash. This commit adds native module name on crash in this situations. Related to #24607. [General] [Added] - Report native module name on crash when native module has failed to load Pull Request resolved: #24633 Differential Revision: D15120225 Pulled By: cpojer fbshipit-source-id: cf8e3e5953548a58f1d010eb70343da5ee946ae8
💥 Regression Report
We've released iOS app with upgrade RN from 0.57 to 0.59.4 and receiving a lot of crash reports (like 5% of users so far)
Crash:
Crash file
Last working version
0.57
Worked up to version:
Stopped working in version:
0.59.4
To Reproduce
Random and rare crash on app startup.
Expected Behavior
Code Example
Environment
The text was updated successfully, but these errors were encountered: