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

  1. Open your Samsung Android 12 device (in my case A13 and S22)
  2. Download and install the Expo Go app from the store (or install the apk of your Expo SDK app based)
  3. Open Expo Go (or your custom apk) and wait 5-10 seconds
  4. It will crash
  5. Reopen it
  6. It will work normally
  7. 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)

Most upvoted comments

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.

in my case it looks like that:

Expo 46

Android Version:12

SM-A326B Model:SM-A326B

OS Version: Android 12 (SP1A.210812.016.A326BXXU4BVF1)
Report Version: 104

Exception Type: Unknown (SIGSEGV)

Application Specific Information:
Segfault

Thread 0 Crashed:
0   split_config.arm64_v8a.apk      0x72809b43bc        <unknown> + 491783930812
1   [vdso]                          0x73c8595628        __kernel_rt_sigreturn
2   libc.so                         0x73c34b5a18        syscall
3   libc.so                         0x73c34ba1c0        <unknown> + 497197752768
4   libc.so                         0x73c351a798        pthread_cond_wait
5   libhwui.so                      0x73bc7ddc98        <unknown> + 497083604120
6   libhwui.so                      0x73bc7ddb6c        <unknown> + 497083603820
7   boot-framework.oat              0x71d9a1cc          <unknown> + 1910088140



EOF