TestFlight/Production App Crashes immediately due to Reanimated #6859
Labels
Missing info
The user didn't precise the problem enough
Missing repro
This issue need minimum repro scenario
Platform: iOS
This issue is specific to iOS
Description
Description
I'm experiencing a consistent crash in my React Native app running on TestFlight. The crash occurs immediately after app launch during the initialization phase, specifically related to Reanimated and Hermes runtime. The crash appears to be related to a race condition during initialization where multiple threads are trying to access the Reanimated runtime simultaneously.
The app works perfectly in development environment and build. Its only when I build production and submit to Testflight do I run into this crashing behavior
The crash manifests in Thread 9 (Hermes thread) during HadesGC operations. This consistently happens on app launch in the production build.
Initially, this issue occurred with Expo SDK 51 and react-native-reanimated 3.10. I attempted to resolve it by upgrading to Expo SDK 52 and react-native-reanimated 3.16.1, but the crash persists with the same pattern.
Crash Log Details
Key parts of the stack trace:
Thread 9 also shows:
Full crash log can be provided if needed.
Steps to Reproduce
Environment
Current Environment:
Previously tested on:
Additional Context
The app is using several native modules that need to initialize on startup:
These all need to initialize properly with the JS runtime during app launch.
Code
Attempted Solutions
Steps to reproduce
Snack or a link to a repository
happens immediately on launch so hard to reproduce
Reanimated version
3.16.1
React Native version
0.76.5
Platforms
iOS
JavaScript runtime
Hermes
Workflow
Expo Dev Client
Architecture
Paper (Old Architecture)
Build type
None
Device
Real device
Device model
No response
Acknowledgements
Yes
The text was updated successfully, but these errors were encountered: