The International Simutrans Forum

Simutrans Extended => Simutrans-Extended bug reports => Simutrans-Extended development => Simutrans-Extended closed bug reports => Topic started by: Matthew on August 30, 2021, 09:18:59 PM

Title: Reproducible hard crash on B-B when opening Way info window for trestle bridges
Post by: Matthew on August 30, 2021, 09:18:59 PM
Steps to reproduce
1. Start Simutrans-Extended in Linux (I used the version published on BB 2021-08-30, reporting as #ef15f12).
2. Load B-B, either by connecting to the online game as a client or by loading a recent save game.
3. Find a wooden trestle bridge, e.g. jump to the one at (216,1814,4) and (216,1813,4).
4. If you have them enabled, turn off pedestrian Info windows.
4. Using the default Info tool, left-click on the bridge.

Expected behaviour
The Way Info window is displayed.

Actual behaviour
The game hard crashes with SIGSEV.

Notes
1. I get the crash both as logged-out Observer and logged in as my own company, which probably owns the bridge.
2. The bridge (216,1814,4) is over a Cattle Farm, but I can also trigger the crash by left-clicking on wooden trestle bridges over rivers.
3. Masonry bridges do not seem to be affected.
4. I tried a backtrace but got no useful information since this is not a debug build.
5. I suspect this is to do with the new Way Info window, but I'm not certain.
Title: Re: Reproducible hard crash on B-B when opening Way info window for trestle bridges
Post by: RESTRICTED ACCOUNT on August 30, 2021, 11:15:24 PM
Thank you for your report.
I found out that there was a problem with crashing when clicking on a bridge without an owner, so I fixed it.
Please check pull request #436. This includes a few commits from standard. The overlay position issue will be fixed.
I am not sure if this is the same problem with the server.
Title: Re: Reproducible hard crash on B-B when opening Way info window for trestle bridges
Post by: jamespetts on August 30, 2021, 11:23:04 PM
Thank you to Ranran for the fix - I have now incorporated this. I should be grateful if you could test whether the fix works with to-morrow's nightly build.
Title: Re: Reproducible hard crash on B-B when opening Way info window for trestle bridges
Post by: Matthew on August 31, 2021, 03:10:17 PM
The fix works! Thank you Ranran for the very quick patch and James for incorporating it.

Apologies that I thought the issue was about bridge type when it was actually about bridge ownership. That was not a good lead.