• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

suokko

Corporal
58 Badges
Oct 7, 2013
37
0
  • Europa Universalis IV
  • Europa Universalis IV: Cradle of Civilization
  • Age of Wonders III
  • Europa Universalis IV: Golden Century
  • Crusader Kings II: Conclave
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Cities: Skylines - Natural Disasters
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Monks and Mystics
  • Cities: Skylines - Mass Transit
  • Europa Universalis IV: Mandate of Heaven
  • Hearts of Iron IV: Death or Dishonor
  • Cities: Skylines - Green Cities
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Europa Universalis IV: Rule Britannia
  • Cities: Skylines - Parklife Pre-Order
  • Cities: Skylines - Parklife
  • Europa Universalis IV: Dharma
  • Crusader Kings II: Holy Fury
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Mount & Blade: With Fire and Sword
  • Europa Universalis IV: El Dorado
  • Cities: Skylines
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Charlemagne
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Res Publica
  • Cities: Skylines Deluxe Edition
  • Stellaris
  • Europa Universalis IV: Mare Nostrum
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Cossacks
  • Cities: Skylines - After Dark
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
 

Attachments

  • Ironman_Venice.ck2
    15,9 MB · Views: 0
Upvote 0