The International Simutrans Forum

Simutrans Extended => Simutrans-Extended bug reports => Simutrans-Extended development => Simutrans-Extended closed bug reports => Topic started by: Spenk009 on March 21, 2020, 07:56:04 PM

Title: Using the water way removal tool crashes the game
Post by: Spenk009 on March 21, 2020, 07:56:04 PM
Using the water way remover (x) crashes the game when clicking on any river or canal tile. Tested in nightly/self compiled newest version.
Title: Re: Using the water way removal tool crashes the game
Post by: Matthew on March 21, 2020, 08:03:56 PM
I also get this.
Title: Re: Using the water way removal tool crashes the game
Post by: jamespetts on March 21, 2020, 09:12:46 PM
Thank you both for your reports. I believe that I have now fixed this on the private-car-routing-memory-saving branch. I should be grateful if you could re-test with that branch, which I am hoping to integrate soon once it has been tested, to see whether this has been fixed. Thank you.
Title: Re: Using the water way removal tool crashes the game
Post by: Matthew on March 21, 2020, 09:47:25 PM
I can now destroy canals and canalized rivers using the water-way-remover tool with commit #d33d9dd, so thank you for making progress with this bug.

I cannot destroy streams (natural, non-navigable waterways) using the tool. Mostly I get an error message saying "Ways not connected". But one time I got a crash with this GDB backtrace:

Maybe we are not supposed to be able to use this tool with streams, but I thought that we could in the past.

EDIT: The crash was with an earlier commit, apologies.
Title: Re: Using the water way removal tool crashes the game
Post by: jamespetts on March 22, 2020, 11:36:18 AM
This would be caused by the fact that the way removal tool uses a special sort of vehicle to iterate along the way tiles (a design from Standard): because streams are unnavigable, the special vehicle cannot find a route along them.
Title: Re: Using the water way removal tool crashes the game
Post by: Spenk009 on March 22, 2020, 11:58:28 AM
Thank you very much, confirmed as fixed.
Title: Re: Using the water way removal tool crashes the game
Post by: jamespetts on March 22, 2020, 12:00:49 PM
Splendid,m thank you for confirming.