Manjaro Linux Forum

Planet Manjaro => Gaming => Topic started by: Hafler on 31. August 2016, 01:37:59

Title: [Help?] Steam libGL errors
Post by: Hafler on 31. August 2016, 01:37:59
I know what you are thinking: "Not another one of these posts!!" However, please hear me out, I think I simply need some direction.

I have a Dell E6540 running the following (note the hybrid card):

$ uname -a
Linux manjaro 4.7.2-1-MANJARO #1 SMP PREEMPT Sun Aug 21 15:04:37 UTC 2016 x86_64 GNU/Linux


$ inxi -G
Graphics:  Card-1: Intel 4th Gen Core Processor Integrated Graphics Controller
           Card-2: Advanced Micro Devices [AMD/ATI] Mars XTX [Radeon HD 8790M]
           Display Server: X.Org 1.17.4 driver: N/A
           Resolution: 1920x1080@60.05hz, 1920x1080@60.00hz
           GLX Renderer: Mesa DRI Intel Haswell Mobile
           GLX Version: 3.0 Mesa 12.0.1

$ mhwd -li
Installed PCI configs:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
           video-intel            2016.08.22                true            PCI

$ mhwd-gpu --status
Using default
Default lib32 support: true
:: status
  lib32-libGl: '/usr/lib32/mesa/libGL.so.1.2.0'
  lib32-libGLESv1: '/usr/lib32/mesa/libGLESv1_CM.so.1.1.0'
  lib32-libGLESv2: '/usr/lib32/mesa/libGLESv2.so.2.0.0'
  lib32-libEGL: '/usr/lib32/mesa/libEGL.so.1.0.0'
  libGl: '/usr/lib/mesa/libGL.so.1.2.0'
  libGLESv1: '/usr/lib/mesa/libGLESv1_CM.so.1.1.0'
  libGLESv2: '/usr/lib/mesa/libGLESv2.so.2.0.0'
  libEGL: '/usr/lib/mesa/libEGL.so.1.0.0'
  libglx: '/usr/lib/xorg/modules/extensions/libglx.xorg'
  xorg configuration file: '/etc/X11/mhwd.d/intel.conf'

When I attempt to run steam, I get the following:

$ LIBGL_DEBUG=verbose steam
Running Steam on manjarolinux 16.08 64-bit
STEAM_RUNTIME is enabled automatically
Installing breakpad exception handler for appid(steam)/version(1471977975)
libGL: pci id for fd 7: 8086:0416, driver i965
libGL: OpenDriver: trying /usr/lib/xorg/modules/dri//tls/i965_dri.so
libGL: OpenDriver: trying /usr/lib/xorg/modules/dri//i965_dri.so
libGL: dlopen /usr/lib/xorg/modules/dri//i965_dri.so failed (/usr/lib/xorg/modules/dri//i965_dri.so: wrong ELF class: ELFCLASS64)
libGL error: unable to load driver: i965_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: i965
libGL: pci id for fd 7: 8086:0416, driver i965
libGL: OpenDriver: trying /usr/lib/xorg/modules/dri//tls/i965_dri.so
libGL: OpenDriver: trying /usr/lib/xorg/modules/dri//i965_dri.so
libGL: dlopen /usr/lib/xorg/modules/dri//i965_dri.so failed (/usr/lib/xorg/modules/dri//i965_dri.so: wrong ELF class: ELFCLASS64)
libGL error: unable to load driver: i965_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: i965
libGL: OpenDriver: trying /usr/lib/xorg/modules/dri//tls/swrast_dri.so
libGL: OpenDriver: trying /usr/lib/xorg/modules/dri//swrast_dri.so
libGL: dlopen /usr/lib/xorg/modules/dri//swrast_dri.so failed (/usr/lib/xorg/modules/dri//swrast_dri.so: wrong ELF class: ELFCLASS64)
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast

$ file * | grep ELF | cut -d: -f1 | LD_LIBRARY_PATH=. xargs ldd | grep 'not found' | sort | uniq
    libusb-1.0.so.0 => not found

I did some research via reddit posts and the arch wiki and found that my problem is likely with libgcrypt. I tried a few items I have tried:

    downgrading libgcrypt/lib32-libgcrypt 1.7.1->1.6.5
    $ find ~/.steam/root/ ( -name "libgcc_s.so" -o -name "libstdc++.so" -o -name "libxcb.so" -o -name "libgpg-error.so" ) -print -delete
    LD_PRELOAD='/usr/$LIB/libstdc++.so.6 /usr/$LIB/libgcc_s.so.1 /usr/$LIB/libxcb.so.1 /usr/$LIB/libgpg-error.so' /usr/bin/steam
    $ STEAM_RUNTIME=0 steam
    Adjusting drivers. video-ati/video-catalyst would not let me load into GDM. bumblebee drivers would allow me to get in, but I receive the same error
    installing / reinstalling 32-bit libs

I am not sure where to go from here I see the same issue with anything using 32-bit glx. It seems to be stopping me from starting steam and WINE games:

$ glxinfo32
name of display: :1
libGL error: unable to load driver: i965_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: i965
libGL error: unable to load driver: i965_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: i965
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast
X Error of failed request:  GLXBadContext
  Major opcode of failed request:  155 (GLX)
  Minor opcode of failed request:  6 (X_GLXIsDirect)
  Serial number of failed request:  55
  Current serial number in output stream:  54



After some time, I installed attempted to use PRIME instead, but the issue is still occurring on the radeon side.:
I installed xf86-video-ati and xf86-video-intel, then rebooted

$ xrandr --listproviders
Providers: number : 2
Provider 0: id: 0x7e cap: 0xb, Source Output, Sink Output, Sink Offload crtcs: 4 outputs: 8 associated providers: 0 name:Intel
Provider 1: id: 0x52 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 2 outputs: 1 associated providers: 0 name:OLAND @ pci:0000:01:00.0


$  glxinfo | grep "OpenGL renderer"
OpenGL renderer string: Mesa DRI Intel(R) Haswell Mobile

xrandr --setprovideroffloadsink "OLAND @ pci:0000:01:00.0" Intel

DRI_PRIME=1 glxinfo | grep "OpenGL renderer"
OpenGL renderer string: Gallium 0.4 on AMD OLAND (DRM 2.45.0 / 4.7.2-1-MANJARO, LLVM 3.8.1)

$ DRI_PRIME=1 steam
Running Steam on manjarolinux 16.08 64-bit
STEAM_RUNTIME is enabled automatically
Installing breakpad exception handler for appid(steam)/version(1471977975)
libGL error: unable to load driver: radeonsi_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: radeonsi
libGL error: unable to load driver: radeonsi_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: radeonsi
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast

$ DRI_PRIME=1 STEAM_RUNTIME=0 steam
Running Steam on manjarolinux 16.08 64-bit
STEAM_RUNTIME is disabled by the user
Installing breakpad exception handler for appid(steam)/version(1471977975)
libGL error: unable to load driver: radeonsi_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: radeonsi
libGL error: unable to load driver: radeonsi_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: radeonsi
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast


$ DRI_PRIME=1 STEAM_RUNTIME=0 LD_PRELOAD='/usr/$LIB/libstdc++.so.6 /usr/$LIB/libgcc_s.so.1 /usr/$LIB/libxcb.so.1 /usr/$LIB/libgpg-error.so' steam
Running Steam on manjarolinux 16.08 64-bit
STEAM_RUNTIME is disabled by the user
Installing breakpad exception handler for appid(steam)/version(1471977975)
libGL error: unable to load driver: radeonsi_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: radeonsi
libGL error: unable to load driver: radeonsi_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: radeonsi
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast

It seems like all of the common fixes/workarounds aren't working for me. Could anyone point me in a direction?
Title: Re: [Help?] Steam libGL errors
Post by: handy on 02. September 2016, 08:19:37
hi, you need to post in the official manjaro forum, this forum is considered to be archival (unfortunately) these days.

https://forum.manjaro.org/