Author Topic: rr8126 crashes when adding any car to train  (Read 853 times)

0 Members and 1 Guest are viewing this topic.

Offline Fraoch

rr8126 crashes when adding any car to train
« 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):

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

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

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

Thank you!

Offline Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4224
  • Total likes: 168
  • Helpful: 148
  • Languages: EN, DE, AT
Re: rr8126 crashes when adding any car to train
« Reply #1 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.
Parsley, sage, rosemary, and maggikraut.

Offline Fraoch

Re: rr8126 crashes when adding any car to train
« Reply #2 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. :)

Offline Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4224
  • Total likes: 168
  • Helpful: 148
  • Languages: EN, DE, AT
Re: rr8126 crashes when adding any car to train
« Reply #3 on: March 11, 2017, 09:43:22 PM »
should work again with r8129
Parsley, sage, rosemary, and maggikraut.

Offline Fraoch

Re: rr8126 crashes when adding any car to train
« Reply #4 on: March 13, 2017, 01:38:50 PM »
Hmm, still getting the error with rr8130?

Offline Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4224
  • Total likes: 168
  • Helpful: 148
  • Languages: EN, DE, AT
Re: rr8126 crashes when adding any car to train
« Reply #5 on: March 13, 2017, 06:11:36 PM »
sorry, only committed some half-finished fix. r8131 should work better
Parsley, sage, rosemary, and maggikraut.

Offline Fraoch

Re: rr8126 crashes when adding any car to train
« Reply #6 on: March 14, 2017, 09:30:06 PM »
Indeed it does!  Thanks!