ValveSoftware / gamescope

SteamOS session compositing window manager

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cant Start Game with Gamescope

JulleonLinux opened this issue · comments

Cannot start Bullets per Minute
Startup command :

gamescope -W 2560 -H 1080 -- %command%

Steam output:

steam.sh[12720]: Running Steam on nixos 24.05 64-bit
steam.sh[12720]: STEAM_RUNTIME is enabled automatically
setup.sh[12794]: Steam runtime environment up-to-date!
steam.sh[12720]: Steam client's requirements are satisfied
[2024-06-13 13:52:10] Startup - updater built May 24 2024 20:46:19
[2024-06-13 13:52:10] Startup - Steam Client launched with: '/home/julle/.local/share/Steam/ubuntu12_32/steam'
06/13 13:52:10 minidumps folder is set to /tmp/dumps
06/13 13:52:10 Init: Installing breakpad exception handler for appid(steam)/version(1716584667)/tid(12852)
[2024-06-13 13:52:10] Loading cached metrics from disk (/home/julle/.local/share/Steam/package/steam_client_metrics.bin)
[2024-06-13 13:52:10] Using the following download hosts for Public, Realm steamglobal
[2024-06-13 13:52:10] 1. https://client-update.akamai.steamstatic.com, /, Realm 'steamglobal', weight was 1000, source = 'update_hosts_cached.vdf'
[2024-06-13 13:52:10] 2. https://cdn.cloudflare.steamstatic.com, /client/, Realm 'steamglobal', weight was 1, source = 'update_hosts_cached.vdf'
[2024-06-13 13:52:10] 3. https://cdn.steamstatic.com, /client/, Realm 'steamglobal', weight was 1, source = 'baked in'
[2024-06-13 13:52:10] Verifying installation...
[2024-06-13 13:52:10] Verification complete
UpdateUI: skip show logo
Steam logging initialized: directory: /home/julle/.local/share/Steam/logs

XRRGetOutputInfo Workaround: initialized with override: 0 real: 0xdc4d57b0
XRRGetCrtcInfo Workaround: initialized with override: 0 real: 0xdc4d3f90
steamwebhelper.sh[12885]: === Do 13. Jun 13:52:11 CEST 2024 ===
steamwebhelper.sh[12885]: Starting steamwebhelper under bootstrap sniper steam runtime at /home/julle/.local/share/Steam/ubuntu12_64/steam-runtime-sniper
CAppInfoCacheReadFromDiskThread took 85 milliseconds to initialize
Steam Runtime Launch Service: starting steam-runtime-launcher-service
Steam Runtime Launch Service: steam-runtime-launcher-service is running pid 13092
bus_name=com.steampowered.PressureVessel.LaunchAlongsideSteam
BRefreshApplicationsInLibrary 1: 1ms
BuildCompleteAppOverviewChange: 562 apps
RegisterForAppOverview 1: 23ms
RegisterForAppOverview 2: 23ms
pressure-vessel-wrap[13666]: W: "/run/current-system/sw/bin/getent" is unlikely to appear in "/run/host"
pressure-vessel-wrap[13666]: W: Found more than one possible libdrm data directory from provider
wine: using kernel write watches, use_kernel_writewatch 1.
fsync: up and running.
wine: using kernel write watches, use_kernel_writewatch 1.
wine: using kernel write watches, use_kernel_writewatch 1.
wine: using kernel write watches, use_kernel_writewatch 1.
wine: using kernel write watches, use_kernel_writewatch 1.
wine: using kernel write watches, use_kernel_writewatch 1.
wine: using kernel write watches, use_kernel_writewatch 1.
wine: using kernel write watches, use_kernel_writewatch 1.
wine: using kernel write watches, use_kernel_writewatch 1.
wine: using kernel write watches, use_kernel_writewatch 1.
wine: using kernel write watches, use_kernel_writewatch 1.
/bin/sh\0-c\0gamescope -W 2560 -H 1080 -- /home/julle/.local/share/Steam/ubuntu12_32/reaper SteamLaunch AppId=1286350 -- /home/julle/.local/share/Steam/ubuntu12_32/steam-launch-wrapper -- '/home/julle/.local/share/Steam/steamapps/common/SteamLinuxRuntime_sniper'/_v2-entry-point --verb=waitforexitandrun -- '/home/julle/.local/share/Steam/steamapps/common/Proton - Experimental'/proton waitforexitandrun  '/home/julle/.local/share/Steam/steamapps/common/BPM BULLETS PER MINUTE/WindowsNoEditor/BPMGame.exe'\0
chdir "/home/julle/.local/share/Steam/steamapps/common/BPM BULLETS PER MINUTE"
ERROR: ld.so: object '/home/julle/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/julle/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/julle/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
No CAP_SYS_NICE, falling back to regular-priority compute and threads.
Performance will be affected.
ATTENTION: default value of option vk_khr_present_wait overridden by environment.
ATTENTION: default value of option vk_khr_present_wait overridden by environment.
ATTENTION: default value of option vk_khr_present_wait overridden by environment.
ATTENTION: default value of option vk_khr_present_wait overridden by environment.
ATTENTION: default value of option vk_khr_present_wait overridden by environment.
ATTENTION: default value of option vk_khr_present_wait overridden by environment.
vulkan: selecting physical device 'AMD Radeon RX 6900 XT (RADV NAVI21)': queue family 1 (general queue family 0)
vulkan: physical device supports DRM format modifiers
Fossilize INFO: Overriding serialization path: "/home/julle/.local/share/Steam/steamapps/shadercache/1286350/fozpipelinesv6/steamapprun_pipeline_cache".
wlserver: [backend/headless/backend.c:67] Creating headless backend
xdg_backend: Seat name: seat0
vulkan: supported DRM formats for sampling usage:
vulkan:   AR24 (0x34325241)
vulkan:   XR24 (0x34325258)
vulkan:   AB24 (0x34324241)
vulkan:   XB24 (0x34324258)
vulkan:   RG16 (0x36314752)
vulkan:   NV12 (0x3231564E)
vulkan:   AB4H (0x48344241)
vulkan:   XB4H (0x48344258)
vulkan:   AB48 (0x38344241)
vulkan:   XB48 (0x38344258)
vulkan:   AB30 (0x30334241)
vulkan:   XB30 (0x30334258)
vulkan:   AR30 (0x30335241)
vulkan:   XR30 (0x30335258)
wlserver: [wayland] unable to lock lockfile /run/user/1000/gamescope-0.lock, maybe another compositor is running
wlserver: Running compositor on wayland display 'gamescope-1'
wlserver: [backend/headless/backend.c:17] Starting headless backend
wlserver: Successfully initialized libei for input emulation!
wlserver: [xwayland/sockets.c:64] Failed to bind socket @/tmp/.X11-unix/X0: Address already in use
wlserver: [xwayland/server.c:107] Starting Xwayland on :1
ERROR: ld.so: object '/home/julle/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
Xwayland: symbol lookup error: /nix/store/5pcy995yarjy7bfdswgkfggbzg48dlq0-libkrb5-1.21.2/lib/libcom_err.so.3: undefined symbol: k5_os_mutex_destroy, version krb5support_0_MIT
wlserver: [xwayland/server.c:269] Xwayland startup failed, not setting up xwm

Xwayland: symbol lookup error: /nix/store/5pcy995yarjy7bfdswgkfggbzg48dlq0-libkrb5-1.21.2/lib/libcom_err.so.3: undefined symbol: k5_os_mutex_destroy, version krb5support_0_MIT

First check if this issue is always happening by running this command on the terminal:
gamescope -- glxgears

then if the issue doesn’t happen w/ the above cmd, then try adding: LD_PRELOAD="" to the left of gamescope in your game launch option

Hmmm…
So this is an error triggered when gamescope tries to startup Xwayland. But specifically a symbol lookup error for a shared library called libcom_err.so.3 that I presume was loaded w/ (or by?) Xwayland

now gamescope uses wlroots for starting up Xwayland…

When running gamescope -- glxgears

No CAP_SYS_NICE, falling back to regular-priority compute and threads.
Performance will be affected.
ATTENTION: default value of option vk_khr_present_wait overridden by environment.
ATTENTION: default value of option vk_khr_present_wait overridden by environment.
ATTENTION: default value of option vk_khr_present_wait overridden by environment.
vulkan: selecting physical device 'AMD Radeon RX 6900 XT (RADV NAVI21)': queue family 1 (general queue family 0)
vulkan: physical device supports DRM format modifiers
wlserver: [backend/headless/backend.c:67] Creating headless backend
xdg_backend: Seat name: seat0
vulkan: supported DRM formats for sampling usage:
vulkan:   AR24 (0x34325241)
vulkan:   XR24 (0x34325258)
vulkan:   AB24 (0x34324241)
vulkan:   XB24 (0x34324258)
vulkan:   RG16 (0x36314752)
vulkan:   NV12 (0x3231564E)
vulkan:   AB4H (0x48344241)
vulkan:   XB4H (0x48344258)
vulkan:   AB48 (0x38344241)
vulkan:   XB48 (0x38344258)
vulkan:   AB30 (0x30334241)
vulkan:   XB30 (0x30334258)
vulkan:   AR30 (0x30335241)
vulkan:   XR30 (0x30335258)
wlserver: Running compositor on wayland display 'gamescope-0'
wlserver: [backend/headless/backend.c:17] Starting headless backend
wlserver: Successfully initialized libei for input emulation!
wlserver: [xwayland/server.c:107] Starting Xwayland on :1
wlserver: [types/wlr_compositor.c:771] New wlr_surface 0x2ed015f0 (res 0x2ec938a0)
wlserver: [xwayland/server.c:272] Xserver is ready
pipewire: stream state changed: connecting
pipewire: stream state changed: paused
pipewire: stream available on node ID: 195
xwm: Embedded, no cursor set. Using left_ptr by default.
vblank: Using timerfd.
Gtk-Message: 04:53:10.511: Failed to load module "colorreload-gtk-module"
Gtk-Message: 04:53:10.512: Failed to load module "appmenu-gtk-module"
josh edid: Patching res 800x1280 -> 1280x720
xwm: execvp failed: No such file or directory
pipewire: renegotiating stream params (size: 640x1050)
gamescope: children shut down!
gamescope: ../src/backend.cpp:60: virtual gamescope::CBaseBackendFb::~CBaseBackendFb(): Assertion `!HasLiveReferences()' failed.
(EE) failed to read Wayland events: Broken pipe
Aborted (core dumped)

Im running Hyprland with a very simple nix configuration .
XWayland is only installed by the default Hyprland option in nix packages .

I also tryed executing pgrep Xwayland and it showed no results.

Same issue here, freezes on first frame.

gamescope -- glxgears
No CAP_SYS_NICE, falling back to regular-priority compute and threads.
Performance will be affected.
ATTENTION: default value of option vk_khr_present_wait overridden by environment.
vulkan: selecting physical device 'AMD Radeon RX 6700 XT (RADV NAVI22)': queue family 1 (general queue family 0)
vulkan: physical device supports DRM format modifiers
wlserver: [backend/headless/backend.c:67] Creating headless backend
xdg_backend: Seat name: Hyprland
vulkan: supported DRM formats for sampling usage:
vulkan:   AR24 (0x34325241)
vulkan:   XR24 (0x34325258)
vulkan:   AB24 (0x34324241)
vulkan:   XB24 (0x34324258)
vulkan:   RG16 (0x36314752)
vulkan:   AB4H (0x48344241)
vulkan:   XB4H (0x48344258)
vulkan:   AB48 (0x38344241)
vulkan:   XB48 (0x38344258)
vulkan:   AB30 (0x30334241)
vulkan:   XB30 (0x30334258)
vulkan:   AR30 (0x30335241)
vulkan:   XR30 (0x30335258)
wlserver: Running compositor on wayland display 'gamescope-0'
wlserver: [backend/headless/backend.c:17] Starting headless backend
wlserver: Successfully initialized libei for input emulation!
wlserver: [xwayland/server.c:107] Starting Xwayland on :1
wlserver: [types/wlr_compositor.c:771] New wlr_surface 0x6473a6016de0 (res 0x6473a5ec1bb0)
wlserver: [xwayland/server.c:272] Xserver is ready
pipewire: stream state changed: connecting
pipewire: stream state changed: paused
pipewire: stream available on node ID: 96
xwm: Embedded, no cursor set. Using left_ptr by default.
vblank: Using timerfd.
josh edid: Patching res 800x1280 -> 1280x720
pipewire: renegotiating stream params (size: 1280x1391)
wlserver: [types/wlr_compositor.c:771] New wlr_surface 0x6473a6212fb0 (res 0x6473a5e8e2b0)
xwm: got the same buffer committed twice, ignoring.
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Unsupported maximum keycode 708, clipping.
>                   X11 cannot support keycodes above 255.
> Warning:          Could not resolve keysym XF86KbdInputAssistPrevgrou
> Warning:          Could not resolve keysym XF86KbdInputAssistNextgrou
Errors from xkbcomp are not fatal to the X server
pipewire: renegotiating stream params (size: 1251x1347)
Running synchronized to the vertical refresh.  The framerate should be
approximately the same as the monitor refresh rate.
xdg_backend: Changed refresh to: 164.958hz
xdg_backend: Changed refresh to: 59.951hz
xdg_backend: Changed refresh to: 164.958hz
xdg_backend: Changed refresh to: 59.951hz

This can be circumvented by using "--force-composition" however this seems less than ideal

What DE?

You should report this bug to Hyprland.

For now best work around I have found is --backend sdl but I should also mention that --backend sdl ironically breaks on Sway in same way I might report that to Sway later but just funny that it's opposite on both and happens to break in a extremely suspicious similar way

I do experience the same issue on nixos, but with kde plasma 5.

juni 25 18:06:46 gw4-nixos steam[428824]: Adding process 824791 for gameID 730
juni 25 18:06:46 gw4-nixos steam[428824]: ATTENTION: default value of option radv_override_graphics_shader_version overridden by environment.
juni 25 18:06:46 gw4-nixos steam[428824]: vulkan: selecting physical device 'AMD Radeon Graphics (RADV GFX1103_R1)': queue family 1 (general queue family 0)
juni 25 18:06:46 gw4-nixos steam[428824]: vulkan: physical device supports DRM format modifiers
juni 25 18:06:46 gw4-nixos steam[428824]: Fossilize INFO: Overriding serialization path: "/home/thomas/.local/share/Steam/steamapps/shadercache/730/fozpipelinesv6/steamapprun_pipeline_cache".
juni 25 18:06:46 gw4-nixos steam[428824]: wlserver: [backend/headless/backend.c:67] Creating headless backend
juni 25 18:06:46 gw4-nixos steam[428824]: vulkan: supported DRM formats for sampling usage:
juni 25 18:06:46 gw4-nixos steam[428824]: vulkan:   AR24 (0x34325241)
juni 25 18:06:46 gw4-nixos steam[428824]: vulkan:   XR24 (0x34325258)
juni 25 18:06:46 gw4-nixos steam[428824]: vulkan:   AB24 (0x34324241)
juni 25 18:06:46 gw4-nixos steam[428824]: vulkan:   XB24 (0x34324258)
juni 25 18:06:46 gw4-nixos steam[428824]: vulkan:   RG16 (0x36314752)
juni 25 18:06:46 gw4-nixos steam[428824]: vulkan:   NV12 (0x3231564E)
juni 25 18:06:46 gw4-nixos steam[428824]: vulkan:   AB4H (0x48344241)
juni 25 18:06:46 gw4-nixos steam[428824]: vulkan:   XB4H (0x48344258)
juni 25 18:06:46 gw4-nixos steam[428824]: vulkan:   AB48 (0x38344241)
juni 25 18:06:46 gw4-nixos steam[428824]: vulkan:   XB48 (0x38344258)
juni 25 18:06:46 gw4-nixos steam[428824]: vulkan:   AB30 (0x30334241)
juni 25 18:06:46 gw4-nixos steam[428824]: vulkan:   XB30 (0x30334258)
juni 25 18:06:46 gw4-nixos steam[428824]: vulkan:   AR30 (0x30335241)
juni 25 18:06:46 gw4-nixos steam[428824]: vulkan:   XR30 (0x30335258)
juni 25 18:06:46 gw4-nixos steam[428824]: vulkan: Creating Gamescope nested swapchain with format 44 and colorspace 0
juni 25 18:06:46 gw4-nixos steam[428824]: wlserver: Using explicit sync when available
juni 25 18:06:46 gw4-nixos steam[428824]: wlserver: Running compositor on wayland display 'gamescope-0'
juni 25 18:06:46 gw4-nixos steam[428824]: wlserver: [backend/headless/backend.c:17] Starting headless backend
juni 25 18:06:46 gw4-nixos steam[428824]: wlserver: Successfully initialized libei for input emulation!
juni 25 18:06:46 gw4-nixos steam[428824]: wlserver: [xwayland/sockets.c:64] Failed to bind socket @/tmp/.X11-unix/X0: Address already in use
juni 25 18:06:46 gw4-nixos steam[428824]: wlserver: [xwayland/server.c:107] Starting Xwayland on :1
juni 25 18:06:46 gw4-nixos steam[428824]: ERROR: ld.so: object '/home/thomas/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
juni 25 18:06:46 gw4-nixos steam[428824]: Xwayland: symbol lookup error: /nix/store/5pcy995yarjy7bfdswgkfggbzg48dlq0-libkrb5-1.21.2/lib/libcom_err.so.3: undefined symbol: k5_os_mutex_destroy, version krb5support_0_MIT
juni 25 18:06:46 gw4-nixos steam[428824]: wlserver: [xwayland/server.c:269] Xwayland startup failed, not setting up xwm

@thomasfinstad @JulleonLinux
See this Reddit thread about this exact symbol resolution error w/ gamescope on NixOS: (tho it is 3 months old)
https://www.reddit.com/r/NixOS/comments/1bmj4mz/gamescope_and_steam/

@thomasfinstad @JulleonLinux See this Reddit thread about this exact symbol resolution error w/ gamescope on NixOS: (tho it is 3 months old) https://www.reddit.com/r/NixOS/comments/1bmj4mz/gamescope_and_steam/

@sharkautarch thank you, that (NixOS/nixpkgs#162562 (comment)) did indeed let me run via gamescope gamemoderun gamescope -W 5120 -H 1440 -w 1920 -h 1080 -f -b -e -r 480 --mangoapp -- %command%

Now I have to look into why the min frametime is 0.0ms and it is very jittery, beyond what the fps says it should be.

For reference the refreshrate of 480 is because of 240hz monitor and when running through steam I run into what looks like this issue #734 which I do not experience when running other apps through the terminal directly.

@thomasfinstad
For the jitteryness, try changing the launch options to:

LD_PRELOAD="" gamescope -W 5120 -H 1440 -w 1920 -h 1080 -f -b -e -r 480 --mangoapp -- env LD_PRELOAD=/usr/lib/libgamemodeauto.so %command%
Also, if it is currently enabled, check if disabling steam overlay helps

EDIT: since you’re on NixOS, you might have to change LD_PRELOAD=/usr/lib/libgamemodeauto.so to wherever libgamemodeauto.so is on your system

OR you could instead use:
LD_PRELOAD="" gamemoderun gamescope -W 5120 -H 1440 -w 1920 -h 1080 -f -b -e -r 480 --mangoapp -- %command%
Tho I’m not 100% if the cmd that has gamemoderun in it will have the exact same behavior as the other things I listed

@sharkautarch I tried it out now and the jitter did not change. I appreciate your help, truly, but I do not wish to pollute this issue with unrelated stuff. Thank you for trying to help <3