The International Simutrans Forum

Simutrans Extended => Simutrans-Extended development => Topic started by: archchancellor on February 15, 2012, 10:21:02 PM

Title: Trains blocking themselves after saving the game
Post by: archchancellor on February 15, 2012, 10:21:02 PM
Hi,

I've run into a strange bug, where after I save the game, all trains that were moving when I saved the game become stuck (trains stopped in stations do not suffer from the issue). The reason seems to be that they are waiting for clearance, but the way ahead of them is already reserved for them (see screenshot). Using the block-clearing tool the trains can be un-stuck, but changing the trains' schedules has no effect.

I'm running the latest 10.x branch on Linux 64 bit.

Best Regards,
Mark
Title: Re: Trains blocking themselves after saving the game
Post by: jamespetts on February 15, 2012, 11:52:05 PM
Hmm - I can't reproduce this. This might have been fixed by a recent update to the 10.x branch - would you mind re-pulling and re-testing?
Title: Re: Trains blocking themselves after saving the game
Post by: ras52 on February 16, 2012, 01:55:17 AM
I'm afraid I can't duplicate this with the latest 10.x on 32-bit Linux with pak128.Britain-Ex 0.8.3.
Title: Re: Trains blocking themselves after saving the game
Post by: dustNbone on February 16, 2012, 06:07:44 AM
I was noticing something similar on the network game.  Some of Junnas' lines that had level crossings would be jammed when I connected, but I'd disconnect and reconnect (forcing a save/load on the server) and they would start working again.  I suspect it may be related to the jams I would get at some of my platform choose signals (which I corrected by reconfiguring the signals) where it seems the convoys would forget they were stopped at a signal for some reason and try to proceed upon the game starting up after load.  I found it hard to duplicate as well, because it seemed somewhat random.
Title: Re: Trains blocking themselves after saving the game
Post by: jamespetts on February 16, 2012, 10:07:40 AM
Hmm - very odd. I wonder whether this problem might also exist in Standard...?
Title: Re: Trains blocking themselves after saving the game
Post by: archchancellor on February 16, 2012, 08:43:51 PM
Pulled the latest 10.x from Github today and the issue is gone. Happy days.
Title: Re: Trains blocking themselves after saving the game
Post by: jamespetts on February 16, 2012, 11:06:44 PM
Excellent! That is probably Richard's work to fix the heap corruption issues.