Page 1 of 1

[0.15.27] Time/NTP issues causes crash

Posted: Wed Jul 05, 2017 5:40 pm
by ikki
This is not a Factorio problem, per se, but the fallout from it is unique to Factorio.

Background: Broken motherboard, can't keep time. Eventually starts going backwards. Vendor was initially replacing these motherboards as an RMA, no longer does, I'm cheap, whatever.

Issue: If my clock gets an hour behind, Factorio crashes. I noticed once it jumped over an hour behind, Factorio didn't notice, but when it hit two hours behind (on the nose), Factorio crashed.

I can understand if this doesn't get considered a bug, but since the crashing is not something I've seen before in an application due to my "drift" issue, I thought I'd report it.

Hope it helps.

Re: [0.15.27] Time/NTP issues causes crash

Posted: Wed Jul 05, 2017 6:20 pm
by kovarex
Without providing the log of the crash, this is far from enough of info for us to know what is going on.

Re: [0.15.27] Time/NTP issues causes crash

Posted: Thu Jul 06, 2017 2:28 am
by ikki
When I say crash, it actually hangs. I have to manually end-task it. Reproduced, log file has nothing in it during the crash - it stops at the last `tick` info.

Ah well, I tried. Great game, fun to play!

Re: [0.15.27] Time/NTP issues causes crash

Posted: Thu Jul 06, 2017 7:49 am
by Harkonnen
Please attach savegame where it is easily reproducable.

Re: [0.15.27] Time/NTP issues causes crash

Posted: Thu Jul 06, 2017 8:04 am
by posila
Game might hang in std::sleep_for when time changes. It is known issue.

Re: [0.15.27] Time/NTP issues causes crash

Posted: Thu Jul 06, 2017 8:15 am
by kovarex
posila wrote:Game might hang in std::sleep_for when time changes. It is known issue.
In that case, I have to classify it as won't fix. Sorry.

Re: [0.15.27] Time/NTP issues causes crash

Posted: Thu Jul 06, 2017 1:53 pm
by Harkonnen
I hope it's not sensitive to daylight saving when evaluated local clock goes an hour behind for everybody :)

Re: [0.15.27] Time/NTP issues causes crash

Posted: Thu Jul 06, 2017 3:35 pm
by steinio
ikki wrote:This is not a Factorio problem, per se, but the fallout from it is unique to Factorio.

Background: Broken motherboard, can't keep time. Eventually starts going backwards. Vendor was initially replacing these motherboards as an RMA, no longer does, I'm cheap, whatever.

Issue: If my clock gets an hour behind, Factorio crashes. I noticed once it jumped over an hour behind, Factorio didn't notice, but when it hit two hours behind (on the nose), Factorio crashed.

I can understand if this doesn't get considered a bug, but since the crashing is not something I've seen before in an application due to my "drift" issue, I thought I'd report it.

Hope it helps.

Hey try to sync your pc time with a ntp server like every 5 minutes if possible,

My2cents steinio

Re: [0.15.27] Time/NTP issues causes crash

Posted: Fri Sep 15, 2017 11:56 am
by henke37
Harkonnen wrote:I hope it's not sensitive to daylight saving when evaluated local clock goes an hour behind for everybody :)
You mean some people who happen to use the same timezone and daylight savings rules. Some people don't use daylightssavings. And the changeover time isn't consistent. At a minimum, it doesn't happen at the same date for everyone.

Re: [0.15.27] Time/NTP issues causes crash

Posted: Sat Nov 04, 2017 2:08 am
by Rseding91
This is resolved for 0.16. In our update to the latest version of the Microsoft C++ compiler for 0.16 they fixed the bug in the sleep_for logic that caused this.