[0.18.32] Save file corruption: invalid heat buffer index

This subforum contains all the issues which we already resolved.
noid92
Manual Inserter
Manual Inserter
Posts: 4
Joined: Sat Jun 20, 2020 6:43 pm
Contact:

[0.18.32] Save file corruption: invalid heat buffer index

Post 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 66 times

_autosave3.zip
(19.92 MiB) Downloaded 80 times
TheGame.zip
(19.89 MiB) Downloaded 78 times
Please let me know if you need any other info.
Loewchen
Global Moderator
Global Moderator
Posts: 10106
Joined: Wed Jan 07, 2015 5:53 pm
Contact:

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

Post by Loewchen »

Do you know a way to cause this issue on a working save file?
Rseding91
Factorio Staff
Factorio Staff
Posts: 15638
Joined: Wed Jun 11, 2014 5:23 am
Contact:

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

Post 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.
Attachments
_autosave3-fixed.zip
(19.93 MiB) Downloaded 62 times
If you want to get ahold of me I'm almost always on Discord.
noid92
Manual Inserter
Manual Inserter
Posts: 4
Joined: Sat Jun 20, 2020 6:43 pm
Contact:

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

Post by noid92 »

Thank you. Any way to avoid this? I assume not.
Post Reply

Return to “Resolved Problems and Bugs”