-
-
Notifications
You must be signed in to change notification settings - Fork 343
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
React Native Application stuck in init / black screen of death for iOS Simulator #4549
Comments
After playing more with it, I downgraded to @sentry/react-native version 6.1.0 and I disabled instrumentation below, and my app is back up. RNSentry.m
|
@CarlosELopez thanks for letting us know and taking a deep dive. |
Hi @CarlosELopez, The cause is the Hermes Profiler locking the JS thread, but I don't see why from the current information. Does the lock happen on every start or does it happen randomly? Since it started recently, have you made any changes in the past 3 days that might be seemingly irrelevant? Like upgrading the RN version, changing any |
Hi @krystofwoldrich thanks for the reply. Here is some extra information: We are recent adopters of Sentry, migrating from Crashlytics. We just landed the PR for our first integration about 2 weeks ago. We shipped this version to production. I suspect there might be some underlying dependency that has changed. As far as I can tell, no native changes on our side. I repeated some more tests to see if I can continue to narrow it down.
Currently, I pull our code from 2-3 days ago, and cleaned installed everything and I still get the same hang that was not occurring before. . My package.json is:
I will confirm with my coworkers tomorrow if they see something on their iOS simulator as well. I'm a bit stumped on what is going wrong with it. I do have a workaround but it requires If I do my workaround above, I have to Simulator > Erase All Content and Settings when switching the |
@CarlosELopez Thank you for the details. Can you confirm if it happens for your colleagues as well? Is the iOS version of the sim the same as the device you are using? If you disable profiling by removing |
What React Native libraries do you use?
Hermes, React Navigation
Are you using sentry.io or on-premise?
on-premise (Self-Hosted)
@sentry/react-native SDK Version
6.3.0
How does your development environment look like?
package.json "@sentry/react-native": "6.0.0", // used to be "6.3.0", but I'm playing with it.
Sentry.init()
Steps to Reproduce
This started happening over the last two-three days for my local development setup. It was working fine before.
I am working against an iOS Simulator. When I start my app on the simulator, my applications gets stuck on a black screen after the splash screen. The JS Bundle downloads from metro, but it seems the app never starts.
As an experiment, I ran my app against my physical device. While connected to Xcode and Metro locally, I get the same hung result.
When I disconnect my device and just run the build, it eventually starts.
As an experiment I removed Sentry completely and it brings it back to life.
As an experiment, I downgraded to version 5.34.0 I get a different crash, but the application seems to start and respond. I have tried using @sentry/react-native version 6.3.0, 6.6.0, 6.7.0 but I'm currently getting the exact same result.
To gather more info, I pause execution from Xcode, I see the com.facebook.react.Javascript thread is stuck on something related to Hermes profiling. I don't get a stack trace or crash message from Xcode.
Expected Result
App starts up and I can see it. This only happens when I remove Sentry pods completely or when I run on my device independently.
Actual Result
I get a black screen of death and a hang on RN Sentry in iOS simulator.
The text was updated successfully, but these errors were encountered: