triplea-game / triplea

TripleA is a turn based strategy game and board game engine, similar to Axis & Allies or Risk.
https://triplea-game.org/
GNU General Public License v3.0
1.3k stars 388 forks source link

2.5.22294: GameDataManager#saveGame:212 - java.io.IOException #11497

Closed tripleabuilderbot closed 1 day ago

tripleabuilderbot commented 1 year ago

Map

world_war_ii_classic

Log Message

Failed to save game to file: C:\Users\jbaco\triplea\savedGames\autoSave\autosaveAfterBattle.tsvg

TripleA Version

2.5.22294

Java Version

11.0.6

Operating System

Windows 10

Memory

Heap utilization statistics [MB] Used Memory: 114 Free memory: 1776 Total memory: 1890 Max memory: 1890

Stack Trace

Exception: java.io.IOExceptionThere is not enough space on the disk
java.lang.Exception
    at java.base/java.io.FileOutputStream.writeBytes(Native Method)
    at java.base/java.io.FileOutputStream.write(FileOutputStream.java:354)
    at java.base/java.io.BufferedOutputStream.write(BufferedOutputStream.java:123)
    at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1159)
    at org.apache.commons.io.IOUtils.copy(IOUtils.java:878)
    at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1135)
    at org.apache.commons.io.IOUtils.copy(IOUtils.java:854)
    at games.strategy.engine.framework.GameDataManager.saveGame(GameDataManager.java:212)
    at games.strategy.engine.framework.GameDataManager.saveGame(GameDataManager.java:177)
    at games.strategy.engine.framework.save.game.GameDataWriter.writeToOutputStream(GameDataWriter.java:68)
    at games.strategy.engine.framework.save.game.GameDataWriter.writeToFile(GameDataWriter.java:38)
    at games.strategy.engine.framework.ServerGame.saveGame(ServerGame.java:380)
    at games.strategy.engine.framework.ServerGame.autoSaveAfter(ServerGame.java:448)
    at games.strategy.engine.framework.ServerGame.runStep(ServerGame.java:435)
    at games.strategy.engine.framework.ServerGame.startGame(ServerGame.java:297)
    at games.strategy.engine.framework.startup.launcher.LocalLauncher.launchInternal(LocalLauncher.java:82)
    at games.strategy.engine.framework.startup.launcher.LocalLauncher.lambda$launch$0(LocalLauncher.java:56)
    at java.base/java.lang.Thread.run(Thread.java:834)
nilanjanH commented 1 year ago

@DanVanAtta - Been looking into this, the stack trace mentions at games.strategy.engine.framework.GameDataManager.saveGame(GameDataManager.java:212). But GameDataManager does not have 212 lines. Any idea if the stack trace itself might be faulty?

Thanks.

DanVanAtta commented 1 year ago

The code has evolved compared to this version of TripleA.

There should be a git tag for "2.5.22294" (for each version of TripleA created, we create a tag in git with that same version name). If you checkout the code at the tag "2.5.22294", the line numbers should match up exactly.