Page 1 of 1

[0.14.7][posila] Desync loop

Posted: Sun Sep 18, 2016 10:11 am
by PhyRo
Me and my friend are getting these desyncs since 0.14.0 ish.
Once we get the desync and the desync report is created we get another desync and then another and so on, until we reach maximum desyncs or quit the game.
Desyncs seems to be random, we have been doing diffrent stuff each time a desync happens.
Server restart helps, but inevitable the desync always happen.

[EDIT]
Running a headless server
[/EDIT]

[EDIT2]
Server log of latest desync
https://drive.google.com/open?id=0B0_cN ... FRyZDlfZ0E
[/EDIT2]

Re: [0.14.7][posila] Desync loop

Posted: Tue Sep 20, 2016 3:22 pm
by posila
Hi, what CPU is on your server? We don't have this information in our log (but we will have it in 0.14.8)

Re: [0.14.7][posila] Desync loop

Posted: Wed Sep 21, 2016 8:57 am
by PhyRo
it's an oldie :P

model name : AMD Phenom(tm) II X2 545 Processor
4gig ram

(Sorry for the late reply)

Re: [0.14.7][posila] Desync loop

Posted: Wed Sep 21, 2016 10:10 pm
by posila
No worries, I am not quick to respond either.
And you say when you get to the desync loop and restart server, it fixes the desync loop.
That is interesting. Desync happens in the electric network statistics ... it is usually good indicator of desyncs because if some machine works differently also electric consumption is different.
It your case it seems the server rounds floating numbers differently than clients, but than server restart shouldn't fix desync loop.

More investigation is needed, but I am out-of-office for next few days.

Re: [0.14.7][posila] Desync loop

Posted: Wed Sep 21, 2016 11:08 pm
by Loewchen
PhyRo wrote:it's an oldie :P
model name : AMD Phenom(tm) II X2 545 Processor
4gig ram
Could you find out the following:
  1. the stepping (or revision) of the processor (if you don't know, a simple diagnostic tool like cpu-z or core-temp would tell you.)
  2. equipping of the RAM (how many DIMMs, what speed)
  3. if any of the deactivated cores have been reactivated
Thx.

Re: [0.14.7][posila] Desync loop

Posted: Thu Sep 22, 2016 6:07 am
by PhyRo
model name : AMD Phenom(tm) II X2 545 Processor
stepping : 2

2 DIMMs 667mhz
No unlocked cores
cat cpuinfo
lshw cpu
memory lshw

Re: [0.14.7][posila] Desync loop

Posted: Thu Sep 22, 2016 11:35 am
by PhyRo
In 0.14.8 the desync loop seems to have disappeared, had one desync, but that was only on my machine and i had no problem to connect and resume the after the desync report was finished.

In previous post, by "server restart" i was referring to restart of factorio server proc and not the machine itself.

Re: [0.14.7][posila] Desync loop

Posted: Wed Sep 28, 2016 9:40 am
by PhyRo
[0.14.9]
Desynced again and got stuck in the desync loop until maximum desync was reached.
Could reconnect, but desynced again ~one minute later.

Desync reports :
https://drive.google.com/drive/folders/ ... sp=sharing

Re: [0.14.7][posila] Desync loop

Posted: Wed Sep 28, 2016 10:36 am
by kovarex
We probably found a cause of this desync (My guess is 95% probability, we can't be sure as we didn't reproduce it).

So I'm moving to fixed for 0.14.10