News:

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

New crash

Started by neroden, May 08, 2010, 06:22:13 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

neroden

This time attempting to sell a road vehicle.

I believe that the road vehicle was originally created in a different depot than the one I was selling it in, if that's interesting.

FATAL ERROR: unknown
pure virtual function call


Program received signal SIGABRT, Aborted.
0xb7fff424 in __kernel_vsyscall ()
(gdb) bt
#0  0xb7fff424 in __kernel_vsyscall ()
#1  0x45bb58e0 in *__GI_raise (sig=<value optimized out>)
   at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#2  0x45bb8e15 in *__GI_abort () at abort.c:88
#3  0x082030a5 in log_t::fatal (this=0x83597b0, who=0x82310d4 "unknown",
   format=0x8244928 "pure virtual function call") at utils/log.cc:243
#4  0x081953ff in __cxa_pure_virtual () at simdebug.cc:36
#5  0x0808418c in dingliste_t::get_convoi_vehicle (this=0xdea3678)
   at dataobj/dingliste.cc:727
#6  0x08111455 in grund_t::get_convoi_vehicle (this=0xb86d630, k=...)
   at gui/../boden/grund.h:627
#7  reliefkarte_t::calc_map_pixel (this=0xb86d630, k=...) at gui/karte.cc:295
#8  0x0820c8b1 in ~vehikel_t (this=0xf449de0, __in_chrg=<value optimized out>)
   at vehicle/simvehikel.cc:2184
#9  0x08217e23 in automobil_t::~automobil_t() ()
#10 0x0818836d in convoi_t::destroy (this=0xf537d30) at simconvoi.cc:3832
#11 0x08188433 in convoi_t::self_destruct (this=0x6) at simconvoi.cc:3774
#12 0x08197368 in depot_t::disassemble_convoi (this=0xf434dc8, cnv=...,
   sell=true) at simdepot.cc:411
#13 0x081d2b71 in wkz_change_depot_t::init (this=0xf127928, welt=0xcfface0,
   sp=0xd041958) at simwerkz.cc:5462
#14 0x081e7814 in karte_t::local_set_werkzeug (this=0xcfface0, w=0xf127928,
   sp=0xd041958) at simworld.cc:2342
#15 0x081e7a32 in karte_t::set_werkzeug (this=0xcfface0, w=0xf127928,
   sp=0xd041958) at simworld.cc:2328
#16 0x08195aab in depot_t::call_depot_tool (this=0xf434dc8,
   tool=<value optimized out>, cnv=..., extra=0x0) at simdepot.cc:138
#17 0x080ec140 in depot_frame_t::action_triggered (this=0xf5474b8,
   komp=0xf5476b4, p=...) at gui/depot_frame.cc:452
#18 0x080c3a24 in gui_action_creator_t::call_listeners (this=0xf5476b4, v=...)
   at gui/components/../../ifc/gui_action_creator.h:36
#19 0x080c3926 in button_t::infowin_event (this=0xf5476a4, ev=0xbfffd6c4)
   at gui/components/gui_button.cc:337
#20 0x08101aa2 in gui_container_t::infowin_event (this=0xf5474bc,
   ev=0xbfffd720) at gui/gui_container.cc:93
#21 0x08102c23 in gui_frame_t::infowin_event (this=0xf5474b8, ev=0xbfffd804)
   at gui/gui_frame.cc:89
#22 0x080ebd43 in depot_frame_t::infowin_event (this=0xf5474b8, ev=0xbfffd804)
   at gui/depot_frame.cc:518
#23 0x081e3c54 in check_pos_win (ev=0xbfffd8e0) at simwin.cc:938
#24 0x081f9632 in karte_t::interactive (this=0xcfface0, quit_month=2147483647)
   at simworld.cc:5585
#25 0x081bbbfb in simu_main (argc=1, argv=0xbffff424) at simmain.cc:1069
#26 0x08225941 in main (argc=1, argv=0xbffff424) at simsys_s.cc:743


Sorry, no save file -- it crashed a sufficiently long time from the last save, so that the last save file doesn't even have the vehicle.

EDIT: Have I got a save file for you!  I managed to reproduce it.

http://files.[ simutrans [dot] us (site down, do not visit) ]/files/get/AzIzn9Mh8H/autosave01-potential-problem.sve

There are ghostly horses driving across the depot even though they're supposed to be somewhere else. The depot can't be deleted; the horses can't be sold.

EDIT:  ohhhkaaay, extra weirdness.  Loading the save game appears to make the problem go away.  So it won't show up in the save game.....

jamespetts

Hmm, very odd. The ghost vehicle problem tends to occur when a vehicle becomes detached from a convoy outside a depot. The problem appears to start in a vehicle destructor. Are there any specific steps required to reproduce this?
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.

neroden

Quote from: jamespetts on May 08, 2010, 11:43:06 PM
Hmm, very odd. The ghost vehicle problem tends to occur when a vehicle becomes detached from a convoy outside a depot. The problem appears to start in a vehicle destructor. Are there any specific steps required to reproduce this?

I haven't been able to pin down specific steps.  The weirdest part is that saving and restoring "cleans it up".

jamespetts

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.