This repository was archived by the owner on May 20, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
This repository was archived by the owner on May 20, 2025. It is now read-only.
Development/debug build crashes on android after downloading update #1272
Copy link
Copy link
Closed
Labels
Description
Thanks so much for filing an issue or feature request! Please fill out the following (wherever relevant):
Steps to Reproduce
- Build android development version of react-native app with code-push enabled.
- Load on android emulator or phone
- App loads and says there is an update.
- After update is downloaded, app crashes.
Expected Behavior
New bundle should run
Actual Behavior
New bundle crashes, and code-push reverts to existing bundle.
05-03 23:06:08.639 4208 4251 I ReactNativeJS: Downloading package.
05-03 23:06:09.285 4208 4251 I ReactNativeJS: 65100 of 4928365 received.
05-03 23:06:09.325 4208 4251 I ReactNativeJS: 171596 of 4928365 received.
05-03 23:06:09.374 4208 4251 I ReactNativeJS: 343628 of 4928365 received.
05-03 23:06:09.416 4208 4251 I ReactNativeJS: 417356 of 4928365 received.
05-03 23:06:09.460 4208 4251 I ReactNativeJS: 548428 of 4928365 received.
05-03 23:06:09.505 4208 4251 I ReactNativeJS: 663116 of 4928365 received.
05-03 23:06:09.550 4208 4251 I ReactNativeJS: 785996 of 4928365 received.
05-03 23:06:09.596 4208 4251 I ReactNativeJS: 917068 of 4928365 received.
05-03 23:06:09.638 4208 4251 I ReactNativeJS: 1015372 of 4928365 received.
05-03 23:06:09.683 4208 4251 I ReactNativeJS: 1171020 of 4928365 received.
05-03 23:06:09.726 4208 4251 I ReactNativeJS: 1310284 of 4928365 received.
05-03 23:06:09.770 4208 4251 I ReactNativeJS: 1482316 of 4928365 received.
05-03 23:06:09.816 4208 4251 I ReactNativeJS: 1629772 of 4928365 received.
05-03 23:06:09.860 4208 4251 I ReactNativeJS: 1777228 of 4928365 received.
05-03 23:06:09.904 4208 4251 I ReactNativeJS: 1932876 of 4928365 received.
05-03 23:06:09.949 4208 4251 I ReactNativeJS: 2063948 of 4928365 received.
05-03 23:06:09.993 4208 4251 I ReactNativeJS: 2260556 of 4928365 received.
05-03 23:06:10.037 4208 4251 I ReactNativeJS: 2375244 of 4928365 received.
05-03 23:06:10.082 4208 4251 I ReactNativeJS: 2506316 of 4928365 received.
05-03 23:06:10.327 4208 4251 I ReactNativeJS: 2719308 of 4928365 received.
05-03 23:06:10.416 4208 4251 I ReactNativeJS: 3227212 of 4928365 received.
05-03 23:06:10.527 4208 4251 I ReactNativeJS: 3604044 of 4928365 received.
05-03 23:06:10.571 4208 4251 I ReactNativeJS: 3694156 of 4928365 received.
05-03 23:06:10.615 4208 4251 I ReactNativeJS: 3817036 of 4928365 received.
05-03 23:06:10.660 4208 4251 I ReactNativeJS: 3857996 of 4928365 received.
05-03 23:06:10.708 4208 4251 I ReactNativeJS: 3964492 of 4928365 received.
05-03 23:06:10.750 4208 4251 I ReactNativeJS: 4087372 of 4928365 received.
05-03 23:06:10.793 4208 4251 I ReactNativeJS: 4259404 of 4928365 received.
05-03 23:06:10.838 4208 4251 I ReactNativeJS: 4406860 of 4928365 received.
05-03 23:06:10.884 4208 4251 I ReactNativeJS: 4546560 of 4928365 received.
05-03 23:06:10.926 4208 4251 I ReactNativeJS: 4661248 of 4928365 received.
05-03 23:06:10.971 4208 4251 I ReactNativeJS: 4792320 of 4928365 received.
05-03 23:06:11.015 4208 4251 I ReactNativeJS: 4915200 of 4928365 received.
05-03 23:06:11.021 4208 4251 I ReactNativeJS: 4928365 of 4928365 received.
05-03 23:06:11.314 4208 4223 D ReactNative: [CodePush] Applying full update.
05-03 23:06:11.316 4208 4251 I ReactNativeJS: Installing update.
05-03 23:06:11.330 4208 4251 I ReactNativeJS: Update installed.
05-03 23:06:11.337 4208 4252 D ReactNative: [CodePush] Loading JS bundle from "/data/user/0/io.grubmobile.app/files/CodePush/c12478e93c7c3fcc04bac253cfeb34e3066d2b69b04b65557fbdcee7475bb417/CodePush/index.android.bundle"
05-03 23:06:11.339 4208 4251 I ReactNativeJS: [CodePush] Restarting app
05-03 23:06:11.349 4208 4208 D ReactNative: ReactInstanceManager.recreateReactContextInBackgroundInner()
05-03 23:06:11.408 4208 4208 D ReactNative: ReactInstanceManager.onJSBundleLoadedFromServer()
05-03 23:06:11.409 4208 4208 D ReactNative: ReactInstanceManager.recreateReactContextInBackground()
05-03 23:06:11.409 4208 4208 D ReactNative: ReactInstanceManager.runCreateReactContextOnNewThread()
05-03 23:06:11.409 4208 4208 D ReactNative: ReactInstanceManager.tearDownReactContext()
05-03 23:06:11.410 4208 4208 D ReactNative: CatalystInstanceImpl.destroy() start
05-03 23:06:11.411 4208 4372 D ReactNative: ReactInstanceManager.createReactContext()
05-03 23:06:11.450 4208 4372 D ReactNative: Initializing React Xplat Bridge.
05-03 23:06:11.456 4208 4372 D ReactNative: Initializing React Xplat Bridge before initializeBridge
05-03 23:06:11.459 4208 4372 D ReactNative: Initializing React Xplat Bridge after initializeBridge
05-03 23:06:11.459 4208 4372 D ReactNative: CatalystInstanceImpl.runJSBundle()
05-03 23:06:11.510 4208 4226 D ReactNative: CatalystInstanceImpl.destroy() end
Error
facebook::react::Recoverable: Could not open file ReactNativeDevBundle.js: No such file or directory
Environment
- react-native-code-push version: 5.3.2
- react-native version: 0.55.3
- iOS/Android/Windows version: Android 7 and 8
- Does this reproduce on a debug build or release build? Android debug only
- Does this reproduce on a simulator, or only on a physical device? Both
Why do debug builds even use code-push? I thought debug builds bypass code-push? Only release builds should use code-push, right?
