Page 1 of 1

[Rseding91] [1.1.6] Crash connecting custom rail signal via circuit wire (DrawQueue::draw)

Posted: Mon Dec 28, 2020 7:03 pm
by Muppet9010
I get a crash when connecting 2 custom rail signals with a circuit wire. I believe it is due to the rail signal only having 1 animation direction and 1 circuit_wire_connection_points and circuit_connector_sprites entry.
It only seems to happen on East/West rail signals and not North South rail signals.

When I change it to have 4 of each directions the custom rail signal can be connected correctly. The custom rail signal doesn't have the 8 direction entity flag.

Attached simple test mod to create the issue in 1.1.6:
test_1.0.0.zip
(800 Bytes) Downloaded 133 times
Save game with track and signals placed, circuit wire in hand. Just connect the 2 signals and it crashes. They are both attached to the rail, just look odd as only single graphics direction in example:
crash.zip
(1.22 MiB) Downloaded 128 times
Log file:
factorio-current.log
(11.26 KiB) Downloaded 140 times
Dump file:
factorio-dump-current.dmp
(876.09 KiB) Downloaded 131 times

Re: [1.1.6] Crash connecting custom rail signal via circuit wire (DrawQueue::draw)

Posted: Tue Dec 29, 2020 6:50 pm
by Rseding91
Thanks for the report. It's now fixed for the next release.