News:

Simutrans.com Portal
Our Simutrans site. You can find everything about Simutrans from here.

r8163: unable to load saved game: 7koord3d: index out of bounds

Started by michal., June 26, 2017, 09:22:57 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

michal.

Hi,

attempts to load saved game (link bellow) lead to "FATAL ERROR: vector_tpl<T>::[] - 7koord3d: index out of bounds: 38 not in 0..33". Previously, the game was running without any problems and I am not aware of anything that might have caused the error. It was saved on Linux r8163 and I am not able to load neither on Linux r8163 nor on Windows r8163 and Linux r8250. Loading any other saved game works perfectly.

https://www.dropbox.com/s/8rfqvgtun2b3qri/54.12.sve?dl=0

It seems similar to this bug http://forum.simutrans.com/index.php?topic=16834.0 , which was fixed in previous versions.

Simutrans version 120.2.3 Nightly from Jun 19 2017 rr8250
Preparing display ...
parse_simuconf() at pak128/config/simuconf.tab:
Reading compatibility sound data ...
Reading city configuration ...
Reading speedbonus configuration ...
Reading menu configuration ...
Reading object data from pak128/...
Reading menu configuration ...
Midi disabled ...
Creating cities ...
Creating cities: 1
Creating factories ...
Preparing startup ...
Show banner ...
Running world, pause=0, fast forward=0 ...
World destroyed.
FATAL ERROR: vector_tpl<T>::[] - 7koord3d: index out of bounds: 38 not in 0..33
Aborting program execution ...

Ters

When debugging, it seems like the vehicles for (1727) RVg 2-4-0 "Expres", which appears to be the last in the game world, are completely junk. So the game might have been corrupted during saving. However, I'm not experienced in debugging save games.

Dwachs

I committed a fix in r8251. It should not crash anymore. Thanks for the report!

The savegame contains some invalid data, but I have no idea how this happened. It seems that you saved at a time, where some internal data was not fully initialized.

Do you remember what you did last with the train (1727) RVg 2-4-0 "Expres" ?  In the savegame, it was leaving a depot, but some of the routing information was invalid.
Parsley, sage, rosemary, and maggikraut.