You are not logged in.

#1 2015-05-28 00:13:43

Mate_frut
Member
Registered: 2015-05-27
Posts: 4

Steam libGL error: unable to load driver: r600_dri.so, swrast_dri.so

Hi everybody ,
I was trying to launch Portal 2 in Arch Linux terminal with GPU: AMD Radeon HD 6520G Dual, but I got libGL error.
PC info: HP Pavilion g6-1211er

Here is terminal output after launching ("steam://rungameid/620" for Portal 2 quick start)

STEAM_RUNTIME=0 steam steam://rungameid/620

Output :

STEAM_RUNTIME is disabled by the user
ExecCommandLine: "/home/mil/.steam/root/ubuntu12_32/steam steam://open/driverhelperready"
ExecSteamURL: "steam://open/driverhelperready"
Generating new string page texture 68: 128x256, total string texture memory is 573,44 KB
Generating new string page texture 69: 256x256, total string texture memory is 835,58 KB
Game update: AppID 620 "Portal 2", ProcID 4419, IP 0.0.0.0:0
ERROR: ld.so: object '/home/mil/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/mil/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
pid 4421 != 4420, skipping destruction (fork without exec?)
ERROR: ld.so: object '/home/mil/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/mil/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
libGL error: unable to load driver: r600_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: r600
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast
crash_20150528022019_6.dmp[4328]: Finished uploading minidump (out-of-process): success = yes
crash_20150528022019_6.dmp[4328]: response: CrashID=bp-c8e923a6-36d0-4c61-aaf0-2047a2150527
crash_20150528022019_6.dmp[4328]: file ''/tmp/dumps/crash_20150528022019_6.dmp'', upload yes: ''CrashID=bp-c8e923a6-36d0-4c61-aaf0-2047a2150527''

You can see libGL errors, which say that it is unable to load some drivers.

Also I thought it would be better if I show the output of next comand (it shows info about installed drivers, this comand was taken from this article.

$ glxinfo32 | grep OpenGL.

Here it is:

OpenGL vendor string: X.Org
OpenGL renderer string: Gallium 0.4 on AMD SUMO
OpenGL core profile version string: 3.3 (Core Profile) Mesa 10.5.6
OpenGL core profile shading language version string: 3.30
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.0 Mesa 10.5.6
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.0 Mesa 10.5.6
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.00
OpenGL ES profile extensions:

I am sure it is not the same situation as in this topic ,because I am launching the game without Steam runtume. That menas the solution of that topic is unsuitable for my case (I do not have such files to delete to solve the peoblem). I suppose Steam is not guilty in that.Instead of I guess it is something wrong with my GPU. sad

I am really looking forward to play this awesome game. yikes
Really appreciate every kind of helpful advice from you. wink

Last edited by Mate_frut (2015-05-28 02:06:11)

Offline

#2 2015-05-28 14:04:17

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,911

Re: Steam libGL error: unable to load driver: r600_dri.so, swrast_dri.so

I got the feeling gameoverlayrender.so is causing the problems.

please post   output of    ldd /home/mil/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#3 2015-05-28 20:35:50

Mate_frut
Member
Registered: 2015-05-27
Posts: 4

Re: Steam libGL error: unable to load driver: r600_dri.so, swrast_dri.so

Lone_Wolf, thank you for reply.

Here is output of the " ldd /home/mil/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so " comand:

        linux-gate.so.1 (0xf76e5000)
	libGL.so.1 => /usr/lib32/libGL.so.1 (0xf75b2000)
	librt.so.1 => /usr/lib32/librt.so.1 (0xf75a9000)
	libdl.so.2 => /usr/lib32/libdl.so.2 (0xf75a4000)
	libstdc++.so.6 => /usr/lib32/libstdc++.so.6 (0xf742f000)
	libpthread.so.0 => /usr/lib32/libpthread.so.0 (0xf7411000)
	/usr/lib/ld-linux.so.2 (0xf76e6000)
	libc.so.6 => /usr/lib32/libc.so.6 (0xf7257000)
	libexpat.so.1 => /usr/lib32/libexpat.so.1 (0xf722e000)
	libglapi.so.0 => /usr/lib32/libglapi.so.0 (0xf7214000)
	libXext.so.6 => /usr/lib32/libXext.so.6 (0xf71ff000)
	libXdamage.so.1 => /usr/lib32/libXdamage.so.1 (0xf71fa000)
	libXfixes.so.3 => /usr/lib32/libXfixes.so.3 (0xf71f4000)
	libX11-xcb.so.1 => /usr/lib32/libX11-xcb.so.1 (0xf71f1000)
	libX11.so.6 => /usr/lib32/libX11.so.6 (0xf70a2000)
	libxcb-glx.so.0 => /usr/lib32/libxcb-glx.so.0 (0xf7087000)
	libxcb-dri2.so.0 => /usr/lib32/libxcb-dri2.so.0 (0xf7080000)
	libxcb-dri3.so.0 => /usr/lib32/libxcb-dri3.so.0 (0xf707c000)
	libxcb-present.so.0 => /usr/lib32/libxcb-present.so.0 (0xf7078000)
	libxcb-randr.so.0 => /usr/lib32/libxcb-randr.so.0 (0xf7068000)
	libxcb-xfixes.so.0 => /usr/lib32/libxcb-xfixes.so.0 (0xf705f000)
	libxcb-render.so.0 => /usr/lib32/libxcb-render.so.0 (0xf7053000)
	libxcb-shape.so.0 => /usr/lib32/libxcb-shape.so.0 (0xf704e000)
	libxcb-sync.so.1 => /usr/lib32/libxcb-sync.so.1 (0xf7046000)
	libxcb.so.1 => /usr/lib32/libxcb.so.1 (0xf7020000)
	libxshmfence.so.1 => /usr/lib32/libxshmfence.so.1 (0xf701d000)
	libXxf86vm.so.1 => /usr/lib32/libXxf86vm.so.1 (0xf7015000)
	libdrm.so.2 => /usr/lib32/libdrm.so.2 (0xf7005000)
	libm.so.6 => /usr/lib32/libm.so.6 (0xf6fb8000)
	libgcc_s.so.1 => /usr/lib32/libgcc_s.so.1 (0xf6f9e000)
	libXau.so.6 => /usr/lib32/libXau.so.6 (0xf6f9a000)
	libXdmcp.so.6 => /usr/lib32/libXdmcp.so.6 (0xf6f92000)

Offline

#4 2015-05-29 16:37:50

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,911

Re: Steam libGL error: unable to load driver: r600_dri.so, swrast_dri.so

Hmm, that's  a lot more libraries then i hoped.

What does STEAM_RUNTIME=0 steam output ?
check archwiki on steam , section using steam runtime for details what to do.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#5 2015-05-31 10:54:03

Mate_frut
Member
Registered: 2015-05-27
Posts: 4

Re: Steam libGL error: unable to load driver: r600_dri.so, swrast_dri.so

Here is STEAM_RUNTIME=0 steam output :

Running Steam on arch rolling 64-bit
STEAM_RUNTIME is disabled by the user
Installing breakpad exception handler for appid(steam)/version(1431729692)
Installing breakpad exception handler for appid(steam)/version(1431729692)
Installing breakpad exception handler for appid(steam)/version(1431729692)
Gtk-Message: Failed to load module "canberra-gtk-module"
Installing breakpad exception handler for appid(steam)/version(1431729692)
/home/buildbot/buildslave_steam/steam_rel_client_ubuntu12_linux/build/src/vgui2/src/../vgui_surfacelib/FontManager.cpp (276) : Assertion Failed: descs.Count() >= 1
Assert( Assertion Failed: descs.Count() >= 1 ):/home/buildbot/buildslave_steam/steam_rel_client_ubuntu12_linux/build/src/vgui2/src/../vgui_surfacelib/FontManager.cpp:276

Installing breakpad exception handler for appid(steam)/version(1431729692)
crash_20150531135007_6.dmp[1484]: Uploading dump (out-of-process)
/tmp/dumps/crash_20150531135007_6.dmp
/home/buildbot/buildslave_steam/steam_rel_client_ubuntu12_linux/build/src/vgui2/src/../vgui_surfacelib/FontManager.cpp (276) : Assertion Failed: descs.Count() >= 1
/home/buildbot/buildslave_steam/steam_rel_client_ubuntu12_linux/build/src/vgui2/src/../vgui_surfacelib/FontManager.cpp (276) : Assertion Failed: descs.Count() >= 1
/home/buildbot/buildslave_steam/steam_rel_client_ubuntu12_linux/build/src/vgui2/src/../vgui_surfacelib/FontManager.cpp (276) : Assertion Failed: descs.Count() >= 1
[0531/135007:ERROR:browser_main_loop.cc(170)] Running without the SUID sandbox! See https://code.google.com/p/chromium/wiki/LinuxSUIDSandboxDevelopment for more information on developing with the sandbox on.
Installing breakpad exception handler for appid(steamwebhelper)/version(20150514174016)
Installing breakpad exception handler for appid(steamwebhelper)/version(1431625216)
Installing breakpad exception handler for appid(steamwebhelper)/version(20150514174016)
Installing breakpad exception handler for appid(steamwebhelper)/version(1431729692)
Installing breakpad exception handler for appid(steamwebhelper)/version(1431729692)
Installing breakpad exception handler for appid(steam)/version(1431729692)
Installing breakpad exception handler for appid(steam)/version(1431729692)
Installing breakpad exception handler for appid(steam)/version(1431729692)
Installing breakpad exception handler for appid(steam)/version(1431729692)
Installing breakpad exception handler for appid(steam)/version(1431729692)
FillInMachineIDInfo took a total of 0 milliseconds
Installing breakpad exception handler for appid(steam)/version(1431729692)
Installing breakpad exception handler for appid(steam)/version(1431729692)
Installing breakpad exception handler for appid(steam)/version(1431729692)
crash_20150531135007_6.dmp[1484]: Finished uploading minidump (out-of-process): success = no
crash_20150531135007_6.dmp[1484]: error: HTTP response code said error
crash_20150531135007_6.dmp[1484]: file ''/tmp/dumps/crash_20150531135007_6.dmp'', upload no: ''HTTP response code said error''
Installing breakpad exception handler for appid(steam)/version(1431729692)
Generating new string page texture 2: 48x256, total string texture memory is 49,15 KB
Generating new string page texture 3: 384x256, total string texture memory is 442,37 KB
Installing breakpad exception handler for appid(steam)/version(1431729692)
Installing breakpad exception handler for appid(steam)/version(1431729692)
Installing breakpad exception handler for appid(steam)/version(1431729692)
Installing breakpad exception handler for appid(steam)/version(1431729692)
Installing breakpad exception handler for appid(steam)/version(1431729692)
Adding licenses for the following package(s): 0, 7877, 21353, 41612, 44226, 46515, 69418
roaming config store loaded successfully - 267 bytes.
migrating temporary roaming config store
Failed to init SteamVR because it isn't installed
ExecCommandLine: ""/home/mil/.local/share/Steam/ubuntu12_32/steam" "
Installing breakpad exception handler for appid(steam)/version(1431729692)
System startup time: 18,48 seconds
Installing breakpad exception handler for appid(steam)/version(1431729692)
Installing breakpad exception handler for appid(steam)/version(1431729692)
Installing breakpad exception handler for appid(steam)/version(1431729692)
Installing breakpad exception handler for appid(steam)/version(1431729692)
[0531/135025:ERROR:renderer_main.cc(212)] Running without renderer sandbox
Installing breakpad exception handler for appid(steam)/version(1431729692)
Installing breakpad exception handler for appid(steam)/version(1431729692)
Installing breakpad exception handler for appid(steam)/version(1431729692)
Installing breakpad exception handler for appid(steam)/version(1431729692)
Generating new string page texture 74: 256x256, total string texture memory is 704,51 KB
Generating new string page texture 75: 128x256, total string texture memory is 131,07 KB
Generating new string page texture 76: 128x256, total string texture memory is 835,58 KB
Generating new string page texture 77: 64x256, total string texture memory is 901,12 KB
Installing breakpad exception handler for appid(steam)/version(1431729692)
Installing breakpad exception handler for appid(steam)/version(1431729692)
Installing breakpad exception handler for appid(steam)/version(1431729692)
Running Steam on arch rolling 64-bit
STEAM_RUNTIME is disabled by the user
ExecCommandLine: "/home/mil/.steam/root/ubuntu12_32/steam steam://open/driverhelperready"
ExecSteamURL: "steam://open/driverhelperready"
Installing breakpad exception handler for appid(steam)/version(1431729692)
Generating new string page texture 89: 256x256, total string texture memory is 393,22 KB

Last edited by Mate_frut (2015-06-07 18:19:56)

Offline

#6 2015-05-31 14:46:15

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,911

Re: Steam libGL error: unable to load driver: r600_dri.so, swrast_dri.so

The output lists 2 crashes, not sure how critical they are but you should verify if all needed libraries are present.

$ cd ~/.local/share/Steam/ubuntu12_32
$ LD_LIBRARY_PATH=".:${LD_LIBRARY_PATH}" ldd $(file *|sed '/ELF/!d;s/:.*//g')|grep 'not found'|sort|uniq

post the output .

If nothing is missing, run
STEAM_RUNTIME=0 steam again .
follow it with

$ < /proc/$(pidof steam)/maps|sed '/\.local/!d;s/.*  //g'|sort|uniq

and post the output of that.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#7 2015-06-02 17:26:14

dawidd6
Member
Registered: 2015-05-29
Posts: 8

Re: Steam libGL error: unable to load driver: r600_dri.so, swrast_dri.so

Have you these packets installed:

lib32-catalyst-libgl
catalyst-libgl

?

Last edited by dawidd6 (2015-06-02 17:26:25)

Offline

#8 2015-06-07 17:58:07

Mate_frut
Member
Registered: 2015-05-27
Posts: 4

Re: Steam libGL error: unable to load driver: r600_dri.so, swrast_dri.so

Lone_Wolf , the output of

"$ LD_LIBRARY_PATH=".:${LD_LIBRARY_PATH}" ldd $(file *|sed '/ELF/!d;s/:.*//g')|grep 'not found'|sort|uniq"

is empty , that means I am not missing anything . But I forgot to say : I have defined LD_LIBRARY_PATH value as empty in /etc/environment. Because, if I do not define it as empty, steam does not launch with the following error :

[mil@pavilion ubuntu12_32]$ STEAM_RUNTIME=0 steam
Running Steam on arch rolling 64-bit
STEAM_RUNTIME is disabled by the user
/home/mil/.local/share/Steam/steam.sh: line 710: LD_LIBRARY_PATH: unbound variable

Because of that, I added in /etc/environment the following :

LD_LIBRARY_PATH= # it is for steam.sh to work

When running

STEAM_RUNTIME=0 steam

steam runs as normal , but when I launch Portal 2, the game does not launch and terminal writes the following :

Generating new string page texture 90: 256x256, total string texture memory is 393,22 KB
Generating new string page texture 94: 128x256, total string texture memory is 1,03 MB
Generating new string page texture 95: 512x256, total string texture memory is 1,56 MB
Generating new string page texture 96: 1024x256, total string texture memory is 2,61 MB
Generating new string page texture 97: 8x256, total string texture memory is 2,61 MB
Generating new string page texture 98: 256x256, total string texture memory is 2,88 MB
Generating new string page texture 99: 32x256, total string texture memory is 2,91 MB
Installing breakpad exception handler for appid(steam)/version(1433441724)
Generating new string page texture 125: 128x256, total string texture memory is 3,04 MB
Game update: AppID 620 "Portal 2", ProcID 2504, IP 0.0.0.0:0
ERROR: ld.so: object '/home/mil/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/mil/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
pid 2506 != 2505, skipping destruction (fork without exec?)
ERROR: ld.so: object '/home/mil/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/mil/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
libGL error: unable to load driver: r600_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: r600
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrastprocesses

I did not clerly understald what did you mean :

follow it with :

$ < /proc/$(pidof steam)/maps|sed '/\.local/!d;s/.*  //g'|sort|uniq

What exactly should I do? I tryed to run, while steam was running :

$ < /proc/$(pidof steam)/maps|sed '/\.local/!d;s/.*  //g'|sort|uniq

Output:

bash: /proc/$(pidof steam)/maps: ambiguous redirect

I think this is becase, I have several (3)processes that are called steam. I found it out running the following comand :

[mil@pavilion ~]$ pidof steam

and output was :

2504 2360 2357

Last edited by Mate_frut (2015-06-07 21:03:20)

Offline

#9 2015-06-09 11:58:33

kolombo
Member
From: Ukraine
Registered: 2011-12-14
Posts: 31

Re: Steam libGL error: unable to load driver: r600_dri.so, swrast_dri.so

Had same error with r300_dri.so

Please run next command and see what path is missed
env LIBGL_DEBUG=verbose steam

Then link
ln -s /usr/lib/xorg/modules/dri/r600_dri.so /MISSED PATH/

Offline

#10 2015-07-25 15:43:26

tersch17
Member
Registered: 2009-06-07
Posts: 2

Re: Steam libGL error: unable to load driver: r600_dri.so, swrast_dri.so

Try removing the following files:

~/.local/Steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu/libstdc++.so.6.0.18
~/.local/Steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu/libstdc++.so.6

This has worked for me.  I have also seen the same error from some GOG games that use similar embedded libraries.

Offline

#11 2015-12-31 01:10:19

hai_bar
Member
Registered: 2015-12-31
Posts: 7

Re: Steam libGL error: unable to load driver: r600_dri.so, swrast_dri.so

tersch17 wrote:

Try removing the following files:

~/.local/Steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu/libstdc++.so.6.0.18
~/.local/Steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu/libstdc++.so.6

This has worked for me.  I have also seen the same error from some GOG games that use similar embedded libraries.

Thanks man, this has fixed the issue of steam not running at all and displaying same error output as the OP. Cheers!

EDIT: After steam has launched and downloaded/installed updates - the error returned, I get output:

Running Steam on arch rolling 64-bit
STEAM_RUNTIME is enabled automatically
Installing breakpad exception handler for appid(steam)/version(1450127196)
libGL error: unable to load driver: r600_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: r600
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast

Any thoughts?

Last edited by hai_bar (2015-12-31 01:15:44)

Offline

#12 2015-12-31 01:54:58

tom.ty89
Member
Registered: 2012-11-15
Posts: 897

Re: Steam libGL error: unable to load driver: r600_dri.so, swrast_dri.so

Offline

#13 2015-12-31 01:56:46

hai_bar
Member
Registered: 2015-12-31
Posts: 7

Re: Steam libGL error: unable to load driver: r600_dri.so, swrast_dri.so

Thanks tom - found the solution in arch linux wiki as well, I missed this crucial part while skimming through the wiki entry several times.  smile

wiki entry
-> under (runtime issues)

Offline

Board footer

Powered by FluxBB