The International Simutrans Forum

Simutrans Extended => Simutrans-Extended bug reports => Simutrans-Extended development => Simutrans-Extended closed bug reports => Topic started by: freddyhayward on December 29, 2020, 07:08:19 AM

Title: Index out of bounds when deleting tracks
Post by: freddyhayward on December 29, 2020, 07:08:19 AM
(https://i.imgur.com/b6dYGgf.png)
Title: Re: Index out of bounds when deleting tracks
Post by: jamespetts on December 29, 2020, 11:05:11 AM
Thank you for the report. Is that a specific place on the Bridgewater-Brunel server game? Do I infer correctly that the highlighted tile is the one that you had attempted to delete? I should note that it will be some time before I am able to attend to bug reports, and may well not be able to reproduce this if the server game has changed state since this report.
Title: Re: Index out of bounds when deleting tracks
Post by: freddyhayward on December 29, 2020, 11:50:50 AM
Quote from: jamespetts on December 29, 2020, 11:05:11 AM
Thank you for the report. Is that a specific place on the Bridgewater-Brunel server game? Do I infer correctly that the highlighted tile is the one that you had attempted to delete? I should note that it will be some time before I am able to attend to bug reports, and may well not be able to reproduce this if the server game has changed state since this report.
Yes, that is a specific place, and I will leave the old stop there so that it can be found on the halt list. I tried to delete all tiles from the end of the line up until that tile.
Title: Re: Index out of bounds when deleting tracks
Post by: Matthew on December 29, 2020, 12:49:22 PM
I also had a crash and very similar error message when deleting a station extension building today:

FATAL ERROR: vector_tpl<T>::[] - s: index out of bounds: 1 not in 0..0
Aborting program execution ...

For help with this error or to file a bug report please see the Simutrans forum at
http://forum.simutrans.com


I am trying to get core dumps working on Linux, which might then permit a fuller backtrace.
Title: Re: Index out of bounds when deleting tracks
Post by: jamespetts on December 29, 2020, 01:01:10 PM
Quote from: Matthew on December 29, 2020, 12:49:22 PM
I also had a crash and very similar error message when deleting a station extension building today:

FATAL ERROR: vector_tpl<T>::[] - s: index out of bounds: 1 not in 0..0
Aborting program execution ...

For help with this error or to file a bug report please see the Simutrans forum at
http://forum.simutrans.com


I am trying to get core dumps working on Linux, which might then permit a fuller backtrace.

Thank you. The most helpful thing by far would be a reproduction case - crashes are relatively easy to track down with a reproduction case.
Title: Re: Index out of bounds when deleting tracks
Post by: jamespetts on January 12, 2021, 01:14:18 AM
Looking at this again, I am afraid that I am not able to find this location in my save from May 1981. Can you give me the co-ordinates?
Title: Re: Index out of bounds when deleting tracks
Post by: Matthew on January 20, 2021, 03:29:02 PM
This bug appears to have been fixed. I have deleted several stops without difficulty.

EDIT: Deleting roads sometimes crashes the server though.....  ::'(