defold / editor2-issues

DEPRECATED
44 stars 4 forks source link

Can't build project on my old notebook #2427

Closed crewsycrews closed 5 years ago

crewsycrews commented 5 years ago

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.


Build time2019-01-10T10:42:34.806706
Defold channeleditor-alpha
Defold editor shae064eb3537e95db69e4882fd990b46c41d3d25c2
Defold engine sha8def4b50c9aa049670e698d7dff3dc00d77e42d5
Defold version1.2.144
Errore7c1a4d5c2764a7fb6a12f0bb2e69e1c
GPUATI Mobility Radeon HD 5470
GPU Driver4.0.10242 Compatibility Profile Context
Java version1.8.0_102-b14
OS archamd64
OS nameWindows 7
OS version6.1
matgis-king commented 5 years ago

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.