software-mansion / react-native-reanimated

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

RangeError: Set maximum size exceeded #6086

Closed Mutai-Gilbert closed 3 weeks ago

Mutai-Gilbert commented 3 weeks ago

Description

I am encountering a RangeError: Set maximum size exceeded error when using the runPropUpdates function in the AnimatedNode.js file. This issue occurs when the visitedNodes set grows too large, likely due to an infinite loop or a very large number of nodes being processed. The expected behavior is that the function should efficiently update nodes without exceeding the set size limit. Here’s a screenshot of the error:

Screenshot 2024-06-07 at 13 36 35

Steps to reproduce

  1. Run the app and trigger the animation updates npm start-- --reset cache
  2. Observe the error Set maximum size exceeded in the console.

Snack or a link to a repository

https://github.com/Mutai-Gilbert

Reanimated version

2.17.0

React Native version

0.69.12

Platforms

iOS

JavaScript runtime

Hermes

Workflow

React Native

Architecture

Paper (Old Architecture)

Build type

Debug app & production bundle

Device

iOS simulator

Device model

iPhone 14 Pro, iOS 16.2

Acknowledgements

Yes

github-actions[bot] commented 3 weeks ago

Hey! 👋

The issue doesn't seem to contain a minimal reproduction.

Could you provide a snack or a link to a GitHub repository under your username that reproduces the problem?

efstathiosntonas commented 3 weeks ago

@Mutai-Gilbert your repro link points to your github profile.

Mutai-Gilbert commented 3 weeks ago

Okay, let me share with you the correct link.