The International Simutrans Forum

Simutrans Extended => Simutrans-Extended bug reports => Simutrans-Extended development => Simutrans-Extended closed bug reports => Topic started by: Ves on December 03, 2015, 10:32:20 PM

Title: [develnew 5820b12] Fatal Error: Vector_tpl<T>......
Post by: Ves on December 03, 2015, 10:32:20 PM
FATAL ERROR: Vector_tpl<T>::[] - class convoi_t::route_info_t: index out of bounds: 36 not in 0..27

When opening my savegame (lastly saved with 5820b12) and fastforward a few minutes, the screen freezes and the above sentence appear. The savegame where originally created from a resent develnew Experiemental version.

Savegame: https://www.dropbox.com/s/hmbwvws5m5iy11a/Crash%20bug%20test%205820b12.sve?dl=0 (https://www.dropbox.com/s/hmbwvws5m5iy11a/Crash%20bug%20test%205820b12.sve?dl=0)
Title: Re: [develnew 5820b12] Fatal Error: Vector_tpl<T>......
Post by: Rollmaterial on December 03, 2015, 10:40:18 PM
Good to know I'm not the only one to report out of bounds crashes here :D
Title: Re: [develnew 5820b12] Fatal Error: Vector_tpl<T>......
Post by: Ves on December 03, 2015, 10:46:07 PM
oh, crap! Didnt realize that you already reported about that and it had reappeared (read the thread you and Izaac wrote in, just not realizing its the same issue :P ) apologies for that!
James, this probably is the same as http://forum.simutrans.com/index.php?topic=14971.0 (http://forum.simutrans.com/index.php?topic=14971.0)
Title: Re: [develnew 5820b12] Fatal Error: Vector_tpl<T>......
Post by: Rollmaterial on December 03, 2015, 11:07:29 PM
It's the same problem, but it's not necessarily the same bug, as out of bounds bugs seem to be quite frequent :)
Title: Re: [develnew 5820b12] Fatal Error: Vector_tpl<T>......
Post by: jamespetts on December 04, 2015, 01:00:30 AM
Can you re-test after the latest fixes to see whether this still recurs? I should be most grateful.
Title: Re: [develnew 5820b12] Fatal Error: Vector_tpl<T>......
Post by: Ves on December 04, 2015, 01:16:08 AM
At a quick glance, it appears to be fixed!

edit: no, I got the same error again after some time, but the text is different:

FATAL ERROR: Vector_tpl<T>::[] - class koord3d:  index out of bounds: 147 not in 0..42
Title: Re: [develnew 5820b12] Fatal Error: Vector_tpl<T>......
Post by: jamespetts on December 05, 2015, 12:18:21 AM
I am having trouble reproducing this - can you let me know at what game time that this occurs for you?
Title: Re: [develnew 5820b12] Fatal Error: Vector_tpl&lt;T&gt;......
Post by: Ves on December 05, 2015, 10:14:15 AM
I had been playing for a while since the save game in first post. However, I'm not home this weekend, but will try to reproduce it next week
Title: Re: [develnew 5820b12] Fatal Error: Vector_tpl<T>......
Post by: jamespetts on December 05, 2015, 12:08:17 PM
Thank you.
Title: Re: [develnew 5820b12] Fatal Error: Vector_tpl<T>......
Post by: Ves on December 07, 2015, 08:05:02 PM
With the current release (develnew 83ea140) and the provided save, this occurs at ingame time: 1874, August 3:00:06

https://www.dropbox.com/s/apmvj4gj6obq1kk/Crash%20bug%20test%2083ea140.sve?dl=0 (https://www.dropbox.com/s/apmvj4gj6obq1kk/Crash%20bug%20test%2083ea140.sve?dl=0)
Title: Re: [develnew 5820b12] Fatal Error: Vector_tpl<T>......
Post by: jamespetts on December 07, 2015, 09:22:55 PM
Thank you for the report. I believe that I have fixed this - would you care to re-test?
Title: Re: [develnew 5820b12] Fatal Error: Vector_tpl<T>......
Post by: Ves on December 09, 2015, 07:59:13 PM
Appears fixed with 96ae1e2 !