Page 1 of 1

[0.12.7] [kovarex] Desync on headless ubuntu server

Posted: Thu Sep 10, 2015 2:11 pm
by Berserker55
Continuation of https://forums.factorio.com/forum/vie ... 11&t=16028 as it was not fixed with 0.12.7

Same deal, desync within a random range of seconds.
updated evogui and yuoki since then, no go.
Also still downloading at about 15 kb/s.

Mods:
https://www.dropbox.com/sh/3oetqj0q2dik ... gA4Ua?dl=0

Save:
https://www.dropbox.com/s/kpusxyv9ccb4j4q/12.zip?dl=0

Desync report:
https://www.dropbox.com/sh/a90dmdvsj963 ... mbPba?dl=0

Client Log:
https://www.dropbox.com/s/ltncsa5d81odd ... t.log?dl=0

Server Log:
https://www.dropbox.com/s/d7gc67ok2ulq6 ... r.log?dl=0

Re: [0.12.7] [kovarex] Desync on headless ubuntu server

Posted: Tue Sep 15, 2015 4:49 pm
by Berserker55
Some further testing revealed the problem to be with my (Berserker55/fabian)'s inventory. As soon as a drone inserts something into it, or an item is put to or from the hotbar, the desync occurs.

Edit: after putting all things yuoki into a chest, then using that save on the server, it seems to work so far.

Re: [0.12.7] [kovarex] Desync on headless ubuntu server

Posted: Tue Sep 15, 2015 5:56 pm
by orzelek
Berserker55 wrote:Some further testing revealed the problem to be with my (Berserker55/fabian)'s inventory. As soon as a drone inserts something into it, or an item is put to or from the hotbar, the desync occurs.

Edit: after putting all things yuoki into a chest, then using that save on the server, it seems to work so far.
If you want you can do quite simple test.
When playing with youki's item in question take a look at inventory when doing various actions with it. If you see items in it reshuffle it means that sorting is not deterministic and will cause desyncs potentially.

Re: [0.12.7] [kovarex] Desync on headless ubuntu server

Posted: Tue Sep 15, 2015 6:13 pm
by Berserker55
That is definitely happening. Yuoki items have been reshuffling a lot. But when playing windows<->windows it's fine, so we never cared much.

Re: [0.12.7] [kovarex] Desync on headless ubuntu server

Posted: Tue Sep 15, 2015 6:28 pm
by kovarex
Yes, inventory sorting determinism related problems are only appearing when playing cross platform.

Re: [0.12.7] [kovarex] Desync on headless ubuntu server

Posted: Tue Sep 15, 2015 7:46 pm
by Berserker55
Will that be fixed short term?

Re: [0.12.7] [kovarex] Desync on headless ubuntu server

Posted: Wed Sep 16, 2015 9:54 am
by kovarex
Berserker55 wrote:Will that be fixed short term?
Most probably yes.

I was able to minimize the problem into test case with 2 items, so I'm going to investigate it to day. I guess it will be fixed to day, so it only depends when 0.12.8 will come, but probably this week.

Re: [0.12.7] [kovarex] Desync on headless ubuntu server

Posted: Wed Sep 16, 2015 10:11 am
by kovarex
It is fixed for 0.12.8

(The problem was error in the item stack comparator. It didn't work properly when to item groups had the same order string.)