-
-
Notifications
You must be signed in to change notification settings - Fork 1.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
App crash with react native integration #468
Comments
Fix bad `this` value in React native plugin (fixes #468)
Hi @benvinegar . Thanks for the super prompt update. The crashing is fixed :) But as I was not receiving any event, I added an "throw new Error('test')", just to verify that sentry is properly setup. But I wasn't getting any event still. The following is the error log.
|
@qbig – I notice this is when running on Android. Do you get the same exception from the iOS simulator / iOS devices? |
@qbig – any news on this? |
@benvinegar I have tried on iOS simulator. It wasn't throwing the same exception.
|
I was testing with Android emulator(Genymotion), and I have limit the length of the stacktrace to 1000 characters. But it only works on dev Mode. Once I build it to a release version apk, JS error would simply crash the App and no msg would be logged to Sentry. ErrorUtils.setGlobalHandler(function(){
var error = arguments[0];
defaultHandler.apply(this, arguments)
console.log(JSON.stringify(error));
error.stack = error.stack.substring(0,1000);
Raven.captureException(error);
}); I suspect this is caused by the different behaviours of |
React Native's default behavior (on iOS) for global exceptions is to re-throw the exception in Obj-C land, causing an immediate crash (and no chance for Raven to upload the exception) |
Sentry now has a first-class React Native plugin that combines both JavaScript and native (iOS) frames in stack traces. Closing this issue. |
Hell yes!
…On Wed, Mar 22, 2017, 22:49 Ben Vinegar ***@***.***> wrote:
Sentry now has a first-class React Native plugin
<https://github.com/getsentry/react-native-sentry> that combines both
JavaScript and native (iOS) frames in stack traces.
Closing this issue.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#468 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAChnTs_jdE55WhZzhdMLSuwiaPbGXJyks5rogfxgaJpZM4HDAt9>
.
|
App crash everytime once started. Using 2.0.4 and react native pluggin
The text was updated successfully, but these errors were encountered: