-
Notifications
You must be signed in to change notification settings - Fork 24.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crashes on early setTimeout in forced Indexed ram-bundle mode on Android #25859
Comments
It looks like you are using an older version of React Native. Please update to the latest release, v0.60 and verify if the issue still exists. The "Resolution: Old Version" label will be removed automatically once you edit your original post with the results of running `react-native info` on a project using the latest release.
|
Cannot update to the blocking issue #25856 , directly related to this functionality. |
I am closing this issue because it does not appear to have been verified on the latest release, and there has been no followup in a while. If you found this thread after encountering the same issue in the latest release, please feel free to create a new issue with up-to-date information by clicking here. |
I wrote about why the issue cannot be tested on the latest version. There is another blocker linked to this issue. |
This suggestion of @noomorph is working!!! True live saver you are. My project is running on RN0.59.10. Works in DEBUG but crashes in Release Mode. Crashed the second during startup. It is rather difficult to find out what's the issue is, until you "adb install" the bundled apk into your simulator and use "adb logcat *:E" to detect it. Problem:
Solution:As suggested above, adding "bundleCommand: "ram-bundle" into "~/android/app/build.gradle" does help! My build.gradle file looks like below:
Thanks @noomorph |
@padlock98 for me, it works on release, but no in debug u.u adding a bundleCommand doesn't work |
I am having this issue on 0.62.2 |
Adding
setTimeout
early in code causes app to crash on start. See:https://github.com/noomorph/IndexedRamBundleBug59_10/blob/357a24e9375ecb51eede36bdea3f2009616abf6f/index.js#L9
The issue can be reproduced only in forced indexed ram-bundle mode on Android.
Unfortunately, I cannot use RN 0.60.4 to report this issue because of another blocking bug that hinders me: #25856 .
While it is obvious that that is a bit exotic use case, it is still not clear whether that is a tip of the greater iceberg or indeed some minor wont-fix issue.
Comparison of ADB logcat dumps:
React Native version:
Steps To Reproduce
Nexus_5X_API_28
for x86_64)git clone [email protected]:noomorph/IndexedRamBundleBug59_10.git
cd IndexedRamBundleBug59_10
npm install
cd android
./gradlew installRelease
Describe what you expected to happen:
App should run without crashing as if it were bundled in file-based RAM bundle mode.
I mean that if I disable indexed ram bundle, it works as usual, fine, without crashes:
Snack, code example, screenshot, or link to a repository:
https://github.com/noomorph/IndexedRamBundleBug59_10
The text was updated successfully, but these errors were encountered: