ValveSoftware / steam-for-linux

Issue tracking for the Steam for Linux beta client
4.22k stars 174 forks source link

Can't launch Steam on Xwayland git newer than 24.1.0 #11022

Open pendo324 opened 3 months ago

pendo324 commented 3 months ago

Your system information

Please describe your issue in as much detail as possible:

When running the steam command, I expected steam to launch. Instead, Steam hangs when launched with the last log line emitted being

XRRGetOutputInfo Workaround: initialized with override: 0 real: 0xe481adc0
XRRGetCrtcInfo Workaround: initialized with override: 0 real: 0xe4819500

I tried all of the solutions in #11018, #9383, and #6148, including but not limited to:

What seems to consistently work for me is resetting my package versions to the Arch repo from June 16 2024 (https://archive.archlinux.org/repos/2024/06/16/$repo/os/$arch, following the instructions from the How to restore all packages to a specific date Arch wiki entry), rebooting (steam will fail to launch on this boot, but it tries to upgrade) and then upgrading back to current packages and rebooting (steam will open, update, and prompt me to login). If I reboot again, after having a working configuration, the original failure happens again.

The reason I chose the June 16 2024 archive repo is because its before the KDE 6.1 update hit the Arch repos. I also tried the same procedure with the June 22 archive, and it didn't work. It could also be a coincidence.

This gist has the list of packages that were available in the June 16th repos.

I've also been participating in this Arch BBS thread where another user is experiencing a similar issue: https://bbs.archlinux.org/viewtopic.php?id=297127

I currently have Steam running properly after my downgrade/reboot/upgrade/reboot dance, and I just won't reboot until I figure it out, lol. Sorry for the wall of text, I'm kinda at a loss here as to what could be causing this. Please let me know what steps I can take to help debug.

Steps for reproducing this issue:

  1. Fully upgrade Arch with KDE desktop packages installed/configured
  2. Reboot into a Wayland session
  3. Try to launch steam
pendo324 commented 3 months ago

A user on the Arch BBS provided a fix.

Apparently, there's a diff between the xorg-xwayland-git package on the AUR and the xorg-xwayland package on the main Arch repos which prevents Steam from launching.

Many Arch users (including me) probably had xorg-xwayland-git installed because it provided explicit sync in xwayland before version 24.1 was officially released. Now that it is released, there's no real reason to use the AUR package.

Fixing this on Arch looks like running sudo pacman -S xorg-xwayland and allowing it to replace the xorg-xwayland-git AUR package.

The user on the Arch forums mentioned that its an issue with GTK2, but I'm not sure how they discovered that. I looked into the 2 packages to see if I could spot anything substantial but checking the PKGBUILD file of the xorg-xwayland-git package, it seems like its using the same upstream branch (24.1), so I'm not sure why this would behave any differently from the xorg-xwayland package (PKGBUILD link). From what I can tell, the biggest diff is in the meson build options?

diff --git a/official b/aur
--- a/official
+++ b/aur
-  arch-meson xwayland-$pkgver build \
+  arch-meson xserver build \
     -D ipv6=true \
     -D xvfb=false \
+    -D xnest=false \
     -D xdmcp=false \
     -D xcsecurity=true \
+    -D xorg=false \
+    -D xephyr=false \
+    -D xwayland=true \
+    -D xwin=false \
+    -D xquartz=false \
     -D dri3=true \
     -D glamor=true \
     -D xkb_dir=/usr/share/X11/xkb \
     -D xkb_output_dir=/var/lib/xkb
Gothem commented 3 months ago

Seems that the problem might be from the latest changes in xwayland, changing to the latest release (24.1) fix it.

In any case, i made a bug report in the xwayland repository with backtraces.