Fractal Softworks Forum

Starsector => Bug Reports & Support => Bug Reports & Support (modded) => Topic started by: Weltall on March 15, 2016, 11:19:44 AM

Title: Out of Memory Error: Java heap space
Post by: Weltall on March 15, 2016, 11:19:44 AM
Hello everyone. I hope you are all well today :)

Ok, even if I know why I am getting this, I still have to ask. Is the game nicely telling me to not make such a large Nexerelin map?

I am on 0.7.1a, but I doubt that is the problem. I wanted to test if my pc could handle the new Nexerelin options maximized. If I just play without saving, the game is fine without problems. After saving 3-4 times, the game decided that it is time to crash.

I have every possible faction Nexerelin can handle, with SS+ along too. Although as I have seen, the map size seems to have a larger impact than just having more factions.

This is the error;
Spoiler
Quote
2689814 [Thread-5] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Saving to ..\\saves/save_Holy_4115957125982356327...
3246371 [Thread-5] ERROR com.fs.starfarer.combat.CombatMain  - java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Java heap space
   at java.util.Arrays.copyOfRange(Unknown Source)
   at java.lang.StringBuffer.toString(Unknown Source)
   at com.thoughtworks.xstream.io.path.PathTracker.peekElement(PathTracker.java:133)
   at com.thoughtworks.xstream.io.path.PathTracker.getPath(PathTracker.java:169)
   at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:53)
   at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58)
   at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:84)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.mars hallField(AbstractReflectionConverter.java:256)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.writeField(AbstractReflectionConverter.java:232)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.<init>(AbstractReflectionConverter.java:195)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doMa rshal(AbstractReflectionConverter.java:141)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.mars hal(AbstractReflectionConverter.java:89)
   at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69)
   at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58)
   at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:84)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.mars hallField(AbstractReflectionConverter.java:256)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.writeField(AbstractReflectionConverter.java:232)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.<init>(AbstractReflectionConverter.java:195)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doMa rshal(AbstractReflectionConverter.java:141)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.mars hal(AbstractReflectionConverter.java:89)
   at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69)
   at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58)
   at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:43)
   at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:88)
   at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.wri teItem(AbstractCollectionConverter.java:64)
   at com.thoughtworks.xstream.converters.collections.MapConverter.marshal(MapConverter.java:79)
   at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69)
   at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58)
   at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:84)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.mars hallField(AbstractReflectionConverter.java:256)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.writeField(AbstractReflectionConverter.java:232)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.<init>(AbstractReflectionConverter.java:195)
[close]

I can't understand this, but I feel it is just telling me "tone down the planets or get more RAM!
Title: Re: Out of Memory Error: Java heap space
Post by: Alex on March 15, 2016, 11:24:11 AM
I am on 0.7.1a, but I doubt that is the problem.

It might be, as 0.7.2a fixed a memory leak.
Title: Re: Out of Memory Error: Java heap space
Post by: Weltall on March 19, 2016, 08:39:32 AM
Time to play on 0.7.2a XD But I am sure making such an enormous map contributes >> Thanks for the reply Alex :)

Edit
Indeed 0.7.2a does not have such a problem, even with a really huge map like I mentioned. Not to mention the whole game plays so much faster O.O Thanks once more :)