react-native-reanimated: Maximum call stack size exceeded (native stack depth) when loading from EAS Update
Description
Hi, I am running an Expo managed app with SDK 49, and Reanimated 3.3.0 After upgrading to SDK 49 (and to Reanimated 3.3.0 which goes with it), my app started crashing when loaded from an EAS update using the Expo Go app, while working fine locally (Both with Expo Go or in a development build).
While debugging the issue I noticed that it only happens while I still have some usage of reanimated. Once reanimated is out, the issue goes away.
On iOS it crashes completely, in Android in hangs on ‘New update available, downloading…’
I have pulled the following errors from the iOS logs (similar error appears in Android logcat logs too):
Expo Go RangeError: Maximum call stack size exceeded (native stack depth), js engine: hermes Expo Go Invariant Violation: “main” has not been registered. This can happen if: Metro (the local dev server) is run from the wrong folder. Check if Metro is running, stop it and restart it in the current project. A module failed to load due to an error and
AppRegistry.registerComponentwasn’t called., js engine: hermes Expo Go NSInvalidArgumentException: -[EXReactAppExceptionHandler handleFatalJSExceptionWithMessage:stack:exceptionId:extraDataAsJSON:]: unrecognized selector sent to instance 0x281fa8380
Steps to reproduce
- Clone the minimal reproducible project
- Run
npm i - Run
npm startand see the project runs locally - use
eas updatecommand to make an update (you will probably have to change the configuration in app.json to match an Expo project you have access to, possibly a fresh one you created. See ‘extra.eas.projectId’ & ‘updates.url’ keys in app.json file) - Try to load that update using the Expo Go app
Snack or a link to a repository
https://github.com/sagihsh/expo-sdk-49-eas-update-crash-example
Reanimated version
3.3.0
React Native version
0.72.3
Platforms
Android, iOS
JavaScript runtime
Hermes
Workflow
Expo managed workflow
Architecture
Paper (Old Architecture)
Build type
None
Device
Real device
Device model
iPhone 13 for iOS / Samsung Galaxy S8 for Android
Acknowledgements
Yes
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 5
- Comments: 16 (2 by maintainers)
i have same when i install core-js & jwt-decode
I am still having this crash with the updated version. Again, I’m not sure it comes from react-native-reanimated and my stacktrace is different.
I have the same error after upgrading to React Native 0.71. I used react-native-reanimated 2.14.4 and 3.4.2, doesn’t seem to make any difference. To be fair I do not know if it is related to react-native-reanimated, I haven’t been able to reproduce the issue myself but I am getting lots of reports for this same error.