The International Simutrans Forum

Simutrans Extended => Simutrans-Extended development => Topic started by: ӔO on February 13, 2013, 05:39:02 AM

Title: [10.26] Crash on replacing 1,500 vehicles in server game
Post by: ӔO on February 13, 2013, 05:39:02 AM
Server has crashed from replacing of vehicles.

here is the last working save: http://dl.dropbox.com/u/17111233/client2-network.sve (http://dl.dropbox.com/u/17111233/client2-network.sve)


Replacing horse and carriages with diesel buses will crash the game

doing 1500 will crash it instantly
doing 250 at a time will crash it eventually (which is what has happened to the server)

Moderator note: Split from the Bridgewater-Brunel server topic (http://forum.simutrans.com/index.php?topic=10874).
Title: Re: [10.26] Crash on replacing 1,500 vehicles in server game
Post by: jamespetts on February 13, 2013, 11:04:47 AM
Thank you for the report. Is there a particular line with which this can reliably be reproduced?
Title: Re: [10.26] Crash on replacing 1,500 vehicles in server game
Post by: ӔO on February 13, 2013, 11:09:20 AM
I just do 'replace all' and it doesn't seem to matter how many you replace at once.
Title: Re: [10.26] Crash on replacing 1,500 vehicles in server game
Post by: jamespetts on February 13, 2013, 11:13:17 AM
On which line(s)?
Title: Re: [10.26] Crash on replacing 1,500 vehicles in server game
Post by: ӔO on February 13, 2013, 11:17:57 AM
any bus line should do it, as long as you select 'replace all'

out of 1500 buses, replacing 1500 at once will result in an instant crash, while skipping 14/15 (100 at once) results in a crash after a short period.
Title: Re: [10.26] Crash on replacing 1,500 vehicles in server game
Post by: asaphxiix on February 13, 2013, 06:18:50 PM
I tried this with 900, also crashed. Just hangs forever.
Title: Re: [10.26] Crash on replacing 1,500 vehicles in server game
Post by: jamespetts on February 13, 2013, 11:14:24 PM
AEO, are you getting a crash to desktop or just a hang like Asaph? So far, I have found that what seems to be happening is that the game takes a very long time to find routes to the depot for all 1,500 or so vehicles, which is consistent with Asaph's observation (except that it will eventually resume working). If the program actually stops and exits, rather than appearing to hang, there is a different issue here that requires further investigation.
Title: Re: [10.26] Crash on replacing 1,500 vehicles in server game
Post by: Junna on February 13, 2013, 11:52:52 PM
I can note that I was able to replace 893 vehicles in the 019. current RC without any crash - in fact, the slow-down was not very significant, even.

Rubbish. Pressed reply by accident when modifying. There's no delete function? Never noticed before.
Title: Re: [10.26] Crash on replacing 1,500 vehicles in server game
Post by: ӔO on February 13, 2013, 11:56:55 PM
no, I get a tpl error, not a hang.

With the above game, simply replace all 1482 of my buses with the diesel one and you should get

fatal error: vector_tpl<T>::[]
class koord3d: index out of bounds: 11 no in 0..4294967295
Title: Re: [10.26] Crash on replacing 1,500 vehicles in server game
Post by: jamespetts on February 14, 2013, 12:48:56 AM
Ahh, interesting. I wasn't able to reproduce that from the current server save. I shall have a look into that in due course.
Title: Re: [10.26] Crash on replacing 1,500 vehicles in server game
Post by: jamespetts on February 14, 2013, 10:34:30 PM
Quote from: ӔO on February 13, 2013, 11:56:55 PM
no, I get a tpl error, not a hang.

With the above game, simply replace all 1482 of my buses with the diesel one and you should get

fatal error: vector_tpl<T>::[]
class koord3d: index out of bounds: 11 no in 0..4294967295


Hmm - can't reproduce this, I'm afraid.