expo: Expo Go and other Expo SDK app crashes on first load/opening (Samsung devices)
Summary
When you are installing the normal Expo Go app from the Google Store (or other app using Expo SDK) on a Samsung Android 12 device, it crashes the first time it is loaded. Then, when you reopen it, it works normally.
Managed or bare workflow? If you have ios/ or android/ directories in your project, the answer is bare!
managed
What platform(s) does this occur on?
Android
SDK Version (managed workflow only)
45
Environment
System: OS: Windows 10 10.0.19044 Binaries: Node: 16.15.0 - C:\Program Files\nodejs\node.EXE Yarn: 1.22.18 - ~\AppData\Roaming\npm\yarn.CMD npm: 8.1.3 - C:\Program Files\nodejs\npm.CMD SDKs: Android SDK: API Levels: 23, 28, 29, 30, 31 Build Tools: 28.0.3, 29.0.2, 29.0.3, 30.0.2, 30.0.3, 31.0.0 System Images: android-22 | Google APIs Intel x86 Atom, android-30 | Google APIs Intel x86 Atom IDEs: Android Studio: Version 2020.3.0.0 AI-203.7717.56.2031.7784292 npmPackages: expo: ^45.0.6 => 45.0.6 react: 17.0.2 => 17.0.2 react-dom: 17.0.2 => 17.0.2 react-native: 0.68.2 => 0.68.2 react-native-web: 0.17.7 => 0.17.7 Expo Workflow: managed
Reproducible demo
- Open your Samsung Android 12 device (in my case A13 and S22)
- Download and install the Expo Go app from the store (or install the apk of your Expo SDK app based)
- Open Expo Go (or your custom apk) and wait 5-10 seconds
- It will crash
- Reopen it
- It will work normally
- Uninstall it and reinstall it to reproduce the problem again
Seems to be related to this issue but I can go further than the splash screen : 16550
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 12
- Comments: 55 (11 by maintainers)
Having this issue in SDK 46 at the moment
Happening here, too. SDK 45, Android build through EAS, crashes on first load on Samsung Galaxy S21 Ultra.
Having the same issue with Android 12 and SDK 46, I will try Hermes and keep my message updated
EDIT: No issue with Hermes !
At first when I started the project it works fine , but subsequently when I try to build, it builds but always crashes with an error that vanishes too fast before I get hold of it . Pls what can I do
Did someone has a solution for this issue? I have plenty of errors like this. Will SDK 46 fix that issue?
Same here - SDK 46, EAS built, Samsung S20 FE, Android 12
If I open the App for the first time, focus an Input field (keyboard shows up) and then rotate the phone (landscape and back) then it crashes in 100% my tests. The Screen it self is not rotating since in app.json the orientation is set to portrait. If I do not rotate the phone (on first open) then it crashes rare, but still.
Workaround/Solution:
https://docs.expo.dev/guides/using-hermes/
After switching to Hermes I did try for more times to get the app to crash and nothing. Nothing is crashing anymore.
I found this https://manpages.debian.org/buster/manpages/vdso.7.en.html , maybe it can be useful
in my case it looks like that:
Expo 46
Android Version:12
SM-A326B Model:SM-A326B