You are not logged in.
After a recent system update, primusrun glxgears exits after window creation. The command exits with error code 139, but there is no error message. Even setting PRIMUS_VERBOSE=2 does not provide error messages.
systemctl status bumblebeed doesn’t contain any logging information about the command, but it does give the following log after starting.
● bumblebeed.service - Bumblebee C Daemon
Loaded: loaded (/usr/lib/systemd/system/bumblebeed.service; disabled; vendor preset: disabled)
Active: active (running) since Thu 2018-07-12 11:27:53 PDT; 8min ago
Main PID: 12631 (bumblebeed)
Tasks: 1 (limit: 4915)
Memory: 15.3M
CGroup: /system.slice/bumblebeed.service
└─12631 /usr/bin/bumblebeed
Jul 12 11:36:24 obsidian bumblebeed[12631]: [60398.259043] [WARN][XORG] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi".
Jul 12 11:36:24 obsidian bumblebeed[12631]: [60398.259050] [WARN][XORG] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
Jul 12 11:36:24 obsidian bumblebeed[12631]: [60398.259054] [WARN][XORG] (WW) Warning, couldn't open module mouse
Jul 12 11:36:24 obsidian bumblebeed[12631]: [60398.259063] [WARN][XORG] (WW) NVIDIA(0): Unable to get display device for DPI computation.
Jul 12 11:36:24 obsidian bumblebeed[12631]: [60398.259068] [WARN][XORG] (WW) NVIDIA(0): Option "NoLogo" is not used
Jul 12 11:36:24 obsidian bumblebeed[12631]: [60398.259076] [WARN][XORG] (WW) Warning, couldn't open module mouse
Jul 12 11:36:24 obsidian bumblebeed[12631]: [60398.259082] [ERROR][XORG] (EE) PreInit returned 2 for "<default pointer>"
Jul 12 11:36:24 obsidian bumblebeed[12631]: [60398.259086] [ERROR][XORG] (EE) PreInit returned 2 for "<default keyboard>"
Jul 12 11:36:24 obsidian bumblebeed[12631]: modprobe: FATAL: Module nvidia is in use.
Jul 12 11:36:27 obsidian bumblebeed[12631]: [60401.787905] [ERROR]Unloading nvidia driver timed out.
However, LD_PRELOAD=/usr/lib/libGL.so primusrun glxgears does execute correctly, running glxgears without error. This solution is taken from a forum post I’ve yet to find again, but I do know that the thread didn’t tell me what the problem was, or why this solution worked.
How can I go about finding more information about what’s happening?
Edit: error code correction, results of setting PRIMUS_VERBOSE
Edit: Currently getting an error in dmesg, investigating
glxgears[15300]: segfault at 74 ip 00007f2cb0fdd081 sp 00007f2cad1d3b20 error 4 in i965_dri.so
Edit: Running with LD_PRELOAD=/usr/lib/libGL.so primusrun glxgears -info shows that it’s using the Intel onboard graphics, not the NVIDIA GPU as expected.
Given:
GL_RENDERER = Mesa DRI Intel(R) HD Graphics 530 (Skylake GT2)
GL_VERSION = 3.0 Mesa 18.1.3
GL_VENDOR = Intel Open Source Technology Center
Expected (and shown with optirun glxgears -info):
GL_RENDERER = GeForce GTX 960M/PCIe/SSE2
GL_VERSION = 4.6.0 NVIDIA 396.24
GL_VENDOR = NVIDIA Corporation
Clearly, preloading /usr/lib/libGL.so is not a fix.
Edit: Apparently setting PRIMUS_UPLOAD=1 works – it uses the right card and doesn't exit. I have no idea what this does. The manpage doesn’t mention it.
Last edited by DeusNext (2018-07-14 00:01:02)
Offline
Offline
Thank you!
Offline