Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.5.22294: ObjectPropertyChange#readObject:43 - java.lang.OutOfMemoryError #10440

Closed
tripleabuilderbot opened this issue May 13, 2022 · 1 comment
Labels
Error Report Issue reported via the in-game error reporter

Comments

@tripleabuilderbot
Copy link
Contributor

User Description

Map- Another World
java.lang.OutOfMemoryError: Java heap space
I think the map has too many players (18) and it always runs out of memory.

Map

another_world

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: 1891
Free memory: 88
Total memory: 1979
Max memory: 1979

Stack Trace

Exception: java.lang.OutOfMemoryErrorJava heap space
java.lang.Exception
	at java.base/java.io.ObjectInputStream$HandleTable$HandleList.add(ObjectInputStream.java:4025)
	at java.base/java.io.ObjectInputStream$HandleTable.markDependency(ObjectInputStream.java:3844)
	at java.base/java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2412)
	at java.base/java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:600)
	at games.strategy.engine.data.changefactory.ObjectPropertyChange.readObject(ObjectPropertyChange.java:43)
	at jdk.internal.reflect.GeneratedMethodAccessor2197.invoke(Unknown Source)
	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 java.base/java.util.ArrayList.readObject(ArrayList.java:928)
	at java.base/jdk.internal.reflect.GeneratedMethodAccessor2191.invoke(Unknown Source)
	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.defaultReadFields(ObjectInputStream.java:2410)
	at java.base/java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2304)
	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.defaultReadFields(ObjectInputStream.java:2410)
	at java.base/java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2304)
	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)


@tripleabuilderbot tripleabuilderbot added the Error Report Issue reported via the in-game error reporter label May 13, 2022
@TheDog-GH
Copy link
Contributor

This is one of those maps that would benefit from an increase in values in TripleA.vmoptions file.
Another World has - lots of territories, triggers, players

See here
#9654
https://forums.triplea-game.org/topic/3076/java-faster-triplea-on-windows-10
https://forums.triplea-game.org/topic/524/how-to-increase-memory-for-triplea

This is my temporary fix, it works will for me and no one has posted a complaint
https://forums.triplea-game.org/topic/3133/get-ready-for-our-new-game-the-shogun-coming-soon

These maps benefit from the vmoptions increases
Warcraft: Hero Wars - very large map, lots of territories & triggers
The Shogun - very large map, lots of triggers, players & politics
270BC Wars - lots of triggers & players
War of the Relics - lots of triggers
Another World - lots of territories, triggers, players

Perhaps a fix could be at the install of TripleA test the users RAM and size the TripleA.vmoptions contents accordingly?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Error Report Issue reported via the in-game error reporter
Projects
None yet
Development

No branches or pull requests

3 participants