gamescope icon indicating copy to clipboard operation
gamescope copied to clipboard

Cannot start gamescope, will crash during startup

Open Shiroiame-Kusu opened this issue 6 months ago • 12 comments

Is there an existing issue for this?

  • [x] I have searched the existing issues

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

  • [x] The issue occurs on upstream gamescope without any modifications

Current Behavior

create a window and then exit.

Steps To Reproduce

execute

gamescope -- vkcube

Hardware information

- Distro: Kali GNU/Linux Rolling 2025.1
- CPU: 16-core 13th Gen Intel Core i9-13980HX
- GPU: NVIDIA Corporation AD107M [GeForce RTX 4060 Max-Q / Mobile]
- Driver Version: NVIDIA 575.64.03

Software information

- Desktop environment: xfce4
- Session type: x11
- Gamescope version: gamescope version 3.16.14-5-g875a4e0 (clang 19.1.7)
- Gamescope launch command(s): gamescope -- %command%

Which gamescope backends have the issue you are reporting?

  • [x] Wayland (default for nested gamescope)
  • [ ] DRM (default for embedded gamescope, i.e. gamescope-session)
  • [ ] SDL
  • [ ] OpenVR

Logging, screenshots, or anything else

wlroots 0.18.0

    drm-backend     : NO
    x11-backend     : NO
    libinput-backend: YES
    xwayland        : YES
    gles2-renderer  : NO
    vulkan-renderer : NO
    gbm-allocator   : NO
    session         : YES
    color-management: YES
    xcb-errors      : YES
    egl             : NO
    libliftoff      : NO

gamescope undefined

  Subprojects
    glm       : YES
    libliftoff: YES
    openvr    : YES
    stb       : YES
    vkroots   : YES
    wlroots   : YES
┌──(hakuu㉿Kusunoki-Laptop)-[~/gamescope]
└─$ build/src/gamescope -- vkcube
[gamescope] [Info]  console: gamescope version 3.16.14-5-g875a4e0 (clang 19.1.7)
[gamescope] [Info]  scriptmgr: Loading scripts from: '/usr/local/share/gamescope/scripts'
[gamescope] [Info]  scriptmgr: Loading scripts from: '/usr/local/share/gamescope/scripts/00-gamescope'
[gamescope] [Info]  scriptmgr: Loading scripts from: '/usr/local/share/gamescope/scripts/00-gamescope/common'
[gamescope] [Info]  scriptmgr: Running script file '/usr/local/share/gamescope/scripts/00-gamescope/common/inspect.lua' (id: 0)
[gamescope] [Info]  scriptmgr: Running script file '/usr/local/share/gamescope/scripts/00-gamescope/common/modegen.lua' (id: 1)
[gamescope] [Info]  scriptmgr: Running script file '/usr/local/share/gamescope/scripts/00-gamescope/common/util.lua' (id: 2)
[gamescope] [Info]  scriptmgr: Loading scripts from: '/usr/local/share/gamescope/scripts/00-gamescope/displays'
[gamescope] [Info]  scriptmgr: Running script file '/usr/local/share/gamescope/scripts/00-gamescope/displays/asus.rogally.lcd.lua' (id: 3)
[gamescope] [Info]  scriptmgr: Running script file '/usr/local/share/gamescope/scripts/00-gamescope/displays/deckhd.steamdeck.deckhd-lcd.lua' (id: 4)
[gamescope] [Info]  scriptmgr: Running script file '/usr/local/share/gamescope/scripts/00-gamescope/displays/valve.steamdeck.lcd.lua' (id: 5)
[gamescope] [Info]  scriptmgr: Running script file '/usr/local/share/gamescope/scripts/00-gamescope/displays/valve.steamdeck.oled.lua' (id: 6)
[gamescope] [Info]  scriptmgr: Loading scripts from: '/etc/gamescope/scripts'
[gamescope] [Warn]  scriptmgr: Directory '/etc/gamescope/scripts' does not exist
[gamescope] [Info]  scriptmgr: Loading scripts from: '/home/hakuu/.config/gamescope/scripts'
[gamescope] [Warn]  scriptmgr: Directory '/home/hakuu/.config/gamescope/scripts' does not exist
[gamescope] [Info]  vulkan: selecting physical device 'NVIDIA GeForce RTX 4060 Laptop GPU': 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] [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]  vulkan: Creating Gamescope nested swapchain with format 44 and colorspace 0
[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:66] Failed to bind socket @/tmp/.X11-unix/X0: Address already in use
[gamescope] [Info]  wlserver: [xwayland/server.c:107] Starting Xwayland on :1
[gamescope] [Info]  pipewire: stream state changed: connecting
[gamescope] [Info]  pipewire: stream state changed: paused
[gamescope] [Info]  pipewire: stream available on node ID: 124
[gamescope] [Info]  vblank: Using timerfd.
[gamescope] [Warn]  launch: Failed to open systemd message bus, there will be no cgroup protection for focused windows.

[gamescope] [Info]  vulkan: Creating Gamescope nested swapchain with format 44 and colorspace 0
Selected WSI platform: xcb
[2025-07-09 14:10:16.627] [MANGOHUD] [error] [overlay_params.cpp:148] Unrecognized key: '=Shift_L'
[Gamescope WSI] Application info:
  pApplicationName: vkcube
  applicationVersion: 0
  pEngineName: vkcube
  engineVersion: 0
  apiVersion: 4194304
[Gamescope WSI] Executable name: vkcube
[Gamescope WSI] Creating Gamescope surface: xid: 0x600000
[Gamescope WSI] Atom of T was wrong type. Expected XCB_ATOM_CARDINAL.
[Gamescope WSI] Atom of T was wrong type. Expected XCB_ATOM_CARDINAL.
[Gamescope WSI] Made gamescope surface for xid: 0x600000
[Gamescope WSI] Surface state:
  steam app id:                  0
  window xid:                    0x600000
  wayland surface res id:        8
  layer client flags:            0x0
  server hdr output enabled:     false
  hdr formats exposed to client: false
Selected GPU 0: NVIDIA GeForce RTX 4060 Laptop GPU, type: DiscreteGpu
[Gamescope WSI] Forcing on VK_EXT_swapchain_maintenance1.
[gamescope] [Warn]  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
[Gamescope WSI] Creating swapchain for xid: 0x600000 - minImageCount: 3 - format: VK_FORMAT_B8G8R8A8_UNORM - colorspace: VK_COLOR_SPACE_SRGB_NONLINEAR_KHR - flip: true
[Gamescope WSI] Created swapchain for xid: 0x600000 - imageCount: 3
[gamescope] [Info]  wlserver: [wayland] message too short, object (53), message swapchain_feedback(uuuuuus)
[gamescope] [Info]  wlserver: [wayland] error in client communication (pid 312146)
wl_display#1: error 1: invalid arguments for gamescope_swapchain#53.swapchain_feedback
[Gamescope WSI] Creating Gamescope surface: xid: 0x600000
[Gamescope WSI] Failed to get Wayland objects
vkcube: ./cube/cube.c:4499: demo_create_surface: Assertion `!err' failed.
[gamescope] [Info]  launch: Primary child shut down!
terminate called without an active exception
(EE) failed to read Wayland events: Broken pipe
zsh: IOT instruction (core dumped)  build/src/gamescope -- vkcube
┌──(hakuu㉿Kusunoki-Laptop)-[~/gamescope]
└─$ sudo coredumpctl dump        
           PID: 312121 (gamescope-wl)
           UID: 1000 (hakuu)
           GID: 1000 (hakuu)
        Signal: 6 (ABRT)
     Timestamp: Wed 2025-07-09 14:10:17 CST (5min ago)
  Command Line: build/src/gamescope -- vkcube
    Executable: /home/hakuu/gamescope/build/src/gamescope
 Control Group: /user.slice/user-1000.slice/session-10.scope
          Unit: session-10.scope
         Slice: user-1000.slice
       Session: 10
     Owner UID: 1000 (hakuu)
       Boot ID: 001876e3842840b38964938a18cb18cd
    Machine ID: 41be07a03aff4807abcbc663b195b146
      Hostname: Kusunoki-Laptop
       Storage: /var/lib/systemd/coredump/core.gamescope-wl.1000.001876e3842840b38964938a18cb18cd.312121.1752041417000000.zst (present)
  Size on Disk: 5.1M
       Message: Process 312121 (gamescope-wl) of user 1000 dumped core.
                
                Module libuuid.so.1 from deb util-linux-2.41-5.amd64
                Module libatomic.so.1 from deb gcc-14-14.2.0-19.amd64
                Module libgcc_s.so.1 from deb gcc-14-14.2.0-19.amd64
                Module libstdc++.so.6 from deb gcc-14-14.2.0-19.amd64
                Module libsystemd.so.0 from deb systemd-257.6-1.amd64
                Module libudev.so.1 from deb systemd-257.6-1.amd64
                Stack trace of thread 312143:
                #0  0x00007fc14c7ae95c n/a (libc.so.6 + 0x9495c)
                #1  0x00007fc14c759cc2 raise (libc.so.6 + 0x3fcc2)
                #2  0x00007fc14c7424ac abort (libc.so.6 + 0x284ac)
                #3  0x00007fc14caa1a3d n/a (libstdc++.so.6 + 0xa1a3d)
                #4  0x00007fc14cab344a n/a (libstdc++.so.6 + 0xb344a)
                #5  0x00007fc14caa15e9 _ZSt9terminatev (libstdc++.so.6 + 0xa15e9)
                #6  0x000055ead21be307 _ZSt11__terminatev (/home/hakuu/gamescope/build/src/gamescope + 0x307307)
                #7  0x000055ead23a93d6 _ZN9gamescope11CSDLBackendD2Ev (/home/hakuu/gamescope/build/src/gamescope + 0x4f23d6)
                #8  0x000055ead23a941e _ZN9gamescope11CSDLBackendD0Ev (/home/hakuu/gamescope/build/src/gamescope + 0x4f241e)
                #9  0x000055ead2354d17 _ZN9gamescope8IBackend3SetEPS0_ (/home/hakuu/gamescope/build/src/gamescope + 0x49dd17)
                #10 0x000055ead224457b steamcompmgr_exit (/home/hakuu/gamescope/build/src/gamescope + 0x38d57b)
                #11 0x000055ead224b2e5 _Z17steamcompmgr_mainiPPc (/home/hakuu/gamescope/build/src/gamescope + 0x3942e5)
                #12 0x000055ead22a2ddf steamCompMgrThreadRun (/home/hakuu/gamescope/build/src/gamescope + 0x3ebddf)
                #13 0x000055ead22a3e75 _ZSt13__invoke_implIvPFviPPcEJiS1_EET_St14__invoke_otherOT0_DpOT1_ (/home/hakuu/gamescope/build/src/gamescope + 0x3ece75)
                #14 0x000055ead22a3db6 _ZSt8__invokeIPFviPPcEJiS1_EENSt15__invoke_resultIT_JDpT0_EE4typeEOS5_DpOS6_ (/home/hakuu/gamescope/build/src/gamescope + 0x3ecdb6)
                #15 0x000055ead22a3ce9 _ZNSt6thread8_InvokerISt5tupleIJPFviPPcEiS3_EEE9_M_invokeIJLm0ELm1ELm2EEEEvSt12_Index_tupleIJXspT_EEE (/home/hakuu/gamescope/build/src/gamescope + 0x3ecce9)
                #16 0x000055ead22a3c86 _ZNSt6thread8_InvokerISt5tupleIJPFviPPcEiS3_EEEclEv (/home/hakuu/gamescope/build/src/gamescope + 0x3ecc86)
                #17 0x000055ead22a3c6a _ZNSt6thread11_State_implINS_8_InvokerISt5tupleIJPFviPPcEiS4_EEEEE6_M_runEv (/home/hakuu/gamescope/build/src/gamescope + 0x3ecc6a)
                #18 0x00007fc14cae1224 n/a (libstdc++.so.6 + 0xe1224)
                #19 0x00007fc14c7acb7b n/a (libc.so.6 + 0x92b7b)
                #20 0x00007fc14c82a7b8 n/a (libc.so.6 + 0x1107b8)
                
                Stack trace of thread 312121:
                #0  0x00007fc14c7b49ee n/a (libc.so.6 + 0x9a9ee)
                #1  0x00007fc14c7a9668 n/a (libc.so.6 + 0x8f668)
                #2  0x00007fc14c7a96ad n/a (libc.so.6 + 0x8f6ad)
                #3  0x00007fc14c81d9c6 __poll (libc.so.6 + 0x1039c6)
                #4  0x000055ead22ad237 _Z12wlserver_runv (/home/hakuu/gamescope/build/src/gamescope + 0x3f6237)
                #5  0x000055ead22a2d56 main (/home/hakuu/gamescope/build/src/gamescope + 0x3ebd56)
                #6  0x00007fc14c743ca8 n/a (libc.so.6 + 0x29ca8)
                #7  0x00007fc14c743d65 __libc_start_main (libc.so.6 + 0x29d65)
                #8  0x000055ead218a8b1 _start (/home/hakuu/gamescope/build/src/gamescope + 0x2d38b1)
                
                Stack trace of thread 312124:
                #0  0x00007fc14c7b49ee n/a (libc.so.6 + 0x9a9ee)
                #1  0x00007fc14c7a9668 n/a (libc.so.6 + 0x8f668)
                #2  0x00007fc14c7a96ad n/a (libc.so.6 + 0x8f6ad)
                #3  0x00007fc14c81d9c6 __poll (libc.so.6 + 0x1039c6)
                #4  0x00007fc14d37d887 n/a (libSDL2-2.0.so.0 + 0x15e887)
                #5  0x00007fc14d333c16 n/a (libSDL2-2.0.so.0 + 0x114c16)
                #6  0x00007fc14d2788a6 n/a (libSDL2-2.0.so.0 + 0x598a6)
                #7  0x000055ead23a694e _ZN9gamescope11CSDLBackend13SDLThreadFuncEv (/home/hakuu/gamescope/build/src/gamescope + 0x4ef94e)
                #8  0x000055ead23a5005 _ZZN9gamescope11CSDLBackendC4EvENKUlvE_clEv (/home/hakuu/gamescope/build/src/gamescope + 0x4ee005)
                #9  0x000055ead23a70b4 __invoke_impl<void, gamescope::CSDLBackend::CSDLBackend()::<lambda()> > (/home/hakuu/gamescope/build/src/gamescope + 0x4f00b4)
                #10 0x000055ead23a7077 __invoke<gamescope::CSDLBackend::CSDLBackend()::<lambda()> > (/home/hakuu/gamescope/build/src/gamescope + 0x4f0077)
                #11 0x000055ead23a7024 _M_invoke<0> (/home/hakuu/gamescope/build/src/gamescope + 0x4f0024)
                #12 0x000055ead23a6ff8 operator() (/home/hakuu/gamescope/build/src/gamescope + 0x4efff8)
                #13 0x000055ead23a6fdc _M_run (/home/hakuu/gamescope/build/src/gamescope + 0x4effdc)
                #14 0x00007fc14cae1224 n/a (libstdc++.so.6 + 0xe1224)
                #15 0x00007fc14c7acb7b n/a (libc.so.6 + 0x92b7b)
                #16 0x00007fc14c82a7b8 n/a (libc.so.6 + 0x1107b8)
                
                Stack trace of thread 312123:
                #0  0x00007fc14c7b49ee n/a (libc.so.6 + 0x9a9ee)
                #1  0x00007fc14c7a9668 n/a (libc.so.6 + 0x8f668)
                #2  0x00007fc14c7a96ad n/a (libc.so.6 + 0x8f6ad)
                #3  0x00007fc14c82aa6d epoll_wait (libc.so.6 + 0x110a6d)
                #4  0x000055ead225adf1 _ZN9gamescope7CWaiterILm1024EE10PollEventsEi (/home/hakuu/gamescope/build/src/gamescope + 0x3a3df1)
                #5  0x000055ead22bb294 _ZN9gamescope12CAsyncWaiterINS_11CRawPointerINS_9IWaitableEEELm1024EE16WaiterThreadFuncEPKc (/home/hakuu/gamescope/build/src/gamescope + 0x404294)
                #6  0x000055ead22b67fa _ZZN9gamescope12CAsyncWaiterINS_11CRawPointerINS_9IWaitableEEELm1024EEC4EPKcENKUlvE_clEv (/home/hakuu/gamescope/build/src/gamescope + 0x3ff7fa)
                #7  0x000055ead22ca97d _ZSt13__invoke_implIvZN9gamescope12CAsyncWaiterINS0_11CRawPointerINS0_9IWaitableEEELm1024EEC4EPKcEUlvE_JEET_St14__invoke_otherOT0_DpOT1_ (/home/hakuu/gamescope/build/src/gamescope + 0x41397d)
                #8  0x000055ead22ca907 _ZSt8__invokeIZN9gamescope12CAsyncWaiterINS0_11CRawPointerINS0_9IWaitableEEELm1024EEC4EPKcEUlvE_JEENSt15__invoke_resultIT_JDpT0_EE4typeEOSA_DpOSB_ (/home/hakuu/gamescope/build/src/gamescope + 0x413907)
                #9  0x000055ead22ca848 _ZNSt6thread8_InvokerISt5tupleIJZN9gamescope12CAsyncWaiterINS2_11CRawPointerINS2_9IWaitableEEELm1024EEC4EPKcEUlvE_EEE9_M_invokeIJLm0EEEEvSt12_Index_tupleIJXspT_EEE (/home/hakuu/gamescope/build/src/gamescope + 0x413848)
                #10 0x000055ead22ca754 _ZNSt6thread8_InvokerISt5tupleIJZN9gamescope12CAsyncWaiterINS2_11CRawPointerINS2_9IWaitableEEELm1024EEC4EPKcEUlvE_EEEclEv (/home/hakuu/gamescope/build/src/gamescope + 0x413754)
                #11 0x000055ead22ca526 _ZNSt6thread11_State_implINS_8_InvokerISt5tupleIJZN9gamescope12CAsyncWaiterINS3_11CRawPointerINS3_9IWaitableEEELm1024EEC4EPKcEUlvE_EEEEE6_M_runEv (/home/hakuu/gamescope/build/src/gamescope + 0x413526)
                #12 0x00007fc14cae1224 n/a (libstdc++.so.6 + 0xe1224)
                #13 0x00007fc14c7acb7b n/a (libc.so.6 + 0x92b7b)
                #14 0x00007fc14c82a7b8 n/a (libc.so.6 + 0x1107b8)
                
                Stack trace of thread 312134:
                #0  0x00007fc13caf8f9a n/a (libnvidia-glvkspirv.so.575.64.03 + 0xf8f9a)
                #1  0x00007fc13ce17f07 n/a (libnvidia-glvkspirv.so.575.64.03 + 0x417f07)
                #2  0x00007fc13cd4ea1d n/a (libnvidia-glvkspirv.so.575.64.03 + 0x34ea1d)
                #3  0x00007fc13cd52e8e n/a (libnvidia-glvkspirv.so.575.64.03 + 0x352e8e)
                #4  0x00007fc13cd3d75c n/a (libnvidia-glvkspirv.so.575.64.03 + 0x33d75c)
                #5  0x00007fc13cd5856f n/a (libnvidia-glvkspirv.so.575.64.03 + 0x35856f)
                #6  0x00007fc13cd3c946 n/a (libnvidia-glvkspirv.so.575.64.03 + 0x33c946)
                #7  0x00007fc13cd5856f n/a (libnvidia-glvkspirv.so.575.64.03 + 0x35856f)
                #8  0x00007fc13ced840f n/a (libnvidia-glvkspirv.so.575.64.03 + 0x4d840f)
                #9  0x00007fc13ce6d1b5 n/a (libnvidia-glvkspirv.so.575.64.03 + 0x46d1b5)
                #10 0x00007fc13ce6f0b1 n/a (libnvidia-glvkspirv.so.575.64.03 + 0x46f0b1)
                #11 0x00007fc13ce6f87f n/a (libnvidia-glvkspirv.so.575.64.03 + 0x46f87f)
                #12 0x00007fc13cdbd59d n/a (libnvidia-glvkspirv.so.575.64.03 + 0x3bd59d)
                #13 0x00007fc13cdbd5f3 n/a (libnvidia-glvkspirv.so.575.64.03 + 0x3bd5f3)
                #14 0x00007fc13cdbc7cf n/a (libnvidia-glvkspirv.so.575.64.03 + 0x3bc7cf)
                #15 0x00007fc13cac67c2 n/a (libnvidia-glvkspirv.so.575.64.03 + 0xc67c2)
                #16 0x00007fc13cab8fb0 n/a (libnvidia-glvkspirv.so.575.64.03 + 0xb8fb0)
                #17 0x00007fc13cabecd6 _nv002nvvm (libnvidia-glvkspirv.so.575.64.03 + 0xbecd6)
                #18 0x00007fc142a9db10 n/a (libnvidia-glcore.so.575.64.03 + 0xe9db10)
                #19 0x00007fc142b9df3e n/a (libnvidia-glcore.so.575.64.03 + 0xf9df3e)
                #20 0x00007fc142aa2831 n/a (libnvidia-glcore.so.575.64.03 + 0xea2831)
                #21 0x00007fc142bc614d n/a (libnvidia-glcore.so.575.64.03 + 0xfc614d)
                #22 0x00007fc142aa2ef9 n/a (libnvidia-glcore.so.575.64.03 + 0xea2ef9)
                #23 0x00007fc142aa3774 n/a (libnvidia-glcore.so.575.64.03 + 0xea3774)
                #24 0x00007fc142bae830 n/a (libnvidia-glcore.so.575.64.03 + 0xfae830)
                #25 0x00007fc142948095 n/a (libnvidia-glcore.so.575.64.03 + 0xd48095)
                #26 0x000055ead22d24fe _ZN13CVulkanDevice15compilePipelineEjj10ShaderTypejjjjb (/home/hakuu/gamescope/build/src/gamescope + 0x41b4fe)
                #27 0x000055ead22d2800 _ZN13CVulkanDevice19compileAllPipelinesEv (/home/hakuu/gamescope/build/src/gamescope + 0x41b800)
                #28 0x000055ead22ce937 _ZZN13CVulkanDevice5BInitEP12VkInstance_TP14VkSurfaceKHR_TENKUlvE_clEv (/home/hakuu/gamescope/build/src/gamescope + 0x417937)
                #29 0x000055ead22de9ca __invoke_impl<void, CVulkanDevice::BInit(VkInstance, VkSurfaceKHR)::<lambda()> > (/home/hakuu/gamescope/build/src/gamescope + 0x4279ca)
                #30 0x000055ead22de98d __invoke<CVulkanDevice::BInit(VkInstance, VkSurfaceKHR)::<lambda()> > (/home/hakuu/gamescope/build/src/gamescope + 0x42798d)
                #31 0x000055ead22de93a _M_invoke<0> (/home/hakuu/gamescope/build/src/gamescope + 0x42793a)
                #32 0x000055ead22de90e operator() (/home/hakuu/gamescope/build/src/gamescope + 0x42790e)
                #33 0x000055ead22de8f2 _M_run (/home/hakuu/gamescope/build/src/gamescope + 0x4278f2)
                #34 0x00007fc14cae1224 n/a (libstdc++.so.6 + 0xe1224)
                #35 0x00007fc14c7acb7b n/a (libc.so.6 + 0x92b7b)
                #36 0x00007fc14c82a7b8 n/a (libc.so.6 + 0x1107b8)
                
                Stack trace of thread 312128:
                #0  0x00007fc14c7b49ee n/a (libc.so.6 + 0x9a9ee)
                #1  0x00007fc14c7a9668 n/a (libc.so.6 + 0x8f668)
                #2  0x00007fc14c7a9c9c n/a (libc.so.6 + 0x8fc9c)
                #3  0x00007fc14c7ac158 pthread_cond_wait (libc.so.6 + 0x92158)
                #4  0x00007fc14261eacc n/a (libnvidia-glcore.so.575.64.03 + 0xa1eacc)
                #5  0x00007fc142a678a5 n/a (libnvidia-glcore.so.575.64.03 + 0xe678a5)
                #6  0x00007fc14261ece4 n/a (libnvidia-glcore.so.575.64.03 + 0xa1ece4)
                #7  0x00007fc14c7acb7b n/a (libc.so.6 + 0x92b7b)
                #8  0x00007fc14c82a7b8 n/a (libc.so.6 + 0x1107b8)
                
                Stack trace of thread 312127:
                #0  0x00007fc14c7b49ee n/a (libc.so.6 + 0x9a9ee)
                #1  0x00007fc14c7a9668 n/a (libc.so.6 + 0x8f668)
                #2  0x00007fc14c7a9c9c n/a (libc.so.6 + 0x8fc9c)
                #3  0x00007fc14c7ac31d pthread_cond_timedwait (libc.so.6 + 0x9231d)
                #4  0x00007fc14261eb2c n/a (libnvidia-glcore.so.575.64.03 + 0xa1eb2c)
                #5  0x00007fc142a7d3f2 n/a (libnvidia-glcore.so.575.64.03 + 0xe7d3f2)
                #6  0x00007fc14261ece4 n/a (libnvidia-glcore.so.575.64.03 + 0xa1ece4)
                #7  0x00007fc14c7acb7b n/a (libc.so.6 + 0x92b7b)
                #8  0x00007fc14c82a7b8 n/a (libc.so.6 + 0x1107b8)
                
                Stack trace of thread 312126:
                #0  0x00007fc14c7b49ee n/a (libc.so.6 + 0x9a9ee)
                #1  0x00007fc14c7a9668 n/a (libc.so.6 + 0x8f668)
                #2  0x00007fc14c7a9c9c n/a (libc.so.6 + 0x8fc9c)
                #3  0x00007fc14c7ac31d pthread_cond_timedwait (libc.so.6 + 0x9231d)
                #4  0x00007fc14261eb2c n/a (libnvidia-glcore.so.575.64.03 + 0xa1eb2c)
                #5  0x00007fc142a6f7a1 n/a (libnvidia-glcore.so.575.64.03 + 0xe6f7a1)
                #6  0x00007fc14261ece4 n/a (libnvidia-glcore.so.575.64.03 + 0xa1ece4)
                #7  0x00007fc14c7acb7b n/a (libc.so.6 + 0x92b7b)
                #8  0x00007fc14c82a7b8 n/a (libc.so.6 + 0x1107b8)
                
                Stack trace of thread 312130:
                #0  0x00007fc14c7b49ee n/a (libc.so.6 + 0x9a9ee)
                #1  0x00007fc14c7a9668 n/a (libc.so.6 + 0x8f668)
                #2  0x00007fc14c7a9c9c n/a (libc.so.6 + 0x8fc9c)
                #3  0x00007fc14c7ac31d pthread_cond_timedwait (libc.so.6 + 0x9231d)
                #4  0x00007fc14261eb2c n/a (libnvidia-glcore.so.575.64.03 + 0xa1eb2c)
                #5  0x00007fc142a4f92d n/a (libnvidia-glcore.so.575.64.03 + 0xe4f92d)
                #6  0x00007fc14261ece4 n/a (libnvidia-glcore.so.575.64.03 + 0xa1ece4)
                #7  0x00007fc14c7acb7b n/a (libc.so.6 + 0x92b7b)
                #8  0x00007fc14c82a7b8 n/a (libc.so.6 + 0x1107b8)
                
                Stack trace of thread 312133:
                #0  0x00007fc14c7b49ee n/a (libc.so.6 + 0x9a9ee)
                #1  0x00007fc14c7a9668 n/a (libc.so.6 + 0x8f668)
                #2  0x00007fc14c7a9c9c n/a (libc.so.6 + 0x8fc9c)
                #3  0x00007fc14c7ac31d pthread_cond_timedwait (libc.so.6 + 0x9231d)
                #4  0x00007fc14261eb2c n/a (libnvidia-glcore.so.575.64.03 + 0xa1eb2c)
                #5  0x00007fc142b7f7e9 n/a (libnvidia-glcore.so.575.64.03 + 0xf7f7e9)
                #6  0x00007fc142b75556 n/a (libnvidia-glcore.so.575.64.03 + 0xf75556)
                #7  0x00007fc14261ece4 n/a (libnvidia-glcore.so.575.64.03 + 0xa1ece4)
                #8  0x00007fc14c7acb7b n/a (libc.so.6 + 0x92b7b)
                #9  0x00007fc14c82a7b8 n/a (libc.so.6 + 0x1107b8)
                
                Stack trace of thread 312135:
                #0  0x00007fc14c828779 syscall (libc.so.6 + 0x10e779)
                #1  0x000055ead21c1987 _ZNSt8__detail15__platform_waitIiEEvPKT_i (/home/hakuu/gamescope/build/src/gamescope + 0x30a987)
                #2  0x000055ead21bd6bc _ZNSt8__detail13__waiter_pool10_M_do_waitEPKii (/home/hakuu/gamescope/build/src/gamescope + 0x3066bc)
                #3  0x000055ead22f0de0 _ZNSt8__detail8__waiterISt17integral_constantIbLb1EEE12_M_do_wait_vImZNKSt13__atomic_baseImE4waitEmSt12memory_orderEUlvE_EEvT_T0_ (/home/hakuu/gamescope/build/src/gamescope + 0x439de0)
                #4  0x000055ead22eb63c _ZSt23__atomic_wait_address_vImZNKSt13__atomic_baseImE4waitEmSt12memory_orderEUlvE_EvPKT_S4_T0_ (/home/hakuu/gamescope/build/src/gamescope + 0x43463c)
                #5  0x000055ead22d8618 _ZNKSt13__atomic_baseImE4waitEmSt12memory_order (/home/hakuu/gamescope/build/src/gamescope + 0x421618)
                #6  0x000055ead228de2b _ZSt13__invoke_implIvPFvvEJEET_St14__invoke_otherOT0_DpOT1_ (/home/hakuu/gamescope/build/src/gamescope + 0x3d6e2b)
                #7  0x000055ead228dda6 _ZSt8__invokeIPFvvEJEENSt15__invoke_resultIT_JDpT0_EE4typeEOS3_DpOS4_ (/home/hakuu/gamescope/build/src/gamescope + 0x3d6da6)
                #8  0x000055ead228dcca _ZNSt6thread8_InvokerISt5tupleIJPFvvEEEE9_M_invokeIJLm0EEEEvSt12_Index_tupleIJXspT_EEE (/home/hakuu/gamescope/build/src/gamescope + 0x3d6cca)
                #9  0x000055ead228dc3c _ZNSt6thread8_InvokerISt5tupleIJPFvvEEEEclEv (/home/hakuu/gamescope/build/src/gamescope + 0x3d6c3c)
                #10 0x000055ead228db06 _ZNSt6thread11_State_implINS_8_InvokerISt5tupleIJPFvvEEEEEE6_M_runEv (/home/hakuu/gamescope/build/src/gamescope + 0x3d6b06)
                #11 0x00007fc14cae1224 n/a (libstdc++.so.6 + 0xe1224)
                #12 0x00007fc14c7acb7b n/a (libc.so.6 + 0x92b7b)
                #13 0x00007fc14c82a7b8 n/a (libc.so.6 + 0x1107b8)
                
                Stack trace of thread 312142:
                #0  0x00007fc14c7b49ee n/a (libc.so.6 + 0x9a9ee)
                #1  0x00007fc14c7a9668 n/a (libc.so.6 + 0x8f668)
                #2  0x00007fc14c7a96ad n/a (libc.so.6 + 0x8f6ad)
                #3  0x00007fc14c81d9c6 __poll (libc.so.6 + 0x1039c6)
                #4  0x000055ead23af41d run_pipewire (/home/hakuu/gamescope/build/src/gamescope + 0x4f841d)
                #5  0x000055ead23b13f8 _ZSt13__invoke_implIvPFvP14pipewire_stateEJS1_EET_St14__invoke_otherOT0_DpOT1_ (/home/hakuu/gamescope/build/src/gamescope + 0x4fa3f8)
                #6  0x000055ead23b136d _ZSt8__invokeIPFvP14pipewire_stateEJS1_EENSt15__invoke_resultIT_JDpT0_EE4typeEOS5_DpOS6_ (/home/hakuu/gamescope/build/src/gamescope + 0x4fa36d)
                #7  0x000055ead23b12dd _ZNSt6thread8_InvokerISt5tupleIJPFvP14pipewire_stateES3_EEE9_M_invokeIJLm0ELm1EEEEvSt12_Index_tupleIJXspT_EEE (/home/hakuu/gamescope/build/src/gamescope + 0x4fa2dd)
                #8  0x000055ead23b1296 _ZNSt6thread8_InvokerISt5tupleIJPFvP14pipewire_stateES3_EEEclEv (/home/hakuu/gamescope/build/src/gamescope + 0x4fa296)
                #9  0x000055ead23b127a _ZNSt6thread11_State_implINS_8_InvokerISt5tupleIJPFvP14pipewire_stateES4_EEEEE6_M_runEv (/home/hakuu/gamescope/build/src/gamescope + 0x4fa27a)
                #10 0x00007fc14cae1224 n/a (libstdc++.so.6 + 0xe1224)
                #11 0x00007fc14c7acb7b n/a (libc.so.6 + 0x92b7b)
                #12 0x00007fc14c82a7b8 n/a (libc.so.6 + 0x1107b8)
                ELF object binary architecture: AMD x86-64
Refusing to dump core to tty (use shell redirection or specify --output).
                                                                           

Shiroiame-Kusu avatar Jul 09 '25 06:07 Shiroiame-Kusu

BTW, ENABLE_GAMESCOPE_WSI=0 fix this problem(maybe?), #1796

Shiroiame-Kusu avatar Jul 09 '25 06:07 Shiroiame-Kusu

Using that option allows me to run Steam (gamescope crashes without it) but didn't let me run Turtle WoW. However, running Steam in gamescope (with that option) and then running Turtle WoW in that gamescope session works.

yaomtc avatar Jul 09 '25 19:07 yaomtc

been having what appears to be the same issue gamescope v3.16.14 cachyos 13th Gen Intel intel arc a770 intel uhd 770 runing xe graphics drivers. Gamescope only runs on wayland kwin if i add --expose-wayland is there a way to have a envirment variable that will do the same thing for steam. Its easy Gamescope --expose-wayland -f %comand% but when running wine based apps using bottles (preferred) or lutris i havent figure out how to make this work. and at least for me the environment variable ENABLE_GAMESCOPE_WSI=0 didn't solve the issue

daktras420 avatar Jul 20 '25 20:07 daktras420

below are the output when running from command line for both scenarios running vkcube

gamescope vkcube
[gamescope] [Info]  console: gamescope version 3.16.14 (gcc 15.1.1)
No CAP_SYS_NICE, falling back to regular-priority compute and threads.
Performance will be affected.
[gamescope] [Info]  scriptmgr: Loading scripts from: '/usr/share/gamescope/scripts'
[gamescope] [Info]  scriptmgr: Loading scripts from: '/usr/share/gamescope/scripts/00-gamescope'
[gamescope] [Info]  scriptmgr: Loading scripts from: '/usr/share/gamescope/scripts/00-gamescope/common'
[gamescope] [Info]  scriptmgr: Running script file '/usr/share/gamescope/scripts/00-gamescope/common/inspect.lua' (id: 0)
[gamescope] [Info]  scriptmgr: Running script file '/usr/share/gamescope/scripts/00-gamescope/common/modegen.lua' (id: 1)
[gamescope] [Info]  scriptmgr: Running script file '/usr/share/gamescope/scripts/00-gamescope/common/util.lua' (id: 2)
[gamescope] [Info]  scriptmgr: Loading scripts from: '/usr/share/gamescope/scripts/00-gamescope/displays'
[gamescope] [Info]  scriptmgr: Running script file '/usr/share/gamescope/scripts/00-gamescope/displays/asus.rogally.lcd.lua' (id: 3)
[gamescope] [Info]  scriptmgr: Running script file '/usr/share/gamescope/scripts/00-gamescope/displays/deckhd.steamdeck.deckhd-lcd.lua' (id: 4)
[gamescope] [Info]  scriptmgr: Running script file '/usr/share/gamescope/scripts/00-gamescope/displays/gpd.win4.lcd.lua' (id: 5)
[gamescope] [Info]  scriptmgr: Running script file '/usr/share/gamescope/scripts/00-gamescope/displays/lenovo.legiongo.lcd.lua' (id: 6)
[gamescope] [Info]  scriptmgr: Running script file '/usr/share/gamescope/scripts/00-gamescope/displays/lenovo.legiongos.lcd.lua' (id: 7)
[gamescope] [Info]  scriptmgr: Running script file '/usr/share/gamescope/scripts/00-gamescope/displays/valve.steamdeck.lcd.lua' (id: 8)
[gamescope] [Info]  scriptmgr: Running script file '/usr/share/gamescope/scripts/00-gamescope/displays/valve.steamdeck.oled.lua' (id: 9)
[gamescope] [Info]  scriptmgr: Loading scripts from: '/etc/gamescope/scripts'
[gamescope] [Warn]  scriptmgr: Directory '/etc/gamescope/scripts' does not exist
[gamescope] [Info]  scriptmgr: Loading scripts from: '/home/daniel/.config/gamescope/scripts'
[gamescope] [Warn]  scriptmgr: Directory '/home/daniel/.config/gamescope/scripts' does not exist
ATTENTION: default value of option vk_khr_present_wait overridden by environment.
ATTENTION: default value of option vk_khr_present_wait overridden by environment.
MESA: warning: Support for this platform is experimental with Xe KMD, bug reports may be ignored.
[gamescope] [Info]  vulkan: selecting physical device 'Intel(R) Graphics (RPL-S)': queue family 0 (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] [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:   AB48 (0x38344241)
[gamescope] [Info]  vulkan:   XB48 (0x38344258)
[gamescope] [Info]  vulkan:   AB30 (0x30334241)
[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
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Could not resolve keysym XF86RefreshRateToggle
> Warning:          Could not resolve keysym XF86Accessibility
> Warning:          Could not resolve keysym XF86DoNotDisturb
Errors from xkbcomp are not fatal to the X server
[gamescope] [Info]  pipewire: stream state changed: connecting
[gamescope] [Info]  pipewire: stream state changed: paused
[gamescope] [Info]  pipewire: stream available on node ID: 63
[gamescope] [Info]  xdg_backend: uMaxContentLightLevel: 80
[gamescope] [Info]  xdg_backend: HDR INFO
[gamescope] [Info]  xdg_backend:   cv_hdr_enabled: false
[gamescope] [Info]  xdg_backend:   uTF: GAMMA22
[gamescope] [Info]  xdg_backend:   bExposeHDRSupport: false
[gamescope] [Info]  xdg_backend: uMaxContentLightLevel: 200
[gamescope] [Info]  xdg_backend: HDR INFO
[gamescope] [Info]  xdg_backend:   cv_hdr_enabled: false
[gamescope] [Info]  xdg_backend:   uTF: GAMMA22
[gamescope] [Info]  xdg_backend:   bExposeHDRSupport: false
[gamescope] [Info]  edid: Patching res 800x1280 -> 1280x720
[gamescope] [Info]  vblank: Using timerfd.
Selected WSI platform: wayland
ATTENTION: default value of option vk_khr_present_wait overridden by environment.
ATTENTION: default value of option vk_xwayland_wait_ready overridden by environment.
ATTENTION: default value of option vk_khr_present_wait overridden by environment.
ATTENTION: default value of option vk_xwayland_wait_ready overridden by environment.
[Gamescope WSI] Application info:
  pApplicationName: vkcube
  applicationVersion: 0
  pEngineName: vkcube
  engineVersion: 0
  apiVersion: 4194304
[Gamescope WSI] Executable name: vkcube
MESA: warning: Support for this platform is experimental with Xe KMD, bug reports may be ignored.
[Gamescope WSI] Failed to get Wayland objects
[gamescope] [Info]  launch: Primary child shut down!
(EE) failed to read Wayland events: Broken pipe

~
gamescope --expose-wayland vkcube
[gamescope] [Info]  console: gamescope version 3.16.14 (gcc 15.1.1)
No CAP_SYS_NICE, falling back to regular-priority compute and threads.
Performance will be affected.
[gamescope] [Info]  scriptmgr: Loading scripts from: '/usr/share/gamescope/scripts'
[gamescope] [Info]  scriptmgr: Loading scripts from: '/usr/share/gamescope/scripts/00-gamescope'
[gamescope] [Info]  scriptmgr: Loading scripts from: '/usr/share/gamescope/scripts/00-gamescope/common'
[gamescope] [Info]  scriptmgr: Running script file '/usr/share/gamescope/scripts/00-gamescope/common/inspect.lua' (id: 0)
[gamescope] [Info]  scriptmgr: Running script file '/usr/share/gamescope/scripts/00-gamescope/common/modegen.lua' (id: 1)
[gamescope] [Info]  scriptmgr: Running script file '/usr/share/gamescope/scripts/00-gamescope/common/util.lua' (id: 2)
[gamescope] [Info]  scriptmgr: Loading scripts from: '/usr/share/gamescope/scripts/00-gamescope/displays'
[gamescope] [Info]  scriptmgr: Running script file '/usr/share/gamescope/scripts/00-gamescope/displays/asus.rogally.lcd.lua' (id: 3)
[gamescope] [Info]  scriptmgr: Running script file '/usr/share/gamescope/scripts/00-gamescope/displays/deckhd.steamdeck.deckhd-lcd.lua' (id: 4)
[gamescope] [Info]  scriptmgr: Running script file '/usr/share/gamescope/scripts/00-gamescope/displays/gpd.win4.lcd.lua' (id: 5)
[gamescope] [Info]  scriptmgr: Running script file '/usr/share/gamescope/scripts/00-gamescope/displays/lenovo.legiongo.lcd.lua' (id: 6)
[gamescope] [Info]  scriptmgr: Running script file '/usr/share/gamescope/scripts/00-gamescope/displays/lenovo.legiongos.lcd.lua' (id: 7)
[gamescope] [Info]  scriptmgr: Running script file '/usr/share/gamescope/scripts/00-gamescope/displays/valve.steamdeck.lcd.lua' (id: 8)
[gamescope] [Info]  scriptmgr: Running script file '/usr/share/gamescope/scripts/00-gamescope/displays/valve.steamdeck.oled.lua' (id: 9)
[gamescope] [Info]  scriptmgr: Loading scripts from: '/etc/gamescope/scripts'
[gamescope] [Warn]  scriptmgr: Directory '/etc/gamescope/scripts' does not exist
[gamescope] [Info]  scriptmgr: Loading scripts from: '/home/daniel/.config/gamescope/scripts'
[gamescope] [Warn]  scriptmgr: Directory '/home/daniel/.config/gamescope/scripts' does not exist
ATTENTION: default value of option vk_khr_present_wait overridden by environment.
ATTENTION: default value of option vk_khr_present_wait overridden by environment.
MESA: warning: Support for this platform is experimental with Xe KMD, bug reports may be ignored.
[gamescope] [Info]  vulkan: selecting physical device 'Intel(R) Graphics (RPL-S)': queue family 0 (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] [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:   AB48 (0x38344241)
[gamescope] [Info]  vulkan:   XB48 (0x38344258)
[gamescope] [Info]  vulkan:   AB30 (0x30334241)
[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
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Could not resolve keysym XF86RefreshRateToggle
> Warning:          Could not resolve keysym XF86Accessibility
> Warning:          Could not resolve keysym XF86DoNotDisturb
Errors from xkbcomp are not fatal to the X server
[gamescope] [Info]  pipewire: stream state changed: connecting
[gamescope] [Info]  pipewire: stream state changed: paused
[gamescope] [Info]  pipewire: stream available on node ID: 63
[gamescope] [Info]  xdg_backend: uMaxContentLightLevel: 80
[gamescope] [Info]  xdg_backend: HDR INFO
[gamescope] [Info]  xdg_backend:   cv_hdr_enabled: false
[gamescope] [Info]  xdg_backend:   uTF: GAMMA22
[gamescope] [Info]  xdg_backend:   bExposeHDRSupport: false
[gamescope] [Info]  xdg_backend: uMaxContentLightLevel: 200
[gamescope] [Info]  xdg_backend: HDR INFO
[gamescope] [Info]  xdg_backend:   cv_hdr_enabled: false
[gamescope] [Info]  xdg_backend:   uTF: GAMMA22
[gamescope] [Info]  xdg_backend:   bExposeHDRSupport: false
[gamescope] [Info]  edid: Patching res 800x1280 -> 1280x720
[gamescope] [Info]  vblank: Using timerfd.
Selected WSI platform: wayland
ATTENTION: default value of option vk_khr_present_wait overridden by environment.
ATTENTION: default value of option vk_xwayland_wait_ready overridden by environment.
ATTENTION: default value of option vk_khr_present_wait overridden by environment.
ATTENTION: default value of option vk_xwayland_wait_ready overridden by environment.
[Gamescope WSI] Application info:
  pApplicationName: vkcube
  applicationVersion: 0
  pEngineName: vkcube
  engineVersion: 0
  apiVersion: 4194304
[Gamescope WSI] Executable name: vkcube
MESA: warning: Support for this platform is experimental with Xe KMD, bug reports may be ignored.
[Gamescope WSI] Surface state:
  steam app id:                  0
  window xid:                    0x0
  wayland surface res id:        3
  layer client flags:            0x0
  server hdr output enabled:     false
  hdr formats exposed to client: false
Selected GPU 1: Intel(R) Arc(tm) A770 Graphics (DG2), type: DiscreteGpu
[Gamescope WSI] Forcing on VK_EXT_swapchain_maintenance1.
[Gamescope WSI] Creating swapchain for xid: 0x0 - oldSwapchain: (nil) - provided minImageCount: 3 - minImageCount: 3 - format: VK_FORMAT_B8G8R8A8_UNORM - colorspace: VK_COLOR_SPACE_SRGB_NONLINEAR_KHR - flip: true
[Gamescope WSI] Created swapchain for xid: 0x0 swapchain: 0x55de6dee3940 - imageCount: 3
[gamescope] [Error] xwm: NO CURSOR IMPL XDG
[gamescope] [Warn]  xwm: D-Bus call to get unit corresponding to pid 4294967295 failed!

The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Unsupported maximum keycode 708, clipping.
>                   X11 cannot support keycodes above 255.
> Warning:          Could not resolve keysym XF86RefreshRateToggle
> Warning:          Could not resolve keysym XF86Accessibility
> Warning:          Could not resolve keysym XF86DoNotDisturb
Errors from xkbcomp are not fatal to the X server
[Gamescope WSI] Swapchain recieved new refresh cycle: 16.67ms
[Gamescope WSI] Creating swapchain for xid: 0x0 - oldSwapchain: 0x55de6dee3940 - provided minImageCount: 3 - minImageCount: 3 - format: VK_FORMAT_B8G8R8A8_UNORM - colorspace: VK_COLOR_SPACE_SRGB_NONLINEAR_KHR - flip: true
[Gamescope WSI] Created swapchain for xid: 0x0 swapchain: 0x55de6deea4e0 - imageCount: 3
[Gamescope WSI] Destroying swapchain: 0x55de6dee3940
[Gamescope WSI] Destroyed swapchain: 0x55de6dee3940
[gamescope] [Error] wlserver: create_swapchain: Surface already had a gamescope_swapchain! Warning!
(EE)[gamescopereaper] [Info]  reaper: Parent of gamescopereaper was killed. Killing children.
 failed to read Wayland events: Broken pipe
[Gamescope WSI] Creating swapchain for xid: 0x0 - oldSwapchain: 0x55de6deea4e0 - provided minImageCount: 3 - minImageCount: 3 - format: VK_FORMAT_B8G8R8A8_UNORM - colorspace: VK_COLOR_SPACE_SRGB_NONLINEAR_KHR - flip: true
[Gamescope WSI] Refusing to make swapchain (unsupported VkFormat) for xid: 0x0 - format: VK_FORMAT_B8G8R8A8_UNORM - colorspace: VK_COLOR_SPACE_SRGB_NONLINEAR_KHR - flip: true
[Gamescope WSI] Destroying swapchain: 0x55de6deea4e0
[Gamescope WSI] Destroyed swapchain: 0x55de6deea4e0
[Gamescope WSI] Creating swapchain for xid: 0x0 - oldSwapchain: 0x55de6deea4e0 - provided minImageCount: 3 - minImageCount: 3 - format: VK_FORMAT_B8G8R8A8_UNORM - colorspace: VK_COLOR_SPACE_SRGB_NONLINEAR_KHR - flip: true
[Gamescope WSI] Refusing to make swapchain (unsupported VkFormat) for xid: 0x0 - format: VK_FORMAT_B8G8R8A8_UNORM - colorspace: VK_COLOR_SPACE_SRGB_NONLINEAR_KHR - flip: true
[Gamescope WSI] Destroying swapchain: 0x55de6deea4e0
[gamescope] [Info]  launch: Primary child shut down!

daktras420 avatar Jul 20 '25 20:07 daktras420

been having what appears to be the same issue gamescope v3.16.14 cachyos 13th Gen Intel intel arc a770 intel uhd 770 runing xe graphics drivers. Gamescope only runs on wayland kwin if i add --expose-wayland is there a way to have a envirment variable that will do the same thing for steam. Its easy Gamescope --expose-wayland -f %comand% but when running wine based apps using bottles (preferred) or lutris i havent figure out how to make this work. and at least for me the environment variable ENABLE_GAMESCOPE_WSI=0 didn't solve the issue

nvidia here, same issue, expose wayland fixes this otherwise it only works on glxgears

LethalManBoob avatar Jul 23 '25 14:07 LethalManBoob

Same issue here. Nothing of what has been reported as a solution has worked for me, though. It's a shame, I need gamescope or else my laptop overheats until it crashes playing WoW

Caferino avatar Aug 01 '25 04:08 Caferino

Same issue here. Saw gamescope updated to 3.16.15 last evening and now at least 2 games I checked (Elden Ring and Nightreign) just open a window and then disappear.

juliusmaximus167 avatar Aug 01 '25 13:08 juliusmaximus167

Same issue here. checked 2 games I checked (The Finals and Mass Effect Legendary Edition) just open a window and then disappear. Both games work fine without using gamescope.

  • GPU: NVIDIA GeForce RTX 3080
  • NVIDIA driver 575.64.05
  • OS: CachyOS x86_64

No longer have this issue with any game I have tried

Blxters avatar Aug 01 '25 23:08 Blxters

When THE FINALS' EAC finishes loading, it just instantly crashes. Works fine without gamescope.

MaxOhNoo avatar Aug 16 '25 18:08 MaxOhNoo

I found a fix for the case in which it shows a splash screen (like the EAC) and then it crashes without starting the game.

I work around is to launch some program that make the gamescope session alive between the splash screen and the actual game.

In practice, we can use a bash script to wrap the %command%. It executes kitty (a terminal emulator) so if there is an empty space between splash screen and the game it does maintain the session alive. I guess any other program with a window works as well.

Here the script (I have saved it in ~/Games/execs/Executor):

#!/bin/bash

# Execute kitty (or the program you prefer) to maintain the session alive
/usr/bin/kitty &
P1_PID=$!

# Execute the command passed as arguments
"$@"

# Kill the program used to maintain the session alive
kill $P1_PID


Then on steam or wherever you need to :

gamescope -W 1920 -H 1080 -- ~/Games/Executor %command%

guilty-p01nt3r avatar Aug 23 '25 18:08 guilty-p01nt3r

I found a fix for the case in which it shows a splash screen (like the EAC) and then it crashes without starting the game.

Still crashes when Alt-tabbing out of gamescope :/

awsms avatar Oct 15 '25 20:10 awsms

Same issue with Final Fantasy XVI. Splash screen is showing, then close. And nothing after that.

DaRochaRomain avatar Dec 08 '25 21:12 DaRochaRomain