-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
The build hangs at :app:bundleReleaseJsAndAssets when "./gradlew assembleRelease" is used #11696
Comments
@facebook-github-bot stack-overflow |
If you need a work around, i had issues with this as well and ended up bundling the js manually first with
and then ignoring the gradle task with
|
You can limit the amount of React Native workers when bundling if you are having memory issues. To set a limit add the following environment variable: export REACT_NATIVE_MAX_WORKERS=2 |
@facebook-github-bot answered |
Closing this issue as @AndrewJack says the question asked has been answered. Please help us by asking questions on StackOverflow. StackOverflow is amazing for Q&A: it has a reputation system, voting, the ability to mark a question as answered. Because of the reputation system it is likely the community will see and answer your question there. This also helps us use the GitHub bug tracker for bugs only. |
This is NOT closed in the sense of "solved". I have this problem, and setting the environment variable had no effect. |
I'm having the same issue |
Same issue here on latest react-native 0.46.4 I don't have the realm files on project root |
For me this issue only appears when I have a packager instance running and try to build the app via |
Quitting the packager and |
Any updates? Having this issue for all 0.48.x revisions |
Hi, I ended up solving this issue, and turned what I learned into a medium article that addresses this and related issues. |
Thanks, @cbpetersen, your suggestions worked with some minor changes. |
My ubuntu just freezes sometimes at @SPATAN18 what changes? |
Where would you set this export |
Noticed this problem as well after mac OSX firmware security update where my machine bugged out when booting back up (saw multiple apple icons, and other jank). Not sure what the problem is but experiencing hang on bundle[buildType]JSAndAssets. |
In addition, seems like i'm having issues with stuff being removed?
|
Looks like rm -r default.realm.* did it for me |
fastlane hangs on |
try this https://stackoverflow.com/a/48917899/3645698 |
Description
[I just ran ./gradlew assembleRelease from the ../android folder. The expectation is for the build to finish, but the build hangs for indefinite amount of time and fails with FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - process out of memory. This is a major blocker]
Reproduction
[In the project root folder, cd android, ./gradlew assembleRelease]
Solution
[A way to run the builds faster]
Additional Information
The text was updated successfully, but these errors were encountered: