software-mansion / react-native-reanimated

React Native's Animated library reimplemented
https://docs.swmansion.com/react-native-reanimated/
MIT License
8.83k stars 1.29k forks source link

Reanimated Stops Working Completely on iOS #6371

Closed phantom-xrn closed 2 weeks ago

phantom-xrn commented 1 month ago

Description

Reanimated completely stops working after a while on production on iOS. I've attached a video and a minimum reproducible repo.

Some thoughts:

https://github.com/user-attachments/assets/beb2353c-1e71-48c9-a118-d8e4d4366b2d

Steps to reproduce

Clone https://github.com/phantom-xrn/reanimated-bug/tree/main

  1. Run it on release mode on an 120hz iOS device(Replicated on 14 pro/15 pro/15 pro max but not on 12 mini/13)
  2. Wait for the video to start playing.
  3. Press and Long Press on the bottom two cards a few times.
  4. Reanimated will stop working after a while. The buttons will not scale anymore when pressed and any component that uses reanimated like bottom sheets stop working.
  5. Only error on Xcode console is Unbalanced calls start/end for tag 19

Snack or a link to a repository

https://github.com/phantom-xrn/reanimated-bug/tree/main

Reanimated version

3.14.0

React Native version

0.73.6

Platforms

iOS

JavaScript runtime

Hermes

Workflow

Expo Dev Client

Architecture

Paper (Old Architecture)

Build type

Release app & production bundle

Device

Real device

Device model

Iphone 15 Pro

Acknowledgements

Yes

phantom-xrn commented 1 month ago

Just added a $512 sponsorship and am happy to pay $128/hour for the time to fix this. This is affecting us in production and would really appreciate if you guys could prioritize the issue.

tomekzaw commented 1 month ago

Hi @phantom-xrn, thanks for reporting this issue as well as preparing the minimal reproducible example.

Could you please contact us at projects@swmansion.com? We'd be happy to prioritize work this issue.

bartlomiejbloniarz commented 3 weeks ago

Hi @phantom-xrn

I prepared a PR #6442 that should resolve this issue. We might need some time to get it merged, since it has to do with an important part of our logic. Until then you can use this patch on your app. react-native-reanimated+3.15.0.patch

bartlomiejbloniarz commented 2 weeks ago

@phantom-xrn We just published a new version of reanimated (3.15.1) that includes this fix.