react-native-reanimated: App crashes with EXC_CRASH (SIGABRT) when reloading on iOS
Description
A video of the crash happening https://user-images.githubusercontent.com/8207733/210131053-51c7ff0a-d9ee-4b10-80a0-1f10c0e273b7.mp4
The error I get after the crash Full error text: https://textbin.net/apakzpco91
I have tried 3.0.0-rc.9 and rc.8 and they kind of reduce the probability of issue but they do not fix it. Also, they introduce another bug shown below. So basically, they just make the crash non-deterministic.
Steps to reproduce
- Use
npx create-expo-app
to create a new Expo app - Install
reanimated
+expo-dev-client
- Build using EAS or
npx expo prebuild
+npx expo run:ios
- Open the app
- Press the “R” key rapidly in quick succession on the keyboard a couple of times
- You will most definitely experience a crash
Snack or a link to a repository
https://github.com/ansh/reanimated-reload-crash
Reanimated version
2.12.0
React Native version
0.70.5
Platforms
iOS
JavaScript runtime
None
Workflow
None
Architecture
None
Build type
None
Device
iOS simulator
Device model
No response
Acknowledgements
Yes
About this issue
- Original URL
- State: open
- Created 2 years ago
- Comments: 15 (3 by maintainers)
I’ve also been experiencing this for some time and wonder if there are any updates on the topic?
This seems to be happening with CodePush updates too in case anyone tracks down this issue.
Edit: Updating to v3 of reanimated fixes my issue.
Same error with latest versions: