The International Simutrans Forum

Simutrans Extended => Simutrans-Extended development => Topic started by: sdog on March 25, 2012, 04:29:24 AM

Title: [10.x] stuck to depot causes crash
Post by: sdog on March 25, 2012, 04:29:24 AM

stuck vehicles that were teleported to depot often have impossible consists in depot. Trying to sell them caused a crash.


I also very much suspect those vehicles are responsible for unrecoverable savegames, reported earlier.



Program received signal SIGSEGV, Segmentation fault.
0x00000000004a6044 in gui_convoy_assembler_t::update_data() ()
(gdb) bt
#0  0x00000000004a6044 in gui_convoy_assembler_t::update_data() ()
#1  0x00000000004d0564 in depot_frame_t::update_data() ()
#2  0x00000000004a8415 in gui_convoy_assembler_t::build_vehicle_lists() ()
#3  0x00000000004d1340 in depot_frame_t::action_triggered(gui_action_creator_t*, value_t) ()
#4  0x000000000049e476 in button_t::infowin_event(event_t const*) ()
#5  0x00000000004ea93f in gui_container_t::infowin_event(event_t const*) ()
#6  0x00000000004ebd99 in gui_frame_t::infowin_event(event_t const*) ()
#7  0x00000000004d06c3 in depot_frame_t::infowin_event(event_t const*) ()
#8  0x00000000006045e5 in check_pos_win(event_t*) ()
#9  0x000000000061e8c6 in karte_t::interactive(unsigned int) ()
#10 0x00000000005d045b in simu_main(int, char**) ()
#11 0x00000000004091cc in main ()
Title: Re: [10.x] stuck to depot causes crash
Post by: jamespetts on March 25, 2012, 10:02:26 AM
Interesting. Do you have a saved game in which you can reproduce this?

Edit: I was unable to reproduce this when using the demo.sve of Pak128.Britain.
Title: Re: [10.x] stuck to depot causes crash
Post by: el_slapper on March 26, 2012, 03:03:20 PM
had the same on a previous save(and version). It was only for electric locos, though. Not sure I have the save anymore, I'll have a look this evening.
Title: Re: [10.x] stuck to depot causes crash
Post by: sdog on March 26, 2012, 06:24:59 PM
http://dl.dropbox.com/u/1876190/autosave01.sve

a few minutes later saves are not recoverable anymore.
check trains on line
341 bristol - reigate
they got "unstuck" and are in depot now.
Title: Re: [10.x] stuck to depot causes crash
Post by: jamespetts on November 12, 2012, 10:07:07 PM
Can anyone confirm whether or not this is fixed in 10.13?
Title: Re: [10.x] stuck to depot causes crash
Post by: asaphxiix on November 14, 2012, 09:46:15 PM
I've encountered some crashes in the depot, it seems to happen if I sell a vehicle then try to buy a new one, clicking on it crashes the game, happened a few times (also in 10.13) but I have not been able to recreate it. It may have to do with the above.


Also, I can't find the original report, but I should report that the block reservation bug seems to happen in 10.13 as trains still get stuck and need release with 'b'.
http://simutrans-germany.com/files/upload/bug1.sve (http://simutrans-germany.com/files/upload/bug1.sve) - this is a save of it, but the scenario seems the same.

Title: Re: [10.x] stuck to depot causes crash
Post by: jamespetts on November 14, 2012, 11:55:22 PM
Thank you for your report. Would you mind posting the second item as a separate thread? I might end up forgetting about it or not properly tracking the problem if it ends up in this thread. We need one bug report per thread if possible - it helps with management of issues. Thank you!

Edit: I can't reproduce the blcok reservation issue with your saved game and 10.13. Can you give more detail, or steps to reproduce...?
Title: Re: [10.x] stuck to depot causes crash
Post by: asaphxiix on November 15, 2012, 12:48:00 AM
sorry james, no problem!
Title: Re: [10.x] stuck to depot causes crash
Post by: jamespetts on December 18, 2012, 11:53:33 PM
Can anyone reproduce the original crash, or is this solved?
Title: Re: [10.x] stuck to depot causes crash
Post by: ӔO on December 19, 2012, 01:30:06 AM
I don't know if this is related, but sometimes convoys won't go to the nearest depot or get stuck on a "retire" command.

http://dl.dropbox.com/u/17111233/client3-network.sve

Steps to reproduce:
1. Go to Nutish
2. Switch to ant fleet
3. build sailing depot at 891,753
4. tell ship (6484), which is just off the coast, to retire
5. It should now become stuck at its final destination

Also peculiar, send any of the ships waiting at Nutish to "go to depot" and it won't head to the nearest depot, which was just built at Nutish.