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

Does not report crashes #447

Closed
vovanmix opened this issue Jul 25, 2018 · 15 comments
Closed

Does not report crashes #447

vovanmix opened this issue Jul 25, 2018 · 15 comments

Comments

@vovanmix
Copy link

vovanmix commented Jul 25, 2018

OS:

  • MacOS

Platform:

  • iOS

Output of node -v && npm -v && npm ls --prod --depth=0

Config:

Sentry.config('https://[email protected]/...').install()

I have following issue:

Native crashes are not reported. I have a detached expo app, I'm using react-native-sentry instead of sentry-expo because it's detached, I did react-native link react-native-sentry. Running the app from expo.
When the app crashes on iOS, or when I do Sentry.nativeCrash(); in the simulator, nothing gets reported. Sentry.captureMessage('TEST message'); reports correctly.
It also wan't reporting crashes before I detached expo, with sentry-expo.

@sergeylaptev
Copy link

sergeylaptev commented Jul 28, 2018

Confirm, the same situation. Installed the latest release (0.38.3). Crashes don't send but custom captured messages are shown in the log.
Sentry.isNativeClientAvailable() returns false for Android

@HazAT
Copy link
Member

HazAT commented Jul 30, 2018

I just tried it and it works.
Please make sure your MainApplication.java looks something like this:

...
import io.sentry.RNSentryPackage;
...
public class MainApplication extends Application implements ReactApplication {
...
    @Override
    protected List<ReactPackage> getPackages() {
      return Arrays.<ReactPackage>asList(
          new MainReactPackage(), new RNSentryPackage()
      );
    }

@vovanmix
Copy link
Author

vovanmix commented Jul 30, 2018 via email

@sergeylaptev
Copy link

@HazAT Mine looks exactly the same, even built-in native crash method doesn't trigger error event in the dashboard (crashes the app though)

@HazAT
Copy link
Member

HazAT commented Jul 30, 2018

What is the SDK section saying on the bottom of your event?

It should look something like this:
screenshot 2018-07-30 15 36 53

@idris
Copy link

idris commented Jan 13, 2019

@vovanmix @sergeylaptev did you ever figure this out? We don't see any crashes in Segment, though JS exceptions and messages work fine.

@MorcosS
Copy link

MorcosS commented Mar 28, 2019

Any news about this? I am trying Sentry on both ios and android it triggers only when using Sentry.captureException().
I am using this with:
"react-native": "0.59.0", "react-native-sentry": "^0.42.0",

@Sam-Hoult
Copy link

Getting reports from customers of the app crashing and we see nothing on our end.
To make the app crash show up, but we aren't getting anything when the app just drops.

@NetPumi2
Copy link

+1

@cinder92
Copy link

cinder92 commented May 3, 2019

same issue here...

@zivchen
Copy link

zivchen commented May 26, 2019

Same here
"react-native": "0.59.8",
"react-native-sentry": "^0.42.0",

@509dave16
Copy link

+1

@prof18
Copy link

prof18 commented Jun 14, 2019

Same here. As workaround I override the global error handler to include the Sentry log.

// Error handler setup
  let originalHandler = ErrorUtils.getGlobalHandler();
  ErrorUtils.setGlobalHandler((error, isFatal) => {
    Sentry.captureException(error);
    originalHandler(error, isFatal);
  });

@terreb
Copy link

terreb commented Jun 25, 2019

@prof18, not working for me. react-native: 0.57.8, react-native-sentry: 0.43.2

EDIT: sorry, my bad, I tested with the debug build where Sentry was disabled. It does work. Thank you!

@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.

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