The International Simutrans Forum

Simutrans Extended => Simutrans-Extended bug reports => Simutrans-Extended development => Simutrans-Extended closed bug reports => Topic started by: asaphxiix on December 30, 2012, 06:27:08 AM

Title: [10.18] crash on withdraw access rights
Post by: asaphxiix on December 30, 2012, 06:27:08 AM
this morning around 8:20 server crashed when i removed access rights from another player. This has happened before, a few days ago.

I couldn't reproduce this on my local windows server.
Title: Re: [10.18] crash on withdraw access rights
Post by: ӔO on December 30, 2012, 08:04:02 AM
For me, when I do that on the server, all it does is disconnect me.
It's similar to replacing a few hundred vehicles at once.
Title: Re: [10.18] crash on withdraw access rights
Post by: jamespetts on December 30, 2012, 11:37:39 AM
Hmm - crashes that can't be reproduced are difficult to trace. Did you try to reproduce it on the saved game from the server? From whom did you withdraw access rights?
Title: Re: [10.18] crash on withdraw access rights
Post by: asaphxiix on December 31, 2012, 03:13:46 AM
Æo must be right - I'm not actually sure that the server crashed, I just thought that way because it was unavailable for a few minutes after the desync. It would be indeed natural for a desync to happen as a result of such an action due to a cpu spike. However, I do remember a distinct crash (reversion) when I tried to withdraw rights from lindley, after he connected with both me and aeolus, which could even be explained as a shock to the server's cpu that crashed the game.

Title: Re: [10.18] crash on withdraw access rights
Post by: jamespetts on December 31, 2012, 11:45:56 AM
High CPU usage will not of itself cause a crash - there must be a bug in the software if there is an actual crash.

I do intend at some point to alter the way that replacing works to make a visit to the depot unnecessary, which will hopefully sidestep some of these issues in any event, but it would be good to track down what is probably a bug in the send to depot code.
Title: Re: [10.18] crash on withdraw access rights
Post by: greenling on January 04, 2013, 08:13:15 PM
asaphxiix
Gives this crash also then you play alone without a network games?
Title: Re: [10.18] crash on withdraw access rights
Post by: asaphxiix on January 04, 2013, 08:22:34 PM
nope. It doesn't crash the client either, only caused the server to restart without saving.
Title: Re: [10.18] crash on withdraw access rights
Post by: greenling on January 04, 2013, 08:46:18 PM
asaphxiix
Ok. The crash comes not then you play alone.
Crashs can come by a traffic jam with the dates dispatch.
can You please try out how many convoy you on a klick can remove without crash?
Title: Re: [10.18] crash on withdraw access rights
Post by: jamespetts on January 12, 2013, 01:20:23 AM
I suspect that this might be related to the crashes/desyncs that people are seeing with the replacer. Withdrawing access rights from Lindley would lead to large numbers of his ships unable to dock at your ports. In turn, they are sent to the depot as they have no route. Large numbers of ships being sent to the depot would cause a great increase in the server's CPU load that could cause it to run more slowly than a client and trigger a desync.

Further, if there is some bug in the depot finding system that sometimes causes a crash (this has not been confirmed), then this might trigger that, too.
Title: Re: [10.18] crash on withdraw access rights
Post by: jamespetts on January 17, 2013, 10:38:27 PM
Has anyone been able to reproduce this in a more recent version?
Title: Re: [10.18] crash on withdraw access rights
Post by: ӔO on January 20, 2013, 06:28:56 AM
yup. still happens in 10.22.

If you load the server game locally, switch to my company and revoke rights to NLT, it will crash instantly.
Title: Re: [10.18] crash on withdraw access rights
Post by: jamespetts on January 20, 2013, 11:35:42 AM
Thank you - that is most helpful. Now found and fixed on the 10.x branch.
Title: Re: [10.18] crash on withdraw access rights
Post by: asaphxiix on February 07, 2013, 12:50:34 AM
the client has been frozen for some time now, after I tried to revoke access right from dust-n-trans. Also, the server does not seem to be coming up.
Title: Re: [10.18] crash on withdraw access rights
Post by: jamespetts on February 08, 2013, 12:15:43 AM
I presume that this eventually resolved itself? Did it revert or eventually move onwards?