Author Topic: r8163: unable to load saved game: 7koord3d: index out of bounds  (Read 670 times)

0 Members and 1 Guest are viewing this topic.

Offline 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.

Code: [Select]
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 ...

Offline Ters

  • Coder/patcher
  • Devotee
  • *
  • Posts: 4900
  • Total likes: 217
  • Helpful: 108
  • Languages: EN, NO
Re: r8163: unable to load saved game: 7koord3d: index out of bounds
« Reply #1 on: June 27, 2017, 05:06:50 PM »
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.

Offline Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4280
  • Total likes: 196
  • Helpful: 149
  • Languages: EN, DE, AT
Re: r8163: unable to load saved game: 7koord3d: index out of bounds
« Reply #2 on: July 01, 2017, 07:35:52 AM »
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.