[kovarex] [0.16.41] Crash when loading save: "Rail already connected"
Posted: Thu May 03, 2018 10:15 pm
by Diskeater
Game crashed with an “unexpected error” when trying to load current save. Took a look at the log and it looks like an issue with rails: "Error when creating segment ###, found rail already connected to segment ###". I’ve attached the crash log. My save is here: https://drive.google.com/file/d/1p-vlFr ... sp=sharing
Let me know if you need any more info.
Re: [0.16.41] Crash when loading save: "Rail already connected"
Possibly relevant - in the few minutes before the save, I was repeatedly placing and then deconstructing a blueprint (rail / blue belt train loading station), with my personal construction bots flying around trying to follow whatever the most recent orders were at any given time. I also toggled the PickerExtended mod during this process (for the blueprint-mirror functionality). I also replicated the crash with all three 2-minute autosaves
[0.16.41] Crash when loading save: "RailSegment.cpp"
Posted: Sun May 06, 2018 9:49 am
by Winterish
Hi Factorio Devs,
I can't open my current factory save file (162hrs) - it was fine just yesterday.
details
Attached are the save file & error logs. Let me know if you need any other files to investigate.
Relevant Log output: "RailSegment.cpp:154: Error when creating segment 139870,
found rail (straight-rail on {1173.0000000000, -195.0000000000})
already connected to segment 139869
Logger::writeStacktrace skipped.
40.054 Error Util.cpp:67: Unexpected error occurred."
Mods I use:
Bottleneck_0.9.1
Exoskeleton Mark II_3.0.0
far-reach_0.0.7
long-reach_0.0.12
ModuleInserter_3.0.2
Squeak Through_1.2.2
Todo-List_16.0.4
upgrade-planner_1.5.3
I attempted to load with and without mods with no luck.
Replication:
After selecting to load my saved game (single player - 0.16.41 - build 36431, win64), once the load bar reaches 100% the game pauses slightly then crashes with the attached error message.
I'd appreciate any help you can give me! Apologies if this post isn't in the right style, location etc - I literally just created my forum account right now, to try and restore my save file.
Re: [0.16.41] Crash when loading save: "Rail already connected"
Posted: Sun May 06, 2018 7:19 pm
by basilgohar
This sounds similar to the issue I'm having. Per instructions, here's my past two logs attached.
Re: [0.16.41] Crash when loading save: "Rail already connected"
Posted: Mon May 07, 2018 9:11 pm
by jebob
Same.
EDIT all my autosaves have the same issue. I am not using robots, but I am using a long reach mod and blueprints for rails.
Re: [0.16.41] Crash when loading save: "Rail already connected"
Posted: Tue May 08, 2018 1:52 am
by Matrix_V
Same issue.
jsalomon wrote:Possibly relevant - in the few minutes before the save, I was repeatedly placing and then deconstructing a blueprint (rail / blue belt train loading station), with my personal construction bots flying around trying to follow whatever the most recent orders were at any given time.
Similar to jsalomon, I believe I had rail deconstruction tasks queued.
Re: [0.16.41] Crash when loading save: "Rail already connected"
Posted: Tue May 08, 2018 3:25 am
by Bootvi
Same, and I agree - it is related to massive building/deconstructing with robots, and being far from them - so they're still out.
To recreate, load the save 01 BEFORE, and wait 30 seconds. Then Save and try to load again -it'll crash .
However, if I wait for the personal rebots to return, it'll be fine.
Sometimes, if I had my robots do that miles away, and they're slowly returning to me, it'll crash too. Which means that all 3 autosaves will be ruined too.
Re: [0.16.41] Crash when loading save: "Rail already connected"
Posted: Tue May 08, 2018 9:15 am
by cawgod
jsalomon wrote:[...]
Possibly relevant - in the few minutes before the save, I was repeatedly placing and then deconstructing a blueprint (rail / blue belt train loading station), with my personal construction bots flying around trying to follow whatever the most recent orders were at any given time. [...]
Same here; in a heavily modded game using my personal robots I scheduled an area with plenty of rails for deconstruction and directly scheduled another print with even more rails and similar layout to be placed directly over it (e.g. replacing a t-junction with a crossing). I was doing this for the last couple of hours or so, so my autosaves are pretty much all affected.
To recreate, load the save 01 BEFORE, and wait 30 seconds. Then Save and try to load again -it'll crash .
My big thanks to you. When I returned to this bug report, I wasn't really sure how to figure out how it is happening, and this kind of setup, where I could easily reproduce the moment when it gets broken was the key to fix the bug.
So this is fixed for 0.16.42
Re: [0.16.41] Crash when loading save: "Rail already connected"
Posted: Wed May 09, 2018 2:09 pm
by Matrix_V
kovarex wrote:So this is fixed for 0.16.42
Thank you! Will our broken saves be usable?
Re: [0.16.41] Crash when loading save: "Rail already connected"
Posted: Wed May 09, 2018 3:03 pm
by mayreau
Matrix_V wrote:
kovarex wrote:So this is fixed for 0.16.42
Thank you! Will our broken saves be usable?
The question on all our minds, to be sure!
Re: [0.16.41] Crash when loading save: "Rail already connected"
Posted: Wed May 09, 2018 4:16 pm
by kovarex
Matrix_V wrote:
kovarex wrote:So this is fixed for 0.16.42
Thank you! Will our broken saves be usable?
Obviously yes.
The migration, that re-builds the segments and signal connections is working properly (after 4 releases of fixing it), and I just re-activated it when transitioning to 0.16.42
Re: [0.16.41] Crash when loading save: "Rail already connected"
Posted: Wed May 09, 2018 5:33 pm
by mayreau
kovarex wrote:
Matrix_V wrote:
kovarex wrote:So this is fixed for 0.16.42
Thank you! Will our broken saves be usable?
Obviously yes.
The migration, that re-builds the segments and signal connections is working properly (after 4 releases of fixing it), and I just re-activated it when transitioning to 0.16.42
Wonderful, thanks kovarex. Do you have an estimate for when this update will be pushed live?
Re: [kovarex] [0.16.41] Crash when loading save: "Rail already connected"
Posted: Thu May 10, 2018 10:29 am
by Supanova_HS
This bug is causing a lot of games to fail now, at what point does a bug become critical to warrant a hot fix?
I've witnessed 3 save games fail due to this, several multiplayer maps crash on load, and 2 new posts in a matter of minutes also related to this crash
Re: [0.16.41] Crash when loading save: "Rail already connected"
Posted: Thu May 10, 2018 8:31 pm
by Bootvi
kovarex wrote:
Bootvi wrote:Same, and I agree - it is related to massive building/deconstructing with robots, and being far from them - so they're still out.
To recreate, load the save 01 BEFORE, and wait 30 seconds. Then Save and try to load again -it'll crash .
My big thanks to you. When I returned to this bug report, I wasn't really sure how to figure out how it is happening, and this kind of setup, where I could easily reproduce the moment when it gets broken was the key to fix the bug.
So this is fixed for 0.16.42
YAY I helped the game I love so much!
I've been working for years in a software company as Support working with developers, so I know what devs needs to fix bugs.
Thanks for getting this one fixed.
Re: [kovarex] [0.16.41] Crash when loading save: "Rail already connected"
Posted: Thu May 10, 2018 11:36 pm
by mayreau
Supanova_HS wrote:This bug is causing a lot of games to fail now, at what point does a bug become critical to warrant a hot fix?
I've witnessed 3 save games fail due to this, several multiplayer maps crash on load, and 2 new posts in a matter of minutes also related to this crash
Yeah, I was hoping this would be a hotfix as well. Don't want to be forced to start a new game just because I can't load the one I'm working on!
Re: [kovarex] [0.16.41] Crash when loading save: "Rail already connected"
Posted: Fri May 11, 2018 1:23 pm
by kovarex
The problem was, that we were moving to the new office, so we couldn't make the release right away.
We are now in the new office and the release is in progress already.
Re: [kovarex] [0.16.41] Crash when loading save: "Rail already connected"
Posted: Fri May 11, 2018 2:10 pm
by Supanova_HS
kovarex wrote:The problem was, that we were moving to the new office, so we couldn't make the release right away.
We are now in the new office and the release is in progress already.
Are you single?
Re: [kovarex] [0.16.41] Crash when loading save: "Rail already connected"
Posted: Fri May 11, 2018 2:31 pm
by cawgod
It seems to me that the fix did not make it to the .42; neither can I find it in the changelog nor does my savegame load...
460.368 Error EntityGhost.cpp:497: this->innerEntity->buildabilityCheck(BuildCheckData(BuildCheckType::ScriptBuilding)) == BuildCheckResult::Buildable was not true
instead of "Error when creating segment" when loading the save...