Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Pages: [1] 2

Author Topic: Loading Save File Issue  (Read 8123 times)

Psiyon

  • Admiral
  • *****
  • Posts: 772
  • Trippy
    • View Profile
Loading Save File Issue
« on: October 20, 2014, 10:25:44 PM »

Seems like in the new version, after you've been playing for a while, it becomes impossible to load a save file--any save file. It'll load up until about 3/4s of the loading bar, then it'll slow way down, the game will lag extremely hard, and then after ~30 seconds or so it'll pop up and say the save can't be loaded because it's corrupted or something.

>Had been playing for about ~3 hours straight, so my guess is something related to memory.

>Saves loaded fine when I closed out of the game and loaded them in a new session.
Logged

Midnight Kitsune

  • Admiral
  • *****
  • Posts: 2847
  • Your Friendly Forum Friend
    • View Profile
Re: Loading Save File Issue
« Reply #1 on: October 20, 2014, 10:38:19 PM »

I also have noticed that the game slows down as you play, eventually forcing a restart
Logged
Help out MesoTroniK, a modder in need

2021 is 2020 won
2022 is 2020 too

TJJ

  • Admiral
  • *****
  • Posts: 1905
    • View Profile
Re: Loading Save File Issue
« Reply #2 on: October 21, 2014, 01:37:45 AM »

On a related note; if a save fails to load, the main menu background scenario seems to break - ships stop spawning.
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 24111
    • View Profile
Re: Loading Save File Issue
« Reply #3 on: October 21, 2014, 07:49:02 AM »

Hmm. Could you post the exception stack trace that's in the log file after a game fails to load?

Also, just for reference, about what game date did this happen?
Logged

Psiyon

  • Admiral
  • *****
  • Posts: 772
  • Trippy
    • View Profile
Re: Loading Save File Issue
« Reply #4 on: October 21, 2014, 11:21:36 AM »

The error from the log file:
Spoiler
Code
11932685 [Thread-5] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading C:\Program Files\Fractal Softworks\Starsector065\starsector-core\..\saves\save_Desktopreal_2076885859683829852...
11969566 [Thread-5] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Error loading
11970020 [Thread-5] ERROR com.fs.starfarer.campaign.save.CampaignGameManager  - Could not call com.fs.starfarer.campaign.fleet.FleetMember.readResolve() : Java heap space : Could not call com.fs.starfarer.campaign.fleet.FleetMember.readResolve() : Java heap space
---- Debugging information ----
message             : Could not call com.fs.starfarer.campaign.fleet.FleetMember.readResolve() : Java heap space
cause-exception     : com.thoughtworks.xstream.converters.reflection.ObjectAccessException
cause-message       : Could not call com.fs.starfarer.campaign.fleet.FleetMember.readResolve() : Java heap space
class               : com.fs.starfarer.campaign.fleet.FleetMember
required-type       : com.fs.starfarer.campaign.fleet.FleetMember
converter-type      : com.thoughtworks.xstream.converters.reflection.ReflectionConverter
path                : /CampaignEngine/modAndPluginData/persistentData/entry/com.fs.starfarer.api.impl.campaign.shared.SharedData/activityTracker/trackers/entry[2]/com.fs.starfarer.api.impl.campaign.shared.StarSystemActivityTracker/seen/items/com.fs.starfarer.api.util.TimeoutTracker$ItemData[11]/item/mostExpensiveShip
line number         : 452898
class[1]            : com.fs.starfarer.campaign.fleet.CampaignFleet
class[2]            : com.fs.starfarer.api.util.TimeoutTracker$ItemData
class[3]            : java.util.ArrayList
converter-type[1]   : com.thoughtworks.xstream.converters.collections.CollectionConverter
class[4]            : com.fs.starfarer.api.util.TimeoutTracker
class[5]            : com.fs.starfarer.api.impl.campaign.shared.StarSystemActivityTracker
class[6]            : java.util.LinkedHashMap
converter-type[2]   : com.thoughtworks.xstream.converters.collections.MapConverter
class[7]            : com.fs.starfarer.api.impl.campaign.shared.SectorActivityTracker
class[8]            : com.fs.starfarer.api.impl.campaign.shared.SharedData
class[9]            : java.util.HashMap
class[10]           : com.fs.starfarer.campaign.ModAndPluginData
class[11]           : com.fs.starfarer.campaign.CampaignEngine
converter-type[3]   : com.fs.starfarer.campaign.save.I
version             : null
-------------------------------
com.thoughtworks.xstream.converters.ConversionException: Could not call com.fs.starfarer.campaign.fleet.FleetMember.readResolve() : Java heap space : Could not call com.fs.starfarer.campaign.fleet.FleetMember.readResolve() : Java heap space
---- Debugging information ----
message             : Could not call com.fs.starfarer.campaign.fleet.FleetMember.readResolve() : Java heap space
cause-exception     : com.thoughtworks.xstream.converters.reflection.ObjectAccessException
cause-message       : Could not call com.fs.starfarer.campaign.fleet.FleetMember.readResolve() : Java heap space
class               : com.fs.starfarer.campaign.fleet.FleetMember
required-type       : com.fs.starfarer.campaign.fleet.FleetMember
converter-type      : com.thoughtworks.xstream.converters.reflection.ReflectionConverter
path                : /CampaignEngine/modAndPluginData/persistentData/entry/com.fs.starfarer.api.impl.campaign.shared.SharedData/activityTracker/trackers/entry[2]/com.fs.starfarer.api.impl.campaign.shared.StarSystemActivityTracker/seen/items/com.fs.starfarer.api.util.TimeoutTracker$ItemData[11]/item/mostExpensiveShip
line number         : 452898
class[1]            : com.fs.starfarer.campaign.fleet.CampaignFleet
class[2]            : com.fs.starfarer.api.util.TimeoutTracker$ItemData
class[3]            : java.util.ArrayList
converter-type[1]   : com.thoughtworks.xstream.converters.collections.CollectionConverter
class[4]            : com.fs.starfarer.api.util.TimeoutTracker
class[5]            : com.fs.starfarer.api.impl.campaign.shared.StarSystemActivityTracker
class[6]            : java.util.LinkedHashMap
converter-type[2]   : com.thoughtworks.xstream.converters.collections.MapConverter
class[7]            : com.fs.starfarer.api.impl.campaign.shared.SectorActivityTracker
class[8]            : com.fs.starfarer.api.impl.campaign.shared.SharedData
class[9]            : java.util.HashMap
class[10]           : com.fs.starfarer.campaign.ModAndPluginData
class[11]           : com.fs.starfarer.campaign.CampaignEngine
converter-type[3]   : com.fs.starfarer.campaign.save.I
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.unmarshallField(AbstractReflectionConverter.java:355)
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUnmarshal(AbstractReflectionConverter.java:306)
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(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.unmarshallField(AbstractReflectionConverter.java:355)
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUnmarshal(AbstractReflectionConverter.java:306)
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(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.readItem(AbstractCollectionConverter.java:71)
at com.thoughtworks.xstream.converters.collections.CollectionConverter.addCurrentElementToCollection(CollectionConverter.java:79)
at com.thoughtworks.xstream.converters.collections.CollectionConverter.populateCollection(CollectionConverter.java:72)
at com.thoughtworks.xstream.converters.collections.CollectionConverter.populateCollection(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.unmarshallField(AbstractReflectionConverter.java:355)
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUnmarshal(AbstractReflectionConverter.java:306)
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(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.unmarshallField(AbstractReflectionConverter.java:355)
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUnmarshal(AbstractReflectionConverter.java:306)
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(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.readItem(AbstractCollectionConverter.java:71)
at com.thoughtworks.xstream.converters.collections.MapConverter.putCurrentEntryIntoMap(MapConverter.java:89)
at com.thoughtworks.xstream.converters.collections.MapConverter.populateMap(MapConverter.java:77)
at com.thoughtworks.xstream.converters.collections.MapConverter.populateMap(MapConverter.java:71)
at com.thoughtworks.xstream.converters.collections.MapConverter.unmarshal(MapConverter.java:66)
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.unmarshallField(AbstractReflectionConverter.java:355)
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUnmarshal(AbstractReflectionConverter.java:306)
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(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.unmarshallField(AbstractReflectionConverter.java:355)
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUnmarshal(AbstractReflectionConverter.java:306)
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(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.readItem(AbstractCollectionConverter.java:71)
at com.thoughtworks.xstream.converters.collections.MapConverter.putCurrentEntryIntoMap(MapConverter.java:89)
at com.thoughtworks.xstream.converters.collections.MapConverter.populateMap(MapConverter.java:77)
at com.thoughtworks.xstream.converters.collections.MapConverter.populateMap(MapConverter.java:71)
at com.thoughtworks.xstream.converters.collections.MapConverter.unmarshal(MapConverter.java:66)
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.unmarshallField(AbstractReflectionConverter.java:355)
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUnmarshal(AbstractReflectionConverter.java:306)
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(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.unmarshallField(AbstractReflectionConverter.java:355)
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUnmarshal(AbstractReflectionConverter.java:306)
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(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.super(Unknown Source)
at com.fs.starfarer.campaign.Object.dialogDismissed(Unknown Source)
at com.fs.starfarer.ui.do.dismiss(Unknown Source)
at com.fs.starfarer.ui.impl.O0oO.dismiss(Unknown Source)
at com.fs.starfarer.campaign.save.LoadGameDialog.actionPerformed(Unknown Source)
at com.fs.starfarer.ui.OOO0OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO.o00000(Unknown Source)
at com.fs.starfarer.ui.H.processInput(Unknown Source)
at com.fs.starfarer.ui.O0Oo.o00000(Unknown Source)
at com.fs.starfarer.OoOO.O??0(Unknown Source)
at com.fs.super.A.?0000(Unknown Source)
at com.fs.starfarer.combat.D.super(Unknown Source)
at com.fs.starfarer.StarfarerLauncher$2.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: com.thoughtworks.xstream.converters.reflection.ObjectAccessException: Could not call com.fs.starfarer.campaign.fleet.FleetMember.readResolve() : Java heap space
at com.thoughtworks.xstream.converters.reflection.SerializationMethodInvoker.callReadResolve(SerializationMethodInvoker.java:71)
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:235)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
... 96 more
Caused by: java.lang.OutOfMemoryError: Java heap space
at com.fs.starfarer.api.combat.StatBonus.<init>(StatBonus.java:21)
at com.fs.starfarer.combat.entities.ship.o0OO.<init>(Unknown Source)
at com.fs.starfarer.combat.entities.ship.o0OO.create(Unknown Source)
at com.fs.starfarer.campaign.fleet.FleetMember.updateStats(Unknown Source)
at com.fs.starfarer.campaign.fleet.FleetMember.readResolve(Unknown Source)
at sun.reflect.GeneratedMethodAccessor200.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.thoughtworks.xstream.converters.reflection.SerializationMethodInvoker.callReadResolve(SerializationMethodInvoker.java:65)
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:235)
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.unmarshallField(AbstractReflectionConverter.java:355)
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUnmarshal(AbstractReflectionConverter.java:306)
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(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.unmarshallField(AbstractReflectionConverter.java:355)
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUnmarshal(AbstractReflectionConverter.java:306)
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(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.readItem(AbstractCollectionConverter.java:71)
at com.thoughtworks.xstream.converters.collections.CollectionConverter.addCurrentElementToCollection(CollectionConverter.java:79)
at com.thoughtworks.xstream.converters.collections.CollectionConverter.populateCollection(CollectionConverter.java:72)
at com.thoughtworks.xstream.converters.collections.CollectionConverter.populateCollection(CollectionConverter.java:66)
at com.thoughtworks.xstream.converters.collections.CollectionConverter.unmarshal(CollectionConverter.java:61)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
[close]


And the date was: Day 25, Month 12, Cycle 206
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 24111
    • View Profile
Re: Loading Save File Issue
« Reply #5 on: October 21, 2014, 12:09:53 PM »

Thank you - well, ugh, definitely looks like a memory issue. Will take a look.
Logged

phantomime

  • Ensign
  • *
  • Posts: 5
    • View Profile
Re: Loading Save File Issue
« Reply #6 on: October 27, 2014, 10:36:45 PM »

also had this error after playing for a few (read '4'  :-X) hours. tried to reload a game and got the same error stating that the problem might be due to a mod. closed the program and reopened it.

loading the save works fine now...
« Last Edit: October 27, 2014, 10:42:32 PM by phantomime »
Logged

XpanD

  • Captain
  • ****
  • Posts: 380
    • View Profile
Re: Loading Save File Issue
« Reply #7 on: October 28, 2014, 02:32:23 AM »

This started happening to me once I loaded a few mods into the game, and eventually got so bad I couldn't load my saves even after restarting the game cleanly. What "fixed" it for me was copying the contents of a fresh installation of jre7 (64 bit) over the contents of the jre folder Starsector comes with, and then changing both allocation values in vmparams from 512m to 4096m (I have 16GB of RAM, allocating 4GB seems reasonable). Haven't had any issues since, though saving/loading does hang the game for a bit. Take the above as a pretty dirty "last resort" kind of fix; not sure if it'll cause any issues, but I've been able to play again for about 5 hours now. I'd avoid doing all of this if a game restart still fixes your issue, never know what it could break.

Good luck with pinning this one down, Alex. :P
Logged

ahrenjb

  • Commander
  • ***
  • Posts: 225
    • View Profile
Re: Loading Save File Issue
« Reply #8 on: October 28, 2014, 10:05:35 AM »

Seems like in the new version, after you've been playing for a while, it becomes impossible to load a save file--any save file. It'll load up until about 3/4s of the loading bar, then it'll slow way down, the game will lag extremely hard, and then after ~30 seconds or so it'll pop up and say the save can't be loaded because it's corrupted or something.

>Had been playing for about ~3 hours straight, so my guess is something related to memory.

>Saves loaded fine when I closed out of the game and loaded them in a new session.

I encountered the same issue yesterday. A save I'd been playing for ~8 hours stopped loading, doing the same thing you described. Slowing down, stopping, saying it failed to load. I increased my vmparams to 1024/1024 and it solved the issue, and I was able to continue playing on that save. Didn't even think to report it.
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 24111
    • View Profile
Re: Loading Save File Issue
« Reply #9 on: October 28, 2014, 10:10:06 AM »

I encountered the same issue yesterday. A save I'd been playing for ~8 hours stopped loading, doing the same thing you described. Slowing down, stopping, saying it failed to load. I increased my vmparams to 1024/1024 and it solved the issue, and I was able to continue playing on that save. Didn't even think to report it.

Have you been playing for a long time, or was it failing to load after a fresh restart of the game? If it's the latter, I'd love to get my hands on that save.


This started happening to me once I loaded a few mods into the game, and eventually got so bad I couldn't load my saves even after restarting the game cleanly. What "fixed" it for me was copying the contents of a fresh installation of jre7 (64 bit) over the contents of the jre folder Starsector comes with, and then changing both allocation values in vmparams from 512m to 4096m (I have 16GB of RAM, allocating 4GB seems reasonable). Haven't had any issues since, though saving/loading does hang the game for a bit. Take the above as a pretty dirty "last resort" kind of fix; not sure if it'll cause any issues, but I've been able to play again for about 5 hours now. I'd avoid doing all of this if a game restart still fixes your issue, never know what it could break.

Good luck with pinning this one down, Alex. :P

Yeah, thanks :) Also: if the problem is exacerbated with mods, I wouldn't 100% assume it's purely the vanilla problem. Just because there's a memory leak in vanilla doesn't mean that there isn't one in a mod, you know?
Logged

Megas

  • Admiral
  • *****
  • Posts: 12155
    • View Profile
Re: Loading Save File Issue
« Reply #10 on: October 28, 2014, 10:26:32 AM »

I had this problem once I reached level 40, having the game hang after every other load.  I doubled the allocation in vmparms and it was fixed (for now).  I used no mods, so it is definitely a problem with the standard game.
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 24111
    • View Profile
Re: Loading Save File Issue
« Reply #11 on: October 28, 2014, 10:37:53 AM »

I had this problem once I reached level 40, having the game hang after every other load.  I doubled the allocation in vmparms and it was fixed (for now).  I used no mods, so it is definitely a problem with the standard game.

Right, I'm not saying it's not a problem with vanilla. I'm just saying if adding mods seems to make it disproportionately worse, a mod could also have a memory leak. It's happened before.

Would you mind sending me the save that used to hang, if you still have it? Or some later version of it? Might make it easier to track this down.

fractalsoftworks [at] gmail [dot] com
Logged

ahrenjb

  • Commander
  • ***
  • Posts: 225
    • View Profile
Re: Loading Save File Issue
« Reply #12 on: October 28, 2014, 10:59:16 AM »

I encountered the same issue yesterday. A save I'd been playing for ~8 hours stopped loading, doing the same thing you described. Slowing down, stopping, saying it failed to load. I increased my vmparams to 1024/1024 and it solved the issue, and I was able to continue playing on that save. Didn't even think to report it.

Have you been playing for a long time, or was it failing to load after a fresh restart of the game? If it's the latter, I'd love to get my hands on that save.


If I remember correctly, I had loaded the game up and been playing for maybe an hour or two, periodically saving my progress. After an attempt at biting off more than I could chew with a bounty fleet, I exited to the menu without saving and went to re-load my last save. That's when the problem started. I believe I completely exited the game, re-opened it, and was still having the same issue. That's when I modified the vmparams and was able to continue playing. I just restored the original vmparams and loaded up my game, and it seems to be working, so I'm not sure what changed. I can send you the save if you want, but otherwise I'll continue to play with the stock configuration and if the problem develops again, I'll email it to you.
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 24111
    • View Profile
Re: Loading Save File Issue
« Reply #13 on: October 28, 2014, 11:24:21 AM »

If I remember correctly, I had loaded the game up and been playing for maybe an hour or two, periodically saving my progress. After an attempt at biting off more than I could chew with a bounty fleet, I exited to the menu without saving and went to re-load my last save. That's when the problem started. I believe I completely exited the game, re-opened it, and was still having the same issue. That's when I modified the vmparams and was able to continue playing. I just restored the original vmparams and loaded up my game, and it seems to be working, so I'm not sure what changed. I can send you the save if you want, but otherwise I'll continue to play with the stock configuration and if the problem develops again, I'll email it to you.

Thank you - got your email, will take a look at it and see.
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 24111
    • View Profile
Re: Loading Save File Issue
« Reply #14 on: October 28, 2014, 02:41:46 PM »

After testing out the save file from ahrenjb: the good news is I managed to reproduce it - loading the save file twice in a row, it hangs on the second load.

The bad (well, sort of) news is that this is simply due to 512mb not being enough to both keep the current game in memory and load the new one; the loading process takes up a big chunk of memory. Raising the memory to 1024 seems to fix it, and looking at a heap dump, I don't see any indications of an actual memory leak, even after repeated reloads.

So, question: has anyone experienced other symptoms of a memory leak, such as the game's performance degrading after an extended play session? The crash-on-load (or simply failure to load), at least right now, looks like "not enough memory allocated" vs "actual leak".
Logged
Pages: [1] 2