Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Starsector 0.95.1a is out! (12/10/21); Blog post: Hyperspace Topography (10/12/22)

Author Topic: Multiple mods - after hours of play crash while saving.  (Read 6304 times)

Reh

  • Ensign
  • *
  • Posts: 37
    • View Profile
Multiple mods - after hours of play crash while saving.
« on: November 15, 2014, 06:51:38 AM »

Hi

I'm running 9 mods altogether - Version checker 1.2, ShaderLib 1.01, TwigLib 0.5.1p, LazyLib 2.0b, ICE 0.3.2, Interstellar Imperium 1.5, Scy 0.8, Shadowyards 0.5.2.2 and The Knights Templar 0.9.3.

I was having an ABSOLUTE BLAST with it all, no problem saving and loading, found a monitor and medusa fairly early in the game, went from rags to riches and back to rags, and then had to sell even the rags. I binge played the pixels out of this game like I never had before.

After level 21 the game crashed while saving and I was unable to load the save since then. The last lines in log are:

Spoiler
106032 [Thread-12] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading progress: 0.4882837
109379 [Thread-12] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading progress: 0.4882837
111892 [Thread-12] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading progress: 0.48844516
116112 [Thread-5] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Error loading
116291 [Thread-5] ERROR com.fs.starfarer.campaign.save.CampaignGameManager  - Java heap space
java.lang.OutOfMemoryError: Java heap space
   at java.lang.String.substring(Unknown Source)
   at com.thoughtworks.xstream.io.path.Path.normalize(Path.java:93)
   at com.thoughtworks.xstream.io.path.Path.<init>(Path.java:76)
   at com.thoughtworks.xstream.core.ReferenceByXPathUnmarshaller.getReferenceKey(ReferenceByXPathUnmarshaller.java:35)
   at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:55)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unma rshallField(AbstractReflectionConverter.java:355)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUn marshal(AbstractReflectionConverter.java:306)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unma rshal(AbstractReflectionConverter.java:234)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
   at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50)
   at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.rea dItem(AbstractCollectionConverter.java:71)
   at com.thoughtworks.xstream.converters.collections.CollectionConverter.addCurrentE lementToCollection(CollectionConverter.java:79)
   at com.thoughtworks.xstream.converters.collections.CollectionConverter.populateCol lection(CollectionConverter.java:72)
   at com.thoughtworks.xstream.converters.collections.CollectionConverter.populateCol lection(CollectionConverter.java:66)
   at com.thoughtworks.xstream.converters.collections.CollectionConverter.unmarshal(CollectionConverter.java:61)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
   at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unma rshallField(AbstractReflectionConverter.java:355)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUn marshal(AbstractReflectionConverter.java:306)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unma rshal(AbstractReflectionConverter.java:234)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
   at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unma rshallField(AbstractReflectionConverter.java:355)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUn marshal(AbstractReflectionConverter.java:306)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unma rshal(AbstractReflectionConverter.java:234)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
   at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
116292 [Thread-5] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading stage 11
116292 [Thread-5] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading stage 12
116292 [Thread-5] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading stage 13
116292 [Thread-5] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading stage 14
116300 [Thread-12] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading progress: 0.48844516
116300 [Thread-12] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Releasing context
116300 [Thread-12] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Released context
116300 [Thread-5] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading stage 15
116300 [Thread-5] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading stage 16
116304 [Thread-5] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading stage 17
116304 [Thread-5] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading stage 18
116304 [Thread-5] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading stage 19
116304 [Thread-5] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading stage 20
[close]

The save loads about halfway through and then SS either crashes or the game says "unable to load the save"

I'd greatly appreciate any help or input.

Thanks

Reh
Logged

Debido

  • Admiral
  • *****
  • Posts: 1183
    • View Profile
Re: Multiple mods - after hours of play crash while saving.
« Reply #1 on: November 15, 2014, 07:07:28 AM »

You ran out of memory trying to load the save it would see. This doesn't really ever happen in the vanilla game, but with enough mods yeah it can. Most often people with 8gb of ram and a 64-bit version of windows or Linux etc. will point Starsector to their 64 bit Java runtime environment which can access more ram.

also make sure you have the latest version of SS, it halves the required amount of memory while loading a game.
Logged

Reh

  • Ensign
  • *
  • Posts: 37
    • View Profile
Re: Multiple mods - after hours of play crash while saving.
« Reply #2 on: November 15, 2014, 07:16:03 AM »

Thanks a lot.

I have the latest SS - 0.65.1a.

How do I point SS to 64 Java runtime?

Edit:

Btw I'm on win 7 64 with 16gb ram and 1gb gpu

Going by what I found in the forums I've copied the java 64 files into the SS jre folder, and put xms2048 xmx 2048 in vmparams. Now the loading progress bar fills in entirely but in the end I get the same - error loading a saved game - message.

The last lines in log now are:

Spoiler
74311 [Thread-12] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading progress: 0.98704934
74329 [Thread-12] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading progress: 0.9915704
74340 [Thread-5] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Error loading
74341 [Thread-5] ERROR com.fs.starfarer.campaign.save.CampaignGameManager  -  : ParseError at [row,col]:[1053408,271]
Message: Premature end of file. :  : ParseError at [row,col]:[1053408,271]
Message: Premature end of file.
---- Debugging information ----
message             :  : ParseError at [row,col]:[1053408,271]
Message: Premature end of file.
cause-exception     : com.thoughtworks.xstream.io.StreamException
cause-message       :  : ParseError at [row,col]:[1053408,271]
Message: Premature end of file.
class               : com.fs.starfarer.rpg.Person
required-type       : com.fs.starfarer.rpg.Person
converter-type      : com.thoughtworks.xstream.converters.reflection.ReflectionConverter
path                : /CampaignEngine/uiData/intelData/messages/com.fs.starfarer.campaign.comms.CommMessage[441]/customData/smallTraders/CampaignFleet[4]/mostExpensiveShip/captain
line number         : 1053408
class[1]            : com.fs.starfarer.campaign.fleet.FleetMember
class[2]            : com.fs.starfarer.campaign.fleet.CampaignFleet
class[3]            : java.util.ArrayList
converter-type[1]   : com.thoughtworks.xstream.converters.collections.CollectionConverter
class[4]            : com.fs.starfarer.api.impl.campaign.events.FoodShortageEvent
class[5]            : com.fs.starfarer.campaign.comms.CommMessage
class[6]            : com.fs.starfarer.campaign.comms.IntelTabData
class[7]            : com.fs.starfarer.campaign.CampaignUIPersistentData
class[8]            : com.fs.starfarer.campaign.CampaignEngine
converter-type[2]   : com.fs.starfarer.campaign.save.int
version             : null
-------------------------------
com.thoughtworks.xstream.converters.ConversionException:  : ParseError at [row,col]:[1053408,271]
Message: Premature end of file. :  : ParseError at [row,col]:[1053408,271]
Message: Premature end of file.
---- Debugging information ----
message             :  : ParseError at [row,col]:[1053408,271]
Message: Premature end of file.
cause-exception     : com.thoughtworks.xstream.io.StreamException
cause-message       :  : ParseError at [row,col]:[1053408,271]
Message: Premature end of file.
class               : com.fs.starfarer.rpg.Person
required-type       : com.fs.starfarer.rpg.Person
converter-type      : com.thoughtworks.xstream.converters.reflection.ReflectionConverter
path                : /CampaignEngine/uiData/intelData/messages/com.fs.starfarer.campaign.comms.CommMessage[441]/customData/smallTraders/CampaignFleet[4]/mostExpensiveShip/captain
line number         : 1053408
class[1]            : com.fs.starfarer.campaign.fleet.FleetMember
class[2]            : com.fs.starfarer.campaign.fleet.CampaignFleet
class[3]            : java.util.ArrayList
converter-type[1]   : com.thoughtworks.xstream.converters.collections.CollectionConverter
class[4]            : com.fs.starfarer.api.impl.campaign.events.FoodShortageEvent
class[5]            : com.fs.starfarer.campaign.comms.CommMessage
class[6]            : com.fs.starfarer.campaign.comms.IntelTabData
class[7]            : com.fs.starfarer.campaign.CampaignUIPersistentData
class[8]            : com.fs.starfarer.campaign.CampaignEngine
converter-type[2]   : com.fs.starfarer.campaign.save.int
version             : null
-------------------------------
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:79)
   at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unma rshallField(AbstractReflectionConverter.java:355)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUn marshal(AbstractReflectionConverter.java:306)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unma rshal(AbstractReflectionConverter.java:234)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
   at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unma rshallField(AbstractReflectionConverter.java:355)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUn marshal(AbstractReflectionConverter.java:306)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unma rshal(AbstractReflectionConverter.java:234)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
   at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50)
   at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.rea dItem(AbstractCollectionConverter.java:71)
   at com.thoughtworks.xstream.converters.collections.CollectionConverter.addCurrentE lementToCollection(CollectionConverter.java:79)
   at com.thoughtworks.xstream.converters.collections.CollectionConverter.populateCol lection(CollectionConverter.java:72)
   at com.thoughtworks.xstream.converters.collections.CollectionConverter.populateCol lection(CollectionConverter.java:66)
   at com.thoughtworks.xstream.converters.collections.CollectionConverter.unmarshal(CollectionConverter.java:61)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
   at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unma rshallField(AbstractReflectionConverter.java:355)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUn marshal(AbstractReflectionConverter.java:306)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unma rshal(AbstractReflectionConverter.java:234)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
   at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unma rshallField(AbstractReflectionConverter.java:355)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUn marshal(AbstractReflectionConverter.java:306)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unma rshal(AbstractReflectionConverter.java:234)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
   at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50)
   at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.rea dItem(AbstractCollectionConverter.java:71)
   at com.thoughtworks.xstream.converters.collections.CollectionConverter.addCurrentE lementToCollection(CollectionConverter.java:79)
   at com.thoughtworks.xstream.converters.collections.CollectionConverter.populateCol lection(CollectionConverter.java:72)
   at com.thoughtworks.xstream.converters.collections.CollectionConverter.populateCol lection(CollectionConverter.java:66)
   at com.thoughtworks.xstream.converters.collections.CollectionConverter.unmarshal(CollectionConverter.java:61)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
   at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unma rshallField(AbstractReflectionConverter.java:355)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUn marshal(AbstractReflectionConverter.java:306)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unma rshal(AbstractReflectionConverter.java:234)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
   at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unma rshallField(AbstractReflectionConverter.java:355)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUn marshal(AbstractReflectionConverter.java:306)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unma rshal(AbstractReflectionConverter.java:234)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
   at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unma rshallField(AbstractReflectionConverter.java:355)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUn marshal(AbstractReflectionConverter.java:306)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unma rshal(AbstractReflectionConverter.java:234)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
   at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:134)
   at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:32)
   at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1052)
   at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1036)
   at com.thoughtworks.xstream.XStream.fromXML(XStream.java:921)
   at com.fs.starfarer.campaign.save.CampaignGameManager.o00000(Unknown Source)
   at com.fs.starfarer.title.B.dialogDismissed(Unknown Source)
   at com.fs.starfarer.ui.oO0O.dismiss(Unknown Source)
   at com.fs.starfarer.ui.impl.J.dismiss(Unknown Source)
   at com.fs.starfarer.campaign.save.LoadGameDialog.actionPerformed(Unknown Source)
   at com.fs.starfarer.ui.thisnew.super(Unknown Source)
   at com.fs.starfarer.ui.null.processInput(Unknown Source)
   at com.fs.starfarer.ui.O0Oo.o00000(Unknown Source)
   at com.fs.starfarer.B.void.class$super(Unknown Source)
   at com.fs.A.oOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOOOO.?0000(Unknown Source)
   at com.fs.starfarer.combat.O0OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO.super(Unknown Source)
   at com.fs.starfarer.StarfarerLauncher$2.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)
Caused by: com.thoughtworks.xstream.io.StreamException:  : ParseError at [row,col]:[1053408,271]
Message: Premature end of file.
   at com.thoughtworks.xstream.io.xml.StaxReader.pullNextEvent(StaxReader.java:73)
   at com.thoughtworks.xstream.io.xml.AbstractPullReader.readRealEvent(AbstractPullReader.java:148)
   at com.thoughtworks.xstream.io.xml.AbstractPullReader.readEvent(AbstractPullReader.java:135)
   at com.thoughtworks.xstream.io.xml.AbstractPullReader.hasMoreChildren(AbstractPullReader.java:87)
   at com.thoughtworks.xstream.io.ReaderWrapper.hasMoreChildren(ReaderWrapper.java:32)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUn marshal(AbstractReflectionConverter.java:281)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unma rshal(AbstractReflectionConverter.java:234)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
   ... 81 more
Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1053408,271]
Message: Premature end of file.
   at com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.next(Unknown Source)
   at com.thoughtworks.xstream.io.xml.StaxReader.pullNextEvent(StaxReader.java:58)
   ... 88 more
74342 [Thread-5] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading stage 11
74342 [Thread-5] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading stage 12
74342 [Thread-5] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading stage 13
74342 [Thread-5] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading stage 14
74346 [Thread-12] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading progress: 0.99835193
74346 [Thread-12] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Releasing context
74346 [Thread-12] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Released context
74346 [Thread-5] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading stage 15
74346 [Thread-5] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading stage 16
[close]
« Last Edit: November 15, 2014, 07:43:26 AM by Reh »
Logged

Tartiflette

  • Admiral
  • *****
  • Posts: 3517
  • MagicLab discord: https://discord.gg/EVQZaD3naU
    • View Profile
Re: Multiple mods - after hours of play crash while saving.
« Reply #3 on: November 15, 2014, 07:39:13 AM »

Take a look here:
http://fractalsoftworks.com/forum/index.php?topic=6053.msg120109#msg120109

I'm not sure about your level of understanding but, If you're using a 64-bit system you may need to modify and run the game from the batch file located in your starsector-core folder. Mine looks like this:

"C:\Program Files\Java\jre7\bin\java.exe" -server -XX:CompilerThreadPriority=1 -XX:+CompilerThreadHintNoPreempt -Djava.util.Arrays.useLegacyMergeSort=true -Djava.library.path=native\windows -Xms512m -Xmx5g -Dcom.fs.starfarer.settings.paths.logs=. -Dcom.fs.starfarer.settings.paths.saves=saves -Dcom.fs.starfarer.settings.paths.screenshots=screenshots -Dcom.fs.starfarer.settings.paths.mods=mods -classpath janino.jar;commons-compiler.jar;commons-compiler-jdk.jar;starfarer.res.jar;starfarer.api.jar;starfarer_obf.jar;jogg-0.0.7.jar;jorbis-0.0.15.jar;json.jar;lwjgl.jar;lwjgl_util_applet.jar;jinput.jar;lwjgl_test.jar;log4j-1.2.9.jar;lwjgl_util.jar;fs.sound_obf.jar;fs.common_obf.jar;xstream-1.4.2.jar com.fs.starfarer.StarfarerLauncher

The REALLY important part which is right at the beginning is this:

"C:\Program Files\Java\jre7\bin\java.exe"

Which points starsector at your 64-bit java. As starsector uses it's own native environment and is not supposed to run the level of crazy that's involved with exerelin.

And this:

-Xms512m -Xmx5g

Which tells Java how much memory should be applied to starsector. Really important as exerelin needs (from what I've discovered) at least 5g of ram to run at the max of everything and still be able to save and run at more than one fps on the strategic map.
Logged
 

Reh

  • Ensign
  • *
  • Posts: 37
    • View Profile
Re: Multiple mods - after hours of play crash while saving.
« Reply #4 on: November 15, 2014, 07:59:25 AM »

Thanks guys!

I've directed SS to java 64 and I've tried various combinations of xms/xmx: xms 2048 xmx 2048, and xms2048 xmx6g, xmx1024 xms8g. I've tried doing this through vmparams and the batch file. The stuttering while loading the game is gone, but in the end I get the "error loading a saved game" message.


The end of log now looks like this:

Spoiler
48795 [Thread-12] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading progress: 0.99027866
48805 [Thread-12] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading progress: 0.99415386
48818 [Thread-5] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Error loading
48819 [Thread-12] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading progress: 0.9973831
48819 [Thread-12] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Releasing context
48819 [Thread-12] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Released context
48819 [Thread-5] ERROR com.fs.starfarer.campaign.save.CampaignGameManager  -  : ParseError at [row,col]:[1053408,271]
Message: Premature end of file. :  : ParseError at [row,col]:[1053408,271]
Message: Premature end of file.
---- Debugging information ----
message             :  : ParseError at [row,col]:[1053408,271]
Message: Premature end of file.
cause-exception     : com.thoughtworks.xstream.io.StreamException
cause-message       :  : ParseError at [row,col]:[1053408,271]
Message: Premature end of file.
class               : com.fs.starfarer.rpg.Person
required-type       : com.fs.starfarer.rpg.Person
converter-type      : com.thoughtworks.xstream.converters.reflection.ReflectionConverter
path                : /CampaignEngine/uiData/intelData/messages/com.fs.starfarer.campaign.comms.CommMessage[441]/customData/smallTraders/CampaignFleet[4]/mostExpensiveShip/captain
line number         : 1053408
class[1]            : com.fs.starfarer.campaign.fleet.FleetMember
class[2]            : com.fs.starfarer.campaign.fleet.CampaignFleet
class[3]            : java.util.ArrayList
converter-type[1]   : com.thoughtworks.xstream.converters.collections.CollectionConverter
class[4]            : com.fs.starfarer.api.impl.campaign.events.FoodShortageEvent
class[5]            : com.fs.starfarer.campaign.comms.CommMessage
class[6]            : com.fs.starfarer.campaign.comms.IntelTabData
class[7]            : com.fs.starfarer.campaign.CampaignUIPersistentData
class[8]            : com.fs.starfarer.campaign.CampaignEngine
converter-type[2]   : com.fs.starfarer.campaign.save.int
version             : null
-------------------------------
com.thoughtworks.xstream.converters.ConversionException:  : ParseError at [row,col]:[1053408,271]
Message: Premature end of file. :  : ParseError at [row,col]:[1053408,271]
Message: Premature end of file.
---- Debugging information ----
message             :  : ParseError at [row,col]:[1053408,271]
Message: Premature end of file.
cause-exception     : com.thoughtworks.xstream.io.StreamException
cause-message       :  : ParseError at [row,col]:[1053408,271]
Message: Premature end of file.
class               : com.fs.starfarer.rpg.Person
required-type       : com.fs.starfarer.rpg.Person
converter-type      : com.thoughtworks.xstream.converters.reflection.ReflectionConverter
path                : /CampaignEngine/uiData/intelData/messages/com.fs.starfarer.campaign.comms.CommMessage[441]/customData/smallTraders/CampaignFleet[4]/mostExpensiveShip/captain
line number         : 1053408
class[1]            : com.fs.starfarer.campaign.fleet.FleetMember
class[2]            : com.fs.starfarer.campaign.fleet.CampaignFleet
class[3]            : java.util.ArrayList
converter-type[1]   : com.thoughtworks.xstream.converters.collections.CollectionConverter
class[4]            : com.fs.starfarer.api.impl.campaign.events.FoodShortageEvent
class[5]            : com.fs.starfarer.campaign.comms.CommMessage
class[6]            : com.fs.starfarer.campaign.comms.IntelTabData
class[7]            : com.fs.starfarer.campaign.CampaignUIPersistentData
class[8]            : com.fs.starfarer.campaign.CampaignEngine
converter-type[2]   : com.fs.starfarer.campaign.save.int
version             : null
-------------------------------
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:79)
   at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unma rshallField(AbstractReflectionConverter.java:355)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUn marshal(AbstractReflectionConverter.java:306)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unma rshal(AbstractReflectionConverter.java:234)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
   at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unma rshallField(AbstractReflectionConverter.java:355)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUn marshal(AbstractReflectionConverter.java:306)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unma rshal(AbstractReflectionConverter.java:234)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
   at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50)
   at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.rea dItem(AbstractCollectionConverter.java:71)
   at com.thoughtworks.xstream.converters.collections.CollectionConverter.addCurrentE lementToCollection(CollectionConverter.java:79)
   at com.thoughtworks.xstream.converters.collections.CollectionConverter.populateCol lection(CollectionConverter.java:72)
   at com.thoughtworks.xstream.converters.collections.CollectionConverter.populateCol lection(CollectionConverter.java:66)
   at com.thoughtworks.xstream.converters.collections.CollectionConverter.unmarshal(CollectionConverter.java:61)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
   at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unma rshallField(AbstractReflectionConverter.java:355)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUn marshal(AbstractReflectionConverter.java:306)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unma rshal(AbstractReflectionConverter.java:234)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
   at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unma rshallField(AbstractReflectionConverter.java:355)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUn marshal(AbstractReflectionConverter.java:306)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unma rshal(AbstractReflectionConverter.java:234)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
   at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50)
   at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.rea dItem(AbstractCollectionConverter.java:71)
   at com.thoughtworks.xstream.converters.collections.CollectionConverter.addCurrentE lementToCollection(CollectionConverter.java:79)
   at com.thoughtworks.xstream.converters.collections.CollectionConverter.populateCol lection(CollectionConverter.java:72)
   at com.thoughtworks.xstream.converters.collections.CollectionConverter.populateCol lection(CollectionConverter.java:66)
   at com.thoughtworks.xstream.converters.collections.CollectionConverter.unmarshal(CollectionConverter.java:61)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
   at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unma rshallField(AbstractReflectionConverter.java:355)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUn marshal(AbstractReflectionConverter.java:306)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unma rshal(AbstractReflectionConverter.java:234)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
   at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unma rshallField(AbstractReflectionConverter.java:355)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUn marshal(AbstractReflectionConverter.java:306)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unma rshal(AbstractReflectionConverter.java:234)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
   at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unma rshallField(AbstractReflectionConverter.java:355)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUn marshal(AbstractReflectionConverter.java:306)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unma rshal(AbstractReflectionConverter.java:234)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
   at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:134)
   at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:32)
   at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1052)
   at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1036)
   at com.thoughtworks.xstream.XStream.fromXML(XStream.java:921)
   at com.fs.starfarer.campaign.save.CampaignGameManager.o00000(Unknown Source)
   at com.fs.starfarer.title.B.dialogDismissed(Unknown Source)
   at com.fs.starfarer.ui.oO0O.dismiss(Unknown Source)
   at com.fs.starfarer.ui.impl.J.dismiss(Unknown Source)
   at com.fs.starfarer.campaign.save.LoadGameDialog.actionPerformed(Unknown Source)
   at com.fs.starfarer.ui.thisnew.super(Unknown Source)
   at com.fs.starfarer.ui.null.processInput(Unknown Source)
   at com.fs.starfarer.ui.O0Oo.o00000(Unknown Source)
   at com.fs.starfarer.B.void.class$super(Unknown Source)
   at com.fs.A.oOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOOOO.?0000(Unknown Source)
   at com.fs.starfarer.combat.O0OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO.super(Unknown Source)
   at com.fs.starfarer.StarfarerLauncher$2.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)
Caused by: com.thoughtworks.xstream.io.StreamException:  : ParseError at [row,col]:[1053408,271]
Message: Premature end of file.
   at com.thoughtworks.xstream.io.xml.StaxReader.pullNextEvent(StaxReader.java:73)
   at com.thoughtworks.xstream.io.xml.AbstractPullReader.readRealEvent(AbstractPullReader.java:148)
   at com.thoughtworks.xstream.io.xml.AbstractPullReader.readEvent(AbstractPullReader.java:135)
   at com.thoughtworks.xstream.io.xml.AbstractPullReader.hasMoreChildren(AbstractPullReader.java:87)
   at com.thoughtworks.xstream.io.ReaderWrapper.hasMoreChildren(ReaderWrapper.java:32)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUn marshal(AbstractReflectionConverter.java:281)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unma rshal(AbstractReflectionConverter.java:234)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
   ... 81 more
Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1053408,271]
Message: Premature end of file.
   at com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.next(Unknown Source)
   at com.thoughtworks.xstream.io.xml.StaxReader.pullNextEvent(StaxReader.java:58)
   ... 88 more
48822 [Thread-5] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading stage 11
48822 [Thread-5] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading stage 12
48822 [Thread-5] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading stage 13
[close]
Logged

Debido

  • Admiral
  • *****
  • Posts: 1183
    • View Profile
Re: Multiple mods - after hours of play crash while saving.
« Reply #5 on: November 15, 2014, 08:24:32 AM »

I'm no expert, but it looks like it didn't save it properly in the first place, it may have been having memory issues already when you tried to save and it crashed mid ave. So either way your save is corrupted. Sorry buddy. You may want to get Lazys console commands. Create a new game and give yourself all the stuff you had just prior to the crash using the console.
Logged

Reh

  • Ensign
  • *
  • Posts: 37
    • View Profile
Re: Multiple mods - after hours of play crash while saving.
« Reply #6 on: November 15, 2014, 08:28:12 AM »

Yeah, I kind of expected that since the last save crashed midway through. The good news is that perhaps it won't happen again with java 64.

Good idea with the console mod.

Thanks for your help guys!
Logged

Tartiflette

  • Admiral
  • *****
  • Posts: 3517
  • MagicLab discord: https://discord.gg/EVQZaD3naU
    • View Profile
Re: Multiple mods - after hours of play crash while saving.
« Reply #7 on: November 15, 2014, 08:57:46 AM »

You can always try to restore the previous save. The game keep a backup of the last save before overwriting. In you save folder there should be two ".zip.bak" and ".xml.bak" files. just remove the recent save and restore the extensions to .xml and .zip.
At worst you only lost the progress since your last save.
Logged
 

Reh

  • Ensign
  • *
  • Posts: 37
    • View Profile
Re: Multiple mods - after hours of play crash while saving.
« Reply #8 on: November 15, 2014, 09:03:15 AM »

You can always try to restore the previous save. The game keep a backup of the last save before overwriting. In you save folder there should be two ".zip.bak" and ".xml.bak" files. just remove the recent save and restore the extensions to .xml and .zip.
At worst you only lost the progress since your last save.

It worked!!!  :-*
I had no idea about the backup save files.
Logged