-
Notifications
You must be signed in to change notification settings - Fork 470
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 Crash on Reload with expo reloadAppAsync
#2834
Comments
@wcandillon Could you help me figure out the problem? |
yes I could help with this issue. I don't have a setup with expo at moment if you could share an expo project with me where I could reproduce the issue, that would help a lot. I do suspect that the issue as been fixed in 1.10 but I would need to reproduce the issue first to confirm it. |
https://github.com/Hikkikomori72/reloadAppAsyncTest
@wcandillon the error is repeated when testing on a real device, no problem was detected on the emulator |
@Hikkikomori72 Thank you for providing a reproduction. Unfortunately I wasn't able to reproduce it. I do believe that v1.10.1 will fix hot reload crashes. This is what I wanted to test however I wasn't able to reproduce the original crash. |
Hey, I am experiencing the exact same issue. And expo-doctor does not recommend versions later than 1.5.0 I have done some investigation and debugging with android tools and this is the error thrown which points to the react-native-skia library (see bottom line of the error log)
Furthermore, updating the library to the latest version does not work since it is not supported by expo (Run expo-doctor and see it yourself) and even if you upgrade it, you will find a ton of errors straight away. |
Description
I used a basic example from the documentation to draw a line using the
Points
component. The app crashes upon attempting to reload using the reloadAppAsync() function from expo. I have not tested other examples. Note that the application may not crash on the first attempt; sometimes, it requires multiple reloads to reproduce the issue. The crash occurs both in Expo Go and in the release build (tested on iOS)In my real project, where I render many elements using the skia library, the crash happens consistently on every reload attempt.
In the video, you can see the app flickering — this happens when I press the "Reload app" text. On one of the reloads, the app crashes.
Simulator.Screen.Recording.-.iPhone.15.Pro.-.2024-12-23.at.19.16.48.mp4
Steps to reproduce
npx create-expo-app@latest
(my version is 52.0.20)@shopify/react-native-skia
dependency -npx expo install @shopify/react-native-skia
(expo installs 1.5.0 version in my project)The text was updated successfully, but these errors were encountered: