Page 1 of 1

Linux: Laptop freeze when exiting game after not saving [0.17.x]

Posted: Thu Oct 24, 2019 1:04 am
by bigbadweirdo
Hi,

I am using Ubuntu 18.04.3. I have experienced this issue since 0.16.x but it's starting to get annoying so I decided to make a bug report.

So basically, when I play either solo / multiplayer, if I quit the current game I'm in, without saving it first, and then exit Factorio, the game will crash my laptop into freezing, unable to do anything, not even able to switch to a different TTY. It's very consistent in happening every time when I didn't save the game first.

It's a bit annoying because sometimes I play with a friend online and we're just fooling around and then I exit the game and my laptop freezes and I have to give it a hard power-cycle.

Attached is log file. Let me know if you need more information.

Re: Linux: Laptop freeze when exiting game after not saving [0.17.x]

Posted: Thu Oct 24, 2019 3:02 am
by DaveMcW
Does turning off Steam Cloud synchronization fix it?

Re: Linux: Laptop freeze when exiting game after not saving [0.17.x]

Posted: Thu Oct 24, 2019 3:45 am
by bigbadweirdo
Just turned it off, tried to make the game crash on exit but my laptop kept working. Workaround seems to work.

However, I'm not 100% sure what exactly causes the issue (but it definitely is related to me not saving the game), so there might be some steps to reproduce the issue which I didn't take in my quick tests just now.

Re: Linux: Laptop freeze when exiting game after not saving [0.17.x]

Posted: Fri Oct 25, 2019 9:35 pm
by bigbadweirdo
Laptop also freezes when I start the game, disable a bunch of mods, and click confirm.

Re: Linux: Laptop freeze when exiting game after not saving [0.17.x]

Posted: Sat Oct 26, 2019 3:09 am
by DaveMcW
Does turning off Steam Cloud synchronization fix it?

Re: Linux: Laptop freeze when exiting game after not saving [0.17.x]

Posted: Sat Oct 26, 2019 6:03 pm
by thecatlover1996
Sounds like an issue similar to viewtopic.php?f=35&t=54985 except for me the freezing seemingly happens in a random fashion (or at least, I haven't found a pattern yet)

Re: Linux: Laptop freeze when exiting game after not saving [0.17.x]

Posted: Tue Oct 29, 2019 3:12 pm
by bigbadweirdo
Yea, I'm now also experiencing it when I did save the game.

I logged into my laptop with SSH after the freeze and took some strace -ff of the factorio executable. You can find the strace of all the factorio pid's attached.

It seems that factorio is crashing the nvidia driver somehow, because when I tried to do `nvidia-smi`, that process hangs without outputting anything.

Note: there is also a trace of pid 10141 but that one is completely empty and therefore I can't upload it.

Re: Linux: Laptop freeze when exiting game after not saving [0.17.x]

Posted: Tue Oct 29, 2019 3:17 pm
by Oxyd
bigbadweirdo wrote: Tue Oct 29, 2019 3:12 pm Yea, I'm now also experiencing it when I did save the game.

I logged into my laptop with SSH after the freeze and took some strace -ff of the factorio executable. You can find the strace of all the factorio pid's attached.

It seems that factorio is crashing the nvidia driver somehow, because when I tried to do `nvidia-smi`, that process hangs without outputting anything.

Note: there is also a trace of pid 10141 but that one is completely empty and therefore I can't upload it.
Could be a bug in the NVidia driver, then. Could you try updating it and seeing if that fixes the issue?

Re: Linux: Laptop freeze when exiting game after not saving [0.17.x]

Posted: Tue Oct 29, 2019 3:22 pm
by bigbadweirdo
I'm currently on 390.116 which is the current "official" version in Ubuntu 18.04 LTS.
I will do a manual install of the NVidia driver instead which will bring me to 430.50 and see what happens.

Re: Linux: Laptop freeze when exiting game after not saving [0.17.x]

Posted: Fri Nov 15, 2019 7:20 pm
by thecatlover1996
bigbadweirdo wrote: Tue Oct 29, 2019 3:22 pm I'm currently on 390.116 which is the current "official" version in Ubuntu 18.04 LTS.
I will do a manual install of the NVidia driver instead which will bring me to 430.50 and see what happens.
Any results so far? :)