You are not logged in.

#1 2014-08-30 09:01:07

klenamenis
Member
Registered: 2014-07-03
Posts: 101

[SOLVED] Portal 2, radeon driver, OpenGL

Hey,

I just tried to launch Portal 2 via Steam, but it immediately crashes. Executing the launcher directly gives the following error output:

[klemens@arch-pc ~]$ ./.steam/steam/SteamApps/common/Portal\ 2/portal2.sh
libGL error: dlopen /usr/lib32/xorg/modules/dri/radeonsi_dri.so failed (/home/klemens/.steam/steam/SteamApps/common/Portal 2/bin/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /usr/lib32/libLLVM-3.4.so))
libGL error: unable to load driver: radeonsi_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: radeonsi
libGL error: dlopen /usr/lib32/xorg/modules/dri/swrast_dri.so failed (/home/klemens/.steam/steam/SteamApps/common/Portal 2/bin/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /usr/lib32/libLLVM-3.4.so))
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast
SDL video target is 'x11'
SDL video target is 'x11'

SDL failed to create GL compatibility profile (whichProfile=0!
SDL failed to create GL compatibility profile (whichProfile=0!

PROBLEM: You appear to have OpenGL 1.4.0, but we need at least 2.0.0!
Could not find required OpenGL entry point 'glGetError'! Either your video card is unsupported, or your OpenGL driver needs to be updated.
Could not find required OpenGL entry point 'glGetError'! Either your video card is unsupported, or your OpenGL driver needs to be updated.

I'm using the latest open source radeon driver and removed the following libraries from Steam according to arch's wiki page in order to get rid of some errors:

rm ~/.local/share/Steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu/libstdc++.so.6
rm ~/.local/share/Steam/ubuntu12_32/steam-runtime/i386/lib/i386-linux-gnu/libgcc_s.so.1
rm ~/.local/share/Steam/ubuntu12_32/steam-runtime/amd64/lib/x86_64-linux-gnu/libgcc_s.so.1
rm ~/.local/share/Steam/ubuntu12_32/steam-runtime/amd64/usr/lib/x86_64-linux-gnu/libstdc++.so.6

Games like Portal, Dungeon Defenders, CS:S, Micron, XCOM: Enemy Unknown and L4D 2 run absoloutly fine. Does anyone else have the same problem or know how to fix it? Maybe these infos can help..

[klemens@arch-pc ~]$ glxinfo | grep OpenGL
OpenGL vendor string: X.Org
OpenGL renderer string: Gallium 0.4 on AMD TAHITI
OpenGL core profile version string: 3.3 (Core Profile) Mesa 10.2.5
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.2.5
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.0 Mesa 10.2.5
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.0
OpenGL ES profile extensions:

[klemens@arch-pc ~]$ glxinfo32 | grep OpenGL 
OpenGL vendor string: X.Org
OpenGL renderer string: Gallium 0.4 on AMD TAHITI
OpenGL core profile version string: 3.3 (Core Profile) Mesa 10.2.5
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.2.5
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.0 Mesa 10.2.5
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.0
OpenGL ES profile extensions:

Last edited by klenamenis (2014-10-26 14:18:57)

Offline

#2 2014-08-30 10:09:04

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,849

Re: [SOLVED] Portal 2, radeon driver, OpenGL

Looks like wiki entry "OpenGL GLX context is not using direct rendering, which may cause performance problems, or steam crash Xorg" 
needs to be updated with a more generic approach.

Basically for everyone in the linked thread the problem-causing steam librariies were under ~/.local/share/Steam/ubuntu12_32/steam-runtime/ , but that's not the case on your system.

Guess i should not have given the solution in previous threads, but explained more clearly how to troubleshoot these issues.

klenamenis, thoroughly check the terminal output from ./.steam/steam/SteamApps/common/Portal\ 2/portal2.sh in your post.

please list all libraries you think are involved in this problem.

Last edited by Lone_Wolf (2014-08-30 10:09:40)


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

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2014-08-30 11:34:46

klenamenis
Member
Registered: 2014-07-03
Posts: 101

Re: [SOLVED] Portal 2, radeon driver, OpenGL

/usr/lib32/xorg/modules/dri/radeonsi_dri.so
/usr/lib32/libLLVM-3.4.so
/home/klemens/.steam/steam/SteamApps/common/Portal 2/bin/libstdc++.so.6

These libraries are named in portal2.sh's output, libstdc++.so.6 is also mentioned to be removed according to the wiki, so I think that's the problematic one.

Launching portal2_linux also failed, installing gperftools to provide the missing libtcmalloc_minimal.so.4 wasn't successful neither.

[klemens@arch-pc ~]$ ./.steam/steam/SteamApps/common/Portal\ 2/portal2_linux
./.steam/steam/SteamApps/common/Portal 2/portal2_linux: error while loading shared libraries: libtcmalloc_minimal.so.4: cannot open shared object file: No such file or directory

Offline

#4 2014-08-30 11:45:01

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,849

Re: [SOLVED] Portal 2, radeon driver, OpenGL

klenamenis wrote:

Launching portal2_linux also failed, installing gperftools to provide the missing libtcmalloc_minimal.so.4 wasn't successful neither.

[klemens@arch-pc ~]$ ./.steam/steam/SteamApps/common/Portal\ 2/portal2_linux
./.steam/steam/SteamApps/common/Portal 2/portal2_linux: error while loading shared libraries: libtcmalloc_minimal.so.4: cannot open shared object file: No such file or directory

You may need the lib32 version of gperftools , but that's just an educated guess and should be dealt with in it's own thread.


klenamenis wrote:
/usr/lib32/xorg/modules/dri/radeonsi_dri.so
/usr/lib32/libLLVM-3.4.so
/home/klemens/.steam/steam/SteamApps/common/Portal 2/bin/libstdc++.so.6

These libraries are named in portal2.sh's output, libstdc++.so.6 is also mentioned to be removed according to the wiki, so I think that's the problematic one.

great, you're halfway there.

try removing just the libstdc++.s0.6 file from the exact location mentioned in portal2.sh's output .
Then run portal2.sh from terminal again and check for other errors.


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

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#5 2014-08-30 11:55:08

klenamenis
Member
Registered: 2014-07-03
Posts: 101

Re: [SOLVED] Portal 2, radeon driver, OpenGL

[klemens@arch-pc ~]$ mv /home/klemens/.steam/steam/SteamApps/common/Portal\ 2/bin/libstdc++.so.6 .
[klemens@arch-pc ~]$ ./.steam/steam/SteamApps/common/Portal\ 2/portal2.sh                        
SDL video target is 'x11'
SDL video target is 'x11'

SDL failed to create GL compatibility profile (whichProfile=0!
SDL failed to create GL compatibility profile (whichProfile=0!

This system supports the OpenGL extension GL_EXT_framebuffer_object.
This system supports the OpenGL extension GL_EXT_framebuffer_blit.
This system supports the OpenGL extension GL_EXT_framebuffer_multisample.
This system DOES NOT support the OpenGL extension GL_APPLE_fence.
This system DOES NOT support the OpenGL extension GL_NV_fence.
This system supports the OpenGL extension GL_ARB_sync.
This system supports the OpenGL extension GL_EXT_draw_buffers2.
This system DOES NOT support the OpenGL extension GL_EXT_bindable_uniform.
This system DOES NOT support the OpenGL extension GL_APPLE_flush_buffer_range.
This system supports the OpenGL extension GL_ARB_map_buffer_range.
This system supports the OpenGL extension GL_ARB_vertex_buffer_object.
This system supports the OpenGL extension GL_ARB_occlusion_query.
This system DOES NOT support the OpenGL extension GL_APPLE_texture_range.
This system DOES NOT support the OpenGL extension GL_APPLE_client_storage.
This system DOES NOT support the OpenGL extension GL_ARB_uniform_buffer.
This system supports the OpenGL extension GL_ARB_vertex_array_bgra.
This system supports the OpenGL extension GL_EXT_vertex_array_bgra.
This system supports the OpenGL extension GL_ARB_framebuffer_object.
This system DOES NOT support the OpenGL extension GL_GREMEDY_string_marker.
This system supports the OpenGL extension GL_ARB_debug_output.
This system DOES NOT support the OpenGL extension GL_EXT_direct_state_access.
This system DOES NOT support the OpenGL extension GL_NV_bindless_texture.
This system DOES NOT support the OpenGL extension GL_AMD_pinned_memory.
This system supports the OpenGL extension GL_EXT_framebuffer_multisample_blit_scaled.
This system supports the OpenGL extension GL_EXT_texture_sRGB_decode.
This system DOES NOT support the OpenGL extension GL_NVX_gpu_memory_info.
This system DOES NOT support the OpenGL extension GL_ATI_meminfo.
This system supports the OpenGL extension GL_EXT_texture_compression_s3tc.
This system supports the OpenGL extension GL_EXT_texture_compression_dxt1.
This system supports the OpenGL extension GL_ANGLE_texture_compression_dxt3.
This system supports the OpenGL extension GL_ANGLE_texture_compression_dxt5.
This system DOES NOT support the OpenGL extension GLX_EXT_swap_control_tear.
radeon: Failed to allocate a buffer:
radeon:    size      : 0 bytes
radeon:    alignment : 4096 bytes
radeon:    domains   : 4
radeon: Failed to allocate a buffer:
radeon:    size      : 0 bytes
radeon:    alignment : 4096 bytes
radeon:    domains   : 4
radeon: Failed to allocate a buffer:
radeon:    size      : 0 bytes
radeon:    alignment : 4096 bytes
radeon:    domains   : 4
radeon: Failed to allocate a buffer:
radeon:    size      : 0 bytes
radeon:    alignment : 4096 bytes
radeon:    domains   : 4
radeon: Failed to allocate a buffer:
radeon:    size      : 0 bytes
radeon:    alignment : 4096 bytes
radeon:    domains   : 4
radeon: Failed to allocate a buffer:
radeon:    size      : 0 bytes
radeon:    alignment : 4096 bytes
radeon:    domains   : 4
Setup file 'GameInfo.txt' doesn't exist in subdirectory 'hl2'.
Check your -game parameter or VCONFIG setting.
Setup file 'GameInfo.txt' doesn't exist in subdirectory 'hl2'.
Check your -game parameter or VCONFIG setting.

A bunch of unsupported OpenGL extensions prevents Portal 2 form starting, I have no clue...

Offline

#6 2014-08-30 12:12:20

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,849

Re: [SOLVED] Portal 2, radeon driver, OpenGL

This https://github.com/ValveSoftware/portal2/issues/167 suggest that may have to do with missing compressed textures support (libtxc-dxtn) .

Verify the output of pacman -Qs libtxc , you may be missing the lib32-version which steam needs.

Last edited by Lone_Wolf (2014-08-30 12:12:48)


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

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#7 2014-08-30 12:20:19

klenamenis
Member
Registered: 2014-07-03
Posts: 101

Re: [SOLVED] Portal 2, radeon driver, OpenGL

I have both (lib32-)libtxc_dxtn packages installed. I'm currently in Portal 2's beta program, maybe that's worth to know.

EDIT: Funny thing.. running portal2.sh from terminal still produces the same output as above, but starting Portal 2 from Steam finally works. While debugging the error I only tried the non-gui way, probably removing libstdc++.so.6 was the solutioin.

Thanks for your help, dude! I'll report any further issues in this thread.

Last edited by klenamenis (2014-08-30 12:31:37)

Offline

#8 2014-08-30 12:32:45

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,849

Re: [SOLVED] Portal 2, radeon driver, OpenGL

<Post content became useless after noticing klenamenis edit to previous post, deleted it>

Last edited by Lone_Wolf (2014-08-30 14:04:06)


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

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#9 2014-08-30 13:50:37

klenamenis
Member
Registered: 2014-07-03
Posts: 101

Re: [SOLVED] Portal 2, radeon driver, OpenGL

Lone_Wolf wrote:

no longer valid

What do you mean?

Offline

Board footer

Powered by FluxBB