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 doesn't start on 3.15.5 #1519

Closed
TintedKiwi opened this issue Sep 9, 2024 · 25 comments
Closed

Game doesn't start on 3.15.5 #1519

TintedKiwi opened this issue Sep 9, 2024 · 25 comments

Comments

@TintedKiwi
Copy link

I'm using a hybrid Intel/NVIDIA system on Arch Linux KDE Wayland using gamescope version 3.15.5.
Launched from Steam the game doesn't start, downgrading to 3.14.29 and everything works fine again.

I have export ENABLE_GAMESCOPE_WSI=0 set in my .bashrc file.
I'm running Steam on the NVIDIA GPU and using the following launch options:

LD_PRELOAD="" MANGOHUD=1 gamescope --expose-wayland -f -W 2560 -H 1440 -r 144 --mangoapp %command%

Even a simplified launch options still doesn't work:

gamescope -f -- %command%

Here's the relevant log entries:

Sep 10 00:41:21 L2PWH2JIZP steam[8584]: chdir "/home/tintedkiwi/.local/share/Steam/steamapps/common/Sabbat of the Witch"
Sep 10 00:41:21 L2PWH2JIZP steam[8584]: ERROR: ld.so: object '/home/tintedkiwi/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
Sep 10 00:41:21 L2PWH2JIZP steam[8584]: [gamescope] [Info]  console: gamescope version 3.15.5
Sep 10 00:41:21 L2PWH2JIZP steam[8584]: No CAP_SYS_NICE, falling back to regular-priority compute and threads.
Sep 10 00:41:21 L2PWH2JIZP steam[8584]: Performance will be affected.
Sep 10 00:41:21 L2PWH2JIZP steam[8584]: Adding process 108991 for gameID 888790
Sep 10 00:41:21 L2PWH2JIZP steam[8584]: ATTENTION: default value of option vk_khr_present_wait overridden by environment.
Sep 10 00:41:21 L2PWH2JIZP steam[8584]: [gamescope] [Info]  vulkan: selecting physical device 'Intel(R) UHD Graphics (TGL GT1)': queue family 0 (general queue family 0)
Sep 10 00:41:21 L2PWH2JIZP steam[8584]: [gamescope] [Info]  vulkan: physical device supports DRM format modifiers
Sep 10 00:41:21 L2PWH2JIZP steam[8584]: Fossilize INFO: Overriding serialization path: "/home/tintedkiwi/.local/share/Steam/steamapps/shadercache/888790/fozpipelinesv6/steamapprun_pipeline_cache".
Sep 10 00:41:21 L2PWH2JIZP steam[8584]: [gamescope] [Info]  wlserver: [backend/headless/backend.c:67] Creating headless backend
Sep 10 00:41:21 L2PWH2JIZP steam[8584]: [gamescope] [Info]  xdg_backend: Seat name:
Sep 10 00:41:21 L2PWH2JIZP steam[8584]: [gamescope] [Info]  vulkan: supported DRM formats for sampling usage:
Sep 10 00:41:21 L2PWH2JIZP steam[8584]: [gamescope] [Info]  vulkan:   AR24 (0x34325241)
Sep 10 00:41:21 L2PWH2JIZP steam[8584]: [gamescope] [Info]  vulkan:   XR24 (0x34325258)
Sep 10 00:41:21 L2PWH2JIZP steam[8584]: [gamescope] [Info]  vulkan:   AB24 (0x34324241)
Sep 10 00:41:21 L2PWH2JIZP steam[8584]: [gamescope] [Info]  vulkan:   XB24 (0x34324258)
Sep 10 00:41:21 L2PWH2JIZP steam[8584]: [gamescope] [Info]  vulkan:   RG16 (0x36314752)
Sep 10 00:41:21 L2PWH2JIZP steam[8584]: [gamescope] [Info]  vulkan:   NV12 (0x3231564E)
Sep 10 00:41:21 L2PWH2JIZP steam[8584]: [gamescope] [Info]  vulkan:   AB4H (0x48344241)
Sep 10 00:41:21 L2PWH2JIZP steam[8584]: [gamescope] [Info]  vulkan:   XB4H (0x48344258)
Sep 10 00:41:21 L2PWH2JIZP steam[8584]: [gamescope] [Info]  vulkan:   AB48 (0x38344241)
Sep 10 00:41:21 L2PWH2JIZP steam[8584]: [gamescope] [Info]  vulkan:   XB48 (0x38344258)
Sep 10 00:41:21 L2PWH2JIZP steam[8584]: [gamescope] [Info]  vulkan:   AB30 (0x30334241)
Sep 10 00:41:21 L2PWH2JIZP steam[8584]: [gamescope] [Info]  vulkan:   AR30 (0x30335241)
Sep 10 00:41:21 L2PWH2JIZP steam[8584]: [gamescope] [Info]  vulkan:   XR30 (0x30335258)
Sep 10 00:41:21 L2PWH2JIZP steam[8584]: gamescope: ../gamescope/src/rendervulkan.cpp:2118: bool CVulkanTexture::BInit(uint32_t, uint32_t, uint32_t, uint32_t, createFlags, wlr_dmabuf_attributes*, uint32_t, uint32_t, CVulkanTexture*, gamescope::OwningRc<gamescope::IBackendFb>): Assertion `!modifiers.empty()' failed.
Sep 10 00:41:22 L2PWH2JIZP steam[8584]: Uploaded AppInterfaceStats to Steam
Sep 10 00:41:22 L2PWH2JIZP steam[8584]: Removing process 108991 for gameID 888790

And for comparison, the relevant log entries for version 3.14.29:

Sep 10 01:04:24 L2PWH2JIZP steam[8584]: chdir "/home/tintedkiwi/.local/share/Steam/steamapps/common/Sabbat of the Witch"
Sep 10 01:04:24 L2PWH2JIZP steam[8584]: ERROR: ld.so: object '/home/tintedkiwi/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
Sep 10 01:04:24 L2PWH2JIZP steam[8584]: [gamescope] [Info]  console: gamescope version 3.14.29
Sep 10 01:04:24 L2PWH2JIZP steam[8584]: No CAP_SYS_NICE, falling back to regular-priority compute and threads.
Sep 10 01:04:24 L2PWH2JIZP steam[8584]: Performance will be affected.
Sep 10 01:04:24 L2PWH2JIZP steam[8584]: Adding process 112120 for gameID 888790
Sep 10 01:04:24 L2PWH2JIZP steam[8584]: ATTENTION: default value of option vk_khr_present_wait overridden by environment.
Sep 10 01:04:24 L2PWH2JIZP steam[8584]: [gamescope] [Info]  vulkan: selecting physical device 'Intel(R) UHD Graphics (TGL GT1)': queue family 0 (general queue family 0)
Sep 10 01:04:24 L2PWH2JIZP steam[8584]: [gamescope] [Info]  vulkan: physical device supports DRM format modifiers
Sep 10 01:04:24 L2PWH2JIZP steam[8584]: Fossilize INFO: Overriding serialization path: "/home/tintedkiwi/.local/share/Steam/steamapps/shadercache/888790/fozpipelinesv6/steamapprun_pipeline_cache".
Sep 10 01:04:24 L2PWH2JIZP steam[8584]: [gamescope] [Info]  wlserver: [backend/headless/backend.c:67] Creating headless backend
Sep 10 01:04:24 L2PWH2JIZP steam[8584]: [gamescope] [Info]  xdg_backend: Seat name:
Sep 10 01:04:24 L2PWH2JIZP steam[8584]: [gamescope] [Info]  vulkan: supported DRM formats for sampling usage:
Sep 10 01:04:24 L2PWH2JIZP steam[8584]: [gamescope] [Info]  vulkan:   AR24 (0x34325241)
Sep 10 01:04:24 L2PWH2JIZP steam[8584]: [gamescope] [Info]  vulkan:   XR24 (0x34325258)
Sep 10 01:04:24 L2PWH2JIZP steam[8584]: [gamescope] [Info]  vulkan:   AB24 (0x34324241)
Sep 10 01:04:24 L2PWH2JIZP steam[8584]: [gamescope] [Info]  vulkan:   XB24 (0x34324258)
Sep 10 01:04:24 L2PWH2JIZP steam[8584]: [gamescope] [Info]  vulkan:   RG16 (0x36314752)
Sep 10 01:04:24 L2PWH2JIZP steam[8584]: [gamescope] [Info]  vulkan:   NV12 (0x3231564E)
Sep 10 01:04:24 L2PWH2JIZP steam[8584]: [gamescope] [Info]  vulkan:   AB4H (0x48344241)
Sep 10 01:04:24 L2PWH2JIZP steam[8584]: [gamescope] [Info]  vulkan:   XB4H (0x48344258)
Sep 10 01:04:24 L2PWH2JIZP steam[8584]: [gamescope] [Info]  vulkan:   AB48 (0x38344241)
Sep 10 01:04:24 L2PWH2JIZP steam[8584]: [gamescope] [Info]  vulkan:   XB48 (0x38344258)
Sep 10 01:04:24 L2PWH2JIZP steam[8584]: [gamescope] [Info]  vulkan:   AB30 (0x30334241)
Sep 10 01:04:24 L2PWH2JIZP steam[8584]: [gamescope] [Info]  vulkan:   AR30 (0x30335241)
Sep 10 01:04:24 L2PWH2JIZP steam[8584]: [gamescope] [Info]  vulkan:   XR30 (0x30335258)
Sep 10 01:04:24 L2PWH2JIZP steam[8584]: [gamescope] [Info]  wlserver: Running compositor on wayland display 'gamescope-0'
Sep 10 01:04:24 L2PWH2JIZP steam[8584]: [gamescope] [Info]  wlserver: [backend/headless/backend.c:17] Starting headless backend
Sep 10 01:04:24 L2PWH2JIZP steam[8584]: [gamescope] [Info]  wlserver: Successfully initialized libei for input emulation!
Sep 10 01:04:24 L2PWH2JIZP steam[8584]: [gamescope] [Error] wlserver: [xwayland/sockets.c:64] Failed to bind socket @/tmp/.X11-unix/X0: Address already in use
Sep 10 01:04:24 L2PWH2JIZP steam[8584]: [gamescope] [Info]  wlserver: [xwayland/server.c:107] Starting Xwayland on :2
Sep 10 01:04:24 L2PWH2JIZP steam[8584]: [gamescope] [Info]  pipewire: stream state changed: connecting
Sep 10 01:04:24 L2PWH2JIZP steam[8584]: [gamescope] [Info]  pipewire: stream state changed: paused
Sep 10 01:04:24 L2PWH2JIZP steam[8584]: [gamescope] [Info]  pipewire: stream available on node ID: 155
Sep 10 01:04:24 L2PWH2JIZP steam[8584]: [gamescope] [Info]  xwm: Embedded, no cursor set. Using left_ptr by default.
Sep 10 01:04:24 L2PWH2JIZP steam[8584]: [gamescope] [Info]  vblank: Using timerfd.
Sep 10 01:04:24 L2PWH2JIZP steam[8584]: [gamescope] [Info]  xdg_backend: PreferredMetadata: Red: 0.64 0.33, Green: 0.3 0.6, Blue: 0.15 0.06, White: 0.3127 0.329, Max Luminance: 200 nits, Min Luminance: 0 nits, Max Full Frame Luminance: 200 nits
Sep 10 01:04:24 L2PWH2JIZP steam[8584]: [gamescope] [Info]  edid: Patching res 800x1280 -> 2560x1440
Sep 10 01:04:25 L2PWH2JIZP steam[8584]: pressure-vessel-wrap[112146]: W: Extra environment variable WAYLAND_DISPLAY set during container setup but not in known_vars; check logic
Sep 10 01:04:25 L2PWH2JIZP steam[8584]: ProtonFixes[112237] INFO: Running protonfixes
Sep 10 01:04:25 L2PWH2JIZP steam[8584]: ProtonFixes[112237] INFO: Running checks
Sep 10 01:04:25 L2PWH2JIZP steam[8584]: ProtonFixes[112237] INFO: All checks successful
Sep 10 01:04:25 L2PWH2JIZP steam[8584]: ProtonFixes[112237] INFO: Using global defaults for "Sabbat of the Witch" (888790)
Sep 10 01:04:25 L2PWH2JIZP steam[8584]: ProtonFixes[112237] INFO: Using global protonfix for "Sabbat of the Witch" (888790)
Sep 10 01:04:25 L2PWH2JIZP steam[8584]: ProtonFixes[112237] INFO: Disabling Proton Media Converter
Sep 10 01:04:25 L2PWH2JIZP steam[8584]: ProtonFixes[112237] INFO: Adding env: PROTON_AUDIO_CONVERT=0
Sep 10 01:04:25 L2PWH2JIZP steam[8584]: ProtonFixes[112237] INFO: Adding env: PROTON_AUDIO_CONVERT_BIN=0
Sep 10 01:04:25 L2PWH2JIZP steam[8584]: ProtonFixes[112237] INFO: Adding env: PROTON_VIDEO_CONVERT=0
Sep 10 01:04:25 L2PWH2JIZP steam[8584]: ProtonFixes[112237] INFO: Adding env: PROTON_DEMUX=0
Sep 10 01:04:25 L2PWH2JIZP steam[8584]: ProtonFixes[112237] INFO: Adding argument -vomstyle=overlay
Sep 10 01:04:25 L2PWH2JIZP steam[8584]: wine: using kernel write watches, use_kernel_writewatch 1.
Sep 10 01:04:25 L2PWH2JIZP steam[8584]: fsync: up and running.
Sep 10 01:04:25 L2PWH2JIZP steam[8584]: wine: using kernel write watches, use_kernel_writewatch 1.
Sep 10 01:04:25 L2PWH2JIZP steam[8584]: wine: using kernel write watches, use_kernel_writewatch 1.
Sep 10 01:04:25 L2PWH2JIZP steam[8584]: wine: using kernel write watches, use_kernel_writewatch 1.
Sep 10 01:04:25 L2PWH2JIZP steam[8584]: wine: using kernel write watches, use_kernel_writewatch 1.
Sep 10 01:04:25 L2PWH2JIZP steam[8584]: wine: using kernel write watches, use_kernel_writewatch 1.
Sep 10 01:04:26 L2PWH2JIZP steam[8584]: wine: using kernel write watches, use_kernel_writewatch 1.
Sep 10 01:04:26 L2PWH2JIZP steam[8584]: wine: using kernel write watches, use_kernel_writewatch 1.
Sep 10 01:04:26 L2PWH2JIZP steam[8584]: ATTENTION: default value of option vk_xwayland_wait_ready overridden by environment.
Sep 10 01:04:26 L2PWH2JIZP steam[8584]: ATTENTION: default value of option vk_khr_present_wait overridden by environment.
Sep 10 01:04:26 L2PWH2JIZP steam[8584]: ATTENTION: default value of option vk_xwayland_wait_ready overridden by environment.
Sep 10 01:04:26 L2PWH2JIZP steam[8584]: ATTENTION: default value of option vk_xwayland_wait_ready overridden by environment.
Sep 10 01:04:26 L2PWH2JIZP steam[8584]: ATTENTION: default value of option vk_khr_present_wait overridden by environment.
Sep 10 01:04:26 L2PWH2JIZP steam[8584]: ATTENTION: default value of option vk_xwayland_wait_ready overridden by environment.
Sep 10 01:04:26 L2PWH2JIZP steam[8584]: wine: using kernel write watches, use_kernel_writewatch 1.
Sep 10 01:04:26 L2PWH2JIZP steam[8584]: wine: using kernel write watches, use_kernel_writewatch 1.
Sep 10 01:04:26 L2PWH2JIZP steam[8584]: Setting breakpad minidump AppID = 888790
Sep 10 01:04:26 L2PWH2JIZP steam[8584]: Steam_SetMinidumpSteamID:  Caching Steam ID:  76561199409021147 [API loaded no]
Sep 10 01:04:26 L2PWH2JIZP steam[8584]: wine: using kernel write watches, use_kernel_writewatch 1.
Sep 10 01:04:28 L2PWH2JIZP steam[8584]: [gamescope] [Warn]  xwm: got the same buffer committed twice, ignoring.
Sep 10 01:04:28 L2PWH2JIZP steam[8584]: The XKEYBOARD keymap compiler (xkbcomp) reports:
Sep 10 01:04:28 L2PWH2JIZP steam[8584]: > Warning:          Unsupported maximum keycode 708, clipping.
Sep 10 01:04:28 L2PWH2JIZP steam[8584]: >                   X11 cannot support keycodes above 255.
Sep 10 01:04:28 L2PWH2JIZP steam[8584]: > Warning:          Could not resolve keysym XF86KbdInputAssistPrevgrou
Sep 10 01:04:28 L2PWH2JIZP steam[8584]: > Warning:          Could not resolve keysym XF86KbdInputAssistNextgrou
Sep 10 01:04:28 L2PWH2JIZP steam[8584]: Errors from xkbcomp are not fatal to the X server
Sep 10 01:04:28 L2PWH2JIZP steam[8584]: [gamescope] [Info]  xdg_backend: Changed refresh to: 143.912hz
Sep 10 01:04:30 L2PWH2JIZP steam[8584]: [gamescope] [Warn]  xwm: got the same buffer committed twice, ignoring.
Sep 10 01:04:30 L2PWH2JIZP steam[8584]: Fossilize INFO: Overriding serialization path: "/home/tintedkiwi/.local/share/Steam/steamapps/shadercache/888790/fozpipelinesv6/steamapprun_pipeline_cache".
Sep 10 01:04:30 L2PWH2JIZP steam[8584]: Fossilize WARN: Pipeline library handle 0xffffffffe265f0d8 is not registered.
Sep 10 01:04:30 L2PWH2JIZP steam[8584]: It has either not been recorded, or it failed to be recorded earlier (which is expected if application uses an extension that is not recognized by Fossilize).
Sep 10 01:04:41 L2PWH2JIZP steam[8584]: [gamescope] [Info]  launch: Primary child shut down!
Sep 10 01:04:41 L2PWH2JIZP steam[8584]: (EE) failed to read Wayland events: Broken pipe
Sep 10 01:04:41 L2PWH2JIZP steam[8584]: Game 888790 created interface STEAMAPPLIST_INTERFACE_VERSION001 / AppList
Sep 10 01:04:41 L2PWH2JIZP steam[8584]: Game 888790 created interface STEAMAPPS_INTERFACE_VERSION008 / Apps
Sep 10 01:04:41 L2PWH2JIZP steam[8584]: Game 888790 created interface STEAMHTMLSURFACE_INTERFACE_VERSION_003 / HTMLSurface
Sep 10 01:04:41 L2PWH2JIZP steam[8584]: Game 888790 created interface STEAMHTTP_INTERFACE_VERSION002 / HTTP
Sep 10 01:04:41 L2PWH2JIZP steam[8584]: Game 888790 created interface STEAMINVENTORY_INTERFACE_V001 / Inventory
Sep 10 01:04:41 L2PWH2JIZP steam[8584]: Game 888790 created interface STEAMMUSICREMOTE_INTERFACE_VERSION001 / MusicRemote
Sep 10 01:04:41 L2PWH2JIZP steam[8584]: Game 888790 created interface STEAMMUSIC_INTERFACE_VERSION001 / Music
Sep 10 01:04:41 L2PWH2JIZP steam[8584]: Game 888790 created interface STEAMREMOTESTORAGE_INTERFACE_VERSION013 / RemoteStorage
Sep 10 01:04:41 L2PWH2JIZP steam[8584]: Game 888790 created interface STEAMSCREENSHOTS_INTERFACE_VERSION002 / Screenshots
Sep 10 01:04:41 L2PWH2JIZP steam[8584]: Game 888790 created interface STEAMUGC_INTERFACE_VERSION008 / UGC
Sep 10 01:04:41 L2PWH2JIZP steam[8584]: Game 888790 created interface STEAMUNIFIEDMESSAGES_INTERFACE_VERSION001 / UnifiedMessages
Sep 10 01:04:41 L2PWH2JIZP steam[8584]: Game 888790 created interface STEAMUSERSTATS_INTERFACE_VERSION011 / UserStats
Sep 10 01:04:41 L2PWH2JIZP steam[8584]: Game 888790 created interface STEAMVIDEO_INTERFACE_V001 / Video
Sep 10 01:04:41 L2PWH2JIZP steam[8584]: Game 888790 created interface SteamController003 / Controller
Sep 10 01:04:41 L2PWH2JIZP steam[8584]: Game 888790 created interface SteamFriends015 / Friends
Sep 10 01:04:41 L2PWH2JIZP steam[8584]: Game 888790 created interface SteamMatchMaking009 / Matchmaking
Sep 10 01:04:41 L2PWH2JIZP steam[8584]: Game 888790 created interface SteamMatchMakingServers002 / MatchmakingServers
Sep 10 01:04:41 L2PWH2JIZP steam[8584]: Game 888790 created interface SteamNetworking005 / Networking
Sep 10 01:04:41 L2PWH2JIZP steam[8584]: Game 888790 created interface SteamUser019 / User
Sep 10 01:04:41 L2PWH2JIZP steam[8584]: Game 888790 created interface SteamUtils008 / Utils
Sep 10 01:04:41 L2PWH2JIZP steam[8584]: Game 888790 method call count for IClientRemoteStorage::IsCloudEnabledForApp : 2
Sep 10 01:04:41 L2PWH2JIZP steam[8584]: Game 888790 method call count for IClientRemoteStorage::FileExists : 29
Sep 10 01:04:41 L2PWH2JIZP steam[8584]: Game 888790 method call count for IClientRemoteStorage::GetFileSize : 18
Sep 10 01:04:41 L2PWH2JIZP steam[8584]: Game 888790 method call count for IClientRemoteStorage::FileRead : 18
Sep 10 01:04:41 L2PWH2JIZP steam[8584]: Game 888790 method call count for IClientRemoteStorage::FileWrite : 15
Sep 10 01:04:41 L2PWH2JIZP steam[8584]: Game 888790 method call count for IClientUserStats::RequestCurrentStats : 1
Sep 10 01:04:41 L2PWH2JIZP steam[8584]: Game 888790 method call count for IClientUtils::RecordSteamInterfaceCreation : 24
Sep 10 01:04:41 L2PWH2JIZP steam[8584]: Game 888790 method call count for IClientUtils::SetOverlayNotificationPosition : 1
Sep 10 01:04:41 L2PWH2JIZP steam[8584]: Game 888790 method call count for IClientUtils::GetAppID : 27
Sep 10 01:04:41 L2PWH2JIZP steam[8584]: Game 888790 method call count for IClientUser::GetSteamID : 1
Sep 10 01:04:41 L2PWH2JIZP steam[8584]: Game 888790 method call count for IClientUser::BLoggedOn : 1
Sep 10 01:04:41 L2PWH2JIZP steam[8584]: Uploaded AppInterfaceStats to Steam
Sep 10 01:04:41 L2PWH2JIZP steam[8584]: Removing process 112120 for gameID 888790
@matte-schwartz
Copy link

if you know how to compile gamescope does latest master solve it for you? includes this: 6eaee77

@TintedKiwi
Copy link
Author

Thanks, it didn't occur to me to try the git version.
I installed gamescope-git from the AUR and had to restart my system for the game to not crash immediately.

The game starts and works fine for the most part but it now freezes after an in-game video is played/skipped.
It doesn't appear to be a proton GE (9-12) specific issue as the proton log has no errors in it and everything works fine when not using gamescope, and as mentioned, using the previous version of gamescope.

There are a few more warnings and errors in the system log though:

Sep 10 02:40:43 L2PWH2JIZP steam[1980]: chdir "/home/tintedkiwi/.local/share/Steam/steamapps/common/Sabbat of the Witch"
Sep 10 02:40:43 L2PWH2JIZP steam[1980]: ERROR: ld.so: object '/home/tintedkiwi/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
Sep 10 02:40:43 L2PWH2JIZP steam[1980]: [gamescope] [Info]  console: gamescope version 3.15.5-4-g6eaee770 (gcc 14.2.1)
Sep 10 02:40:43 L2PWH2JIZP steam[1980]: No CAP_SYS_NICE, falling back to regular-priority compute and threads.
Sep 10 02:40:43 L2PWH2JIZP steam[1980]: Performance will be affected.
Sep 10 02:40:43 L2PWH2JIZP steam[1980]: Adding process 25773 for gameID 888790
Sep 10 02:40:43 L2PWH2JIZP steam[1980]: ATTENTION: default value of option vk_khr_present_wait overridden by environment.
Sep 10 02:40:43 L2PWH2JIZP steam[1980]: [gamescope] [Info]  vulkan: selecting physical device 'Intel(R) UHD Graphics (TGL GT1)': queue family 0 (general queue family 0)
Sep 10 02:40:43 L2PWH2JIZP steam[1980]: [gamescope] [Info]  vulkan: physical device supports DRM format modifiers
Sep 10 02:40:43 L2PWH2JIZP steam[1980]: Fossilize INFO: Overriding serialization path: "/home/tintedkiwi/.local/share/Steam/steamapps/shadercache/888790/fozpipelinesv6/steamapprun_pipeline_cache".
Sep 10 02:40:43 L2PWH2JIZP steam[1980]: [gamescope] [Info]  wlserver: [backend/headless/backend.c:67] Creating headless backend
Sep 10 02:40:43 L2PWH2JIZP steam[1980]: [gamescope] [Info]  xdg_backend: Seat name:
Sep 10 02:40:43 L2PWH2JIZP steam[1980]: [gamescope] [Info]  vulkan: supported DRM formats for sampling usage:
Sep 10 02:40:43 L2PWH2JIZP steam[1980]: [gamescope] [Info]  vulkan:   AR24 (0x34325241)
Sep 10 02:40:43 L2PWH2JIZP steam[1980]: [gamescope] [Info]  vulkan:   XR24 (0x34325258)
Sep 10 02:40:43 L2PWH2JIZP steam[1980]: [gamescope] [Info]  vulkan:   AB24 (0x34324241)
Sep 10 02:40:43 L2PWH2JIZP steam[1980]: [gamescope] [Info]  vulkan:   XB24 (0x34324258)
Sep 10 02:40:43 L2PWH2JIZP steam[1980]: [gamescope] [Info]  vulkan:   RG16 (0x36314752)
Sep 10 02:40:43 L2PWH2JIZP steam[1980]: [gamescope] [Info]  vulkan:   NV12 (0x3231564E)
Sep 10 02:40:43 L2PWH2JIZP steam[1980]: [gamescope] [Info]  vulkan:   AB4H (0x48344241)
Sep 10 02:40:43 L2PWH2JIZP steam[1980]: [gamescope] [Info]  vulkan:   XB4H (0x48344258)
Sep 10 02:40:43 L2PWH2JIZP steam[1980]: [gamescope] [Info]  vulkan:   AB48 (0x38344241)
Sep 10 02:40:43 L2PWH2JIZP steam[1980]: [gamescope] [Info]  vulkan:   XB48 (0x38344258)
Sep 10 02:40:43 L2PWH2JIZP steam[1980]: [gamescope] [Info]  vulkan:   AB30 (0x30334241)
Sep 10 02:40:43 L2PWH2JIZP steam[1980]: [gamescope] [Info]  vulkan:   AR30 (0x30335241)
Sep 10 02:40:43 L2PWH2JIZP steam[1980]: [gamescope] [Info]  vulkan:   XR30 (0x30335258)
Sep 10 02:40:43 L2PWH2JIZP steam[1980]: [gamescope] [Info]  wlserver: Using explicit sync when available
Sep 10 02:40:43 L2PWH2JIZP steam[1980]: [gamescope] [Info]  wlserver: Running compositor on wayland display 'gamescope-0'
Sep 10 02:40:43 L2PWH2JIZP steam[1980]: [gamescope] [Info]  wlserver: [backend/headless/backend.c:17] Starting headless backend
Sep 10 02:40:43 L2PWH2JIZP steam[1980]: [gamescope] [Info]  wlserver: Successfully initialized libei for input emulation!
Sep 10 02:40:43 L2PWH2JIZP steam[1980]: [gamescope] [Error] wlserver: [xwayland/sockets.c:64] Failed to bind socket @/tmp/.X11-unix/X0: Address already in use
Sep 10 02:40:43 L2PWH2JIZP steam[1980]: [gamescope] [Info]  wlserver: [xwayland/server.c:107] Starting Xwayland on :2
Sep 10 02:40:43 L2PWH2JIZP steam[1980]: [gamescope] [Info]  pipewire: stream state changed: connecting
Sep 10 02:40:43 L2PWH2JIZP steam[1980]: [gamescope] [Info]  pipewire: stream state changed: paused
Sep 10 02:40:43 L2PWH2JIZP steam[1980]: [gamescope] [Info]  pipewire: stream available on node ID: 147
Sep 10 02:40:43 L2PWH2JIZP steam[1980]: [gamescope] [Info]  xwm: Embedded, no cursor set. Using left_ptr by default.
Sep 10 02:40:43 L2PWH2JIZP steam[1980]: [gamescope] [Info]  vblank: Using timerfd.
Sep 10 02:40:43 L2PWH2JIZP steam[1980]: [gamescope] [Info]  xdg_backend: PreferredMetadata: Red: 0.64 0.33, Green: 0.3 0.6, Blue: 0.15 0.06, White: 0.3127 0.329, Max Luminance: 200 nits, Min Luminance: 0 nits, Max Full Frame Luminance: 200 nits
Sep 10 02:40:43 L2PWH2JIZP steam[1980]: [gamescope] [Info]  edid: Patching res 800x1280 -> 2560x1440
Sep 10 02:40:44 L2PWH2JIZP steam[1980]: pressure-vessel-wrap[25799]: W: Extra environment variable WAYLAND_DISPLAY set during container setup but not in known_vars; check logic
Sep 10 02:40:44 L2PWH2JIZP steam[1980]: ProtonFixes[25890] INFO: Running protonfixes
Sep 10 02:40:44 L2PWH2JIZP steam[1980]: ProtonFixes[25890] INFO: Running checks
Sep 10 02:40:44 L2PWH2JIZP steam[1980]: ProtonFixes[25890] INFO: All checks successful
Sep 10 02:40:44 L2PWH2JIZP steam[1980]: ProtonFixes[25890] INFO: Using global defaults for "Sabbat of the Witch" (888790)
Sep 10 02:40:44 L2PWH2JIZP steam[1980]: ProtonFixes[25890] INFO: Using global protonfix for "Sabbat of the Witch" (888790)
Sep 10 02:40:44 L2PWH2JIZP steam[1980]: ProtonFixes[25890] INFO: Disabling Proton Media Converter
Sep 10 02:40:44 L2PWH2JIZP steam[1980]: ProtonFixes[25890] INFO: Adding env: PROTON_AUDIO_CONVERT=0
Sep 10 02:40:44 L2PWH2JIZP steam[1980]: ProtonFixes[25890] INFO: Adding env: PROTON_AUDIO_CONVERT_BIN=0
Sep 10 02:40:44 L2PWH2JIZP steam[1980]: ProtonFixes[25890] INFO: Adding env: PROTON_VIDEO_CONVERT=0
Sep 10 02:40:44 L2PWH2JIZP steam[1980]: ProtonFixes[25890] INFO: Adding env: PROTON_DEMUX=0
Sep 10 02:40:44 L2PWH2JIZP steam[1980]: ProtonFixes[25890] INFO: Adding argument -vomstyle=overlay
Sep 10 02:40:47 L2PWH2JIZP steam[1980]: [gamescope] [Warn]  xwm: got the same buffer committed twice, ignoring.
Sep 10 02:40:47 L2PWH2JIZP steam[1980]: The XKEYBOARD keymap compiler (xkbcomp) reports:
Sep 10 02:40:47 L2PWH2JIZP steam[1980]: > Warning:          Unsupported maximum keycode 708, clipping.
Sep 10 02:40:47 L2PWH2JIZP steam[1980]: >                   X11 cannot support keycodes above 255.
Sep 10 02:40:47 L2PWH2JIZP steam[1980]: > Warning:          Could not resolve keysym XF86KbdInputAssistPrevgrou
Sep 10 02:40:47 L2PWH2JIZP steam[1980]: > Warning:          Could not resolve keysym XF86KbdInputAssistNextgrou
Sep 10 02:40:47 L2PWH2JIZP steam[1980]: Errors from xkbcomp are not fatal to the X server
Sep 10 02:40:47 L2PWH2JIZP steam[1980]: [gamescope] [Info]  xdg_backend: Changed refresh to: 143.912hz
Sep 10 02:40:50 L2PWH2JIZP steam[1980]: [gamescope] [Warn]  xwm: got the same buffer committed twice, ignoring.
Sep 10 02:41:03 L2PWH2JIZP steam[1980]: [gamescope] [Warn]  xwm: got the same buffer committed twice, ignoring.
Sep 10 02:41:03 L2PWH2JIZP steam[1980]: [gamescope] [Warn]  xwm: got the same buffer committed twice, ignoring.
Sep 10 02:41:03 L2PWH2JIZP steam[1980]: [gamescope] [Warn]  xwm: got the same buffer committed twice, ignoring.
Sep 10 02:41:03 L2PWH2JIZP steam[1980]: [gamescope] [Warn]  xwm: got the same buffer committed twice, ignoring.
Sep 10 02:41:03 L2PWH2JIZP steam[1980]: [gamescope] [Warn]  xwm: got the same buffer committed twice, ignoring.
Sep 10 02:41:03 L2PWH2JIZP steam[1980]: [gamescope] [Warn]  xwm: got the same buffer committed twice, ignoring.
Sep 10 02:41:03 L2PWH2JIZP steam[1980]: [gamescope] [Warn]  xwm: got the same buffer committed twice, ignoring.
Sep 10 02:41:03 L2PWH2JIZP steam[1980]: [gamescope] [Warn]  xwm: got the same buffer committed twice, ignoring.
Sep 10 02:41:03 L2PWH2JIZP steam[1980]: [gamescope] [Warn]  xwm: got the same buffer committed twice, ignoring.
Sep 10 02:41:03 L2PWH2JIZP steam[1980]: [gamescope] [Warn]  xwm: got the same buffer committed twice, ignoring.
Sep 10 02:41:03 L2PWH2JIZP steam[1980]: [gamescope] [Warn]  xwm: got the same buffer committed twice, ignoring.
Sep 10 02:41:03 L2PWH2JIZP steam[1980]: [gamescope] [Warn]  xwm: got the same buffer committed twice, ignoring.
Sep 10 02:41:03 L2PWH2JIZP steam[1980]: [gamescope] [Warn]  xwm: got the same buffer committed twice, ignoring.
Sep 10 02:41:03 L2PWH2JIZP steam[1980]: [gamescope] [Warn]  xwm: got the same buffer committed twice, ignoring.
Sep 10 02:41:03 L2PWH2JIZP steam[1980]: [gamescope] [Warn]  xwm: got the same buffer committed twice, ignoring.
Sep 10 02:41:03 L2PWH2JIZP steam[1980]: [gamescope] [Warn]  xwm: got the same buffer committed twice, ignoring.
Sep 10 02:41:03 L2PWH2JIZP steam[1980]: [gamescope] [Warn]  xwm: got the same buffer committed twice, ignoring.
Sep 10 02:41:03 L2PWH2JIZP steam[1980]: [gamescope] [Warn]  xwm: got the same buffer committed twice, ignoring.
Sep 10 02:41:03 L2PWH2JIZP steam[1980]: [gamescope] [Warn]  xwm: got the same buffer committed twice, ignoring.
Sep 10 02:41:03 L2PWH2JIZP steam[1980]: [gamescope] [Warn]  xwm: got the same buffer committed twice, ignoring.
Sep 10 02:41:03 L2PWH2JIZP steam[1980]: [gamescope] [Warn]  xwm: got the same buffer committed twice, ignoring.
Sep 10 02:41:03 L2PWH2JIZP steam[1980]: [gamescope] [Warn]  xwm: got the same buffer committed twice, ignoring.
Sep 10 02:41:03 L2PWH2JIZP steam[1980]: [gamescope] [Warn]  xwm: got the same buffer committed twice, ignoring.
Sep 10 02:41:03 L2PWH2JIZP steam[1980]: [gamescope] [Warn]  xwm: got the same buffer committed twice, ignoring.
Sep 10 02:41:03 L2PWH2JIZP steam[1980]: [gamescope] [Warn]  xwm: got the same buffer committed twice, ignoring.
Sep 10 02:41:03 L2PWH2JIZP steam[1980]: [gamescope] [Warn]  xwm: got the same buffer committed twice, ignoring.
Sep 10 02:41:03 L2PWH2JIZP steam[1980]: [gamescope] [Warn]  xwm: got the same buffer committed twice, ignoring.
Sep 10 02:41:03 L2PWH2JIZP steam[1980]: [gamescope] [Warn]  xwm: got the same buffer committed twice, ignoring.
Sep 10 02:41:03 L2PWH2JIZP steam[1980]: [gamescope] [Warn]  xwm: got the same buffer committed twice, ignoring.
Sep 10 02:41:03 L2PWH2JIZP steam[1980]: [gamescope] [Warn]  xwm: got the same buffer committed twice, ignoring.
Sep 10 02:41:03 L2PWH2JIZP steam[1980]: [gamescope] [Warn]  xwm: got the same buffer committed twice, ignoring.
Sep 10 02:41:03 L2PWH2JIZP steam[1980]: [gamescope] [Warn]  xwm: got the same buffer committed twice, ignoring.
Sep 10 02:41:03 L2PWH2JIZP steam[1980]: [gamescope] [Warn]  xwm: got the same buffer committed twice, ignoring.
Sep 10 02:41:03 L2PWH2JIZP steam[1980]: [gamescope] [Warn]  xwm: got the same buffer committed twice, ignoring.
Sep 10 02:41:03 L2PWH2JIZP steam[1980]: [gamescope] [Warn]  xwm: got the same buffer committed twice, ignoring.
Sep 10 02:41:03 L2PWH2JIZP steam[1980]: [gamescope] [Warn]  xwm: got the same buffer committed twice, ignoring.
Sep 10 02:41:03 L2PWH2JIZP steam[1980]: [gamescope] [Warn]  xwm: got the same buffer committed twice, ignoring.
Sep 10 02:41:03 L2PWH2JIZP steam[1980]: [gamescope] [Warn]  xwm: got the same buffer committed twice, ignoring.
Sep 10 02:41:03 L2PWH2JIZP steam[1980]: [gamescope] [Warn]  xwm: got the same buffer committed twice, ignoring.
Sep 10 02:41:03 L2PWH2JIZP steam[1980]: [gamescope] [Warn]  xwm: got the same buffer committed twice, ignoring.
Sep 10 02:41:03 L2PWH2JIZP steam[1980]: [gamescope] [Warn]  xwm: got the same buffer committed twice, ignoring.
Sep 10 02:41:03 L2PWH2JIZP steam[1980]: [gamescope] [Warn]  xwm: got the same buffer committed twice, ignoring.
Sep 10 02:41:03 L2PWH2JIZP steam[1980]: [gamescope] [Warn]  xwm: got the same buffer committed twice, ignoring.
Sep 10 02:41:03 L2PWH2JIZP steam[1980]: [gamescope] [Warn]  xwm: got the same buffer committed twice, ignoring.
Sep 10 02:41:03 L2PWH2JIZP steam[1980]: [gamescope] [Warn]  xwm: got the same buffer committed twice, ignoring.
Sep 10 02:41:03 L2PWH2JIZP steam[1980]: [gamescope] [Warn]  xwm: got the same buffer committed twice, ignoring.
Sep 10 02:41:03 L2PWH2JIZP steam[1980]: [gamescope] [Warn]  xwm: got the same buffer committed twice, ignoring.
Sep 10 02:41:03 L2PWH2JIZP steam[1980]: [gamescope] [Warn]  xwm: got the same buffer committed twice, ignoring.
Sep 10 02:41:03 L2PWH2JIZP steam[1980]: [gamescope] [Warn]  xwm: got the same buffer committed twice, ignoring.
Sep 10 02:41:14 L2PWH2JIZP steam[1980]: [gamescope] [Info]  wlserver: [wayland] error in client communication (pid 25773)
Sep 10 02:41:14 L2PWH2JIZP steam[1980]: [gamescope] [Info]  wlserver: [xwayland/server.c:217] Restarting Xwayland
Sep 10 02:41:14 L2PWH2JIZP steam[1980]: XWAYLAND: wp_linux_drm_syncobj_manager_v1#9: error 0: wp_linux_drm_syncobj_surface_v1 already created for this surface
Sep 10 02:41:14 L2PWH2JIZP steam[1980]: (EE) failed to dispatch Wayland events: Protocol error
Sep 10 02:41:14 L2PWH2JIZP steam[1980]: [gamescope] [Info]  wlserver: [xwayland/server.c:107] Starting Xwayland on :2
Sep 10 02:41:14 L2PWH2JIZP steam[1980]: [gamescope] [Error] xwm: X11 I/O error
Sep 10 02:41:14 L2PWH2JIZP steam[1980]: [gamescopereaper] [Info]  reaper: Parent of gamescopereaper was killed. Killing children.
Sep 10 02:41:14 L2PWH2JIZP steam[1980]: (EE) could not connect to wayland server
Sep 10 02:41:24 L2PWH2JIZP steam[1980]: Game 888790 created interface STEAMAPPLIST_INTERFACE_VERSION001 / AppList
Sep 10 02:41:24 L2PWH2JIZP steam[1980]: Game 888790 created interface STEAMAPPS_INTERFACE_VERSION008 / Apps
Sep 10 02:41:24 L2PWH2JIZP steam[1980]: Game 888790 created interface STEAMHTMLSURFACE_INTERFACE_VERSION_003 / HTMLSurface
Sep 10 02:41:24 L2PWH2JIZP steam[1980]: Game 888790 created interface STEAMHTTP_INTERFACE_VERSION002 / HTTP
Sep 10 02:41:24 L2PWH2JIZP steam[1980]: Game 888790 created interface STEAMINVENTORY_INTERFACE_V001 / Inventory
Sep 10 02:41:24 L2PWH2JIZP steam[1980]: Game 888790 created interface STEAMMUSICREMOTE_INTERFACE_VERSION001 / MusicRemote
Sep 10 02:41:24 L2PWH2JIZP steam[1980]: Game 888790 created interface STEAMMUSIC_INTERFACE_VERSION001 / Music
Sep 10 02:41:24 L2PWH2JIZP steam[1980]: Game 888790 created interface STEAMREMOTESTORAGE_INTERFACE_VERSION013 / RemoteStorage
Sep 10 02:41:24 L2PWH2JIZP steam[1980]: Game 888790 created interface STEAMSCREENSHOTS_INTERFACE_VERSION002 / Screenshots
Sep 10 02:41:24 L2PWH2JIZP steam[1980]: Game 888790 created interface STEAMUGC_INTERFACE_VERSION008 / UGC
Sep 10 02:41:24 L2PWH2JIZP steam[1980]: Game 888790 created interface STEAMUNIFIEDMESSAGES_INTERFACE_VERSION001 / UnifiedMessages
Sep 10 02:41:24 L2PWH2JIZP steam[1980]: Game 888790 created interface STEAMUSERSTATS_INTERFACE_VERSION011 / UserStats
Sep 10 02:41:24 L2PWH2JIZP steam[1980]: Game 888790 created interface STEAMVIDEO_INTERFACE_V001 / Video
Sep 10 02:41:24 L2PWH2JIZP steam[1980]: Game 888790 created interface SteamController003 / Controller
Sep 10 02:41:24 L2PWH2JIZP steam[1980]: Game 888790 created interface SteamFriends015 / Friends
Sep 10 02:41:24 L2PWH2JIZP steam[1980]: Game 888790 created interface SteamMatchMaking009 / Matchmaking
Sep 10 02:41:24 L2PWH2JIZP steam[1980]: Game 888790 created interface SteamMatchMakingServers002 / MatchmakingServers
Sep 10 02:41:24 L2PWH2JIZP steam[1980]: Game 888790 created interface SteamNetworking005 / Networking
Sep 10 02:41:24 L2PWH2JIZP steam[1980]: Game 888790 created interface SteamUser019 / User
Sep 10 02:41:24 L2PWH2JIZP steam[1980]: Game 888790 created interface SteamUtils008 / Utils
Sep 10 02:41:24 L2PWH2JIZP steam[1980]: Game 888790 method call count for IClientRemoteStorage::IsCloudEnabledForApp : 2
Sep 10 02:41:24 L2PWH2JIZP steam[1980]: Game 888790 method call count for IClientRemoteStorage::FileExists : 51
Sep 10 02:41:24 L2PWH2JIZP steam[1980]: Game 888790 method call count for IClientRemoteStorage::GetFileSize : 13
Sep 10 02:41:24 L2PWH2JIZP steam[1980]: Game 888790 method call count for IClientRemoteStorage::FileRead : 13
Sep 10 02:41:24 L2PWH2JIZP steam[1980]: Game 888790 method call count for IClientRemoteStorage::FileWrite : 7
Sep 10 02:41:24 L2PWH2JIZP steam[1980]: Game 888790 method call count for IClientUserStats::RequestCurrentStats : 1
Sep 10 02:41:24 L2PWH2JIZP steam[1980]: Game 888790 method call count for IClientUtils::RecordSteamInterfaceCreation : 24
Sep 10 02:41:24 L2PWH2JIZP steam[1980]: Game 888790 method call count for IClientUtils::SetOverlayNotificationPosition : 1
Sep 10 02:41:24 L2PWH2JIZP steam[1980]: Game 888790 method call count for IClientUtils::GetAppID : 27
Sep 10 02:41:24 L2PWH2JIZP steam[1980]: Game 888790 method call count for IClientUser::GetSteamID : 1
Sep 10 02:41:24 L2PWH2JIZP steam[1980]: Game 888790 method call count for IClientUser::BLoggedOn : 1
Sep 10 02:41:24 L2PWH2JIZP steam[1980]: Uploaded AppInterfaceStats to Steam
Sep 10 02:41:24 L2PWH2JIZP steam[1980]: Removing process 25773 for gameID 888790

These lines seem to be of interest, though I'm not sure if some were caused by me terminating the process:

Sep 10 02:41:03 L2PWH2JIZP steam[1980]: [gamescope] [Warn]  xwm: got the same buffer committed twice, ignoring.
Sep 10 02:41:14 L2PWH2JIZP steam[1980]: [gamescope] [Info]  wlserver: [wayland] error in client communication (pid 25773)
Sep 10 02:41:14 L2PWH2JIZP steam[1980]: [gamescope] [Info]  wlserver: [xwayland/server.c:217] Restarting Xwayland
Sep 10 02:41:14 L2PWH2JIZP steam[1980]: XWAYLAND: wp_linux_drm_syncobj_manager_v1#9: error 0: wp_linux_drm_syncobj_surface_v1 already created for this surface
Sep 10 02:41:14 L2PWH2JIZP steam[1980]: (EE) failed to dispatch Wayland events: Protocol error
Sep 10 02:41:14 L2PWH2JIZP steam[1980]: [gamescope] [Info]  wlserver: [xwayland/server.c:107] Starting Xwayland on :2
Sep 10 02:41:14 L2PWH2JIZP steam[1980]: [gamescope] [Error] xwm: X11 I/O error

@matte-schwartz
Copy link

what xwayland version? I have seen that one before, and it was when my xwayland version was too old.

@TintedKiwi
Copy link
Author

I'm using xwayland 24.1.2 and wayland 1.23.0.

I recompiled gamescope this morning based on the latest commit, did a full system upgrade and then tested with both the latest Arch distribution kernel and my custom kernel.

Oddly enough everything works fine when I use Steam proton 9.0-2 and experimental (after installing the missing codecs to the prefix).

Switching back to proton GE 9-12 (with a new prefix and cleared shader cache) and the freezing issue still happens.
I also tried the new proton GE 9-13 release, same problem.
Still no errors or warnings in the proton log to indicate a problem there.
The aforementioned xwayland errors are still present in the system log though.

I'm not sure what to make of this; without gamescope everything works fine no matter the kernel or proton version used, but only proton GE seems to be affected by whatever changed in the 3.15 gamescope versions.

@matte-schwartz
Copy link

matte-schwartz commented Sep 10, 2024

hmm, my guess is that if you opted into the proton experimental bleeding-edge branch you'd very likely start to run into the same issue as GE 9-12 and GE 9-13, since those both build off that specific branch. i'll see if i can make it happen again on my end although I only have a Nvidia dGPU rig and not a hybrid system

@matte-schwartz
Copy link

@TintedKiwi

❯ lspci -nn | grep VGA
43:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 31 [Radeon RX 7900 XT/7900 XTX/7900M] [1002:744c] (rev c8)

what does this command show for you? Might also be worth trying

--prefer-vk-device             prefer Vulkan device for compositing (ex: 1002:7300)

in gamescope for your NVIDIA gpu and see if there is any difference in behavior. Right now it looks like gamescope is using your Intel Tiger Lake iGPU. Of course, NVIDIA in gamescope is an entirely different beast and has its own issues, but this may help narrow down the problem you're running into currently.

@TintedKiwi
Copy link
Author

That command returns these devices:

00:02.0 VGA compatible controller [0300]: Intel Corporation TigerLake-H GT1 [UHD Graphics] [8086:9a60] (rev 01)
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GA106M [GeForce RTX 3060 Mobile / Max-Q] [10de:2520] (rev a1)

Assuming I'm using it correctly:

gamescope --prefer-vk-device 10de:2520 -f -- %command%

Produces the same result as before, the game doesn't start.
Logs indicate the same error as well:

Sep 10 21:45:20 L2PWH2JIZP steam[341026]: chdir "/home/tintedkiwi/.local/share/Steam/steamapps/common/Sabbat of the Witch"
Sep 10 21:45:20 L2PWH2JIZP steam[341026]: ERROR: ld.so: object '/home/tintedkiwi/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
Sep 10 21:45:20 L2PWH2JIZP steam[341026]: ERROR: ld.so: object '/home/tintedkiwi/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
Sep 10 21:45:20 L2PWH2JIZP steam[341026]: [gamescope] [Info]  console: gamescope version 3.15.6 (gcc 14.2.1)
Sep 10 21:45:20 L2PWH2JIZP steam[341026]: No CAP_SYS_NICE, falling back to regular-priority compute and threads.
Sep 10 21:45:20 L2PWH2JIZP steam[341026]: Performance will be affected.
Sep 10 21:45:20 L2PWH2JIZP steam[341026]: Adding process 345440 for gameID 888790
Sep 10 21:45:20 L2PWH2JIZP xdg-desktop-portal-kde[1438]: xdp-kde-settings: Namespace  "org.gnome.desktop.interface"  is not supported
Sep 10 21:45:20 L2PWH2JIZP xdg-desktop-portal-kde[1438]: xdp-kde-settings: Namespace  "org.gnome.desktop.interface"  is not supported
Sep 10 21:45:20 L2PWH2JIZP steam[341026]: ATTENTION: default value of option vk_khr_present_wait overridden by environment.
Sep 10 21:45:20 L2PWH2JIZP steam[341026]: [gamescope] [Info]  vulkan: selecting physical device 'NVIDIA GeForce RTX 3060 Laptop GPU': queue family 2 (general queue family 0)
Sep 10 21:45:20 L2PWH2JIZP steam[341026]: [gamescope] [Info]  vulkan: physical device supports DRM format modifiers
Sep 10 21:45:20 L2PWH2JIZP steam[341026]: Fossilize INFO: Overriding serialization path: "/home/tintedkiwi/.local/share/Steam/steamapps/shadercache/888790/fozpipelinesv6/steamapprun_pipeline_cache".
Sep 10 21:45:20 L2PWH2JIZP steam[341026]: [gamescope] [Info]  wlserver: [backend/headless/backend.c:67] Creating headless backend
Sep 10 21:45:20 L2PWH2JIZP steam[341026]: [gamescope] [Info]  xdg_backend: Seat name:
Sep 10 21:45:20 L2PWH2JIZP steam[341026]: [gamescope] [Error] vulkan: vkGetPhysicalDeviceFormatProperties2 returned zero modifiers for DRM format 0x38344241 (VkResult: 0)
Sep 10 21:45:20 L2PWH2JIZP steam[341026]: [gamescope] [Error] vulkan: vkGetPhysicalDeviceFormatProperties2 returned zero modifiers for DRM format 0x38344258 (VkResult: 0)
Sep 10 21:45:20 L2PWH2JIZP steam[341026]: [gamescope] [Info]  vulkan: supported DRM formats for sampling usage:
Sep 10 21:45:20 L2PWH2JIZP steam[341026]: [gamescope] [Info]  vulkan:   AR24 (0x34325241)
Sep 10 21:45:20 L2PWH2JIZP steam[341026]: [gamescope] [Info]  vulkan:   XR24 (0x34325258)
Sep 10 21:45:20 L2PWH2JIZP steam[341026]: [gamescope] [Info]  vulkan:   AB24 (0x34324241)
Sep 10 21:45:20 L2PWH2JIZP steam[341026]: [gamescope] [Info]  vulkan:   XB24 (0x34324258)
Sep 10 21:45:20 L2PWH2JIZP steam[341026]: [gamescope] [Info]  vulkan:   RG16 (0x36314752)
Sep 10 21:45:20 L2PWH2JIZP steam[341026]: [gamescope] [Info]  vulkan:   NV12 (0x3231564E)
Sep 10 21:45:20 L2PWH2JIZP steam[341026]: [gamescope] [Info]  vulkan:   AB4H (0x48344241)
Sep 10 21:45:20 L2PWH2JIZP steam[341026]: [gamescope] [Info]  vulkan:   XB4H (0x48344258)
Sep 10 21:45:20 L2PWH2JIZP steam[341026]: [gamescope] [Info]  vulkan:   AB30 (0x30334241)
Sep 10 21:45:20 L2PWH2JIZP steam[341026]: [gamescope] [Info]  vulkan:   AR30 (0x30335241)
Sep 10 21:45:20 L2PWH2JIZP steam[341026]: [gamescope] [Info]  vulkan:   XR30 (0x30335258)
Sep 10 21:45:20 L2PWH2JIZP steam[341026]: gamescope: ../src/rendervulkan.cpp:2144: bool CVulkanTexture::BInit(uint32_t, uint32_t, uint32_t, uint32_t, createFlags, wlr_dmabuf_attributes*, uint32_t, uint32_t, CVulkanTexture*, gamescope::OwningRc<gamescop>
Sep 10 21:45:20 L2PWH2JIZP steam[341026]: Uploaded AppInterfaceStats to Steam
Sep 10 21:45:20 L2PWH2JIZP steam[341026]: Removing process 345440 for gameID 888790

I'll try compiling and using proton experimental bleeding-edge and confirm if it's indeed an upstream issue.

@matte-schwartz
Copy link

matte-schwartz commented Sep 10, 2024

@TintedKiwi you can just search for "proton experimental" in your steam library and opt into it in the entry's settings, like you would for a normal game beta. look for "bleeding-edge"

edit: even downloaded the same VN and still not seeing that issue on GE 9-13 when using my NVIDIA dGPU as a compositor like you did with the vk device select option :/ maybe since I don't have an iGPU? not sure...

@TintedKiwi
Copy link
Author

TintedKiwi commented Sep 10, 2024

Oh cool, I wasn't aware that you could do that.

I tested using bleeding edge - latest and can confirm everything's working fine.
Not sure what to make of that, either they already fixed it or it's some GE-specific issue with one of their patches.

The video that causes the freeze is the one that plays at the end of the prologue, possibly the epilogue as well.

edit: I guess the reason it works despite vulkan selecting the iGPU is because I'm connected to an external screen via HDMI which is wired to the dGPU. I also run steam using prime-run so the game subsequently also runs on the dGPU.

@matte-schwartz
Copy link

matte-schwartz commented Sep 10, 2024

okay thanks, I think I finally managed to repro in Sabbat of the Witch on my AMD running Arch

[gamescope] [Info]  wlserver: [wayland] error in client communication (pid 26721)
[gamescope] [Info]  wlserver: [xwayland/server.c:217] Restarting Xwayland
XWAYLAND: wp_linux_drm_syncobj_manager_v1#9: error 0: wp_linux_drm_syncobj_surface_v1 already created for this surface
(EE) failed to dispatch Wayland events: Protocol error
[gamescope] [Info]  wlserver: [xwayland/server.c:107] Starting Xwayland on :1
[gamescope] [Error] xwm: X11 I/O error
[gamescopereaper] [Info]  reaper: Parent of gamescopereaper was killed. Killing children.
[gamescopereaper] [Info]  reaper: Parent of gamescopereaper was killed. Killing children.
(EE) could not connect to wayland server
fish: Job 1, 'gamescope -e -f -h 1440 -w 5120…' has stopped

proton log to me looks like an issue with how the mf videos are being decoded...
steam-888790.log

in the process of debugging this, I also found a second way to make repro the specific XWAYLAND: wp_linux_drm_syncobj_manager_v1#9: error 0: wp_linux_drm_syncobj_surface_v1 already created for this surface error by switching the window mode in the VN from Fullscreen -> Windowed -> Fullscreen on Plasma 6 Wayland with nested gamescope -f -- %command%. Both of these issues seem totally fine on SteamOS so far as my Deck does not have this issue... very strange. Will try to keep digging and see if I can find a distinguishing factor.

@TintedKiwi
Copy link
Author

Ok cool, thanks; I appreciate the help.

Ah, the protonmediaconverter errors is a known issue that I have already reported to the umu-protonfixes project. Based on the feedback I’ve received it seems to be a build issue with the proton GE 9-13 release.

The game runs fine on GE 9-12 and on a GE 9-13 version I compiled from the git tag as was suggested by umu-protonfixes.

Custom GE 9-13 Log

@matte-schwartz
Copy link

matte-schwartz commented Sep 10, 2024

okay, I'll focus on the other way I get the same error then (changing window state), since this one happens even when I don't use Proton-GE, and work from there.

@layercak3
Copy link

Does using wined3d avoid the issue?

@matte-schwartz
Copy link

@layercak3 in my case yes, passing WINED3D does seem to avoid the issue I was seeing. I still haven't figured out what makes SteamOS so special in this regard though to work OOTB

@matte-schwartz
Copy link

matte-schwartz commented Sep 11, 2024

@TintedKiwi Do you have a lib32-gamescope package? I was finally able to find out why my Sabbat of the Witch kept crashing when changing the window state, and it was because: 1. I had the WSI layer disabled and 2. I did not have /usr/lib32/libVkLayer_FROG_gamescope_wsi_x86.so or /usr/share/vulkan/implicit_layer.d/VkLayer_FROG_gamescope_wsi.x86.json

after changing both of those things and running the game with GAMESCOPE_ENABLE_WSI=1 gamescope -f -- %command% I have not been able to get it to crash again yet.

EDIT: realizing now Arch doesn't even package lib32-gamescope... you can try Valve's package since it's only the layers https://steamdeck-packages.steamos.cloud/archlinux-mirror/jupiter-main/os/x86_64/lib32-gamescope-3.14.11-1-x86_64.pkg.tar.zst and ignore the fact its an older gamescope version - shouldn't matter in this case.

@layercak3
Copy link

Try using (enter/exit scene, etc.) other d3d9 KiriKiri-based applications. Installing and using a lib32 WSI seems to prevent it in some places but not others.

@matte-schwartz
Copy link

@layercak3 happen to know any titles off hand that are on steam? not sure I own any more than this... maybe resident d3d9 expert @Joshua-Ashton can take a look.

@TintedKiwi
Copy link
Author

@matte-schwartz I've recompiled gamescope from the latest git commit and installed the lib32-gamescope package you mentioned.

I tested with my self-compiled proton GE 9-13 build and ran the game with GAMESCOPE_ENABLE_WSI=1 gamescope -f -- %command%.

The crash at startup, switching to windowed -> fullscreen -> windowed crash and the game freezing after the prologue video is played/skipped don't happen anymore.

However there are now some visual issues with certain confirmation prompts like when opening settings -> Title Screen, and Quit from the home screen. It flashes the prompt rapidly for a few milliseconds before displaying it, the same happens when the prompt closes.

This happens regardless of WSI layer enabled or not.

After the prologue video is played/skipped the flashing is worse as it flashes with some white background as well.

I've tried without lib32-gamescope installed, the prompt flashing is gone but then the freeze issue returns.

I also tried running with wined3d (with and without lib32-gamescope installed) but that reintroduces the freezing issue as well.

Proton Log

System Log

@matte-schwartz
Copy link

Thanks for the detailed info @TintedKiwi sounds like this will be a fun issue for a dev to pick apart...

@TintedKiwi
Copy link
Author

TintedKiwi commented Sep 11, 2024

@matte-schwartz the plot thickens unfortunately. Using my usual gamescope + mangohud launch options with lib32-gamemode installed and WSI layer enabled/disabled introduces a new issue.

My launch options are:

GAMESCOPE_ENABLE_WSI=1 LD_PRELOAD="" MANGOHUD=1 gamescope --expose-wayland -f -W 2560 -H 1440 -r 144 --mangoapp %command%

Immediately following startup this window is shown and the game freezes:

Screenshot_20240911_214831

Proton Log

System Log

Without lib32-gamemode installed the game crashes the moment the prologue video is played.

Proton Log

System Log

edit: the --expose-wayland flag is the cause.

@matte-schwartz
Copy link

matte-schwartz commented Sep 11, 2024 via email

@TintedKiwi
Copy link
Author

Seems that the --expose-wayland flag was the culprit. Is this flag even needed anymore nowadays?

@matte-schwartz
Copy link

@TintedKiwi probably worth a re-test with ddf0d76 to see if it fixes any of the weird behavior for you.

also, --expose-wayland is just for wayland client windows afaik and should not be necessary most of the time

@TintedKiwi
Copy link
Author

@matte-schwartz I've been unable to run anything at all using gamescope (3.14) on my dGPU the past few days.
Seems to be some nvidia issue with the recent vulkan updates as I've had to switch to the opengl renderer for some of my gtk flatpak apps to get them to run at all.

I rebuilt my gamescope-git package and tried that but still no luck with and without the WSI layer enabled.

Using these launch options:

ENABLE_GAMESCOPE_WSI=1 LD_PRELOAD="" gamescope -f -W 2560 -H 1440 -r 144 -- %command%

System log shows 3 Vulkan errors:

Sep 24 16:00:21 L2PWH2JIZP steam[43236]: Adding process 47801 for gameID 888790
Sep 24 16:00:21 L2PWH2JIZP steam[43236]: ATTENTION: default value of option vk_khr_present_wait overridden by environment.
Sep 24 16:00:21 L2PWH2JIZP steam[43236]: [gamescope] [Info]  vulkan: selecting physical device 'NVIDIA GeForce RTX 3060 Laptop GPU': queue family 2 (general queue family 0)
Sep 24 16:00:21 L2PWH2JIZP steam[43236]: [gamescope] [Info]  vulkan: physical device supports DRM format modifiers
Sep 24 16:00:21 L2PWH2JIZP steam[43236]: [Gamescope WSI] Forcing on VK_EXT_swapchain_maintenance1.
Sep 24 16:00:21 L2PWH2JIZP steam[43236]: Fossilize INFO: Overriding serialization path: "/home/tintedkiwi/.local/share/Steam/steamapps/shadercache/888790/fozpipelinesv6/steamapprun_pipeline_cache".
Sep 24 16:00:21 L2PWH2JIZP steam[43236]: [gamescope] [Info]  wlserver: [backend/headless/backend.c:67] Creating headless backend
Sep 24 16:00:21 L2PWH2JIZP steam[43236]: [gamescope] [Info]  xdg_backend: Seat name:
Sep 24 16:00:21 L2PWH2JIZP steam[43236]: [gamescope] [Error] vulkan: vkGetPhysicalDeviceFormatProperties2 returned zero modifiers for DRM format 0x38344241 (VkResult: 0)
Sep 24 16:00:21 L2PWH2JIZP steam[43236]: [gamescope] [Error] vulkan: vkGetPhysicalDeviceFormatProperties2 returned zero modifiers for DRM format 0x38344258 (VkResult: 0)
Sep 24 16:00:21 L2PWH2JIZP steam[43236]: [gamescope] [Info]  vulkan: supported DRM formats for sampling usage:
Sep 24 16:00:21 L2PWH2JIZP steam[43236]: [gamescope] [Info]  vulkan:   AR24 (0x34325241)
Sep 24 16:00:21 L2PWH2JIZP steam[43236]: [gamescope] [Info]  vulkan:   XR24 (0x34325258)
Sep 24 16:00:21 L2PWH2JIZP steam[43236]: [gamescope] [Info]  vulkan:   AB24 (0x34324241)
Sep 24 16:00:21 L2PWH2JIZP steam[43236]: [gamescope] [Info]  vulkan:   XB24 (0x34324258)
Sep 24 16:00:21 L2PWH2JIZP steam[43236]: [gamescope] [Info]  vulkan:   RG16 (0x36314752)
Sep 24 16:00:21 L2PWH2JIZP steam[43236]: [gamescope] [Info]  vulkan:   NV12 (0x3231564E)
Sep 24 16:00:21 L2PWH2JIZP steam[43236]: [gamescope] [Info]  vulkan:   AB4H (0x48344241)
Sep 24 16:00:21 L2PWH2JIZP steam[43236]: [gamescope] [Info]  vulkan:   XB4H (0x48344258)
Sep 24 16:00:21 L2PWH2JIZP steam[43236]: [gamescope] [Info]  vulkan:   AB30 (0x30334241)
Sep 24 16:00:21 L2PWH2JIZP steam[43236]: [gamescope] [Info]  vulkan:   AR30 (0x30335241)
Sep 24 16:00:21 L2PWH2JIZP steam[43236]: [gamescope] [Info]  vulkan:   XR30 (0x30335258)
Sep 24 16:00:21 L2PWH2JIZP steam[43236]: gamescope: ../src/rendervulkan.cpp:2139: bool CVulkanTexture::BInit(uint32_t, uint32_t, uint32_t, uint32_t, createFlags, wlr_dmabuf_attributes*, uint32_t, uint32_t, CVulkanTexture*, gamescope::OwningRc<gamescope::IBackendFb>): Assertion `modifiers.size() > 0' failed.
Sep 24 16:00:21 L2PWH2JIZP steam[43236]: Uploaded AppInterfaceStats to Steam
Sep 24 16:00:21 L2PWH2JIZP steam[43236]: Removing process 47801 for gameID 888790

@TintedKiwi
Copy link
Author

@matte-schwartz nevermind, rebuilding the nvidia dkms modules fixed it.
Thanks, everything works fine now on gamescope-git with and without the WSI layer enabled.

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

No branches or pull requests

3 participants