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: Save game null error  (Read 550 times)

Pokpaul

  • Lieutenant
  • **
  • Posts: 57
    • View Profile
Save game null error
« on: October 17, 2020, 06:26:56 AM »

This is the first time I've run into trouble saving before everything comes to a screechy, laggy halt overall.

Not noticing any other issues while playing. I've got plenty of RAM, 32gb, with 12 allocated in vmparams.

Spoiler
1071153 [Thread-13] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Saving progress: 1.0
1071153 [Thread-13] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Releasing context
1071156 [Thread-13] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Released context
1072889 [Thread-4] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Error saving game
1072889 [Thread-4] ERROR com.fs.starfarer.campaign.save.CampaignGameManager  -
java.lang.StackOverflowError
   at com.thoughtworks.xstream.converters.reflection.FieldDictionary.buildMap(FieldDictionary.java:123)
   at com.thoughtworks.xstream.converters.reflection.FieldDictionary.fieldOrNull(FieldDictionary.java:106)
   at com.thoughtworks.xstream.converters.reflection.FieldDictionary.field(FieldDictionary.java:86)
   at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.getFi eld(PureJavaReflectionProvider.java:183)
   at com.thoughtworks.xstream.mapper.AttributeMapper.shouldLookForSingleValueConvert er(AttributeMapper.java:110)
   at com.thoughtworks.xstream.mapper.LocalConversionMapper.getLocalSingleValueConver ter(LocalConversionMapper.java:72)
   at com.thoughtworks.xstream.mapper.LocalConversionMapper.getConverterFromItemType(LocalConversionMapper.java:62)
   at com.thoughtworks.xstream.mapper.MapperWrapper.getConverterFromItemType(MapperWrapper.java:210)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$1.visit(AbstractReflectionConverter.java:119)
   at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visit SerializableFields(PureJavaReflectionProvider.java:142)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doMa rshal(AbstractReflectionConverter.java:101)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.mars hal(AbstractReflectionConverter.java:90)
   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:274)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.writeField(AbstractReflectionConverter.java:250)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.<init>(AbstractReflectionConverter.java:213)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doMa rshal(AbstractReflectionConverter.java:144)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.mars hal(AbstractReflectionConverter.java:90)
   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:66)
   at com.thoughtworks.xstream.converters.collections.CollectionConverter.marshal(CollectionConverter.java:74)
   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:274)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.writeField(AbstractReflectionConverter.java:250)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.<init>(AbstractReflectionConverter.java:213)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doMa rshal(AbstractReflectionConverter.java:144)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.mars hal(AbstractReflectionConverter.java:90)
   at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69)
   at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58)
        .......(repeats a lot)
1072900 [Thread-4] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading stage 9 (exception)
1072900 [Thread-4] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading stage 10 (exception)
1072900 [Thread-4] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading stage 11 (exception)
1072901 [Thread-4] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading stage 12 (exception)
1072901 [Thread-4] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading stage 13 (exception)
1072901 [Thread-4] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading stage 14 (exception)
1072901 [Thread-4] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading stage 15 (exception)
1072901 [Thread-4] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading stage 16 (exception)
[close]
Logged

Histidine

  • Admiral
  • *****
  • Posts: 4120
    • View Profile
    • Bitbucket profile
Re: Save game null error
« Reply #1 on: October 17, 2020, 05:40:28 PM »

Increasing the stack allocation (Xss) in vmparams might help.

(Also more than 8 GB allocation isn't recommended. But if your modlist really needs the space...)

Logged

Pokpaul

  • Lieutenant
  • **
  • Posts: 57
    • View Profile
Re: Save game null error
« Reply #2 on: October 17, 2020, 08:09:47 PM »

OK, I scaled it back to 8 and put Xss to 4, is that a good setting? See what happens.

*edit*

Still having issues, I have to sometimes try to save copy a few times before it works.

I find that I have this issue in-system mostly, and that that if I travel to hyperspace that's where I am most likely to save successfully. Does that make any sense?
« Last Edit: October 17, 2020, 09:00:27 PM by Pokpaul »
Logged