Page 1 of 1

[Twinsen][1.1.4] Crash during some actions after attempting to overwrite locked saved file

Posted: Wed Dec 09, 2020 9:58 pm
by Xalos
What did you do?

I saved the game, attached the save file to a bug report thread in Firefox, and then attempted to overwrite the save to create a test save that better demonstrated the bug in the original thread.

What happened?

I got an in-game error dialog on the initial save attempt:
Screenshot 3113.png
Screenshot 3113.png (3.13 MiB) Viewed 2664 times

after which the game continued to work normally. However, upon clicking Save Game the second time, Factorio crashed with a Windows modal error dialog:
Screenshot 3112.png
Screenshot 3112.png (7.4 KiB) Viewed 2664 times

The same also happens shortly after clicking Quit Game, and upon attempting to start Factorio after loading finishes, whenever Firefox is still locking the save file.

What did you expect to happen?

I expected the save menu to appear, and to be able to save the game to another location.

Re: [Twinsen][1.1.4] Crash during some actions after attempting to overwrite locked saved file

Posted: Thu Dec 10, 2020 12:48 pm
by Twinsen
I can't seem to reproduce the issue.
GetFileAttributesExW seems to have failed for you, but I can't reach that state no matter how I lock the file.

I have a theoretical fix but i'm reluctant of pushing it until I better understand what's happening.

Re: [Twinsen][1.1.4] Crash during some actions after attempting to overwrite locked saved file

Posted: Fri Dec 11, 2020 12:34 am
by Xalos
Twinsen wrote:
Thu Dec 10, 2020 12:48 pm
I can't seem to reproduce the issue.
GetFileAttributesExW seems to have failed for you, but I can't reach that state no matter how I lock the file.
Confirmed on my machine as well. File locks cause an in-game error, but no crash. I'd assumed Firefox was locking the file itself, but it must be doing something different.

Re: [Twinsen][1.1.4] Crash during some actions after attempting to overwrite locked saved file

Posted: Fri Dec 11, 2020 12:45 pm
by Twinsen
Should be fixed in Version: 1.1.6.

Even though I never got to reproduce the issue, the game will no longer crash when failing to read the file attributes.