You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 20, 2025. It is now read-only.
I was able to reproduce this issue with the CodePushDemoApp below. Running a codePush.restartApp() without any pending updates or anything is throwing a fatal exception, android only. In my app (not demo one provided) I implemented the background ReactInstance implementation stuff and it still is throwing the same exception.
Reproduction
Added a button that calls CodePush.restartApp()
Here is the stack trace:
05-19 07:53:12.988 5735 5735 E AndroidRuntime: com.facebook.jni.CppException: facebook::react::Recoverable: Could not open fileassets://index.android.bundle: No such file or directory
05-19 07:53:12.988 5735 5735 E AndroidRuntime: at com.facebook.react.cxxbridge.CatalystInstanceImpl.jniLoadScriptFromFile(Native Method)
05-19 07:53:12.988 5735 5735 E AndroidRuntime: at com.facebook.react.cxxbridge.CatalystInstanceImpl.loadScriptFromFile(CatalystInstanceImpl.java:208)
05-19 07:53:12.988 5735 5735 E AndroidRuntime: at com.facebook.react.cxxbridge.JSBundleLoader$2.loadScript(JSBundleLoader.java:53)
05-19 07:53:12.988 5735 5735 E AndroidRuntime: at com.facebook.react.cxxbridge.CatalystInstanceImpl.runJSBundle(CatalystInstanceImpl.java:221)
05-19 07:53:12.988 5735 5735 E AndroidRuntime: at com.facebook.react.ReactInstanceManager.createReactContext(ReactInstanceManager.java:935)
05-19 07:53:12.988 5735 5735 E AndroidRuntime: at com.facebook.react.ReactInstanceManager.access$600(ReactInstanceManager.java:104)
05-19 07:53:12.988 5735 5735 E AndroidRuntime: at com.facebook.react.ReactInstanceManager$ReactContextInitAsyncTask.doInBackground(ReactInstanceManager.java:218)
05-19 07:53:12.988 5735 5735 E AndroidRuntime: at com.facebook.react.ReactInstanceManager$ReactContextInitAsyncTask.doInBackground(ReactInstanceManager.java:197)
05-19 07:53:12.988 5735 5735 E AndroidRuntime: at android.os.AsyncTask$2.call(AsyncTask.java:295)
05-19 07:53:12.988 5735 5735 E AndroidRuntime: at java.util.concurrent.FutureTask.run(FutureTask.java:237)
05-19 07:53:12.988 5735 5735 E AndroidRuntime: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
05-19 07:53:12.988 5735 5735 E AndroidRuntime: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
05-19 07:53:12.988 5735 5735 E AndroidRuntime: at java.lang.Thread.run(Thread.java:818)
Additional Information
react-native-code-push version: ^2.0.2-beta
react-native version: 0.43.3
iOS/Android/Windows version: API 23
Does this reproduce on a debug build or release build? Only in release
Does this reproduce on a simulator, or only on a physical device? Simulator
(The more info the faster we will be able to address it!)
I was able to reproduce this issue with the CodePushDemoApp below. Running a codePush.restartApp() without any pending updates or anything is throwing a fatal exception, android only. In my app (not demo one provided) I implemented the background ReactInstance implementation stuff and it still is throwing the same exception.
Reproduction
Added a button that calls CodePush.restartApp()
Here is the stack trace:
05-19 07:53:12.988 5735 5735 E AndroidRuntime: com.facebook.jni.CppException: facebook::react::Recoverable: Could not open fileassets://index.android.bundle: No such file or directory
05-19 07:53:12.988 5735 5735 E AndroidRuntime: at com.facebook.react.cxxbridge.CatalystInstanceImpl.jniLoadScriptFromFile(Native Method)
05-19 07:53:12.988 5735 5735 E AndroidRuntime: at com.facebook.react.cxxbridge.CatalystInstanceImpl.loadScriptFromFile(CatalystInstanceImpl.java:208)
05-19 07:53:12.988 5735 5735 E AndroidRuntime: at com.facebook.react.cxxbridge.JSBundleLoader$2.loadScript(JSBundleLoader.java:53)
05-19 07:53:12.988 5735 5735 E AndroidRuntime: at com.facebook.react.cxxbridge.CatalystInstanceImpl.runJSBundle(CatalystInstanceImpl.java:221)
05-19 07:53:12.988 5735 5735 E AndroidRuntime: at com.facebook.react.ReactInstanceManager.createReactContext(ReactInstanceManager.java:935)
05-19 07:53:12.988 5735 5735 E AndroidRuntime: at com.facebook.react.ReactInstanceManager.access$600(ReactInstanceManager.java:104)
05-19 07:53:12.988 5735 5735 E AndroidRuntime: at com.facebook.react.ReactInstanceManager$ReactContextInitAsyncTask.doInBackground(ReactInstanceManager.java:218)
05-19 07:53:12.988 5735 5735 E AndroidRuntime: at com.facebook.react.ReactInstanceManager$ReactContextInitAsyncTask.doInBackground(ReactInstanceManager.java:197)
05-19 07:53:12.988 5735 5735 E AndroidRuntime: at android.os.AsyncTask$2.call(AsyncTask.java:295)
05-19 07:53:12.988 5735 5735 E AndroidRuntime: at java.util.concurrent.FutureTask.run(FutureTask.java:237)
05-19 07:53:12.988 5735 5735 E AndroidRuntime: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
05-19 07:53:12.988 5735 5735 E AndroidRuntime: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
05-19 07:53:12.988 5735 5735 E AndroidRuntime: at java.lang.Thread.run(Thread.java:818)
Additional Information
(The more info the faster we will be able to address it!)