Author Topic: Crash while extending a map  (Read 797 times)

0 Members and 1 Guest are viewing this topic.

Offline Combuijs

  • Web Team
  • Devotee
  • *
  • Posts: 1387
  • Total likes: 22
  • Helpful: 53
  • Maintainer of maps.simutrans.com
    • Combuijs
  • Languages: EN, NL
Crash while extending a map
« 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.
Bob Marley: No woman, no cry

Programmer: No user, no bugs



Offline Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4247
  • Total likes: 175
  • Helpful: 149
  • Languages: EN, DE, AT
Re: Crash while extending a map
« Reply #1 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.
Parsley, sage, rosemary, and maggikraut.

Offline Combuijs

  • Web Team
  • Devotee
  • *
  • Posts: 1387
  • Total likes: 22
  • Helpful: 53
  • Maintainer of maps.simutrans.com
    • Combuijs
  • Languages: EN, NL
Re: Crash while extending a map
« Reply #2 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/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...
Bob Marley: No woman, no cry

Programmer: No user, no bugs



Offline Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4247
  • Total likes: 175
  • Helpful: 149
  • Languages: EN, DE, AT
Re: Crash while extending a map
« Reply #3 on: December 19, 2016, 05:21:16 PM »
thanks, can reproduce this

Edit: should be fixed in r7985.
« Last Edit: December 19, 2016, 09:11:17 PM by Dwachs »
Parsley, sage, rosemary, and maggikraut.

Offline Combuijs

  • Web Team
  • Devotee
  • *
  • Posts: 1387
  • Total likes: 22
  • Helpful: 53
  • Maintainer of maps.simutrans.com
    • Combuijs
  • Languages: EN, NL
Re: Crash while extending a map
« Reply #4 on: December 19, 2016, 10:00:31 PM »
Thank you for your quick fix! Tomorrow I will try the nightly.
Bob Marley: No woman, no cry

Programmer: No user, no bugs



Offline Combuijs

  • Web Team
  • Devotee
  • *
  • Posts: 1387
  • Total likes: 22
  • Helpful: 53
  • Maintainer of maps.simutrans.com
    • Combuijs
  • Languages: EN, NL
Re: Crash while extending a map
« Reply #5 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.
Bob Marley: No woman, no cry

Programmer: No user, no bugs