microsoft / react-native-code-push

React Native module for CodePush
http://appcenter.ms
Other
8.97k stars 1.47k forks source link

[Android] App crash after codepush restart #2513

Closed ddtien510 closed 1 year ago

ddtien510 commented 1 year ago

My app is crashing after codepush restart I could reproduce that bug

Devices crashing on : Galaxy A53 5G Redmi 10 2022 Redmi 10C Poco C40

Library versions : React Native : 0.65.2 react-native-code-push : 7.0.4

Crash log: Fatal Exception: java.lang.IllegalStateException: Trying to call native module before CatalystInstance has been set! at com.facebook.react.bridge.ReactContext.raiseCatalystInstanceMissingException(ReactContext.java:134) at com.facebook.react.bridge.ReactContext.getNativeModule(ReactContext.java:177) at com.wix.reactnativeuilib.keyboardinput.utils.RuntimeUtils$1.run(RuntimeUtils.java:12) at android.os.Handler.handleCallback(Handler.java:942) at android.os.Handler.dispatchMessage(Handler.java:99) at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:27) at android.os.Looper.loopOnce(Looper.java:226) at android.os.Looper.loop(Looper.java:313) at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(MessageQueueThreadImpl.java:226) at java.lang.Thread.run(Thread.java:1012)

Can anyone help me. Thank you!

shuraman69 commented 1 year ago

Any updates?

DmitriyKirakosyan commented 1 year ago

Hi @ddtien510 , based on your crash log it doesn't look related to the code-push library. Also the RN version 0.65 is out of support. Please upgrade to 0.69 or above if possible.

microsoft-github-policy-service[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs within 15 days of this comment.

microsoft-github-policy-service[bot] commented 1 year ago

This issue will now be closed because it hasn't had any activity for 15 days after stale. Please feel free to open a new issue if you still have a question/issue or suggestion.

microsoft-github-policy-service[bot] commented 1 year ago

This issue will now be closed because it hasn't had any activity for 15 days after stale. Please feel free to open a new issue if you still have a question/issue or suggestion.

Pushkar952 commented 1 year ago

We have similar issue. The app crashes post bundle is installed and app tried code push restart on android.

The error log goes as this. ActivityManager: Unable to start service Intent { act=android.service.smartspace.SmartspaceService cmp=com.google.android.as/com.google.android.apps.miphone.aiai.app.AiAiSmartspaceService } U=0: not found

Felipe-Tomazetti commented 1 year ago

I am having the same problem as @Pushkar952, cannot seem to solve it yet

Namnp1521 commented 4 months ago

any update? i got this error on android device

"react": "18.1.0",
"react-native": "0.70.0",
"react-native-code-push": "^7.1.0",