The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: Combuijs on December 18, 2016, 09:39:51 PM

Title: Crash while extending a map
Post by: Combuijs on December 18, 2016, 09:39:51 PM
In the current stable release (e.g. 120.1.3) I get an assert in simplan.cc 202

expression alt !=null && neu != null && !alt->is_halt()

What I do is extend a map from 1200x600 to 1200x800. I get it consistently every time, also if I change 800 to 700 or 1000.

Could not find anything similar in the forum.

Any ideas? I can provide a savegame, but I am playing with my own pak, so the download could be pretty big.

I started with a 400x200 map, previous extensions to 400x400, 800x400, 800x600, 1200x600 went without any problem.
Title: Re: Crash while extending a map
Post by: Dwachs on December 19, 2016, 06:31:09 AM
There was an error report with the same failed assertion. However, it affected savegames, where townhall paks were missing and substitution failed to some degree. Could you please test this with a nightly?

Besides this, a savegame & pak is needed to be able to reproduce this.
Title: Re: Crash while extending a map
Post by: Combuijs on December 19, 2016, 05:11:32 PM
Hi Dwachs, thank you for your answer. Nightly build crashes also, which was to be expected as I don't build any new cities while extending.

Here are the pak and save game.

https://dl.dropboxusercontent.com/u/103560986/Simutrans/Veepland.sve (https://dl.dropboxusercontent.com/u/103560986/Simutrans/Veepland.sve)
https://dl.dropboxusercontent.com/u/103560986/Simutrans/pak64.combuijs.zip (https://dl.dropboxusercontent.com/u/103560986/Simutrans/pak64.combuijs.zip)

How to reproduce:
switch to public player (P+ icon)
map editing tools
extend map

Extend downwards (south) from 600 to 800. Set the number of cities to be built on 0. Press OK.

It crashes pretty fast, say in the first 10% of the extension procedure.

I hope you can reproduce this...
Title: Re: Crash while extending a map
Post by: Dwachs on December 19, 2016, 05:21:16 PM
thanks, can reproduce this

Edit: should be fixed in r7985.
Title: Re: Crash while extending a map
Post by: Combuijs on December 19, 2016, 10:00:31 PM
Thank you for your quick fix! Tomorrow I will try the nightly.
Title: Re: Crash while extending a map
Post by: Combuijs on December 20, 2016, 03:45:43 PM
Yes, I can confirm it works now. The progress bar does not update from around 10%, so progress seems to stop there, but the extension continues and finishes properly within a minute.