Page 1 of 1

[0.18.32] Save file corruption: invalid heat buffer index

Posted: Sat Jun 20, 2020 6:51 pm
by noid92
Hello, been playing Factorio for about a month now. After doing investigation/online searching, signs point that I have a memory issue. I believe my computer DOES have a memory issue, as my game crashes at least once every 2-3 hours (seems more if I'm also listening to music). I'm posting this to see if someone on the team is able to restore my corrupted game save. Game crashed and when I went to restart, all 3 autosaves and my game save have the same notice message.

The error I get is "Corrupt map: invalid heat buffer index: 16777330 >= 486."
_autosave1.zip
(19.59 MiB) Downloaded 63 times
_autosave2.zip
(19.8 MiB) Downloaded 67 times

_autosave3.zip
(19.92 MiB) Downloaded 81 times
TheGame.zip
(19.89 MiB) Downloaded 79 times
Please let me know if you need any other info.

Re: [0.18.32] Vanilla save files corrupt map: invalid heat buffer index

Posted: Sat Jun 20, 2020 7:04 pm
by Loewchen
Do you know a way to cause this issue on a working save file?

Re: [0.18.32] Save file corruption: invalid heat buffer index

Posted: Sat Jun 20, 2020 7:10 pm
by Rseding91
I've attached the fixed save file. The invalid heat buffer index was saved as the decimal value 16777330 which in binary form is 1000000000000000001110010 if you remove the leading 1 from that binary value, it converts back to the decimal number 114 which is the value it was supposed to be.

That means you had a single flipped bit and that corrupted the value in memory when you played previously. That got saved into the save file and failed to load after that.

So yes, memory corruption. From bad hardware or from cosmic rays who knows.

Re: [0.18.32] Save file corruption: invalid heat buffer index

Posted: Sat Jun 20, 2020 11:36 pm
by noid92
Thank you. Any way to avoid this? I assume not.