Page 1 of 1

[kovarex] [0.16.36] save migration check fail

Posted: Tue Apr 17, 2018 7:48 pm
by spectrumero
None of my game saves will load; the autosaves and main save all fail with this error.

"Energy source error, most probable cause is the double entity problem"

As such I can't load an early save and try to recreate it, and I've lost my current game.
The game install is completely vanilla. There are no mods.

Re: [Kovarex][0.16.36] save migration check fail

Posted: Wed Apr 18, 2018 3:01 pm
by xplycyt
I have the same problem. I have too many hours into this map, think Im gonna cry.

Re: [kovarex] [0.16.36] save migration check fail

Posted: Fri Apr 20, 2018 2:02 pm
by kovarex
Hello, I checked the save, and you are an unfortunate victim of memory corruption.

Why do I know? I inspected the save, and found out, that while saving, two entities are trying to bind to the same energy energy source in the same network with index 2284, while one energy source with index 2220 was left unused.
What is so important about these numbers? Well 2284 and 2220 in binary have just one bit of difference.

The save worked fine right after the corruption happened and you could overwrite all your saves with this corrupt variant of that bit, but once you tried to load the save, these indexes were used to re-construct the electric network and it is where the error is discovered.

This leads me to the obligatory advice to do a mem check of your computer, but surprisingly, there is a good chance that you will find nothing, since it could be one of the rare cosmic ray particle incidents. More in this video:
https://www.youtube.com/watch?v=YeJeoPCSpO8

The good, good and bad news:
  • The good news is that even if it is most probably a memory problem, which is something we can hardly fix, the way it can lead to all saves being corrupted without a warning is very problematic. So I added a simple check, that the indexes are internally correct while saving the map. The result is, that if it happens, the game will crash instead of allowing you to resave your game by a corrupt save.
  • The good news also is, that since I knew exactly what is the problem, I could manually change the index while loading the map, and I'm providing you the fixed version of your save here.
  • The only bad news is, that the fixed version is in a version 0.16.37, which you won't be able to open until the next update, which is expected to happen early next week.

Re: [kovarex] [0.16.36] save migration check fail

Posted: Fri Apr 20, 2018 2:39 pm
by xplycyt
Could you please do the same for me? I have over 1ooo hours on this mess. Would be very grateful.

Re: [kovarex] [0.16.36] save migration check fail

Posted: Fri Apr 20, 2018 6:01 pm
by Jap2.0
kovarex wrote:
  • The good news is that even if it is most probably a memory problem, which is something we can hardly fix, the way it can lead to all saves being corrupted without a warning is very problematic. So I added a simple check, that the indexes are internally correct while saving the map. The result is, that if it happens, the game will crash instead of allowing you to resave your game by a corrupt save.
Will there be a way to still save the game in that case so that we can upload it to the forum (for bug reports and stuff), or will that be included in the log/crash dump?

Re: [kovarex] [0.16.36] save migration check fail

Posted: Sun Apr 22, 2018 3:58 pm
by kovarex
xplycyt wrote:Could you please do the same for me? I have over 1ooo hours on this mess. Would be very grateful.
Also a 1 bit of difference in one index.

Re: [kovarex] [0.16.36] save migration check fail

Posted: Sun Apr 22, 2018 8:40 pm
by xplycyt
You are awesome thank thank you

Re: [kovarex] [0.16.36] save migration check fail

Posted: Fri Apr 27, 2018 12:58 pm
by spectrumero
Awesome :-) Thank you very much!

Re: [kovarex] [0.16.36] save migration check fail

Posted: Fri May 11, 2018 7:14 am
by vtxda
Same issue since the last update. Can you please help me out? (Energy source error, most probable cause is the double entity problem.)