Page 1 of 1

[posila] [1.1.34] Crash corrupts player and achievement data

Posted: Sun Jun 13, 2021 6:09 am
by kaesaecracker
Release: steam, Version: 1.1.34 (build 58519, linux64)
Completely unmodded. Non-blocking saving was enabled, but this was a single player map.

What did you do?
I think I placed some rails, did not do anything special.

What happened?
The game crashed (as in: the window was gone instantly without a previous hang). After restarting, two pop ups told me that the player data and local archivement data were corrupted.
Interestingly steam was also gone - but I did not interact with it. AFAIK steam waits for confirmation of shutdowns before terminating applications - right?

What did you expect to happen instead?
I expected the game not to crash, or at least not to corrupt the data.

Write down the steps to reproduce the bug if you know them. Does it happen always, once, or sometimes?
Happened once, I do not know a way to reproduce this.


This is the first major bug I experienced in factorio, and it might not even be a factorio bug. Thank you for making Cracktorio, Wube :D

Re: [posila] [1.1.34] Crash corrupts player and achievement data

Posted: Wed Jun 16, 2021 3:45 pm
by posila
Thanks for the report.
From the Steam log and what you said I can see that Steam got terminated and relaunched between the two runs ...

The Factorio log ends abruptly (without crash stacktrace), so I think Steam Client crashed (as their log is missing Shutdown message before Startup at 07:46), which caused Steam API integration to terminate the game (that's not under our control; besides removing Steam API integrate entirely)

In Steam version of the game player-data.json and achievements.dat are saved to Steam Remote Storage, so I think the files got corrupted inside the Steam due to something related to its crash (maybe it crashed because something got corrupted, or files got corrupted because Steam crashed)