The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: Fraoch on March 09, 2017, 09:29:41 PM

Title: rr8126 crashes when adding any car to train
Post by: Fraoch on March 09, 2017, 09:29:41 PM
Hello:

This is on rr8126 on Linux with pak128 2.6.  I first noticed this in 120.2.1 - rr8121, but I can reproduce it in rr8126.

When I go to add any car to a certain train, Simutrans crashes with the following error (from simu.log but also displayed on the screen):

FATAL ERROR: vector_tpl<T>::[] - 7koord3d: index out of bounds: 3 not in 0..2
Aborting program execution ...


Here is the saved game:

https://www.dropbox.com/s/mzrsq6d2weys5ke/Coventry2.sve?dl=0 (https://www.dropbox.com/s/mzrsq6d2weys5ke/Coventry2.sve?dl=0)

and here is a screenshot just before this occurs.  I have added an obsolete passenger car here and modified the schedule, but this occurs with any car and not modifying the schedule as well:

https://www.dropbox.com/s/cazosq0ia763xir/simscr00.bmp?dl=0 (https://www.dropbox.com/s/cazosq0ia763xir/simscr00.bmp?dl=0)

I would have used the Simutrans File Sharing page, but for some reason that does not work for me.

Thank you!
Title: Re: rr8126 crashes when adding any car to train
Post by: Dwachs on March 10, 2017, 07:35:33 AM
Thanks for the report! I can reproduce this error. So there will be a fix soon, hopefully.
Title: Re: rr8126 crashes when adding any car to train
Post by: Fraoch on March 10, 2017, 02:56:22 PM
Thanks!

I found a workaround, sell the train and re-create it from new.  Works fine but a bit inelegant. :)
Title: Re: rr8126 crashes when adding any car to train
Post by: Dwachs on March 11, 2017, 09:43:22 PM
should work again with r8129
Title: Re: rr8126 crashes when adding any car to train
Post by: Fraoch on March 13, 2017, 01:38:50 PM
Hmm, still getting the error with rr8130?
Title: Re: rr8126 crashes when adding any car to train
Post by: Dwachs on March 13, 2017, 06:11:36 PM
sorry, only committed some half-finished fix. r8131 should work better
Title: Re: rr8126 crashes when adding any car to train
Post by: Fraoch on March 14, 2017, 09:30:06 PM
Indeed it does!  Thanks!