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] When Hermes is enabled app crashes in release mode

See original GitHub issue

When enabling the Hermes JavaScript engine for Android the app crashes immediately at launch:

java.lang.IllegalArgumentException: Receiver not registered: org.wonday.orientation.OrientationModule$2@4c0425a

This issue only occurs when building the app in release configuration and with JS bundled in the app. I guess this has something to do the way Hermes compiles JS to bytecode.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:5
  • Comments:9

github_iconTop GitHub Comments

2reactions
MarianBecommented, Nov 4, 2019

ok got it. the issue for me was in react-native-gesture-handler adding import 'react-native-gesture-handler' on top of my index.js file fixed it for me (more info)

0reactions
SudoPlzcommented, Jun 14, 2021

Still experiencing that with:

“react-native-orientation-locker”: “1.3.1”, “react-native-gesture-handler”: “1.10.3”,

AND I’m importing react-native-gesture-handler on init too.

Any ideas?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Hermes 0.9.0 crash on android when build release RN 0.66.3
I'm trying to build a release version and the app getting crashes when I'm open the app! If I disable Hermes the app...
Read more >
Enabling hermes in android app crashing app in react native ...
Enabling Hermes in react native giving below error without hermes working fine in android : I have used react native code in existing...
Read more >
Using Hermes - React Native
Edit your android/app/gradle.properties file and make sure hermesEnabled is true: # Use this property to enable or disable the Hermes JS engine.
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 >
Android App Crashes in release mode. What are the required ...
Android App Crashes in release mode. What are the required class that needs to be added in proGurad. In Debug mode everything works...
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