One line summary of your issue
Error writing save game
Game Version
3.0.1.1 ONDO
What expansions do you have installed?
All of the above
Do you have mods enabled?
No
Please explain your issue is in as much detail as possible.
Issue:
Autosave resulted to
"Error Writing Save Game
Failed to save game for unknown reason"
Any following auto or quick or manual save results to same error.
System:
Linux
20G of physical address space available
Steps leading to the issue:
* I loaded a game from 3.0.1.1 beta (I have now the stable 3.0.1.1 ONDO)
* I played about 10-20 years forward (with yearly auto saves)
* Autosave gave the error message
Debugging steps:
* I checked that I haven't accidentally filled my home partition but it was only 30% used.
* I checked end of all ck2 logs but there didn't appear to be anything relevant.
* I decided to use strace tool to see if I can resolve the issue somehow. strace log failed to capture any system calls trying to access my save game. I searched for the expected filename, open, stat and access from the log.
* I restarted game and took another strace to check what system calls saving should be using but I accidentally wrote the comparison log over the issue log. But comparison log showed that ck2 should be using lstat and openat system calls when saving the game.
* I found existing bug report https://forum.paradoxplaza.com/forum/index.php?threads/ck-ii-error-writing-save-game.1106257/ but that appears to be about low memory. But my system has enough memory.
Conclusion:
CK2 code has some kind of error check before trying to access file system. The check fails without producing a log message or the log message tells something which I can't link to the issue. But it returns back to UI code and error condition which makes UI show ingame filesystem error message.
Time taken from click save button to error message is a surprising long for an early error out which indicates to me that there is quite a lot processing before error check or serialization code is still done but it just can't write serialized state anywhere.
Last autosave
Loading the last autosave before issue seems to have correct game state. At least first autosave also worked so simple continuing game from save doesn't tigger the issue.
Steps to reproduce the issue.
I haven't been able to reproduce it so I have no guess what could have triggered the issue in first place.
Is there any debugging steps which would help resolve the issue if I manage to reproduce it?
I can use any debugging tools and I can even singlestep and read assembly code to figure out what goes wrong. But finding the correct place for a breakpoint is hard without source code.
Upload Attachment
Error writing save game
Game Version
3.0.1.1 ONDO
What expansions do you have installed?
All of the above
Do you have mods enabled?
No
Please explain your issue is in as much detail as possible.
Issue:
Autosave resulted to
"Error Writing Save Game
Failed to save game for unknown reason"
Any following auto or quick or manual save results to same error.
System:
Linux
20G of physical address space available
Steps leading to the issue:
* I loaded a game from 3.0.1.1 beta (I have now the stable 3.0.1.1 ONDO)
* I played about 10-20 years forward (with yearly auto saves)
* Autosave gave the error message
Debugging steps:
* I checked that I haven't accidentally filled my home partition but it was only 30% used.
* I checked end of all ck2 logs but there didn't appear to be anything relevant.
* I decided to use strace tool to see if I can resolve the issue somehow. strace log failed to capture any system calls trying to access my save game. I searched for the expected filename, open, stat and access from the log.
* I restarted game and took another strace to check what system calls saving should be using but I accidentally wrote the comparison log over the issue log. But comparison log showed that ck2 should be using lstat and openat system calls when saving the game.
* I found existing bug report https://forum.paradoxplaza.com/forum/index.php?threads/ck-ii-error-writing-save-game.1106257/ but that appears to be about low memory. But my system has enough memory.
Conclusion:
CK2 code has some kind of error check before trying to access file system. The check fails without producing a log message or the log message tells something which I can't link to the issue. But it returns back to UI code and error condition which makes UI show ingame filesystem error message.
Time taken from click save button to error message is a surprising long for an early error out which indicates to me that there is quite a lot processing before error check or serialization code is still done but it just can't write serialized state anywhere.
Last autosave
Loading the last autosave before issue seems to have correct game state. At least first autosave also worked so simple continuing game from save doesn't tigger the issue.
Steps to reproduce the issue.
I haven't been able to reproduce it so I have no guess what could have triggered the issue in first place.
Is there any debugging steps which would help resolve the issue if I manage to reproduce it?
I can use any debugging tools and I can even singlestep and read assembly code to figure out what goes wrong. But finding the correct place for a breakpoint is hard without source code.
Upload Attachment
Attachments
Upvote
0