react-native-code-push icon indicating copy to clipboard operation
react-native-code-push copied to clipboard

Android app is crashing on taking mandatory codepush com.facebook.react.modules.core.ExceptionsManagerModule.reportException

Open vinayak-bm-ai opened this issue 1 year ago • 7 comments

Steps to Reproduce

  1. Distribute a code push from the app center as mandatory for Android
  2. Open the application on an Android device
  3. App crash triggered

Expected Behavior

App does not crash when we make code push mandatory.

Actual Behavior

The Android app crashes when attempting to take codepush, but only if it's set to be mandatory. This started to happen when we upgraded to react-native-code-push 8.1.0 previously there were no crashes related to this.

Crash Details

ExceptionsManagerModule.java line 72
com.facebook.react.modules.core.ExceptionsManagerModule.reportException

Fatal Exception: com.facebook.react.common.JavascriptException
Invariant Violation: This can happen if: * Metro (the local dev server) is run from the wrong folder. Check if Metro is running, stop it and restart it in the current project. * A module failed to load due to an error and `AppRegistry.registerComponent` wasn't called., js engine: hermes, stack: anonymous@29:290 runApplication@132:1613 value@36:3866 anonymous@36:675 value@36:2510 value@36:646
Screenshot 2024-02-27 at 2 31 17 PM

Environment

  • react-native-code-push version: 8.1.0
  • react-native version: 0.71.13
  • Android version: 10/11/12/13
  • Hermes Enabled
  • New Arch: No

We tested this behavior, the release's crash-free rate suddenly drops when the code push is set to mandatory.

vinayak-bm-ai avatar Feb 27 '24 09:02 vinayak-bm-ai

I am also facing the same issue with the version 8.1.1. app crashing after we download and install the latest air push updates.any updates on this?

jibinbajuMTN avatar Feb 29 '24 07:02 jibinbajuMTN

same here, if that matters

pierroo avatar Feb 29 '24 08:02 pierroo

I'm getting same issue here, on "react native" : "^0.73.4" & "react-native-code-push": "^8.1.1"

crash -> null pointer dereference: SIGSEGV 0x00000000000000c0

100sarthak100 avatar Mar 06 '24 05:03 100sarthak100

Same issue. Mandatory codepush is also not working.

react-native 0.73.4 react-native-code-push 8.2.1 node 21.6.2 appcenter-cli 3.0.0 eas-cli 7.3.0
expo-cli 6.3.10 npm 10.2.4 java 17.0.8

maqeelqureshi avatar Mar 06 '24 20:03 maqeelqureshi

I also have this problem.

react-native: 0.73.1 react-native-code-push:8.2.1

Logcat shows error: TypeError: Cannot read property 'split' of undefined, js engine: hermes Invariant Violation: "App" has not been registered. This can happen if:

  • Metro (the local dev server) is run from the wrong folder. Check if Metro is running, stop it and restart it in the current project.
  • A module failed to load due to an error and AppRegistry.registerComponent wasn't called., js engine: hermes FATAL EXCEPTION: mqt_native_modules Process: com.app.prod, PID: 6442 com.facebook.react.common.JavascriptException: TypeError: Cannot read property 'split' of undefined, js engine: hermes, stack: anonymous@981:1404 anonymous@981:1430 h@2:1788 d@2:1249 i@2:500 anonymous@980:579 h@2:1788 d@2:1249 i@2:500 anonymous@979:118 h@2:1788 d@2:1249 i@2:500 anonymous@817:399 h@2:1788 d@2:1249 i@2:500 anonymous@6:104 h@2:1788 d@2:1179 i@2:500 global@2603:3

NxcomMobile avatar Mar 12 '24 03:03 NxcomMobile

Thanks for bringing this to our attention. Unfortunately, I haven't been able to reproduce the issue on my end. Could you please provide a demo application that showcases the problem? This would greatly help in diagnosing and addressing the issue more effectively.

DmitriyKirakosyan avatar Mar 27 '24 09:03 DmitriyKirakosyan

I was fine with version 8.1.0 but after I recently upgraded to 8.2.2, I get an error when installing it and it becomes a rollback. "com.facebook.react.modules.core.ExceptionsManagerModule.reportException ExceptionsManagerModule.java, line 65 com.facebook.react.common.JavascriptException: Error: Exception in HostFunction: expected 0 arguments, got 1, js engine: hermes"

I changed it to 8.1.0 so it's okay, but it's an optional code push and as soon as I download it, I proceed with the installation...

jsh7195 avatar May 13 '24 04:05 jsh7195

@jsh7195, was the issue occurring only with mandatory updates, or could any update fail? Was it consistently crashing with every update, or was it happening only on specific Android devices?

DmitriyKirakosyan avatar Jun 03 '24 08:06 DmitriyKirakosyan

Closing due to inactivity.

DmitriyKirakosyan avatar Jul 02 '24 08:07 DmitriyKirakosyan

i am facing the same issue.

DhaivatKhanparaPanamax avatar Aug 23 '24 06:08 DhaivatKhanparaPanamax

@DhaivatKhanparaPanamax , thanks for reaching out! Please answer to these questions and provide more info about your project, including react-native and codepush versions you use. Also please attach your crash log.

DmitriyKirakosyan avatar Aug 27 '24 08:08 DmitriyKirakosyan

It is occurring with both the updates. no update fails. yes it consistently crashing with every update. In any android device it is crashing.

DhaivatKhanparaPanamax avatar Aug 28 '24 06:08 DhaivatKhanparaPanamax