-
-
Notifications
You must be signed in to change notification settings - Fork 337
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 builds of app immediately crash at runtime #337
Comments
Hey, I am looking at this right now. |
@chrisshiplet
into this:
Honestly, I don't know whats going on, but it seems I will fix this and make a new release but this should do it for you. |
That is extremely weird, and maybe explains why the stack trace wasn't very helpful. Thanks for looking into this! |
Note that I've seen similar immediate crash on launch, but hard to reproduce. It also only happens on device in release mode, not in simulator. But not all the time, only seems to happen after app has been in background (iOS) for a while (days) and need to wake with cold restart. As it only happens occasionally, it's been hard to nail down on what lib is the cause so I'm not even sure if it is Sentry's fault. But when it does crash, it will keep crashing every subsequent launch until I rebuild/reinstall the app on device. And it crashes so early on at app launch that it crash to home screen immediately after the splash screen, and nothing turns up on Sentry reports. |
@fungilation we have similar behaviour, but probably not Sentry's fault. Nothing in Sentry reports either. How do you manage to get some sort of logs from the device when the app crashes? Running the app in debug mode while the device is connected through usb poses no problem, but when installing the (beta) app through the Play Store, it crashes instantly. |
OS:
Platform:
Output of
node -v && npm -v && npm ls --prod --depth=0
Config:
I have following issue:
When I build an iOS or Android release build of my app, the app crashes immediately upon launch. Both the iOS simulator and Android emulator in debug mode work fine. When I remove Sentry from my project, it works fine in both debug and release mode.
Steps to reproduce:
npm i --save react-native-sentry
react-native link react-native-sentry
cd android && ./gradlew assembleRelease
and the equivalent xcode buildActual result:
Android:
iOS:
Expected result:
A working build
The text was updated successfully, but these errors were encountered: