"FATAL EXCEPTION: mqt_native_modules" in release version of android app

See original GitHub issue

Description

I’m trying to test release version of my app on Android but getting and error while fetching a data Debug version works fine.

Steps To Reproduce

npx react-native run-android --variant=release

JS code which cause the error:

let url = 'http://XXX.XXX.XXX.XX:99/app/all'

 fetch(url, { mode: 'no-cors' })
        .catch(err => {
            dispatch(fetchErrText(JSON.stringify(err))) // {"line"115,"column":7258,"sourceURL":"index.android.bundle"}
        })

JSON.stringify(err):

{"line"115,"column":7258,"sourceURL":"index.android.bundle"}

Adb bugreport beginning of crash:

--------- beginning of crash
09-09 01:05:38.286 10350 20734 21089 E AndroidRuntime: FATAL EXCEPTION: mqt_native_modules
09-09 01:05:38.286 10350 20734 21089 E AndroidRuntime: Process: com.mightio.signal, PID: 20734
09-09 01:05:38.286 10350 20734 21089 E AndroidRuntime: java.lang.IllegalStateException: Too many receivers, total of 1000, registered for pid: 20734, callerPackage: com.mightio.signal
09-09 01:05:38.286 10350 20734 21089 E AndroidRuntime: 	at android.os.Parcel.createException(Parcel.java:1961)
09-09 01:05:38.286 10350 20734 21089 E AndroidRuntime: 	at android.os.Parcel.readException(Parcel.java:1921)
09-09 01:05:38.286 10350 20734 21089 E AndroidRuntime: 	at android.os.Parcel.readException(Parcel.java:1871)
09-09 01:05:38.286 10350 20734 21089 E AndroidRuntime: 	at android.app.IActivityManager$Stub$Proxy.registerReceiver(IActivityManager.java:3732)
09-09 01:05:38.286 10350 20734 21089 E AndroidRuntime: 	at android.app.ContextImpl.registerReceiverInternal(ContextImpl.java:1498)
09-09 01:05:38.286 10350 20734 21089 E AndroidRuntime: 	at android.app.ContextImpl.registerReceiver(ContextImpl.java:1459)
09-09 01:05:38.286 10350 20734 21089 E AndroidRuntime: 	at android.app.ContextImpl.registerReceiver(ContextImpl.java:1447)
09-09 01:05:38.286 10350 20734 21089 E AndroidRuntime: 	at android.content.ContextWrapper.registerReceiver(ContextWrapper.java:633)
09-09 01:05:38.286 10350 20734 21089 E AndroidRuntime: 	at com.android.billingclient.api.BillingBroadcastManager$BillingBroadcastReceiver.register(BillingBroadcastManager.java:81)
09-09 01:05:38.286 10350 20734 21089 E AndroidRuntime: 	at com.android.billingclient.api.BillingBroadcastManager.registerReceiver(BillingBroadcastManager.java:53)
09-09 01:05:38.286 10350 20734 21089 E AndroidRuntime: 	at com.android.billingclient.api.BillingClientImpl.startConnection(BillingClientImpl.java:298)
09-09 01:05:38.286 10350 20734 21089 E AndroidRuntime: 	at com.dooboolab.RNIap.RNIapModule.initConnection(RNIapModule.java:138)
09-09 01:05:38.286 10350 20734 21089 E AndroidRuntime: 	at java.lang.reflect.Method.invoke(Native Method)
09-09 01:05:38.286 10350 20734 21089 E AndroidRuntime: 	at com.facebook.react.bridge.JavaMethodWrapper.invoke(JavaMethodWrapper.java:372)
09-09 01:05:38.286 10350 20734 21089 E AndroidRuntime: 	at com.facebook.react.bridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:151)
09-09 01:05:38.286 10350 20734 21089 E AndroidRuntime: 	at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)
09-09 01:05:38.286 10350 20734 21089 E AndroidRuntime: 	at android.os.Handler.handleCallback(Handler.java:873)
09-09 01:05:38.286 10350 20734 21089 E AndroidRuntime: 	at android.os.Handler.dispatchMessage(Handler.java:99)
09-09 01:05:38.286 10350 20734 21089 E AndroidRuntime: 	at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:27)
09-09 01:05:38.286 10350 20734 21089 E AndroidRuntime: 	at android.os.Looper.loop(Looper.java:201)
09-09 01:05:38.286 10350 20734 21089 E AndroidRuntime: 	at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(MessageQueueThreadImpl.java:226)
09-09 01:05:38.286 10350 20734 21089 E AndroidRuntime: 	at java.lang.Thread.run(Thread.java:764)
09-09 01:05:38.286 10350 20734 21089 E AndroidRuntime: Caused by: android.os.RemoteException: Remote stack trace:
09-09 01:05:38.286 10350 20734 21089 E AndroidRuntime: 	at com.android.server.am.ActivityManagerService.registerReceiver(ActivityManagerService.java:21653)
09-09 01:05:38.286 10350 20734 21089 E AndroidRuntime: 	at android.app.IActivityManager$Stub.onTransact$registerReceiver$(IActivityManager.java:10227)
09-09 01:05:38.286 10350 20734 21089 E AndroidRuntime: 	at android.app.IActivityManager$Stub.onTransact(IActivityManager.java:155)
09-09 01:05:38.286 10350 20734 21089 E AndroidRuntime: 	at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:3400)
09-09 01:05:38.286 10350 20734 21089 E AndroidRuntime: 	at android.os.Binder.execTransact(Binder.java:726)

Environment:

OS: macOS 10.15.6 CPU: (8) x64 Intel® Core™ i7-4770HQ CPU @ 2.20GHz Memory: 800.93 MB / 16.00 GB Shell: 3.2.57 - /bin/bash Binaries: Node: 12.14.1 - /usr/local/bin/node Yarn: 1.22.4 - /usr/local/bin/yarn npm: 6.14.7 - /usr/local/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman Managers: CocoaPods: 1.9.3 - /usr/local/bin/pod SDKs: iOS SDK: Platforms: iOS 13.6, DriverKit 19.0, macOS 10.15, tvOS 13.4, watchOS 6.2 Android SDK: Not Found IDEs: Android Studio: 4.0 AI-193.6911.18.40.6626763 Xcode: 11.6/11E708 - /usr/bin/xcodebuild Languages: Java: 14.0.2 - /usr/bin/javac Python: 2.7.16 - /usr/bin/python npmPackages: @react-native-community/cli: Not Found react: ~16.11.0 => 16.11.0 react-native: ~0.62.2 => 0.62.2 npmGlobalPackages: react-native: Not Found

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:5

github_iconTop GitHub Comments

1reaction
pyataevsvcommented, Sep 30, 2020

@nicastelo Yes the problem was in http connection and it can be solved via ssl or via changing android manifest file

0reactions
hanifmhdcommented, Aug 12, 2021

i’m still facing this issue on RN.0.64.0, any solution about it?

Read more comments on GitHub >

github_iconTop Results From Across the Web

FATAL EXCEPTION: mqt_native_modules - Stack Overflow
I added an external library to my React Native application and it worked fine during development, but when I built the release apk,...
Read more >
mqt_native_modules with React-Native app on Release APK
Coding example for the question Android Google Play FATAL EXCEPTION: mqt_native_modules with React-Native app on Release APK.
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 >
Behavior changes: Apps targeting Android 12
The following behavior changes apply exclusively to apps that are targeting Android 12 or higher.
Read more >
MediaCodec - Android Developers
When you are done using a codec, you must release it by calling release() . On rare occasions the codec may encounter an...
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