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.35k stars 399 forks source link

2.5.22294: HistoryWriter#addToCurrent:109 - java.lang.OutOfMemoryError #8205

Closed tripleabuilderbot closed 2 years ago

tripleabuilderbot commented 3 years ago

Map

domination_1914_no_mans_land

Log Message

Error loading game data

TripleA Version

2.5.22294

Java Version

11.0.6

Operating System

Windows 10

Memory

Heap utilization statistics [MB] Used Memory: 1931 Free memory: 48 Total memory: 1979 Max memory: 1979

Stack Trace

Exception: java.lang.OutOfMemoryErrorJava heap space
java.lang.Exception
    at java.desktop/javax.swing.tree.DefaultTreeModel.getPathToRoot(DefaultTreeModel.java:437)
    at java.desktop/javax.swing.tree.DefaultTreeModel.getPathToRoot(DefaultTreeModel.java:439)
    at java.desktop/javax.swing.tree.DefaultTreeModel.getPathToRoot(DefaultTreeModel.java:439)
    at java.desktop/javax.swing.tree.DefaultTreeModel.getPathToRoot(DefaultTreeModel.java:405)
    at java.desktop/javax.swing.tree.DefaultTreeModel.nodesWereInserted(DefaultTreeModel.java:331)
    at java.desktop/javax.swing.tree.DefaultTreeModel.insertNodeInto(DefaultTreeModel.java:251)
    at games.strategy.engine.history.HistoryWriter.addToCurrent(HistoryWriter.java:109)
    at games.strategy.engine.history.HistoryWriter.addToAndSetCurrent(HistoryWriter.java:102)
    at games.strategy.engine.history.HistoryWriter.startEvent(HistoryWriter.java:130)
    at games.strategy.engine.history.EventHistorySerializer.write(EventHistorySerializer.java:16)
    at games.strategy.engine.history.SerializedHistory.readResolve(SerializedHistory.java:50)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at java.base/java.io.ObjectStreamClass.invokeReadResolve(ObjectStreamClass.java:1250)
    at java.base/java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2151)
    at java.base/java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1646)
    at java.base/java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2410)
    at java.base/java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:600)
    at games.strategy.engine.data.GameData.readObject(GameData.java:107)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at java.base/java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1160)
    at java.base/java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2271)
    at java.base/java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2142)
    at java.base/java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1646)
    at java.base/java.io.ObjectInputStream.readObject(ObjectInputStream.java:464)
    at java.base/java.io.ObjectInputStream.readObject(ObjectInputStream.java:422)
    at games.strategy.engine.framework.GameDataManager.loadGame(GameDataManager.java:77)
stale[bot] commented 3 years ago

I noticed there has not been much activity on this issue. Please check this issue and close it if it no longer applies. Otherwise to help move this issue move forward, please add a comment summarizing any further actions that need to be taken in order to resolve this issue.