Fractal Softworks Forum

Please login or register.

Login with username, password and session length

Author Topic: Cannot load save - XMLStreamException re an invalid XML character (Unicode: 0x0)  (Read 581 times)

ragnar321

  • Ensign
  • *
  • Posts: 2
    • View Profile

Hi folks. Just wanted to report a failure to load a savegame.

This is early on in the game as I'm still in the tutorial, no mods are installed, and it's the latest version 0.9.1a-RCB.

I think this was a manual save from the menu rather than a quicksave in case that's important.

Please find the log:
https://drive.google.com/file/d/1XPRgoEXpXdPwTDwkeGC4p_QoAPygshlA/view?usp=sharing

and a link to the save game folder:
https://drive.google.com/file/d/1uGzu5TwmFMIfLJceyucyEVEhZdPQM6va/view?usp=sharing

Sorry, I would paste the log snippet in here, but I get a forums database error when I do so.

Edit: After replacing the yen symbol with a normal Y, the forums can now deal with the stack trace

Code
202301 [Thread-4] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading ..\\saves/save_Jallariel_7112855045364962991...
202302 [Thread-4] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading stage 1
202302 [Thread-4] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading stage 2
202302 [Thread-4] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading stage 3
202313 [Thread-14] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading progress: 0.0
202323 [Thread-14] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading progress: 0.0039999997
202333 [Thread-14] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading progress: 0.007999999
202347 [Thread-14] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading progress: 0.012
202363 [Thread-14] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading progress: 0.0176
202380 [Thread-14] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading progress: 0.024
202397 [Thread-14] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading progress: 0.0308
202413 [Thread-14] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading progress: 0.0376
202430 [Thread-14] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading progress: 0.044
202447 [Thread-14] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading progress: 0.050800003
202463 [Thread-14] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading progress: 0.0576
202480 [Thread-14] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading progress: 0.063999996
202497 [Thread-14] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading progress: 0.0708
202513 [Thread-14] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading progress: 0.0776
202530 [Thread-14] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading progress: 0.084
202547 [Thread-14] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading progress: 0.0908
202563 [Thread-14] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading progress: 0.0976
202580 [Thread-14] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading progress: 0.103999995
202597 [Thread-14] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading progress: 0.110800005
202613 [Thread-14] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading progress: 0.1176
202630 [Thread-14] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading progress: 0.124
202647 [Thread-14] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading progress: 0.1308
202663 [Thread-14] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading progress: 0.1376
202680 [Thread-14] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading progress: 0.14400001
202697 [Thread-14] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading progress: 0.1508
202713 [Thread-14] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading progress: 0.1576
202730 [Thread-14] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading progress: 0.164
202747 [Thread-14] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading progress: 0.1708
202763 [Thread-14] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading progress: 0.1776
202780 [Thread-14] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading progress: 0.184
202797 [Thread-14] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading progress: 0.1908
202804 [Thread-4] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Error loading
202804 [Thread-4] ERROR com.fs.starfarer.campaign.save.CampaignGameManager  -
---- Debugging information ----
cause-exception     : com.thoughtworks.xstream.io.StreamException
cause-message       :
class               : java.lang.String
required-type       : java.lang.String
converter-type      : com.thoughtworks.xstream.converters.SingleValueConverterWrapper
wrapped-converter   : com.thoughtworks.xstream.converters.basic.StringConverter
line number         : 244015
class[1]            : com.fs.starfarer.campaign.CampaignTerrain
converter-type[1]   : com.thoughtworks.xstream.converters.reflection.ReflectionConverter
class[2]            : java.util.ArrayList
converter-type[2]   : com.thoughtworks.xstream.converters.collections.CollectionConverter
class[3]            : com.fs.util.container.repo.ObjectRepository
class[4]            : com.fs.starfarer.campaign.StarSystem
class[5]            : com.fs.starfarer.api.impl.campaign.procgen.Constellation
class[6]            : com.fs.starfarer.campaign.StarSystem$UpdateFromHyperspaceLocation
class[7]            : com.fs.starfarer.campaign.BaseLocation$LocationToken
class[8]            : com.fs.starfarer.campaign.Hyperspace
class[9]            : com.fs.starfarer.campaign.CampaignEngine
converter-type[3]   : com.fs.starfarer.campaign.save.I
version             : not available
-------------------------------
com.thoughtworks.xstream.converters.ConversionException:
---- Debugging information ----
cause-exception     : com.thoughtworks.xstream.io.StreamException
cause-message       :
class               : java.lang.String
required-type       : java.lang.String
converter-type      : com.thoughtworks.xstream.converters.SingleValueConverterWrapper
wrapped-converter   : com.thoughtworks.xstream.converters.basic.StringConverter
line number         : 244015
class[1]            : com.fs.starfarer.campaign.CampaignTerrain
converter-type[1]   : com.thoughtworks.xstream.converters.reflection.ReflectionConverter
class[2]            : java.util.ArrayList
converter-type[2]   : com.thoughtworks.xstream.converters.collections.CollectionConverter
class[3]            : com.fs.util.container.repo.ObjectRepository
class[4]            : com.fs.starfarer.campaign.StarSystem
class[5]            : com.fs.starfarer.api.impl.campaign.procgen.Constellation
class[6]            : com.fs.starfarer.campaign.StarSystem$UpdateFromHyperspaceLocation
class[7]            : com.fs.starfarer.campaign.BaseLocation$LocationToken
class[8]            : com.fs.starfarer.campaign.Hyperspace
class[9]            : com.fs.starfarer.campaign.CampaignEngine
converter-type[3]   : com.fs.starfarer.campaign.save.I
version             : not available
-------------------------------
at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:79)
at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:66)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshallField(AbstractReflectionConverter.java:503)
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUnmarshal(AbstractReflectionConverter.java:429)
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:281)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:70)
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:73)
at com.thoughtworks.xstream.converters.collections.CollectionConverter.addCurrentElementToCollection(CollectionConverter.java:98)
at com.thoughtworks.xstream.converters.collections.CollectionConverter.populateCollection(CollectionConverter.java:91)
at com.thoughtworks.xstream.converters.collections.CollectionConverter.populateCollection(CollectionConverter.java:85)
at com.thoughtworks.xstream.converters.collections.CollectionConverter.unmarshal(CollectionConverter.java:80)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:70)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshallField(AbstractReflectionConverter.java:503)
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUnmarshal(AbstractReflectionConverter.java:429)
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:281)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:70)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshallField(AbstractReflectionConverter.java:503)
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUnmarshal(AbstractReflectionConverter.java:429)
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:281)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:70)
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:73)
at com.thoughtworks.xstream.converters.collections.CollectionConverter.addCurrentElementToCollection(CollectionConverter.java:98)
at com.thoughtworks.xstream.converters.collections.CollectionConverter.populateCollection(CollectionConverter.java:91)
at com.thoughtworks.xstream.converters.collections.CollectionConverter.populateCollection(CollectionConverter.java:85)
at com.thoughtworks.xstream.converters.collections.CollectionConverter.unmarshal(CollectionConverter.java:80)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:70)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshallField(AbstractReflectionConverter.java:503)
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUnmarshal(AbstractReflectionConverter.java:429)
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:281)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:70)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshallField(AbstractReflectionConverter.java:503)
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUnmarshal(AbstractReflectionConverter.java:429)
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:281)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:70)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshallField(AbstractReflectionConverter.java:503)
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUnmarshal(AbstractReflectionConverter.java:429)
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:281)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:70)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshallField(AbstractReflectionConverter.java:503)
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUnmarshal(AbstractReflectionConverter.java:429)
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:281)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:70)
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:73)
at com.thoughtworks.xstream.converters.collections.CollectionConverter.addCurrentElementToCollection(CollectionConverter.java:98)
at com.thoughtworks.xstream.converters.collections.CollectionConverter.populateCollection(CollectionConverter.java:91)
at com.thoughtworks.xstream.converters.collections.CollectionConverter.populateCollection(CollectionConverter.java:85)
at com.thoughtworks.xstream.converters.collections.CollectionConverter.unmarshal(CollectionConverter.java:80)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:70)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshallField(AbstractReflectionConverter.java:503)
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUnmarshal(AbstractReflectionConverter.java:429)
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:281)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:70)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshallField(AbstractReflectionConverter.java:503)
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUnmarshal(AbstractReflectionConverter.java:429)
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:281)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:70)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshallField(AbstractReflectionConverter.java:503)
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUnmarshal(AbstractReflectionConverter.java:429)
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:281)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:70)
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:1486)
at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1466)
at com.thoughtworks.xstream.XStream.fromXML(XStream.java:1346)
at com.fs.starfarer.campaign.save.CampaignGameManager.super(Unknown Source)
at com.fs.starfarer.campaign.save.CampaignGameManager.super(Unknown Source)
at com.fs.starfarer.title.TitleScreenState.menuItemSelected(Unknown Source)
at com.fs.starfarer.title.Object.actionPerformed(Unknown Source)
at com.fs.starfarer.ui.newnew.buttonPressed(Unknown Source)
at com.fs.starfarer.ui.I.Y0000(Unknown Source)  <--- modified the yen symbol with a normal Y to allow me to post.
at com.fs.starfarer.ui.I.processInput(Unknown Source)
at com.fs.starfarer.ui.O0Oo.o00000(Unknown Source)
at com.fs.starfarer.BaseGameState.traverse(Unknown Source)
at com.fs.state.AppDriver.begin(Unknown Source)
at com.fs.starfarer.combat.CombatMain.main(Unknown Source)
at com.fs.starfarer.StarfarerLauncher$1.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: com.thoughtworks.xstream.io.StreamException:
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.getValue(AbstractPullReader.java:180)
at com.thoughtworks.xstream.converters.SingleValueConverterWrapper.unmarshal(SingleValueConverterWrapper.java:49)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
... 108 more
Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[244015,26]
Message: An invalid XML character (Unicode: 0x0) was found in the element content of the document.
at com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.next(Unknown Source)
at com.thoughtworks.xstream.io.xml.StaxReader.pullNextEvent(StaxReader.java:58)
... 113 more
« Last Edit: June 22, 2020, 01:51:52 AM by ragnar321 »
Logged

Sundog

  • Admiral
  • *****
  • Posts: 1727
    • View Profile

Looks like your save got corrupted somehow:


Your backup save file doesn't have this problem though, so you should be able to recover it. In your save folder, try renaming campaign.xml to campaign.xml.broken and renaming campaign.xml.bak to campaign.xml. Hopefully it was some sort of fluke that won't happen again, but if it does you should post here again so we can try to figure out what's going wrong.

Were you using any mods?

ragnar321

  • Ensign
  • *
  • Posts: 2
    • View Profile

Thanks for the reply!

No mods as it's my first time playing, and a fresh install also.

I was able to crack on with the backup with no issue (luckily just a few minutes prior) and haven't seen any problems since, but I will shout if it recurs.
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 24127
    • View Profile

Since this happened, I'd suggest making liberal use of the "save copy" feature once you get into the campaign, so you've got more save points to go back to in case there's an issue.

(@Sundog: thank you!)
Logged