Author Topic: Crashing when fast forwarding  (Read 690 times)

0 Members and 1 Guest are viewing this topic.

Offline SWFC1867

Crashing when fast forwarding
« on: February 18, 2017, 02:26:44 PM »
Have not played simutrans in a while but decided to play a couple of days ago and having problems with the game crashing when fast forwarding with maps of over 1024x1024 on Britain Map pack (on both steam and running the game independent), having used larger maps on the same computer before i was surprised, wondering if this is a know problem as all my driver and are upto date. Tried uninstalling and re-downloading even tried to load some previous saves but still have the problem.
Computer Spec:
1.9Ghz Processor, upto 2.6 with turboboost
8gb RAM
Windows 10

Offline jamespetts

  • Simitrans-Extended project coordinator
  • Devotee
  • *
  • Posts: 15559
  • Total likes: 386
  • Helpful: 172
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: Crashing when fast forwarding
« Reply #1 on: February 18, 2017, 02:54:13 PM »
Welcome to the forums: sorry that you are having trouble. Are you able to post a link to a saved game in which this issue can reliably be reproduced so that I can try to fix it?

Thank you for your report.
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.

Offline SWFC1867

Re: Crashing when fast forwarding
« Reply #2 on: February 18, 2017, 03:27:53 PM »
https://1drv.ms/f/s!AkoWAFGBfEfjbBt5CHXR85CUrBI

Here is the link, the save game was just created, but still crashes on my machine

Offline jamespetts

  • Simitrans-Extended project coordinator
  • Devotee
  • *
  • Posts: 15559
  • Total likes: 386
  • Helpful: 172
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: Crashing when fast forwarding
« Reply #3 on: February 18, 2017, 04:08:49 PM »
I can reproduce this in the latest nightly build. The problem is a division by zero error in simfab.cc at line 112. This appears to be as a result of prod being zero without any checks for this. I have not produced a patch to fix this because I am not clear on whether it is intended that prod may ever be zero (in which case, all that is needed is a simple check before trying to divide in line 112), or whether it is an error that prod may ever be zero, in which case some further consideration will be needed as to why it arises.

Prod is set to zero in line 1790 in simfab.cc in this saved game shortly after loading, which suggests a rounding error of some sort.
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.

Offline SWFC1867

Re: Crashing when fast forwarding
« Reply #4 on: February 18, 2017, 04:16:09 PM »
The save file was created with default settings / factory setting the game starts with. I am a newbie to this, is there a way to stop this from happening?

Offline jamespetts

  • Simitrans-Extended project coordinator
  • Devotee
  • *
  • Posts: 15559
  • Total likes: 386
  • Helpful: 172
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: Crashing when fast forwarding
« Reply #5 on: February 18, 2017, 04:48:06 PM »
Hopefully, the main developers will find and fix the problem causing this soon.
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.

Offline SWFC1867

Re: Crashing when fast forwarding
« Reply #6 on: February 18, 2017, 04:48:58 PM »
thanks for your help, hopefully sooner rather than later.

Offline Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4236
  • Total likes: 170
  • Helpful: 149
  • Languages: EN, DE, AT
Re: Crashing when fast forwarding
« Reply #7 on: February 18, 2017, 05:25:05 PM »
Thanks for the report. This should work again with r8103. Please download at http://nightly.simutrans.com/en/ which should hopefully be updated in the next 18 hours.
Parsley, sage, rosemary, and maggikraut.