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: Anubis-class Cruiser (12/20/24)

Author Topic: Strange Save Error Log?  (Read 1372 times)

Raaaain

  • Ensign
  • *
  • Posts: 41
  • Proud Rillaru II owner
    • View Profile
Strange Save Error Log?
« on: August 29, 2024, 05:30:19 PM »

Coming from the discord about this issue; after chatting to Histidine, creator of Nexerelin, over a save error log that has been continually happening to my most recent modded save and has corrupted it 3 times now, they've told me to contact Alex directly over this issue since it appears to be caused by an issue with the base game itself. I have no idea what's going wrong, it's made me lose hours of gameplay on the save, and its getting extremely annoying. So please, it would be a massive appreciation if i got some help from Alex over this issue, thanks y'all.

Here's the part that Histidine highlighted for me on discord, cant quite send the whole log here since it seems to be too long for the forums to handle
"Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[2414317,46]
Message: Element type "exerelin.campaign.intel.groundbattle.GroundU" must be followed by either attribute specifications, ">" or "/>".
        at java.xml/com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.next(XMLStreamReaderImpl.java:652) ~[?:?]"
Logged
The one who :3

Histidine

  • Admiral
  • *****
  • Posts: 4933
    • View Profile
    • GitHub profile
Re: Strange Save Error Log?
« Reply #1 on: August 29, 2024, 06:15:38 PM »

Specifically, this is (I think) the issue where sometimes the game just doesn't finish writing the save .xml and it gets truncated (without notifying the user of an error). I vaguely recall the examples I've seen before fill the rest of the log with a repeating, meaningless character (displayed as NULL in Notepad++)

This just happens sometimes but OP's been having it unusually frequently so it's kind of a problem.
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 24997
    • View Profile
Re: Strange Save Error Log?
« Reply #2 on: August 30, 2024, 08:11:57 PM »

(Sorry, I didn't really read this - just saw the OP mentioning nexerelin and moved it to this subforum.)

As best as I can tell, this kind of error is some kind of disk write issue. I'm not familiar with the gory details, but the game tries to verify the saves are written out correctly (ofc it can't verify every single thing, but for example it checks for that "bunch of NULL characters" issue, and despite that, those files can still get output), and *to the game* it looks like the files got written out fine, but it's not actually fine on the file system. So I suspect it's some kind of issue where there's an OS caching layer and that OS write cache does not actually make it to the disk. But when the game reads it back while it's still running it looks fine because it's seeing the cache, not what's actually on disk.

I'm not super sure what to actually suggest here. Using Java 8 (or Java 23, using Himemiko's conversion kit) may resolve the issue - not for any specific reason, though. Another thing that might be worth a try - if you have multiple hard drives or partitions, running the game off a different one.

Also, if there's other software running - or perhaps an antivirus - it's possible something is messing with the game, but it's just hard to say, unfortunately!
Logged

Thralhavoc

  • Ensign
  • *
  • Posts: 1
    • View Profile
Re: Strange Save Error Log?
« Reply #3 on: September 25, 2024, 08:37:26 AM »

Hey ya’ll! Sorry if this is bad etiquette to ask a question here but I believe I have the same problem and nothing has of yet fixed it. Going to start a new save but I was wondering if there was a way to avoid this bug going into the future? I’d be very bummed if I lost two campaigns in a row  :'(
Logged