-
Notifications
You must be signed in to change notification settings - Fork 575
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
Occasional crashes on app startup #5071
Comments
@haikov Thank you for reporting. To be honest, we haven't tested the Expo 47 betas yet but it is on our radar. Did you enable Hermes or new architecture? If it is possible for you to reproduce it, we will be interested to learn more. Any logs or stack traces can be useful too. |
Yes, I have hermes enabled, but not the new architecture.
Trying to get some better logs or repro, but the fact that it only reproduces in EAS release builds makes it rather hard. I'll update here as soon as I have some additional information. |
Thank you for trying to get more logs. We will also investigate it to understand the root cause. |
@haikov Do you have dependencies like |
No crashlytics in my case, from crash-reporting tools I have Sentry installed. |
I have encountered very similar issue after upgrading an app to the most recent RN and Realm versions. Crash only happened in release mode and never in debug mode. More interesting when release mode started from xcode it never crashed. Also after installing or after phone restart it worked usually at least once. After killing the app it happens on subsequent starts randomly but not always. In my case use_frameworks due to firebase also in the project and not using expo. Tried both Realm 10.23.0 and 11.1.0 and RN 0.70.3 and 0.70.4 with or without Hermes. Symbolicating the traces from the firebase logs the crash always happens on this line in the code.
It seems most cases (90% for me) Realm was not initialized by native code in time. I found the following workaround: instead of importing Realm like above I used inline require in realm initialization:
|
any update on this ?? |
Facing the same issue in RN |
I suggest to upgrade to v12.0.0-rc.1. If the problem is still observed, please create a new issue. |
How frequently does the bug occur?
Sometimes
Description
Previously, with expo sdk 46 and realm 11.* app crashed on every app open in release build (which made sense, since realm 11 expects React Native 0.70). After upgrading expo SDK to latest beta, the app crashes on start in around 30% of cases in release mode with weird exception, I will attach the stack trace below.
I didn't have any luck reproducing it in nightly build or in the local release build with expo dev-client. The only reproducible case for now is building production app via EAS.
Environment:
What I can see in the logs (second line is caused by the first, I assume):
For additional context (I've seen those as reasons for crashes in other tickets):
useFrameworks
set.Stacktrace & log output
No response
Can you reproduce the bug?
Yes, sometimes
Reproduction Steps
No response
Version
11.1.0
What SDK flavour are you using?
Local Database only
Are you using encryption?
No, not using encryption
Platform OS and version(s)
iOS
Build environment
No response
Cocoapods version
No response
The text was updated successfully, but these errors were encountered: