ERROR game.project:0 Java heap space when bundling with bob.jar

[Building x86_64-win32]
 2147483647% 1% 2% 3% 4% 5% 6% 7% 8% 9% 10% 11% 12% 13% 14% 15% 16% 17% 18% 19% 20% 21% 22% 23% 24% 25% 26% 27% 28% 29% 30% 31% 32% 33% 34% 35% 36% 37% 38% 39% 40% 41% 42% 43% 44% 45% 46% 47% 48% 49% 50% 51% 52% 53% 54% 55% 56% 57% 58% 59% 60% 61% 62% 63% 64% 65% 66% 67% 68% 69% 70% 71% 72% 73% 74% 75% 76% 77% 78% 79% 80% 81% 82% 83% 84% 85% 86% 87% 88% 89% 90% 91% 92% 93% 94% 95% 96% 97% 98% 99% 100%
The build failed for the following reasons:
ERROR game.project:0 Java heap space

Suddenly happening in a large project.

Tried to use openjdk and got this

The build failed for the following reasons:
ERROR builtins/fonts/system_font.font:0 (y + height) is outside of Raster

Trying to use the version of Java shipped with Defold editor now. ¯\_(ツ)_/¯

This worked! I guess I need to clear out all old Java versions and make sure the version Defold editor uses is properly installed…

I had to modify my bundle script too

bob() {
	java -Xmx4g -jar bob.jar $@
}

Yeah, we’re stuck with Oracle JDK 1.8 for bob unfortunately.

1 Like

Funny thing is, I had this same problem with (open) jdk 1.8, and it’s been gone since I started using openjdk 11.