[kovarex] [1.1.13] Crash placing rail (TrainManager::onRailCreated)

This subforum contains all the issues which we already resolved.
Post Reply
fencing_elf
Manual Inserter
Manual Inserter
Posts: 2
Joined: Sat Mar 30, 2019 4:33 pm
Contact:

[kovarex] [1.1.13] Crash placing rail (TrainManager::onRailCreated)

Post by fencing_elf »

After a train took an absurdly long path, I noticed that adding a single curved track would fix the issue. When I went to place the track, clicking to place causes a crash. If I remove the signal circled on my screenshot, there is no crash.

I tried to reproduce by creating a similar track structure in the editor, but there the chain signal correctly went to disconnected state.
Attachments
Newgame24.zip
(7 MiB) Downloaded 99 times
factorio-current.log
(13.65 KiB) Downloaded 107 times
track_place_bug.png
track_place_bug.png (4.98 MiB) Viewed 1943 times

fencing_elf
Manual Inserter
Manual Inserter
Posts: 2
Joined: Sat Mar 30, 2019 4:33 pm
Contact:

Re: [1.1.13] Crash when placing track

Post by fencing_elf »

I disabled mods and created a blueprint of the relevant rail section. Placing the blueprint then attempting to place the curve caused the crash.

Attachments
factorio-current.log
(9.89 KiB) Downloaded 108 times

kovarex
Factorio Staff
Factorio Staff
Posts: 8078
Joined: Wed Feb 06, 2013 12:00 am
Contact:

Re: [kovarex] [1.1.13] Crash placing rail (TrainManager::onRailCreated)

Post by kovarex »

Hello, thanks for the report.

TL;DR It is now fixed for the next release.

I was actually wondering what is causing the most prominent crash report, as we didn't have any forum bug reports related to it and as I couldn't reproduce it or figure out what exactly went wrong.
But I made a blind fix for the 1.1.14 by cleaning up some non-standard piece of old code that had potential to break something in the hopes that it might make it go away.

But with your report and a reproducer, I was able to confirm, that the blind fix actually works, so it can be official :)

Post Reply

Return to “Resolved Problems and Bugs”