Page 1 of 1

[2.0.42] Crash loading save due to mod: ElectricEnergySource.cpp:613: Invalid owner type

Posted: Sun Mar 23, 2025 7:16 pm
by donisaurs
Got a save game chain that worked on 2.0.32, that now won't load anymore in 2.0.39 and 42. The load bar progresses, then a "running entity setup" bar appears and the game crashes with (full log file linked below):
31.833 Error ElectricEnergySource.cpp:613: Invalid owner type
31.833 Error CrashHandler.cpp:643: Received 22

I had only the following mods enabled:
  • HD planets - hd_planets - 2.0.10
  • Visible planets in space - visible-planets - 1.2.12
After some troubleshooting I found the following to be true concerning the visible-planets mod:
- 2.0.39 with mod version 1.2.12 -> crash
- 2.0.39 with mod version 1.4.4 -> crash
- 2.0.39 with no mod -> crash
- fallback to 2.0.32 with no mod -> crash
- fallback to 2.0.32 with mod version 1.4.4 -> crash
- fallback to 2.0.32 with mod version 1.2.12 (so original version pre update to 2.0.39) -> OK
- fallback to 2.0.32 with mod version 1.3.1 -> crash
- fallback to 2.0.32 with mod version 1.2.16 -> crash

Issue seems to be related to that specific mod version. The issue is not related to a specific save game and persists across sessions. Even tried save game backups from before 2.0.39 was released. Any change to a visible-planets mod other than 1.2.12 in 2.0.32 crashes. I can't find any earlier mod versions >1.2.12 and <1.2.16 to test with and all the version I've tried are giving errors.

I've reached out to the mod dev, see https://mods.factorio.com/mod/visible-p ... e615028e9f, who could not find the cause and recommended reaching out here. I've tried the suggestion of adding another mod when running 2.0.32 in combination with mod version 1.2.12 (used DiscoScience_2.0.1.zip as a test), this also makes the load crash.

So my factory is stuck growing on a specific branch, and can't move away from the mod either. :? Playtime isn't huge, but it's the only playtime I've been able to get since Space Age released :) I would very much appreciate some assistance!

Save game:
SPAAAAAAAAACE_5.zip
Current save game
(37.94 MiB) Downloaded 38 times
Log file (current):
factorio-current.log
Current log file of loading game & crashing
(11.41 KiB) Downloaded 33 times
Dump file (current):
factorio-dump-current.dmp
Current dump file
(1.27 MiB) Downloaded 30 times
Log file (previous):
factorio-previous.log
Previous log file
(11.86 KiB) Downloaded 36 times
Mod file:
visible-planets_1.2.12.zip
Mod in question
(547.01 KiB) Downloaded 25 times
Mod file addon: https://mods.factorio.com/mod/hd_planets

Re: [2.0.42] Crash loading save due to mod: ElectricEnergySource.cpp:613: Invalid owner type

Posted: Sun Mar 23, 2025 7:28 pm
by Loewchen
I don't think this has anything to do with the mod but with the check only running when game or mod version change.

Re: [2.0.42] Crash loading save due to mod: ElectricEnergySource.cpp:613: Invalid owner type

Posted: Wed Mar 26, 2025 2:14 pm
by Rseding91
Looking at the save: the save file is already in a broken state and it's simply detected any time you change game versions or update any mods/change mods. If you know of a way to get a working save into this broken state let us know but otherwise this kind of issue has historically been failing hardware (RAM or CPU).

Re: [2.0.42] Crash loading save due to mod: ElectricEnergySource.cpp:613: Invalid owner type

Posted: Wed Mar 26, 2025 7:30 pm
by donisaurs
Had issues with a RAM stick that started failing with uncorrectable errors. Got replaced and haven't had a single BSOD since. Anything I can do manually to the save file to weed out parts that are triggering the bug?