The International Simutrans Forum

Simutrans Extended => Simutrans-Extended bug reports => Simutrans-Extended development => Simutrans-Extended closed bug reports => Topic started by: Matthew on December 20, 2020, 04:19:44 PM

Title: Deleting a halt then viewing halt details causes client crash
Post by: Matthew on December 20, 2020, 04:19:44 PM
Steps to reproduce

1. Run today's client (2020-12-20, #f5c7274)
2. Open an existing savegame
3. Find a halt (Halt A) with only one direct connection (to Halt B)
4. Delete Halt B
5. Open Halt A's Details window and click on the Direct routes tab
6. Client will crash
The crashes will repeat whenever steps 5-6 are repeated. I speculate that this will continue until the Path Explorer refreshes the relevant route

Backtrace:
(https://cdn.discordapp.com/attachments/756877359176613922/790250122021699604/Hard_crash_after_Station_Details.png)
Full backtrace here (https://drive.google.com/file/d/1JJ2KYBJRyUQMnhqYkeT7izjQKDuYNRlV/view?usp=sharing)

Probable cause:
The Direct routes tab is trying to display the name of a halt that no longer exists
Title: Re: Deleting a halt then viewing halt details causes client crash
Post by: jamespetts on December 20, 2020, 05:09:31 PM
Thank you for the report - I believe that I have now fixed this. I should be grateful if you could re-test with to-morrow's nightly build.
Title: Re: Deleting a halt then viewing halt details causes client crash
Post by: Matthew on January 20, 2021, 03:30:05 PM
This bug was not fixed in December, but it is fixed now. Thank you to James, Freddy, and Ranran, who I think were all involved.  :thumbsup: