It looks like your project does not fit in the available RAM.
First of all, make sure you've installed the 64-bit version of the editor. On Windows, the 32-bit editor is only able to address a fraction of the memory available to the 64-bit version.
The Defold editor will use a portion of the available memory, so the memory available to the editor on a 16GB machine will be larger than that on a computer with only 4GB of RAM. You can hack the editor to reserve a larger chunk by editing the config file in the directory where you installed Defold.
Under the [launcher] section, append -Xmx2048m, to the start of the vmargs setting like this:
vmargs = -Xmx2048m,-Djna.nosys=true,...
The 2048 value tells the editor how many megabytes of memory to reserve at startup. You can experiment with different values for 2048, and you might be able to get it to work that way. If you set it too low your project might not fit, but if you set it too high the editor might take precious memory from other applications and slow them down.
Expected behaviour
Build project
Actual behaviour
Stops with error: java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: Java heap space java.lang.OutOfMemoryError: Java heap space
Steps to reproduce
I was developing a game on GGJ 2019 on computer of my brother. Then i turn back home to my notebook and when i clone my project it can't build it.
It looks like your project does not fit in the available RAM.
First of all, make sure you've installed the 64-bit version of the editor. On Windows, the 32-bit editor is only able to address a fraction of the memory available to the 64-bit version.
The Defold editor will use a portion of the available memory, so the memory available to the editor on a 16GB machine will be larger than that on a computer with only 4GB of RAM. You can hack the editor to reserve a larger chunk by editing the
config
file in the directory where you installed Defold.Under the
[launcher]
section, append-Xmx2048m,
to the start of thevmargs
setting like this:The
2048
value tells the editor how many megabytes of memory to reserve at startup. You can experiment with different values for2048
, and you might be able to get it to work that way. If you set it too low your project might not fit, but if you set it too high the editor might take precious memory from other applications and slow them down.