ValveSoftware / gamescope

SteamOS session compositing window manager
Other
3.13k stars 211 forks source link

Gamescope won't run whatever I do. #1612

Open Kana-Starmarker opened 4 days ago

Kana-Starmarker commented 4 days ago

Is there an existing issue for this?

Are you using any gamescope patches or a forked version of gamescope?

Current Behavior

I can't use it. I've tried every fix I could find by searching online (like trying out modifiers like --backend). Tried switching to X11, still no dice. I've been trying to get it working for a while now, and I am this close to giving up.

What shows when I run Stardew Valley via terminal with gamescope -- steam steam://rungameid/413150 (but this applies to any other game):

[gamescope] [Info]  console: gamescope version 3.15.14 (gcc 14.2.1)
No CAP_SYS_NICE, falling back to regular-priority compute and threads.
Performance will be affected.
[gamescope] [Info]  vulkan: selecting physical device 'NVIDIA GeForce GTX 1050 Ti': queue family 2 (general queue family 0)
[gamescope] [Info]  vulkan: physical device supports DRM format modifiers
[gamescope] [Info]  wlserver: [backend/headless/backend.c:67] Creating headless backend
[gamescope] [Info]  xdg_backend: Seat name: seat0
[gamescope] [Error] vulkan: vkGetPhysicalDeviceFormatProperties2 returned zero modifiers for DRM format 0x38344241 (VkResult: 0)
[gamescope] [Error] vulkan: vkGetPhysicalDeviceFormatProperties2 returned zero modifiers for DRM format 0x38344258 (VkResult: 0)
[gamescope] [Info]  vulkan: supported DRM formats for sampling usage:
[gamescope] [Info]  vulkan:   AR24 (0x34325241)
[gamescope] [Info]  vulkan:   XR24 (0x34325258)
[gamescope] [Info]  vulkan:   AB24 (0x34324241)
[gamescope] [Info]  vulkan:   XB24 (0x34324258)
[gamescope] [Info]  vulkan:   RG16 (0x36314752)
[gamescope] [Info]  vulkan:   NV12 (0x3231564E)
[gamescope] [Info]  vulkan:   AB4H (0x48344241)
[gamescope] [Info]  vulkan:   XB4H (0x48344258)
[gamescope] [Info]  vulkan:   AB30 (0x30334241)
[gamescope] [Info]  vulkan:   XB30 (0x30334258)
[gamescope] [Info]  vulkan:   AR30 (0x30335241)
[gamescope] [Info]  vulkan:   XR30 (0x30335258)
[gamescope] [Info]  wlserver: Using explicit sync when available
[gamescope] [Info]  wlserver: Running compositor on wayland display 'gamescope-0'
[gamescope] [Info]  wlserver: [backend/headless/backend.c:17] Starting headless backend
[gamescope] [Info]  wlserver: Successfully initialized libei for input emulation!
[gamescope] [Error] wlserver: [xwayland/sockets.c:64] Failed to bind socket @/tmp/.X11-unix/X0: Address already in use
[gamescope] [Info]  wlserver: [xwayland/server.c:107] Starting Xwayland on :2
[gamescope] [Info]  pipewire: stream state changed: connecting
[gamescope] [Info]  pipewire: stream state changed: paused
[gamescope] [Info]  pipewire: stream available on node ID: 91
[gamescope] [Info]  xwm: Embedded, no cursor set. Using left_ptr by default.
[gamescope] [Info]  vblank: Using timerfd.
(EE) failed to read Wayland events: Broken pipe
Aborted (core dumped)

Steps To Reproduce

  1. Launch ANY game with gamescope.

Hardware information

- Distro: EndeavourOS
- CPU: AMD Ryzen 3 3200G with Radeon Vega Graphics
- GPU: NVIDIA Corporation GP107 [GeForce GTX 1050 Ti]
- Driver Version: 565.57.01

Software information

- Desktop environment: KDE Plasma 6.2.2
- Session type: wayland
- Gamescope version: gamescope version 3.15.14 (gcc 14.2.1)
- Gamescope launch command(s): gamescope -W 1440 -H 900 -r 60 -o 15 -- %command%

Which gamescope backends have the issue you are reporting?

Logging, screenshots, or anything else

No response

matte-schwartz commented 4 days ago

What Kisak said here probably applies to this as well: https://github.com/ValveSoftware/gamescope/issues/1557#issuecomment-2389969773

I'd try launching Steam and then using Gamescope in the game's launch options like gamescope <gamescope args here> -- %command% or running all of Steam without Gamescope, like gamescope -e -- steam

Kana-Starmarker commented 4 days ago

Hi, thank you for replying. Sorry, I forgot to mention it, but it's the same problem when I do it through launch options. Even running something like gamescope -- vkcube in terminal yields the same result.

layercak3 commented 4 days ago

Can you post a backtrace (coredumpctl info on systemd) with debug symbols package installed/compiled from source, or the logs of WAYLAND_DEBUG=client gamescope -- vkcube (attach as a file)? It looks similar to https://github.com/ValveSoftware/gamescope/issues/1451, which might be fixed by https://github.com/ValveSoftware/gamescope/pull/1611.

fbeam2206 commented 1 day ago

After the Steam client update yesterday I have been experiencing the same issue. Here are the results of running coredumpctl info:

PID: 5390 (gamescopereaper) UID: 1000 (graham) GID: 1000 (graham) Signal: 6 (ABRT) Timestamp: Wed 2024-11-06 11:29:44 CST (10min ago) Command Line: gamescopereaper -- /home/graham/.local/share/Steam/ubuntu12_32/steam-launch-wrapper /home/graham/.local/share/Steam/ubuntu12_32/reaper Ste amLaunch AppId=730 -- /home/graham/.local/share/Steam/steamapps/common/SteamLinuxRuntime_sniper/_v2-entry-point --verb=waitforexitandrun -- $'/home/graham /.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/game/cs2.sh' -steam -threads 7 -vulkan -nojoy Executable: /usr/bin/gamescopereaper Control Group: /user.slice/user-1000.slice/session-3.scope Unit: session-3.scope Slice: user-1000.slice Session: 3 Owner UID: 1000 (graham) Boot ID: b38aff9e4c8d4721b3d2bc0baeb8bc17 Machine ID: 653d5887b0054737847d4b643f9adcd9 Hostname: archlinux Storage: /var/lib/systemd/coredump/core.gamescopereaper.1000.b38aff9e4c8d4721b3d2bc0baeb8bc17.5390.1730914184000000.zst (present) Size on Disk: 136.4K Message: Process 5390 (gamescopereaper) of user 1000 dumped core.

            Stack trace of thread 5390:
            #0  0x000071f8e62a53f4 n/a (libc.so.6 + 0x963f4)
            #1  0x000071f8e624c120 raise (libc.so.6 + 0x3d120)
            #2  0x000071f8e62334c3 abort (libc.so.6 + 0x244c3)
            #3  0x000071f8e49f3044 n/a (libdbus-1.so.3 + 0xe044)
            #4  0x000071f8e4a1a8eb _dbus_warn_check_failed (libdbus-1.so.3 + 0x358eb)
            #5  0x000071f8e4a388c5 n/a (libgamemode.so.0 + 0x28c5)
            #6  0x000071f8e6802140 gamemode_request_end (libgamemodeauto.so.0 + 0x1140)
            #7  0x000071f8e680f0f2 n/a (ld-linux-x86-64.so.2 + 0x10f2)
            #8  0x000071f8e68123ee n/a (ld-linux-x86-64.so.2 + 0x43ee)
            #9  0x000071f8e624e891 n/a (libc.so.6 + 0x3f891)
            #10 0x000071f8e624e95e exit (libc.so.6 + 0x3f95e)
            #11 0x000071f8e6234e0f n/a (libc.so.6 + 0x25e0f)
            #12 0x000071f8e6234ecc __libc_start_main (libc.so.6 + 0x25ecc)
            #13 0x00005bce456e3b75 n/a (gamescopereaper + 0x5b75)
            ELF object binary architecture: AMD x86-64