software-mansion / react-native-reanimated

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

Crashed on iOS Production #6747

Open 1962449521 opened 8 hours ago

1962449521 commented 8 hours ago

Description

Need to use Remanimated, but iOS crashes when switching users and destroying the engine.

Steps to reproduce

  1. Log in to the iOS App
  2. Log out, call RCTBridge invalidate
  3. Crash at the assertion in the destructor of JSCRuntime::~JSCRuntime():
  4. assert(objectCounter_ == 0 && "JSCRuntime destroyed with a dangling API object");

Snack or a link to a repository

Private Codes

Reanimated version

3.6.1

React Native version

0.73.1

Platforms

iOS

JavaScript runtime

JSC

Workflow

React Native

Architecture

Paper (Old Architecture)

Build type

Release app & production bundle

Device

Real device

Device model

iPhone 15(os version: 17.5.1)

Acknowledgements

Yes

github-actions[bot] commented 8 hours 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?