Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.
This repository was archived by the owner on May 20, 2025. It is now read-only.

App crashing on running updated bundle #1144

@marcmo

Description

@marcmo

My app is using RNN and uses codepush. When running the app with react-native run-android everything works and I can update using codepush. But when I install the app, the app crashes after the codepush update.

Expected Behavior

same behavior on installed app and app running with local packager

Actual Behavior

What actually happens?

01-15 14:02:44.006 14439 14608 D ReactNative: [CodePush] Applying full update.
01-15 14:02:44.028 14439 14485 I ReactNativeJS: [CodePush] Installing update.
01-15 14:02:44.101 14439 14486 D ReactNative: [CodePush] Loading JS bundle from "/data/user/0/com.esrlabs.csm4/files/CodePush/48e46b6353890ca25110f096c80afa3356c8d8c8b70eaef1c2e70a99333de075/CodePush/index.android.bundle"
01-15 14:02:44.103 14439 14439 D ReactNative: ReactInstanceManager.recreateReactContextInBackgroundInner()
01-15 14:02:44.103 14439 14439 D ReactNative: ReactInstanceManager.recreateReactContextInBackgroundFromBundleLoader()
01-15 14:02:44.103 14439 14439 D ReactNative: ReactInstanceManager.recreateReactContextInBackground()

01-15 14:02:44.103 14439 14485 I ReactNativeJS: [CodePush] Restarting app
01-15 14:02:44.103 14439 14439 D ReactNative: ReactInstanceManager.runCreateReactContextOnNewThread()
01-15 14:02:44.103 14439 14439 D ReactNative: ReactInstanceManager.tearDownReactContext()
01-15 14:02:44.116 14439 14439 D ReactNative: CatalystInstanceImpl.destroy() start
01-15 14:02:44.118 14439 14613 D ReactNative: ReactInstanceManager.createReactContext()
01-15 14:02:44.135 14439 14613 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.airbnb.android.react.lottie.LottieAnimationViewManager
01-15 14:02:44.146 14439 14613 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.uimanager.LayoutShadowNode
...
01-15 14:02:44.205 14439 14439 D ReactNative: CatalystInstanceImpl.destroy() end
01-15 14:02:44.206 14439 14613 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.picker.ReactDialogPickerManager
...
01-15 14:02:44.269 14439 14613 D ReactNative: Initializing React Xplat Bridge.
01-15 14:02:44.271 14439 14613 D ReactNative: Initializing React Xplat Bridge before initializeBridge
01-15 14:02:44.279 14439 14613 D ReactNative: Initializing React Xplat Bridge after initializeBridge
01-15 14:02:44.279 14439 14613 D ReactNative: CatalystInstanceImpl.runJSBundle()
01-15 14:02:44.279 14439 14439 D ReactNative: ReactInstanceManager.setupReactContext()
01-15 14:02:44.280 14439 14439 D ReactNative: CatalystInstanceImpl.initialize()
01-15 14:02:44.281 14439 14439 D ReactNative: ReactInstanceManager.attachRootViewToInstance()
01-15 14:02:45.186 14439 14615 E ReactNativeJS: Module AppRegistry is not a registered callable module (calling runApplication)
01-15 14:02:45.210 14439 14616 E AndroidRuntime: FATAL EXCEPTION: mqt_native_modules
01-15 14:02:45.210 14439 14616 E AndroidRuntime: Process: com.esrlabs.csm4, PID: 14439
01-15 14:02:45.210 14439 14616 E AndroidRuntime: com.facebook.react.common.JavascriptException: Module AppRegistry is not a registered callable module (calling runApplication), stack:
01-15 14:02:45.210 14439 14616 E AndroidRuntime: 	at com.facebook.react.modules.core.ExceptionsManagerModule.showOrThrowError(ExceptionsManagerModule.java:56)
01-15 14:02:45.210 14439 14616 E AndroidRuntime: 	at com.facebook.react.modules.core.ExceptionsManagerModule.reportFatalException(ExceptionsManagerModule.java:40)
01-15 14:02:45.210 14439 14616 E AndroidRuntime: 	at java.lang.reflect.Method.invoke(Native Method)
01-15 14:02:45.210 14439 14616 E AndroidRuntime: 	at com.facebook.react.bridge.JavaMethodWrapper.invoke(JavaMethodWrapper.java:363)
01-15 14:02:45.210 14439 14616 E AndroidRuntime: 	at com.facebook.react.bridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:162)
01-15 14:02:45.210 14439 14616 E AndroidRuntime: 	at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)
01-15 14:02:45.210 14439 14616 E AndroidRuntime: 	at android.os.Handler.handleCallback(Handler.java:790)
01-15 14:02:45.210 14439 14616 E AndroidRuntime: 	at android.os.Handler.dispatchMessage(Handler.java:99)
01-15 14:02:45.210 14439 14616 E AndroidRuntime: 	at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:31)
01-15 14:02:45.210 14439 14616 E AndroidRuntime: 	at android.os.Looper.loop(Looper.java:164)
01-15 14:02:45.210 14439 14616 E AndroidRuntime: 	at com.facebook.react.bridge.queue.MessageQueueThreadImpl$3.run(MessageQueueThreadImpl.java:194)
01-15 14:02:45.210 14439 14616 E AndroidRuntime: 	at java.lang.Thread.run(Thread.java:764)
01-15 14:02:45.545   766   778 I am_crash: [14439,0,com.esrlabs.csm4,950582854,com.facebook.react.common.JavascriptException,Module AppRegistry is not a registered callable module (calling runApplication), stack:
...

Environment

  • react-native-code-push version: ^5.2.0-beta
  • react-native version: 0.47.2
  • react-native-navigation: 1.1.237
  • iOS/Android/Windows version: android 8.1.0
  • Does this reproduce on a debug build or release build? release
  • Does this reproduce on a simulator, or only on a physical device? device

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions