Assuming you're running in Docker, this means you're running out of memory.
An initial fix you should apply is to put -Xmx40m
in your player/run.sh
; see the examplefuncsplayer-java/run.sh
from the current scaffold for how this should work.
Depending on how your code works, this may fix the problem. However, in some cases you may need to tune the number to be lower (for example, -Xmx10m
).
Note that you should NOT set -Xmx256m
or -Xmx512m
; if you're curious, see the next section of this document for why setting the number so low is necessary.
In the game running interface, you can also set Player memory limit (in mb)
to 512
instead of 256
. In the next release we will set this to be the default, and raise the memory limit in the scrimmage servers. This should give you a little more breathing room. We'll also be tuning the engine to use less memory, c