question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Android] - Release Application crashes immediately after having upgraded to 0.70.0 with newArchEnabled=true

See original GitHub issue

Description

As soon as the app starts it crashes. Inoticed that in the logs there is this: facebook::jni::throwPendingJniExceptionAsCppException(). For this reason i searched it within react-native folder and i found this file /node_modules/react-native/ReactAndroid/src/main/jni/react/jni/MethodInvoker.cpp. At that point i added a LOG(FATAL) << methodName_ inside MethodCallResult MethodInvoker::invoke(row 226) and i discovered in the logs that the app crashes just after the log and the value of methodName is installTurboModule which is a react-native-reanimated function`.

Steps to reproduce

./gradlew assembleRelease --no-daemon

Snack or a link to a repository

none

Reanimated version

3.0.0-rc.2

React Native version

0.70.0

Platforms

Android

JavaScript runtime

No response

Workflow

No response

Architecture

No response

Build type

No response

Device

No response

Device model

No response

Acknowledgements

Yes

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
allemanfredicommented, Sep 19, 2022

@tomekzaw Thanks for your help! Btw, i upgraded an existing app. If i create a fresh new app it works without crashing. This is the issue that i have created on the RN repo.

0reactions
tomekzawcommented, Sep 21, 2022

Hey @allemanfredi, thanks for letting us know. Closing the issue as it’s not a bug with Reanimated.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Android] - Release Application crashes immediately after ...
Description Application crashes immediately after having upgraded to 0.70.0 with newArchEnabled=true. If i keep newArchEnabled=false the app ...
Read more >
Crashes - Android Developers
An Android app crashes whenever there's an unexpected exit caused by an unhandled exception or signal. An app that is written using Java...
Read more >
Android App suddenly crashes when compiling in Release ...
I am using Xamarin VS Studio 2022 and C#. But it has suddenly started failing. I get the following error among others: Time...
Read more >
Fixing React-Native android release build - wesionaryTEAM
Android release build crashes on launch but works fine in development mode. After months of research and development, your app is finally ready...
Read more >
React native Android app crashes immediately after start
My app crashes immediately after startup in release mode but it's working fine when using it in debug mode. List of things that...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found