The International Simutrans Forum

Simutrans Extended => Simutrans-Extended development => Simutrans-Extended bug reports => Topic started by: Sirius on May 17, 2020, 12:26:16 AM

Title: [BUG] game crashes when opening minimap in some cases
Post by: Sirius on May 17, 2020, 12:26:16 AM
I had already mentioned this in the recent minimap feature thread, but I guess this bugreport deserves its own thread.
I am not even sure if it is related to latest changes or not.

How to reproduce?
1. connect to stephenson-siemens
2. disconnect from stephenson-siemens
3. connect to Bridgewater
4. open the minimap
5. crash.

I hope this works for you, otherwise I'll have to dig deeper. The above did always crash for me.
Title: Re: [BUG] game crashes when opening minimap in some cases
Post by: Ranran(Hibernating) on May 17, 2020, 02:14:09 AM
I couldn't reproduce this. I suspect it may be related to switching players or manipulating map options.  ???
Title: Re: [BUG] game crashes when opening minimap in some cases
Post by: Sirius on May 17, 2020, 02:12:29 PM
I guess I got it reproduced reliably now. The above description is correct, but there is one essential step missing in it, I was not aware of. Anyways, it's also reproducible with offline saves, so here is a slightly different description not involving connecting to any server.

How to reproduce?
1. create a savegame of a large map, like Bridgewater and make sure the minimap is not opened when you save the game!
2. load a savegame of a small map.
3. open the minimap
4. zoom in as far as you can
5. load the large map again
6. open the minimap
7. crash (oh well, 7 being the bad luck number :P)
Title: Re: [BUG] game crashes when opening minimap in some cases
Post by: Ranran(Hibernating) on May 17, 2020, 02:23:16 PM
It seems to be caused by inheriting the zoom factor of the minimap from another map. We should either not inherit this over or check the zoom cap again when opening the minimap.
Does this have the same problem with standard?
Title: Re: [BUG] game crashes when opening minimap in some cases
Post by: Sirius on May 17, 2020, 02:27:15 PM
Imho not inheriting it is the "clean" way
Title: Re: [BUG] game crashes when opening minimap in some cases
Post by: ceeac on May 17, 2020, 05:09:40 PM
Quote from: Ranran on May 17, 2020, 02:23:16 PMDoes this have the same problem with standard?
No, I just checked and could not reproduce the crash.