strange bug with the latest triple version on a new windows
-
Hi,
I get a strange bug that triggers every time I try to load a game already started with the newest engine as well as older ones that were Play by Forum. It also triggers in a new game as soon as the game would reallly get going. So in the first round of Vasall rounds in TWW and before Combat move in Global 40. The bug message reads:
Apr 01, 2019 6:50:22 PM games.strategy.engine.framework.GameRunner lambda$start$0
SEVERE: null
java.lang.StackOverflowError
at java.util.zip.Deflater.deflate(Unknown Source)
at java.util.zip.Deflater.deflate(Unknown Source)
at java.util.zip.DeflaterOutputStream.deflate(Unknown Source)
at java.util.zip.DeflaterOutputStream.write(Unknown Source)
at java.util.zip.GZIPOutputStream.write(Unknown Source)
at java.io.ObjectOutputStream$BlockDataOutputStream.drain(Unknown Source)
at java.io.ObjectOutputStream$BlockDataOutputStream.setBlockDataMode(Unknown Source)
at java.io.ObjectOutputStream.writeObject0(Unknown Source)
at java.io.ObjectOutputStream.writeObject(Unknown Source)
at games.strategy.engine.data.GameDataComponent.writeObject(GameDataComponent.java:36)
And it goes on and on but it won't let me post it because it get's flagged as spam. -
Here's the error log:
[0_1554138983433_error.log](Uploading 100%)
-
And again as txt. So uploading it works:
error.txt -
@Gully Which Java version are you running on your newly installed windows?
-
@Gully
Hi, you're experiencing a very system-specific issue that we can't easily fix.
A StackOverflowError always means that the stack ran out of space (also the reason the error message is so long, it somehow has to take up all of the space).
I'd assume your error is happening when the game tries to create an auto-save.
There is a workaround to this that might do the trick.
If you go to the folder you installed TripleA to (usuallyC:\Program Files\TripleA
on Windows) you should find a file calledTripleA.vmoptions
. If you open this file with a Text editor (such as Notepad on windows), you can add a line-Xss4m
, save the file and check if the problem still exists. -
Thanks. That makes it go away. So what did I do by editing that file?
-
Well as I meantioned before this error occurs because the Stack runs out of space (hence the name StackOverflow).
By adding this line you increase the Stack size to 4 mb -
@Gully Out of curiosity, can you provide a bit more detail specs on your system and OS?
As @RoiEX mentioned, the error occurs because for some reason your system isn't allocating enough memory for the Java stack that TripleA uses by default so it runs of out space. Adding that line to the file sets an explicit amount of memory for the Java stack.
-
It's an ancient machine with singel core 3,4 GHz 4MB Ram and newly installled Windows 7
-
@Gully Ah. I'm guessing its just not cooperating well with Java given its that old.