Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Game properties render white in containers that deny X_ShmAttach #9306

Open
duramuss opened this issue Mar 28, 2023 · 19 comments
Open

Game properties render white in containers that deny X_ShmAttach #9306

duramuss opened this issue Mar 28, 2023 · 19 comments

Comments

@duramuss
Copy link

Your system information

  • Steam client version (build number or date): 1679680416
  • Distribution (e.g. Ubuntu): Home made Linux From scratch
  • Opted into Steam client beta?: No
  • Have you checked for system updates?: Yes

Please describe your issue in as much detail as possible:

Right clicking on a game then properties leads to a white box. This has been broken somewhere between 1671236931 (resurrected from a system backup) and 1679680416.

Steps for reproducing this issue:

  1. Right click on a game in library
  2. Click on Properties...
  3. Screenshots:
    steamBAD
    steamOK
@duramuss duramuss changed the title Steam client 1679680416: game properties broken Steam client 1679680416: game properties display broken Mar 28, 2023
@kisak-valve
Copy link
Member

Hello @duramuss, please copy your system information from Steam (Steam -> Help -> System Information) and put it in a gist, then include a link to the gist in this issue report.

@duramuss
Copy link
Author

@tg-mw
Copy link

tg-mw commented Mar 31, 2023

I'm having the same issue on Ubuntu 20.04.6.

@PhoenixBurns
Copy link

PhoenixBurns commented Mar 31, 2023

Same thing happening on Arch
Linux computer 6.2.8-arch1-1 #1 SMP PREEMPT_DYNAMIC Wed, 22 Mar 2023 22:52:35 +0000 x86_64 GNU/Linux
nvidia/530.41.03
same steam version.
NVIDIA GeForce RTX 3080 Ti
Driver: nvidia 530.41.03

@hirn-lego
Copy link

I can confirm this on Manjaro

Steam Package versions: 1679680416 (same version)

Operating System Version:
"Manjaro Linux" (64 bit)
Kernel Name: Linux
Kernel Version: 6.2.9-1-MANJARO

Video Card:
Driver: NVIDIA Corporation NVIDIA GeForce RTX 2070 SUPER/PCIe/SSE2
Driver Version: 4.6.0 NVIDIA 530.41.03

@0x5eb
Copy link

0x5eb commented Apr 8, 2023

I confirm this issue on Debian 11: game properties just displays a white window.

Unable to run most of Steam games: they just open a white window (which appears to be some kind of web browser window with a broken rendering, since by moving the mouse around we could see the pointer changing to a hand in some areas)

Steam Package version: 1679680416
Distribution: Debian 11
Kernel: 6.2.8-100 x86_64
GPU: NVIDIA GeForce RTX 3060 (Driver Version: 530.41.03)

@0x5eb
Copy link

0x5eb commented Apr 10, 2023

Just to follow-up on this issue, I just checked with the beta version, it's even worse: can't see the list of games (just a white frame). I reverted to the stable Steam release (1679680416) and then tried downgrading the nvidia drivers to version 525.89.02 (instead of 530.41.03). Exactly the same issue (white window when trying to open game properties or to launch a game, game does not start, probably waiting for an input from the user): the regression has been introduced by the Steam client, not by updated nvidia drivers.

@iodream
Copy link

iodream commented Apr 10, 2023

It's not the nvidia drivers, i am on Intel HD graphics and affected by the same issue.

@ben-mkiv
Copy link

ben-mkiv commented Apr 21, 2023

Same issue for me.

tried disabling Smooth Scrooling and GPU accelerated rendering, but they don't have a effect on it either ;(

Is there any way to downgrade to an older Steam version? Since it worked fine in the last version

@PhoenixBurns
Copy link

Any news on this? Haven't seen anything else anywhere. My steam has updated two times since this started and it's still has the problem.

@0x5eb
Copy link

0x5eb commented Apr 28, 2023

This issue persists with Steam Package version: 1682573004.
Still unable to display the properties of any game nor launch games such as Valheim (it just opens a white window)

@tehkab
Copy link

tehkab commented Apr 29, 2023

I was having this issue and was able to resolve / work around it it by running steam with the environment variable QT_X11_NO_MITSHM=1 set. My setup is somewhat unconventional so your mileage may vary.

I was seeing log entries in cef_log.txt after trying to open game properties such as:

[0429/134841.476625:WARNING:xproto_util.cc(51)] X error received: serial 235, error_code 10 (BadAccess (attempt to access private resource denied)), request_code 130, minor_code 1 (X_ShmAttach) [0429/134841.476747:WARNING:xproto_util.cc(51)] X error received: serial 236, error_code 10 (BadAccess (attempt to access private resource denied)), request_code 130, minor_code 1 (X_ShmAttach) [0429/134841.476847:WARNING:xproto_util.cc(51)] X error received: serial 237, error_code 128 (BadShmSeg (invalid shared segment parameter)), request_code 130, minor_code 3 (X_ShmPutImage) [0429/134841.476943:WARNING:xproto_util.cc(51)] X error received: serial 238, error_code 128 (BadShmSeg (invalid shared segment parameter)), request_code 130, minor_code 3 (X_ShmPutImage) [0429/134841.477133:WARNING:xproto_util.cc(51)] X error received: serial 240, error_code 128 (BadShmSeg (invalid shared segment parameter)), request_code 130, minor_code 2 (X_ShmDetach) [0429/134841.477218:WARNING:xproto_util.cc(51)] X error received: serial 241, error_code 128 (BadShmSeg (invalid shared segment parameter)), request_code 130, minor_code 2 (X_ShmDetach)

I am running steam inside an LXC container, so the X MIT SHM extension apparently doesn't work between the container and the base system's X server.

After getting it to work I note that the current release client has new/updated UI (similar to the beta client look and feel) for the properties window; related?

Somewhat related as well, but the beta client does not render at all unless i also run it with QT_X11_NO_MITSHM=1 set.

Kernel: 6.3.0-gentoo
NVIDIA Driver: 525.105.17

Steam client version: 1682708537
Distribution: Gentoo (base system and container)
Opted into Steam client beta?: No; but see above
Have you checked for system updates?: Yes

@duramuss
Copy link
Author

duramuss commented Apr 29, 2023

Good job tehkab!

Steam here is running under systemd-nspawn and setting QT_X11_NO_MITSHM=1 fixes the issue. I guess all people here are running steam in containers too.

@0x5eb
Copy link

0x5eb commented Apr 29, 2023

Thanks a lot @tehkab, setting the environment variable QT_X11_NO_MITSHM=1 solved the issue for me too!

@hirn-lego
Copy link

Thank you @tehkab

This solved the issue for me too. I'm running steam in a systemd-nspawn container.

Interestingly a buddy of mine is also running steam inside an nspawn container and he doesn't have the issue at all. The only obvious difference between our setups is, that he uses an AMD GPU.

@kisak-valve kisak-valve changed the title Steam client 1679680416: game properties display broken Game properties render white in containers that deny X_ShmAttach Apr 30, 2023
@ben-mkiv
Copy link

ben-mkiv commented Jun 7, 2023

It seems to be fixed on my end with one of the later updates, can anyone who had the issue confirm that?

@hirn-lego
Copy link

I still get the white box when I open the game properties window and don't set the environment variable QT_X11_NO_MITSHM=1 with the latest release version.
With QT_X11_NO_MITSHM=1 it works fine.

axgfn pushed a commit to nonguix/nonguix that referenced this issue Jul 15, 2023
See <https://gitlab.com/nonguix/nonguix/-/issues/267> and <ValveSoftware/steam-for-linux#9306>.

* nonguix/multiarch-container.scm (make-container-wrapper): Preserve
QT_X11_NO_MITSHM to allow setting to 1 to workaround an upstream bug where
only a white box is displayed.
@maxpain
Copy link

maxpain commented Jul 31, 2023

QT_X11_NO_MITSHM=1 works for me. I'm running Steam inside a container in Kubernetes cluster

@trclst
Copy link

trclst commented Nov 10, 2023

I installed Steam in a nspawn container and directly the login screen render white and could not log in. The env QT_X11_NO_MITSHM=1 helped but I wished I had discovered it earlier saved me a few headaches. Thank you @tehkab

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests