The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: Spacethingy on December 24, 2013, 06:41:11 PM

Title: [r6993] Bridge + active power-line removal causes segfault
Post by: Spacethingy on December 24, 2013, 06:41:11 PM
(Also present in r6943.)


Best understood if I just show you how to recreate it:


1) Create a powerline connected to a power grid that is being used.


2) Drag a bridge that ends on the powerline (the pop-up shows that an invisible powerline still exists on the bridge's end tile):
(http://i.imgur.com/7KdBSuF.png)


3) Delete the invisible powerline - CTD occurs, terminal shows a segfault occurred.


Do this with an inactive power grid and nothing abnormal happens.


Cheers guys, hope this helps.  :D

EDIT: Works with power bridges too; trying to delete the end tile here causes a segfault.
(http://i.imgur.com/eaKpEaX.png)
Title: Re: [r6993] Bridge + active power-line removal causes segfault
Post by: prissi on December 27, 2013, 09:02:29 PM
Try next nightly please.
Title: Re: [r6993] Bridge + active power-line removal causes segfault
Post by: Spacethingy on December 28, 2013, 10:40:39 PM
Cool, fixed in r6999. Bridges can't end on a powerline tile now, as would be expected. Thanks guys! :D

(BTW, it may have already been fixed earlier before I posted, but the nightly build after r6993 was a messed up download. Sorry!)