Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Starsector 0.97a is out! (02/02/24); New blog post: Simulator Enhancements (03/13/24)

Author Topic: (fixed) hang upon autosaving at end of battle  (Read 1760 times)

gruberscomplete

  • Captain
  • ****
  • Posts: 253
    • View Profile
(fixed) hang upon autosaving at end of battle
« on: September 20, 2017, 01:21:17 PM »

Is it possible that this bug is from modifying settings.json? I changed up a few values from there a while ago.

Mods:
Arsenal expansion 1.4 (new)
autosave
combat chatter
common radar
console commands
disassembleReassemble_v0.6 (new)
dynasector
graphicslib
lazylib
nexerelin
officership program (a console command, this might cause the crash, idk)
ship and weapon pack
unknownSkies
usable [redacted]

I've had this bug for a while, that SS hangs during the campaign for no reason or during saving.
It keeps looping like this for a while:

Code
711894 [Thread-12] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Saving progress: 0.3528414
711903 [Thread-4] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Error saving game
711911 [Thread-12] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Saving progress: 0.3528414
711927 [Thread-12] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Saving progress: 0.3528414
711944 [Thread-12] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Saving progress: 0.3528414
711961 [Thread-12] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Saving progress: 0.3528414
711977 [Thread-12] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Saving progress: 0.3528414
711994 [Thread-12] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Saving progress: 0.3528414
712010 [Thread-12] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Saving progress: 0.3528414
712027 [Thread-12] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Saving progress: 0.3528414
712033 [Thread-4] ERROR com.fs.starfarer.campaign.save.CampaignGameManager  -
java.util.ConcurrentModificationException
at java.util.HashMap$HashIterator.nextEntry(Unknown Source)
at java.util.HashMap$EntryIterator.next(Unknown Source)
at java.util.HashMap$EntryIterator.next(Unknown Source)
at com.thoughtworks.xstream.converters.collections.MapConverter.marshal(MapConverter.java:75)
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.marshallField(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.doMarshal(AbstractReflectionConverter.java:141)
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshal(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.marshallField(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.doMarshal(AbstractReflectionConverter.java:141)
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshal(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.marshallField(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.doMarshal(AbstractReflectionConverter.java:141)
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshal(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.writeItem(AbstractCollectionConverter.java:64)
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)


Then it says a lot of these:

740648 [Thread-12] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Saving progress: 0.0
« Last Edit: September 23, 2017, 11:40:36 AM by gruberscomplete »
Logged
Click here for FREE ships!               Plentysector               Robots With Souls

gruberscomplete

  • Captain
  • ****
  • Posts: 253
    • View Profile
Re: hang upon autosaving at end of battle
« Reply #1 on: September 22, 2017, 02:02:53 PM »

actually this might be caused by my own mod... "java.util.ConcurrentModificationException" is caused by deleting a list element, and my mod has a list in it which I'll have to look at.

Essentially I create a AI fleet and copy it over to the player's fleet, but the game knows that it does not belong to the player and crashes when saving maybe.


Edit:

idk if I fixed it, it doesn't crash after every battle, only occasionally.

edit 2:

yeah I think its fixed.
« Last Edit: September 23, 2017, 11:40:01 AM by gruberscomplete »
Logged
Click here for FREE ships!               Plentysector               Robots With Souls