The International Simutrans Forum

Simutrans Extended => Simutrans-Extended development => Simutrans-Extended bug reports => Topic started by: michal. on June 12, 2020, 02:54:10 PM

Title: [Bug] Inaccessible landscape tools
Post by: michal. on June 12, 2020, 02:54:10 PM
Hi,

I'm unable to click on landscape tools from the top menu after loading the attached save game. The save was created on May 10.

(https://simutrans-germany.com/files/upload/landscape_tools.png)

The button remains darker as if the panel was opened at all time. However, lowering/raising terrain via shortcuts works. There are no issues when the save is opened by May 10 linux version by which the map was originally created. I have no issues loading other saves - older or younger than this one -, this issue is specific to the attached save.

Save: https://easyupload.io/nvdd0y (https://easyupload.io/nvdd0y)
Title: Re: [Bug] Inaccessible landscape tools
Post by: jamespetts on June 12, 2020, 03:04:10 PM
Thank you for your report. I have briefly looked into this, but have not had time to examine this in full. The landscape window appears to be treated as being open, but is somehow corrupt, and closing all windows using the backspace key appears to cause a crash in tool_selector_t::empty on the basis that the object of which that function is a member is an invalid memory location.

This may require some considerable and complex work to look into. In the meantime, you might work around the issue by using the keyboard shortcuts for the various landscaping tools.
Title: Re: [Bug] Inaccessible landscape tools
Post by: Mariculous on June 12, 2020, 04:10:00 PM
I cannot confirm the crash.
I can close the window using escape, packspace, delete or  right click.
It does not appear on screen, however.

I'd expect the game was saved at high resolution and the window is out of viewport as I have observed such issues frequently when transfering savegames from my computer to my old laptop, which had a smaller resolution.
I did not debug this save, however.

Edit: Still the game crashed, after a while but that was not related to closing the window.