Hardware:
CPU: i73930k 6c 12t @ 3.7GHz
GPU0: GeForce GTX 1060 6GB (Factorio should be running on this GPU)
GPU1: GeForce GTX 660
RAM: 8x4GB DDR3
Software:
Kernel: 4.13.0-43-generic X86_64
OS: Ubuntu 17.10
DE: XFCE
WM: Xfwm4
Nvidia Driver: 384.111 (Driver for both GPUs)
X.Org: 1.19.5
Display Configuration:
GPU0 --> X Screen 0 --> Monitor 0 2560x1440@60Hz, Monitor 1 1600x900@60Hz, Monitor 2 1440x900@60Hz, Monitor 3 1920x1200@60Hz
GPU1 --> X Screen 1 --> Monitor 4 1280x1024@75, Monitor 5 1280x1024@75
I am logged in with 1 desktop that is spanned across multiple X screens, each of which is spanned across multiple physical monitors. I am running multiple heterogenous GPUs since a single 1060 can drive at most 4 monitors and I have more than that. Factorio should be starting on Screen 0 on monitor 0 in fullscreen, that was what happened before I added the second GPU and final three monitors. Instead of this Factorio crashes on startup before even opening a window, this happens on 0.15.40 (Seablock) as well as on 0.16.42, additionally, the --fullscreen false command line argument does not seem to affect the crash. Attached are Several logs, My /etc/X11/xorg.conf and the output of xrandr and nvidia-xconfig commands since the factorio log seems to mention xrandr.
Cannot start on linux when logged in with mutiple X screens.
Cannot start on linux when logged in with mutiple X screens.
- Attachments
-
- factorio.16_steam_nofullscreen.dmp
- The core dump produced by Factiorio 0.16.42 when started from steam with the --fullscreen false argument.
- (186.36 KiB) Downloaded 199 times
-
- factorio.16_steam_nofullscreen.log
- The console log of Factiorio 0.16.42 when started from steam with the --fullscreen false argument.
- (3.1 KiB) Downloaded 197 times
-
- factorio.16_nofullscreen.dmp
- The core dump produced by Factiorio 0.16.36 when started with the --fullscreen false argument
- (179.63 KiB) Downloaded 186 times
-
- factorio.16_nofullscreen.log
- The console log of Factiorio 0.16.36 when started with the --fullscreen false argument
- (3.35 KiB) Downloaded 195 times
-
- factorio.16.log
- The console log of Factiorio 0.16.36
- (3.33 KiB) Downloaded 196 times
-
- factorio.15_nofullscreen.log
- The console log of Factiorio 0.15.40 seablock when started with the --fullscreen false argument
- (3.14 KiB) Downloaded 187 times
-
- factorio.15.log
- The console log of Factiorio 0.15.40 seablock
- (3.12 KiB) Downloaded 175 times
-
- xorg.conf.txt
- The config file that Xorg reads on graphical startup.
- (2.92 KiB) Downloaded 195 times
-
- xrandr.log
- The output of the command "xrandr --listproviders && xrandr --query" This represents the GPU and monitor topology from the perspective of xrandr when run on the same X screen that Factorio is run from.
- (1.35 KiB) Downloaded 199 times
-
- nvidia.txt
- output of command "nvidia-xconfig --query-gpu-info"
Lists the GPU and Monitor topology from the perspective of the Nvidia Driver. - (3.5 KiB) Downloaded 187 times
Last edited by nerwall on Fri May 25, 2018 10:04 pm, edited 1 time in total.
Re: Cannot start on linux when logged in with mutiple X screens.
Thanks for the report. I don't have a setup crazy enough to reproduce it, but I think I found the cause of the crash. So, hopefully it will be fixed in 0.16.46.
Re: Cannot start on linux when logged in with mutiple X screens.
I have narrowed down the minimum possible configuration that causes the crash, I can be done on a computer with 1 GPU and 3 monitors. There just need to be at least 2 X screens and Factorio should be started from a terminal on the X screen that is spanned across 2 of the monitors. Attached are the files from the minimum crashing config.
The steps to reproduce, if you want to try, are as follows.
The steps to reproduce, if you want to try, are as follows.
- Plug three monitors into a newish Nvidia card
- Boot into a linux environment running XFCE and Xfwm4. (Xubuntu works)
- Make sure the system is running the Nvidia Proprietary driver.
- Open the Nvidia X server settings application.
- Select the "X Server Display Configuration" tab.
- Select one of the three monitors, switch the "Configuration:" dropdown from "X Screen 0" to "New X Screen".
- Click "Save to X Configuration File" and name the file "xorg.conf". (requires password of sudoer)
- Press the "<Ctrl>+<Alt>+<F1>" Key combination to switch to tty1.
- Log in to user account in terminal.
- Run command "sudo service lightdm restart".(Or whatever your display manager and Init system are)
- Log in to graphical environment again.
- Start Factorio and watch it crash.
- Attachments
-
- 1GPU2screens3monitors.xorg.conf.txt
- Xorg.conf file from crashing screen config with minimum hardware requirements.
- (2.84 KiB) Downloaded 196 times
-
- factorio.16_1gpu2screens3monitors.log
- Log file from crashing screen config with minimum hardware requirements.
- (3.34 KiB) Downloaded 187 times
-
- factorio.16_1gpu2screens3monitors.dmp
- Core dump from crashing screen config with minimum hardware requirements.
- (179.61 KiB) Downloaded 163 times
Re: Version 0.16.46
Unfortunately it looks like this did not fix the issue. Attached are the newest log and dump. The reproduction steps in my comment on the bug report page still work, but I understand if changing up your setup is too much for a bug that is so specific to a very rare setup.FactorioBot wrote:Bugfixes
- Another possible fix for multi-GPU setups on Linux. (60609)
EDIT: It looks like this fixes the bug, but only if the second X screen contains only one monitor. If the second X screen has two monitors it still crashes. Additionally, if Factorio is started from an X screen other than 0, it will still start on screen 0, unlike most X applications.
- Attachments
-
- factorio-dump-current.dmp
- 0.14.46 crash with multiple X screens.
- (175.61 KiB) Downloaded 185 times
-
- factorio-current.log
- 0.14.46 crash with multiple X screens.
- (3.9 KiB) Downloaded 203 times
Re: Cannot start on linux when logged in with mutiple X screens.
Holy moses, that's a crazy configuration.
Re: Cannot start on linux when logged in with mutiple X screens.
[Koub] Moved nerwall's last post here (from minor update topic)
Koub - Please consider English is not my native language.
Re: Cannot start on linux when logged in with mutiple X screens.
Here is a picture XD.
Re: Version 0.16.46
I see. I guess it's a more complicated problem than it first seemed. It's caused by Allegro and, as you may have heard, we are planning to move away from Allegro with 0.17. So let's wait for 0.17 with this bug.nerwall wrote:Unfortunately it looks like this did not fix the issue. Attached are the newest log and dump. The reproduction steps in my comment on the bug report page still work, but I understand if changing up your setup is too much for a bug that is so specific to a very rare setup.FactorioBot wrote:Bugfixes
- Another possible fix for multi-GPU setups on Linux. (60609)
EDIT: It looks like this fixes the bug, but only if the second X screen contains only one monitor. If the second X screen has two monitors it still crashes. Additionally, if Factorio is started from an X screen other than 0, it will still start on screen 0, unlike most X applications.
Re: Cannot start on linux when logged in with mutiple X screens.
This issue has been resolved in 0.17.0, everything is working as expected on my funky system.