-
Notifications
You must be signed in to change notification settings - Fork 162
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
Build: java.lang.OutOfMemoryError #821
Comments
If I increase the RAM allowed even more, then I simply get these minimal logs, not really saying what the problem is:
Passing Even changing
All logs suppressed. -- Only when I call directly:
That's when I get proper useful logs:
-- The location in |
I manually set the environment variable. I get the OutOfMemory error again, if I keep it at 1536m. If I increase to 2048, I get this...
-- I'm reading that I can only allocate 1.6GB if I'm using 32bit version of JVM or so. Is it what Bubblewrap downloads? Anyway - I assume we're not supposed to have to allocate so much memory, so this "OutOfMemory" must be a consequence of something else, but I haven't figured out what... -- EDIT - I've just created a new project... no changes at all... and still get "OutOfMemory". |
Alright... looks like it works with Docker (I used your Dockerfile) So I'll just keep building that way!! :) Thank you! (keeping this issue open anyway, in case there's some fix needed for Windows) |
It went a bit different for me.
|
Yeah, I recall getting that one too. |
I would like to add that in my case both the "OutOfMemory" and "Metaspace" errors vanished on PC restart after the fresh install of v1.21.0. Instead, the Bubblewrap started failing to generate an .aab bundle, though .apk gets generated successfully. The error given:
If it helps: Windows 10 64bit, 3.8GB usable RAM, jdk-11.0.20+8 32bit. |
I am pretty sure this might be only related to Windows. With the exact setup and versions, I was able to succeed in Linux. Not sure about Mac. |
Running a debian Linux machine, getting the same error for |
Describe the bug
Hi.
I'm looking to rebuild the TWA app I have, but I'm getting this every time:
I updated Bubblewrap to the latest version, removed the existing JDK and SDK and let Bubblewrap re-install the latest, and also deleted my app files (except the keystore), to let Bubblewrap rebuild everything from scratch.
So, it should be pretty clean!
I've also updated
gradlew.bat
:And this is what I have in
gradle.properties
:To Reproduce
..\node_modules\.bin\bubblewrap build
Expected behavior
Successful build.
Desktop:
Windows 11
Running on Visual Studio Code.
The text was updated successfully, but these errors were encountered: