Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fatal Exception: com.facebook.jni.CppException Maximum call stack size exceeded (native stack depth) RangeError: Maximum call stack size exceeded (native stack depth) at apply (native) at anonymous on release android apk #5092

Closed
NadeemKhanFh opened this issue Sep 15, 2023 · 12 comments
Labels
Missing repro This issue need minimum repro scenario Needs review Issue is ready to be reviewed by a maintainer Platform: Android This issue is specific to Android

Comments

@NadeemKhanFh
Copy link

Description

hey, i am facing this issue on release apk android. debug is working fine.

Screenshot 2023-09-15 at 5 45 34 PM

Steps to reproduce

  1. make android release apk
  2. install it
  3. build crashes

Snack or a link to a repository

no snack

Reanimated version

3.5.1

React Native version

0.71.12

Platforms

Android

JavaScript runtime

None

Workflow

None

Architecture

None

Build type

Release mode

Device

Real device

Device model

redme note 11 pro

Acknowledgements

Yes

@NadeemKhanFh NadeemKhanFh added the Needs review Issue is ready to be reviewed by a maintainer label Sep 15, 2023
@github-actions github-actions bot added Platform: Android This issue is specific to Android Missing repro This issue need minimum repro scenario labels Sep 15, 2023
@github-actions
Copy link

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?

@NadeemKhanFh
Copy link
Author

@manoj-makkuboy
Copy link

#5067 The patch is mentioned here but still no release.

@tjzel
Copy link
Contributor

tjzel commented Sep 15, 2023

Fixed in 3.5.2.

@tjzel tjzel closed this as completed Sep 15, 2023
@Vrunalbenke
Copy link

Vrunalbenke commented Oct 9, 2023

Fixed in 3.5.2.

can u share how you fixed this error, because i am also getting same error in release apk

@iamrohitagg
Copy link

I am on the latest version(3.5.4) and getting the crash.

@tjzel
Copy link
Contributor

tjzel commented Oct 12, 2023

@Vrunalbenke It was fixed with #5087. Make sure you reset your bundler's cache after upgrading. If the issue persists, please attach some logs and preferably check if your runOnJS function (node_modules/react-native-reanimated/src/reanimated2/threads.ts) is the same as in the npm package.

@pabloluz
Copy link

pabloluz commented Oct 29, 2023

Screen Shot 2023-10-29 at 18 08 50

Updated to 3.5.4 and keep getting the same error in release APK.

Bundler's cache was reset and checked runOnJS function is the same as in the NPM package.

@tjzel
Copy link
Contributor

tjzel commented Oct 30, 2023

@pabloluz I believe this is fixed in #5264. Please confirm if it's gone for you on our nightly version react-native-reanimated@nightly.

@pabloluz
Copy link

@pabloluz I believe this is fixed in #5264. Please confirm if it's gone for you on our nightly version react-native-reanimated@nightly.

I can confirm react-native-reanimated@nightly is working in prod, the exception I mentioned above is not happening anymore. Thank you very much @tjzel!

@Pingou
Copy link

Pingou commented Dec 27, 2023

Hi all, did you all have the same stacktrace with the error appearing in apply()?
I am experiencing the same error since upgrading to react native 71 but the stacktrace is a bit different and occurs in render. Upgrading reanimated didn't fix the issue.

@tjzel
Copy link
Contributor

tjzel commented Dec 27, 2023

@Pingou This should be fixed. Feel free to open another issue with your error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Missing repro This issue need minimum repro scenario Needs review Issue is ready to be reviewed by a maintainer Platform: Android This issue is specific to Android
Projects
None yet
Development

No branches or pull requests

7 participants