Page 1 of 1

[0.12.29] Linux - Game hangs at startup

Posted: Fri Apr 29, 2016 6:33 pm
by paraboul
Hey,

I'm playing factorio (through steam) on updated archlinux (laptop) since about a month without any issue.
I don't know what was updated (archlinux has daily updates (rolling release)) and keep every package to the most recent version.

That being said, factorio stopped working this week. The screen just freez at startup (displaying a glitch of my desktop in place of the game).

factorio log file : http://pastebin.com/raw/2MR8HFGd
My config : http://pastebin.com/raw/60yQ7dNX
Mesa version : Mesa 11.2.1
Graphic drivers : xf86-video-intel 1:2.99.917+636+g562ae1f-1 (xorg-drivers xorg)

Also I attached `strace` to the process to see if it's stuck in a specific syscall and it appears to be the case :

Code: Select all

strace: Process 5486 attached
futex(0x7f6496d2d9d0, FUTEX_WAIT, 5487, NULL
FWIW, various other games are working properly (OpenGL and regular 2d games).

Thanks :)

Re: [0.12.29] Linux hang at startup

Posted: Fri Apr 29, 2016 6:47 pm
by Oxyd
Does Steam itself work? Are you launching Factorio directly and letting it launch Steam, or do you run Steam and then click on the Factorio icon?

Re: [0.12.29] Linux hang at startup

Posted: Fri Apr 29, 2016 7:00 pm
by paraboul
Steam works properly.

I tried both : launching from steam and launching the binary directly (which in turns starts steam). Same problem for both.

Re: [0.12.29] Linux - Game hangs at startup

Posted: Fri Apr 29, 2016 7:33 pm
by sillyfly
I have recently had an inexplicable decline in performance (stuttering and long freezes) in Factorio on Debian Linux with Intel GPU. It turned out the problem was not using the KMS driver: viewtopic.php?f=49&t=21205

I'm not sure how this works in Arch, but it might be worth looking into.

Re: [0.12.29] Linux - Game hangs at startup

Posted: Fri Apr 29, 2016 7:51 pm
by paraboul
sillyfly wrote:I have recently had an inexplicable decline in performance (stuttering and long freezes) in Factorio on Debian Linux with Intel GPU. It turned out the problem was not using the KMS driver: viewtopic.php?f=49&t=21205

I'm not sure how this works in Arch, but it might be worth looking into.
Hey, thanks for the update.
Although here the game doesn't even launch (beside the window creation). Looking at strace it looks like a deadlock. I'd like to investigate further but can't debug the process since there is some black magic when steam starts the game. I'm going to try a debug against the steam-less demo version.

As a side note, the game was working properly just a week ago and I can't figure out which packet I updated recently.

Edit : the demo steam-less version runs just fine :?

Re: [0.12.29] Linux - Game hangs at startup

Posted: Fri Apr 29, 2016 7:57 pm
by Oxyd
paraboul wrote:As a side note, the game was working properly just a week ago and I can't figure out which packet I updated recently.
Look into your /var/log/pacman.log – it contains a history of package installations and updates.

I would also suspect your video drivers. I've seen this hang quite a few times and it always had something to do with my video drivers – the 32-bit version of video drivers, to be precise – remember that Steam itself is a 32-bit application. Though every time I saw this, it was Steam itself that wouldn't launch.

Re: [0.12.29] Linux - Game hangs at startup

Posted: Fri Apr 29, 2016 9:26 pm
by paraboul
Oxyd wrote:
paraboul wrote:As a side note, the game was working properly just a week ago and I can't figure out which packet I updated recently.
Look into your /var/log/pacman.log – it contains a history of package installations and updates.

I would also suspect your video drivers. I've seen this hang quite a few times and it always had something to do with my video drivers – the 32-bit version of video drivers, to be precise – remember that Steam itself is a 32-bit application. Though every time I saw this, it was Steam itself that wouldn't launch.
Tried various downgrade with no luck. The funny thing is that the demo version (steam less) is working properly. Might be an issue with the libraries Steam is loading.

I guess there is no way to download the standalone version with a version bought on steam?

Anyway, thanks for the help.

Re: [0.12.29] Linux - Game hangs at startup

Posted: Fri Apr 29, 2016 9:29 pm
by daniel34
paraboul wrote:I guess there is no way to download the standalone version with a version bought on steam?
Yes, there is.
  • Make an account on factorio.com if you don't have one yet
  • Go to your profile page (click on your name on the top right)
  • Scroll down to connect your Steam account with your Factorio account
  • Now you can download the (DRM-free) standalone version

Re: [0.12.29] Linux - Game hangs at startup

Posted: Fri Apr 29, 2016 10:09 pm
by paraboul
daniel34 wrote:
paraboul wrote:I guess there is no way to download the standalone version with a version bought on steam?
Yes, there is.
  • Make an account on factorio.com if you don't have one yet
  • Go to your profile page (click on your name on the top right)
  • Scroll down to connect your Steam account with your Factorio account
  • Now you can download the (DRM-free) standalone version
How awesome is that! :o

The game runs perfectly out of Steam. My guess is that since Steam embeds various libraries which are LD_PRELOAD'D, a recent steam update may have broken something somehow.

Thanks

Re: [0.12.29] Linux - Game hangs at startup

Posted: Mon May 02, 2016 3:02 pm
by Oxyd
Since non-Steam version works for you and this appears to be a driver problem anyway, moving this to 1/0 magic.