-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
App is crashing in ipad after closing and opening again in Dev Mode #339
Comments
Env Info
|
Same issue here. |
This happens to me in release mode as well as in debug. The reason it might not be happening to you in release mode is that various optimizations are turned on, thus it should take less time to launch the app. When we launch the splash screen, we make various network requests. And we hide the splash screen when those requests have been resolved. If that takes too long, the app crashes. I've been able to reproduce this by setting a 30 seconds timeout on the server. According to Apple - https://developer.apple.com/library/archive/technotes/tn2151/_index.html:
So this makes me think that all of our javascript code that's executing the network requests is doing so on the main thread synchronously... Or the splash screen is blocking the main thread |
I think this is the same issue as #397 The fix there resolved this issue for me -- replacing: The readme seems to mention those two options, but doesn't explain them. |
Thank @gorjuspixels !! Your solution work. I lost much time for finding problem with my app and finally resolved. |
@EmpireJones this file doesn't exist more in version 0.68.2. The new file is |
App is working fine when we run it from xcode for the first time. After that if we close it in iPad and open it again it is crashed [In Dev Mode]
In the crash log it is showing
[RNSplashScreen show]
is the line which causing the crashingCrash log :
The text was updated successfully, but these errors were encountered: