Page 1 of 1
[2.0.60] Suddenly can't load save/autosave
Posted: Sun Aug 17, 2025 8:24 am
by BlackViperMWG
Playing with few planet mods, saved the game, an hour later wanted to load it, can't. Unexpected error and crash while loading, all three autosaves and main save. Same crash even when trying to convert the saves into map editor.
Screenshot:
https://i.imgur.com/LL1g559.png
I've tried verifying game files too.
Log:
https://pastebin.com/5Zhu9urV
Saves and modlist:
https://www.dropbox.com/t/3zfuIRVkVKc5JjQ0
Re: [2.0.60] Suddenly can't load save/autosave
Posted: Sun Aug 17, 2025 12:09 pm
by Rseding91
You likely have failing hardware as the place that's crashing is checked on save to be valid and on load has been found invalid. That means between the game writing to disk and it being loaded something corrupted it.
Re: [2.0.60] Suddenly can't load save/autosave
Posted: Sun Aug 17, 2025 12:31 pm
by BlackViperMWG
Doesn't sound probable to me, my PC is only 5 months old, and I've just tried it on another computer, same issue.
Re: [2.0.60] Suddenly can't load save/autosave
Posted: Sun Aug 17, 2025 12:54 pm
by Loewchen
BlackViperMWG wrote: Sun Aug 17, 2025 12:31 pm
I've just tried it on another computer, same issue.
You corrupted an uncorrupted save on a different machine or you had the same error of an already corrupted save on different machine? The former would be interesting the latter apparent.
Re: [2.0.60] Suddenly can't load save/autosave
Posted: Sun Aug 17, 2025 1:12 pm
by BlackViperMWG
Just copied the saves and tried to load them with synced mods, like anyone can from the dropbox here. Thought that would rule out hardware issues.
Re: [2.0.60] Suddenly can't load save/autosave
Posted: Sun Aug 17, 2025 3:29 pm
by Rseding91
The save files are corrupt - copying the corrupt save to another computer won’t un-corrupt it.
Re: [2.0.60] Suddenly can't load save/autosave
Posted: Sun Aug 17, 2025 4:42 pm
by BlackViperMWG
Is there even any way to un-corrupt them?
Re: [2.0.60] Suddenly can't load save/autosave
Posted: Sun Aug 17, 2025 5:09 pm
by Rseding91
As a player, no. Sometimes saves can be recovered by developers but it’s rare and less frequent - because what ever corrupted the save will just happen again on the players computer unless they address the underlying problem (failing hardware has virtually always been found after save corruption has been found).
Re: [2.0.60] Suddenly can't load save/autosave
Posted: Sun Aug 17, 2025 6:23 pm
by boskid
I tried to recover this save file, i think i managed to make it load.
There were total of 74 electric networks that were orphaned (not owned by any electric network on the surface nor not owned by any equipment grid). Error that was being thrown suggests that the electric network was missing statistics however i suspect that was a slight red herring as a more likely explanation here is that there were equipment grids destroyed in some unexpected way that caused those 74 electric networks to not be deleted properly and on load since no equipment grid attached to them they thought they are part of electric network on the surface which should have statistics on it. Do you remember any suspicious game interaction where items with equipment grid or entities with equipment grid were destroyed? In my quick check i was unable to find any reproduction that would trigger this corruption.
-- edit:
I left this save file running for 1h and there was no corruption happening on its own. Given the state of this save file i suspect the electric networks that were orphaned were originally owned by the "trashsteroids" on the planet Rubia since they are implemented as vehicles with equipment grid that has shield equipment inside and i see there is a lot of those entities destroyed. I have no idea how could those equipment grids cause electric networks to be orphaned.
Re: [2.0.60] Suddenly can't load save/autosave
Posted: Sun Aug 17, 2025 7:41 pm
by BlackViperMWG
It works! Thank you so much mr. boskid.
No idea about those electric networks, perhaps something that happened when I've added mods after finishing the vanilla game?
I will copy your reply to the Rubia team too. Thanks again!
Re: [2.0.60] Suddenly can't load save/autosave
Posted: Sun Aug 17, 2025 7:47 pm
by boskid
Mods should not be able to leak equipment grids in any way so i am not seeing any value in reporting this to Rubia team, i just tried to give you some clues of what could be involved because maybe it would allow you to remember some unusual interactions with those entities.
Re: [2.0.60] Suddenly can't load save/autosave
Posted: Sun Aug 17, 2025 9:33 pm
by Loup&Snoop
boskid wrote: Sun Aug 17, 2025 6:23 pm
Given the state of this save file i suspect the electric networks that were orphaned were originally owned by the "trashsteroids" on the planet Rubia since they are implemented as vehicles with equipment grid that has shield equipment inside and i see there is a lot of those entities destroyed. I have no idea how could those equipment grids cause electric networks to be orphaned.
This is the first I hear of that sort of issue, so I apologize if this is causing issues. The last time I touched trashsteroids were on July 15th (over a month ago), so it is likely not a recent update--just rare? Looking through the save, he is generating 55-75 trashsteroids spawned at a given time, so 74 orphans is consistent with Boskid's hypothesis.
Context: All my trashsteroids are indeed LuaEntity derived from CarPrototype with equipment grids that contain a single shield (EnergyShieldEquipmentPrototype). That shield allows me to dynamically adjust their max health via a shield that will never be charged. They are effectively made in
script.on_nth_tick. Trashsteroids are always destroyed by either damage (from player), or by script with all routes effectively running:
if entity.valid then entity.destroy(). This includes an on_configuration_changed call to find all of these entities on the surface, and:
if entity.valid then entity.destroy() them.
This all seems fairly innocuous to me. Is there something I should know about destroying these entities in a way to more reliably deallocate their electric networks?
Re: [2.0.60] Suddenly can't load save/autosave
Posted: Mon Aug 18, 2025 3:33 am
by ilikehackinggames
Loup&Snoop wrote: Sun Aug 17, 2025 9:33 pm
boskid wrote: Sun Aug 17, 2025 6:23 pm
Given the state of this save file i suspect the electric networks that were orphaned were originally owned by the "trashsteroids" on the planet Rubia since they are implemented as vehicles with equipment grid that has shield equipment inside and i see there is a lot of those entities destroyed. I have no idea how could those equipment grids cause electric networks to be orphaned.
This is the first I hear of that sort of issue, so I apologize if this is causing issues. The last time I touched trashsteroids were on July 15th (over a month ago), so it is likely not a recent update--just rare? Looking through the save, he is generating 55-75 trashsteroids spawned at a given time, so 74 orphans is consistent with Boskid's hypothesis.
Context: All my trashsteroids are indeed LuaEntity derived from CarPrototype with equipment grids that contain a single shield (EnergyShieldEquipmentPrototype). That shield allows me to dynamically adjust their max health via a shield that will never be charged. They are effectively made in
script.on_nth_tick. Trashsteroids are always destroyed by either damage (from player), or by script with all routes effectively running:
if entity.valid then entity.destroy(). This includes an on_configuration_changed call to find all of these entities on the surface, and:
if entity.valid then entity.destroy() them.
This all seems fairly innocuous to me. Is there something I should know about destroying these entities in a way to more reliably deallocate their electric networks?
if this is related to the mod then its still a engine bug. mods shouldnt be able to currupt saves like this. so there is unlikely to be a known way to destroy the entities to free the electric networks given that the fact that its even posable to not free them is unknown (if that is the cause) at least from my understanding
Re: [2.0.60] Suddenly can't load save/autosave
Posted: Mon Aug 18, 2025 12:33 pm
by Loup&Snoop
Thanks. If nothing else, I hope this information helps the devs track down the condition that causes this save corruption.
Re: [2.0.60] Suddenly can't load save/autosave
Posted: Mon Aug 18, 2025 12:40 pm
by boskid
Ok i am just locking this topic now because it is diverging heavily. I know mods should not be able to leak equipment grids and if there is some interaction that would make it possible would be a game bug. I only mentioned those entities to provide a hook that would trigger some faint memories of interaction with those entities. At no point i said it is mod fault, i was just trying to find if there is some interaction i forgot to look at when doing my manual testing. Since there are no reproductions of this bug it is still possible that it was a hardware problem, i am not even trying to predict what it could be, maybe a RAM failure that was corrupting equipment grids that were allocated at some specifc memory address causing them to not be deallocated because they were seen as still used. If there is a reproduction found please report to Bug reports, otherwise i am considering this to be a hardware issue.