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 CleanShot 2022-12-31 at 14 23 42@2x CleanShot 2022-12-31 at 14 24 00@2x 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. CleanShot 2022-12-31 at 14 02 12@2x

Steps to reproduce

  1. Use npx create-expo-app to create a new Expo app
  2. Install reanimated + expo-dev-client
  3. Build using EAS or npx expo prebuild + npx expo run:ios
  4. Open the app
  5. Press the “R” key rapidly in quick succession on the keyboard a couple of times
  6. 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)

Most upvoted comments

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:

"react-native-gesture-handler": "2.9.0",
"react-native-reanimated": "3.2.0",