News:

Simutrans.com Portal
Our Simutrans site. You can find everything about Simutrans from here.

Reproducible hard crash on B-B when opening Way info window for trestle bridges

Started by Matthew, August 30, 2021, 09:18:59 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Matthew

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.
(Signature being tested) If you enjoy playing Simutrans, then you might also enjoy watching Japan Railway Journal
Available in English and simplified Chinese
如果您喜欢玩Simutrans的话,那么说不定就想看《日本铁路之旅》(英语也有简体中文字幕)。

Ranran

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.

jamespetts

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.
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

Matthew

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.
(Signature being tested) If you enjoy playing Simutrans, then you might also enjoy watching Japan Railway Journal
Available in English and simplified Chinese
如果您喜欢玩Simutrans的话,那么说不定就想看《日本铁路之旅》(英语也有简体中文字幕)。