Page 1 of 1
[0.17.54] Crash on loading save in illegal state.
Posted: Fri Jul 05, 2019 9:04 pm
by Stevetrov
What happens
The game aborts when I try to load the save I created when playing around with
this bug, this was the bug where trains could pass straight thru each other.
The reported error is: Error RailBlock.cpp:82: Block reserved by two different trains at the same time. (which makes complete sense!)
Full Log:
https://pastebin.com/Aq3L62kD
Savefile:
https://drive.google.com/open?id=1oB0mg ... lZrqeiGeSN
What did happen
Game crash
What did I expect to happen,
I was curious to see how the game would handle this situation so I wasn't sure what to expect.
Re: [0.17.54] Crash on loading save in illegal state.
Posted: Sat Jul 06, 2019 12:36 pm
by Rseding91
Thanks for the report however I'm not sure what you'd expect to happen from the game - if a corrupt state is detected it's a corrupt state.
Re: [0.17.54] Crash on loading save in illegal state.
Posted: Wed Jul 10, 2019 9:25 am
by Stevetrov
> I'm not sure what you'd expect to happen from the game - if a corrupt state is detected it's a corrupt state.
Well in an ideal world I would expect the game to migrate into a valid state as it does currently for loading old versions. Even removing the offending trains would be preferable to a crash. Afterall this save was generated without hacking save files, using mods or console commands.
However, this is such a tiny edge case that I doubt it is worth the effort to fix it. But ultimately that decision is up to you guys.
Re: [0.17.54] Crash on loading save in illegal state.
Posted: Wed Jul 10, 2019 12:47 pm
by kovarex
Stevetrov wrote: Wed Jul 10, 2019 9:25 am
> I'm not sure what you'd expect to happen from the game - if a corrupt state is detected it's a corrupt state.
Well in an ideal world I would expect the game to migrate into a valid state as it does currently for loading old versions. Even removing the offending trains would be preferable to a crash. Afterall this save was generated without hacking save files, using mods or console commands.
However, this is such a tiny edge case that I doubt it is worth the effort to fix it. But ultimately that decision is up to you guys.
The edge case is actually doing something that was possible to create only in the previous versions and is not possible now. So it probably shouldn't happen in the future. As long as you have backup of your save, it is not worth fixing.
Re: [0.17.54] Crash on loading save in illegal state.
Posted: Wed Jul 10, 2019 2:24 pm
by kovarex
Actually, since I'm fixing different kind of issue of this kind, I need to make a migration for it, so it will be fixed for the next release.
Re: [0.17.54] Crash on loading save in illegal state.
Posted: Sat Jul 13, 2019 8:15 am
by Stevetrov
Awesome job!