-
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
Crash on Splash Screen iOS 12.3.1 #397
Comments
I'm having the same bug. What you could do is look at your device crash logs (CMD + SHIFT + 2 in Xcode with your device plugged in). From my logs it seems that l31 of the RNSplashScreen.m is responsible for the crash: This very same line was already discussed because of BAD ACCESS issue a year ago: https://www.bountysource.com/issues/49406480-splashscreen-show-crashes-with-exc_bad_access Apparently the app gets killed by the OS because it takes too much time to load. Maybe the loop does not stop early enough (in my case I call RNSplashScreen.hide() very late in my react-native code). Check this SO issue for more info: https://stackoverflow.com/questions/50186258/app-crash-exception-type-exc-crash-sigkill-termination-reason-namespace-spri. I'll try to dig a bit ! |
I just read this thread that talks about a related issue: https://forums.developer.apple.com/thread/88529. |
I experience the same issue. Any update on this? |
I was the one that had posted the issue. I have not dig more into it, cause it sort of disapear on my end and I could not tested anymore. |
I can confirm this bug and it seems to only happen on testflight builds for us. It is a showstopper unfortunately. |
Any luck here from anyone? Started to hit this as well |
FYI, I will try to use It seems like it's fixing the problem since it won't go into the Run Loop that was causing the crash. EDIT: I confirm that you can workaround this issue by using the |
Just to confirm. You are saying you fixed the issue by using
Instead of
Or did you use something else IE |
Facing the same issue here EDIT: I just figured out that the issue wasn't related to |
I can confirm using
I can confirm using : fixed crash for me. |
Yes I confirm. FYI, |
Looks like |
Same here, Any solution ? |
I was having the same issues with expo-updates and the trick of changing to inRootView worked. Note that expo already creates a root view for you, so you just need to add RNSplashScreen in to it. So instead of before the return YES you need to add it at the end of initializeReactNativeApp
|
The reason this was happening for me was all due to ordering Won't work:Here the [RNSplashScreen show];
RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions];
RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge
moduleName:@"MyApp"
initialProperties:nil]; Worked for me:Now that the JS can run, "hide" is shortly called which dismisses the splash screen RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions];
RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge
moduleName:@"MyApp"
initialProperties:nil];
[RNSplashScreen show]; |
Run
react-native info
in your project and share the content.What
react-native-splash-screen
version are you using?"react-native-splash-screen": "^3.0.9",
What platform does your issue occur on? (Android/iOS/Both)
iOS
Describe your issue as precisely as possible :
The issue usually happens when I submit the app for release to TestFlight. At the moment it's being rejected, cause they only receive a blank screen. I'm unable to reproduce the bug locally.
logs
Join a screenshot or video of the problem on the simulator or device?
Show us the code you are using?
The text was updated successfully, but these errors were encountered: