protonscr

Arch - glXChooseVisual failed

steamclosed Steam clientDistro Family: Arch
ValveSoftware/steam-for-linux#6937 · opened 2020-03-01 by reactormonk · updated 2022-07-23 · 22 comments · github
Rreactormonk 2020-03-01 github

Your system information

  • Steam client version (build number or date): 1581449474
  • Distribution (e.g. Ubuntu): Archlinux
  • Opted into Steam client beta?: No
  • Have you checked for system updates?: Yes

Please describe your issue in as much detail as possible:

After an update, my steam doesn't start anymore. Happened a while back. Deleted everything related to steam, didn't help...

Full log: https://gist.github.com/reactormonk/c7a0a0c857c94d3c0cd8433f63faf837

Steps for reproducing this issue:

  1. Starting Steam, ( waiting for update process to finish )
  2. Entering login data, pressing enter
  3. hangs on "Connecting Steam account: ..."

Same error message as https://github.com/ValveSoftware/steam-for-linux/issues/5014, https://github.com/ValveSoftware/steam-for-linux/issues/6764, https://github.com/ValveSoftware/steam-for-linux/issues/6067

Kkisak-valve maintainer 2020-03-01 github

Hello @reactormonk, does running steam-runtime have the same result?

Rreactormonk 2020-03-01 github
Kkisak-valve maintainer 2020-03-01 github

glXChooseVisual failed is most likely the real issue here. Can you check if any 32 bit opengl application like glxinfo32 from lib32-mesa-demos works?

Rreactormonk 2020-03-02 github

Here's the output: https://gist.github.com/reactormonk/a252b083f7b7eefbeb4830b3b362f74e - I also ran glxgears32, which seem to be turning.

Kkisak-valve maintainer 2020-03-02 github

Thanks, this might be a newer iteration of #6420.

Rreactormonk 2020-03-02 github

There are not pinned libs atm, if I run it with STEAM_RUNTIME=1 or without.

/home/tass//.local/share/Steam/ubuntu12_32/steam-runtime/pinned_libs_32:
total 0

/home/tass//.local/share/Steam/ubuntu12_32/steam-runtime/pinned_libs_64:
total 0
Kkisak-valve maintainer 2020-03-02 github

That's not expected, please delete the pinned_libs_* folders so that Steam will regenerate them on next run.

Rreactormonk 2020-03-02 github

Steam only recreates the folders, but doesn't add any links to it on the next run.

TTTimo 2020-03-02 github

Hello @reactormonk - you indicated that you are not using the Steam beta client, can you confirm? The production client was last updated about two weeks ago. The logs you posted show that the Steam client is trying to update - so it would be the first time in a while that you are running the Steam client, correct?

The logs also suggest you are running with Arch's modified steam runtime (https://wiki.archlinux.org/index.php/Steam/Troubleshooting#Steam_native_runtime), which we do not recommend for compatibility reasons.

Can you run the following command and provide the output?

~/.steam/steam/ubuntu12_32/steam-runtime/run.sh ~/.steam/steam/ubuntu12_32/steam-runtime/amd64/usr/bin/steam-runtime-system-info

Rreactormonk 2020-03-02 github

That gives quite a few error messages on the graphics details :-( https://gist.github.com/reactormonk/7249e04de41daac4aeef07b0b7408ec6

I should be using steam-runtime, which should use the steam-provided libraries, as opposed to steam-native.

Rreactormonk 2020-03-05 github

I've tried via a new steam native instance on a new user account (via hint from #freenode on IRC), and i'm getting glXChooseVisual failed. I'll have to say I'm running out of ideas.

TTTimo 2020-03-06 github

The graphics drivers on your system are not working. The problem you are having is unrelated to Steam. The Steam client requires 32 bit OpenGL drivers. Some games will also require 64 bit OpenGL drivers. Also having a working set of Vulkan drivers is highly recommended. Hope this helps.

Rreactormonk 2020-03-06 github

The graphics drivers on your system are not working.

(X) Doubt

Direct rendering on both 64 and 32 bit are working: https://gist.github.com/reactormonk/66381726de7f35794aa6c09d31c14343#file-glxinfo-L3 https://gist.github.com/reactormonk/66381726de7f35794aa6c09d31c14343#file-glxinfo32-L3

Vulkan rendering is picked up: https://gist.github.com/reactormonk/66381726de7f35794aa6c09d31c14343#file-vulkaninfo-L63

I tested with the trifecta of vkcube, glxgears, glxgears32 too, all seem to be working fine.

Also tested openmw, works fine.

Steam works fine with wine, AI Wars 2 runs too.

TTTimo 2020-03-06 github

Ok, I stand corrected, drivers are fine. The Steam client doesn't have a robust way to check and fix it's installation consistency, it's probably easier to bootstrap again by doing something like this:

mv ~/.local/share/Steam ~/.local/share/Steam.off
steam

But apparently you've already more or less done this by installing on a new user account.

The first log you posted looks to be an installation log done with Arch's modifications (because of the lines STEAM_RUNTIME is disabled by the user and STEAM_RUNTIME_HEAVY: Disabled). If you do the bootstrap I describe above without Arch's interference and without setting steam related environment variables, do you still get the assertion message? (please provide the full log).

And ofc you've got enough disk space, you are using ext4 filesystems etc.?

Rreactormonk 2020-03-06 github

I added STEAM_RUNTIME=1. Seems to be the closest I can do to go for runtime. https://gist.github.com/reactormonk/583cd23a5b95692188a902f19a906696

€: Also added with STEAM_RUNTIME_HEAVY=1 output

TTTimo 2020-03-06 github

Please uninstall Arch's customized runtime, I think it's called steam-native. There should be no /usr/lib/steam/native_runtime.txt file, you should not be setting any STEAM_* environment variables.

TTTimo 2020-03-06 github

I note that the bSharedKVSymbols assert is gone, so that's progress there at least.

Rreactormonk 2020-03-06 github

I note that the bSharedKVSymbols assert is gone, so that's progress there at least.

I have more the feeling that it's not getting there, because I don't even get a login screen, which I do get with the arch native runtime.

There is no /usr/lib/steam/native_runtime.txt, the default is already steam native.

TTTimo 2020-03-06 github

There is no /usr/lib/steam/native_runtime.txt, the default is already steam native.There is no /usr/lib/steam/native_runtime.txt, the default is already steam native.

Great! Please test without setting any STEAM_* environment variables. When set these will disable the runtime environment that the steam client would normally do.

Rreactormonk 2020-03-06 github

Oh, wrong way round. What I meant is default is disabled runtime:

$ steam
Setting up Steam content in /home/tass//.local/share/Steam
Running Steam on arch rolling 64-bit
STEAM_RUNTIME is disabled by the user

€: there's a STEAM_RUNTIME=0 in my env somehow, unsetting...

Same result as usual with steam runtime: https://gist.github.com/reactormonk/8080f26e68e0bf9bc2d18fb1e65cd017

Kkisak-valve maintainer 2022-07-15 github

Hello @reactormonk, are you still experiencing this issue on an up to date system?

Rreactormonk 2022-07-23 github

Works fine for now.