The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: whoami on December 18, 2012, 02:38:29 AM

Title: up to r6198: crash with track removal tool removing EOC
Post by: whoami on December 18, 2012, 02:38:29 AM
In http://simutrans-germany.com/files/upload/test_crash_20121218_pak64.sve (pak64), there are rail crossings with EOC signs on them. Using the track removal tool on these crossings (e.g. to disconnect the two parallel tracks from each other) leads to a crash.

I hope that the solution will not include forbidding the placement of signs on rail crossings, because I use that very often. I encountered the problem in an actual game with Pak128.

EDIT: the crossing is not necessary for the crash. It seems to happen if the removal tool is dragged from/to a tile with an EOC.
Title: Re: up to r6198: crash with track removal tool removing EOC
Post by: Ters on December 18, 2012, 05:52:40 AM
I want to point out that when I tried this, it didn't crash when using the track removal tool the first time, but it did crash when I tried using it again on the same tile.
Title: Re: up to r6198: crash with track removal tool removing EOC
Post by: whoami on December 19, 2012, 07:09:31 PM
The crash does not happen in every case, that is right.
How to crash:
- build straight track (at least four tiles)
- place an EOC (end of choose) sign on this track (not an end tile)
- drag the track removal tool from another track tile onto the EOC sign -> disconnects track and removes the sign
- start dragging the tool from the tile where the sign had stood -> instant crash
Title: Re: up to r6198: crash with track removal tool removing EOC
Post by: Ters on December 19, 2012, 07:39:23 PM
Quote from: whoami on December 19, 2012, 07:09:31 PM
The crash does not happen in every case, that is right.
How to crash:
- build straight track (at least four tiles)
- place an EOC (end of choose) sign on this track (not an end tile)
- drag the track removal tool from another track tile onto the EOC sign -> disconnects track and removes the sign
- start dragging the tool from the tile where the sign had stood -> instant crash

Pretty much what I did when I tried. However, the signal was not removed on step 3. It was no longer visible, but the query tool said the signal was still there. I think that's been the case with signals for a long time. If one rebuilt the removed track, the signal would come back, but it's directions would have changed.
Title: Re: up to r6198: crash with track removal tool removing EOC
Post by: Dwachs on December 19, 2012, 08:12:21 PM
should be fixed in r6204