News:

The Forum Rules and Guidelines
Our forum has Rules and Guidelines. Please, be kind and read them ;).

Crash on loading Bridgewater-Brunel save

Started by jamespetts, January 30, 2022, 11:47:33 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jamespetts

The Bridgewater-Brunel server is down this morning because of a new crash on loading the saved game. The saved game is here.

Testing with an older build, I confirm that this loads without crashing or other apparent error. Therefore, this would appear to be an issue introduced with yesterday's modifications.

The crash is in loading the first halt - it is an index out of bounds in the waiting time, trying to read back 9 values when there are in fact only 5 classes. This suggests that the error has actually occurred in the previous part of the loading, the lines, by them either loading too many or too few data, meaning that the file stream is in the wrong position by the time that it comes to reading the halts. Alternatively, the problem might have occurred earlier in the halt loading process.

I have not made any changes myself to this part of the code - I wonder whether the issue might have been caused by Ranran's changes to records for amounts of things transported or being processed at halts?
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.

Ranran(Hibernating)

Sorry about that. I think an error in the revision number caused it.  :-[
Please check the pull request #484.
(´・ω・`)シミュトランスのアップデート履歴(日本語) (※更新停止中)
bit.ly/3AuKHHP

jamespetts

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.