Page 1 of 1

[Rseding91] [0.13.15] Headless Server Desyncs

Posted: Wed Aug 10, 2016 4:10 am
by edalquist
We are running a headless server with no mods on Google Cloudand generally it works great but every once in a while we get repeated desyncs.

Attached is a zip with 3x desync reports
- It was just me on the server
- I generally have a <15ms ping to the server
- factorio is the only thing running on a single core server with 3.75GB of RAM, our factorio process generally uses just under 1GB.
- Server: Linux factorio-server 4.4.0-31-generic #50-Ubuntu SMP Wed Jul 13 00:07:12 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
- Client: OSX 10.11.6

https://drive.google.com/open?id=0B0KQR ... 0ZOdVl2NjA

Re: [0.13.15] Headless Server Desyncs

Posted: Wed Aug 10, 2016 5:22 am
by Loewchen
Are you using mods?

Re: [0.13.15] Headless Server Desyncs

Posted: Wed Aug 10, 2016 8:02 am
by edalquist
No mods (I did say that in the original post).

It appears to be save related. We have the server set to autosave every 5 minutes and have 24 slots. I slowly went back in time until I found a save that worked.

Here is a drive folder of the saves: https://drive.google.com/open?id=0B0KQR ... C1vdTF5TVU

save 20 works saves 21-24 result in immediate desync.

We restarted from save 20 and played several more hours (yay factorio) without problem.

Re: [Rseding91] [0.13.15] Headless Server Desyncs

Posted: Wed Aug 10, 2016 7:52 pm
by Rseding91
Thanks for the saves. I was able to reproduce the desync. I'm looking into it and will report back when I've figured out what's going wrong.

Re: [Rseding91] [0.13.15] Headless Server Desyncs

Posted: Wed Aug 10, 2016 9:14 pm
by edalquist
Awesome, glad to give you usable data. I realized that after I verified save 20 worked I never went and re-verified that save 24 caused the desync still and it wasn't some transient issue.

Re: [Rseding91] [0.13.15] Headless Server Desyncs

Posted: Wed Aug 10, 2016 11:38 pm
by Rseding91
Fixed for 0.13.16.

Re: [Rseding91] [0.13.15] Headless Server Desyncs

Posted: Wed Aug 10, 2016 11:49 pm
by edalquist
Awesome thanks! For a curious software engineer can you share what the bug was?

Re: [Rseding91] [0.13.15] Headless Server Desyncs

Posted: Wed Aug 10, 2016 11:56 pm
by Rseding91
Fast replacing a filter inserter with the condition "set filter" with an inserter that doesn't have filters.

Re: [Rseding91] [0.13.15] Headless Server Desyncs

Posted: Thu Aug 11, 2016 1:06 am
by Kurtosis
Yay! So glad we got it fixed! This isn't the first time we've hit this bug either :o)