News:

Do you need help?
Simutrans Wiki Manual can help you to play and extend Simutrans. In 9 languages.

[9.x] fatal error

Started by sdog, December 12, 2010, 08:17:30 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

sdog

FATAL ERROR: vector_tpl<T>::[]
index out of bounds: 4 not in 0..0


Program received signal SIGABRT, Aborted.
0x00007ffff6c1fa75 in raise () from /lib/libc.so.6
(gdb)
(gdb) bt
#0  0x00007ffff6c1fa75 in raise () from /lib/libc.so.6
#1  0x00007ffff6c235c0 in abort () from /lib/libc.so.6
#2  0x000000000066058d in log_t::fatal (this=0xaa7780,
    who=0x692775 "vector_tpl<T>::[]",
    format=0x692750 "index out of bounds: %i not in 0..%d") at utils/log.cc:251
#3  0x000000000042d4cf in vector_tpl<koord3d>::operator[] (this=0x4e15db8, i=4)
    at bauer/../tpl/vector_tpl.h:233
#4  0x000000000047a76c in route_t::position_bei (this=0x4e15db8, n=4)
    at dataobj/../boden/../dataobj/route.h:91
#5  0x000000000066b336 in vehikel_t::hop (this=0xb348560)
    at vehicle/simvehikel.cc:1293
#6  0x0000000000667aa8 in vehikel_basis_t::fahre_basis (this=0xb348560,
    distance=4096) at vehicle/simvehikel.cc:310
#7  0x00000000005c45ec in convoi_t::sync_step (this=0x4e15da0, delta_t=67)
    at simconvoi.cc:761
#8  0x0000000000645d49 in karte_t::sync_step (this=0x154e0a0, delta_t=67,
    sync=true, display=true) at simworld.cc:2841
#9  0x00000000005fc63b in interrupt_check (
    caller_info=0x6c59d6 "karte_t::interactive()") at simintr.cc:102
#10 0x00000000006538b0 in karte_t::interactive (this=0x154e0a0,
    quit_month=2147483647) at simworld.cc:6057
#11 0x0000000000604819 in simu_main (argc=1, argv=0x7fffffffe2e8)
    at simmain.cc:1181
---Type <return> to continue, or q <return> to quit---
#12 0x000000000068fafb in main (argc=1, argv=0x7fffffffe2e8) at simsys_s.cc:770


After i deleted a station entry from the schedule and set a new point on it, the crash happened when i closed the schedule dialogue.

Hunch: the crash might be related to the "reverse schedule code".

Background: i had some problems running a heavier train on the route used successfully before. the was able to drive directly in front of the station, but could not find route for the next step. For the heavier train i had to replace rails over large stretches gaps were not unlikely. The train was also longer than the trains before, i had to remove a signal and increase the platform length. (might be relevant for reverse schedule tests). The previous waypoint was before set on the other direction platform, it could only be reached by a large detour.

jamespetts

SDog,

thank you for the report. Can you upload a saved game and let me know precisely which line that you amended and in what way so that I can reproduce the circumstances of this crash exactly?
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

sdog

since the circumstances leading to the crash were rather complex, it might be difficult to recreat them. As soon as i get something in that direction, i'll provide a save game. (the most recent save before i had before the crash is roughly the same as the 141.sve from the other thread, i upgraded the express route for line 62)