The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: whoami on November 03, 2015, 05:32:36 AM

Title: r7635: crash after loading a game from V120
Post by: whoami on November 03, 2015, 05:32:36 AM
After loading this savegame (http://simutrans-germany.com/files/upload/PC185_G1c_V120_SJ1880_13.sve) from V120, I get crashes e.g. when using fast forward. This is with Pak64.German and Windows 7.
Title: Re: r7635: crash after loading a game from V120
Post by: DrSuperGood on November 03, 2015, 06:33:00 AM
This is a known issue and will be resolved soon. The release crashes when running in no_route_over_overcrowding mode due to a null pointer dereference. A fix for this issue has already been applied to the source. Hopefully a fixed release will be up soon.

The crash is caused by trying to modify the statistics of a non-existent destination stop. The reason this made it into the code was due to a lack of documentation detailing the resulting values for a route search with no_route_over_overcrowding enabled, specifically that it might not return a destination stop at all. Extra handling code was required for this case that will log the passenger/mail stats at a nearby stop when a stop is not available.

Unfortunately I am to blame for this particular crash. I failed to pick it up when testing because I had no "no_route_over_overcrowding" mode games.

Until the fix is released or propagates to nightly releases you can try disabling "no_route_over_overcrowding" to prevent the crash. Once the fix is released you can turn it back on. This is done by using the game settings window.

To access the game settings window navigate to "simutrans\pak64.german\config\menuconf.tab" and put the following on a new line anywhere in the document.
Quotedialog_tool[27]=,~
Title: Re: r7635: crash after loading a game from V120
Post by: Dwachs on November 03, 2015, 06:36:48 AM
The fix is already in r7637, the build is not yet available.
Title: Re: r7635: crash after loading a game from V120
Post by: whoami on November 06, 2015, 03:24:25 AM
Thank you for the fix, r7640 works fine.

Quote from: DrSuperGood on November 03, 2015, 06:33:00 AM
To access the game settings window navigate to "simutrans\pak64.german\config\menuconf.tab" and put the following on a new line anywhere in the document.
And thanks for this additional information.