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

Release mode exceptions not appearing in issues list, debug mode are (Android) #457

Closed
2 of 5 tasks
dajaffe opened this issue Aug 5, 2018 · 5 comments
Closed
2 of 5 tasks

Comments

@dajaffe
Copy link

dajaffe commented Aug 5, 2018

OS:

  • Windows
  • MacOS
  • Linux

Platform:

  • iOS
  • Android

Config:
I've tried the following variations:

Sentry.config('https://[email protected]/...', {
  deactivateStacktraceMerging: true,
  logLevel: SentryLog.Verbose,
  // currently sentry is not reporting errors on android using the native module
  disableNativeIntegration: Platform.OS === 'android',
}).install()
Sentry.config('https://[email protected]/...', {
  deactivateStacktraceMerging: false, 
  logLevel: SentryLog.Verbose, 
  disableNativeIntegration: false, 
  handlePromiseRejection: true
}).install()
Sentry.config('https://[email protected]/...', {}).install()

Dev mode exceptions are successfully uploaded to Sentry, but release mode's are not.

Steps to reproduce:

  • Add an exception that will be thrown
  constructor(props) {
    super(props);
    throw Error('this is release mode');
  }
  • Release the app
./gradlew assembleRelease
  • Install and run the app.

Actual result:

  • When running in debug mode, the thrown exception appears in my unresolved issues. When running a release mode APK, the thrown exception does not appear.

Expected result:

  • The exception while running a released APK to be in my issues list.

Troubleshooting Steps:

08-05 01:03:58.617 24921-24946/? D/io.sentry.android.AndroidSentryClientFactory: Construction of Android Sentry.
08-05 01:03:58.619 24921-24946/? D/io.sentry.android.AndroidSentryClientFactory: Sentry init with ctx='xxx.MainApplication@370b462' and dsn='Dsn{uri=https://sentry.io/}'
08-05 01:03:58.686 24921-24946/? D/io.sentry.android.AndroidSentryClientFactory: Using buffer dir: /data/user/0/xxx/cache/sentry-buffered-events
08-05 01:03:58.692 24921-24946/? I/react-native-sentry: startWithDsnString 'https://[email protected]/xxx'
08-05 01:03:58.747 24921-24946/? D/io.sentry.android.event.helper.AndroidEventBuilderHelper: Proguard UUIDs file not found.

I'm trying to get this working to switch over from using BugSnag, but it's not looking good.

@dajaffe dajaffe changed the title Release mode exceptions not appearing in issues list, debug mode are. Release mode exceptions not appearing in issues list, debug mode are (Android) Aug 5, 2018
@HazAT
Copy link
Member

HazAT commented Aug 7, 2018

🤔
this all looks correct, remember, if it's a crash it can take up to one minute until android sends it.
On debug, we send it right away.

@dajaffe
Copy link
Author

dajaffe commented Aug 7, 2018

Yep. My crashes on debug were taking about 40 seconds to hit. Still nothing in there for release though with intentional crashes.

@padupuy
Copy link

padupuy commented Sep 25, 2018

Is this the same issue as #470 ?

@PoppyAnc
Copy link

Hello,
Do you still have this issue?

we are on "react-native-sentry": "^0.42.0",
we get error reports from ios but not on android (neither debug nor release mode).
If I have disableNativeIntegration: true on debug mode, I get some "Raven transport failed to send: [...]Certificate validation failed".
When I have disableNativeIntegration: false, nothing happens but no errors appear on Sentry.

Please note that all configuration is double checked and source maps are loaded correctly on Sentry.

@HazAT
Copy link
Member

HazAT commented Sep 4, 2019

I am closing all old issues, please if this is still a problem feel free to revive it.
Also, consider moving to our new SDK @sentry/react-native if it still happens there please open a new issue.

@HazAT HazAT closed this as completed Sep 4, 2019
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

4 participants