ValveSoftware / gamescope

SteamOS session compositing window manager
Other
3.15k stars 213 forks source link

Can't start a game using gamescope #1453

Closed KostiukI closed 3 months ago

KostiukI commented 3 months ago

I want to start a game using gamescope through lutris, as it's otherwise graphically broken every time I switch window focus. It works fine without gamescope, however with gamescope it doesn't start. Here are the logs from Lutris:

Started initial process 10847 from gamescope -f -- gamemoderun /home/xadmin/.local/share/lutris/runners/wine/wine-ge-8-26-x86_64/bin/wine /home/xadmin/.wine/drive_c/Program Files (x86)/Frog City/Trade Empires/Trade Empires.exe
Start monitoring process.
[gamescope] [Info]  console: gamescope version 3.14.26-8-ge31b8de
No CAP_SYS_NICE, falling back to regular-priority compute and threads.
Performance will be affected.
[gamescope] [Info]  vulkan: selecting physical device 'AMD Radeon RX 580 Series (RADV POLARIS10)': queue family 1 (general queue family 0)
[gamescope] [Info]  vulkan: physical device does not support DRM format modifiers
[gamescope] [Info]  wlserver: [backend/headless/backend.c:67] Creating headless backend
[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:   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: [wayland] wl_global_create: implemented version for 'wl_shm' higher than interface version (2 > 1)
[gamescope] [Error] wlserver: [types/wlr_shm.c:536] wl_global_create failed
[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] [Error] wlserver: Gamescope built without libei, XTEST will not be available!
[gamescope] [Info]  wlserver: [xwayland/server.c:107] Starting Xwayland on :1
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Could not resolve keysym XF86CameraAccessEnable
> Warning:          Could not resolve keysym XF86CameraAccessDisable
> Warning:          Could not resolve keysym XF86CameraAccessToggle
> Warning:          Could not resolve keysym XF86NextElement
> Warning:          Could not resolve keysym XF86PreviousElement
> Warning:          Could not resolve keysym XF86AutopilotEngageToggle
> Warning:          Could not resolve keysym XF86MarkWaypoint
> Warning:          Could not resolve keysym XF86Sos
> Warning:          Could not resolve keysym XF86NavChart
> Warning:          Could not resolve keysym XF86FishingChart
> Warning:          Could not resolve keysym XF86SingleRangeRadar
> Warning:          Could not resolve keysym XF86DualRangeRadar
> Warning:          Could not resolve keysym XF86RadarOverlay
> Warning:          Could not resolve keysym XF86TraditionalSonar
> Warning:          Could not resolve keysym XF86ClearvuSonar
> Warning:          Could not resolve keysym XF86SidevuSonar
> Warning:          Could not resolve keysym XF86NavInfo
Errors from xkbcomp are not fatal to the X server
(EE) 
(EE) Backtrace:
(EE) 0: Xwayland (0x575291fd0000+0x170212) [0x575292140212]
(EE) 1: Xwayland (0x575291fd0000+0x173006) [0x575292143006]
(EE) 2: /lib/x86_64-linux-gnu/libc.so.6 (0x747edc200000+0x45320) [0x747edc245320]
(EE) 3: /lib/x86_64-linux-gnu/libwayland-client.so.0 (wl_proxy_get_version+0x4) [0x747edca4ffb4]
(EE) 4: Xwayland (0x575291fd0000+0x41782) [0x575292011782]
(EE) 5: Xwayland (0x575291fd0000+0x41abe) [0x575292011abe]
(EE) 6: Xwayland (0x575291fd0000+0x107ac7) [0x5752920d7ac7]
(EE) 7: Xwayland (0x575291fd0000+0xbb480) [0x57529208b480]
(EE) 8: Xwayland (0x575291fd0000+0xa4801) [0x575292074801]
(EE) 9: Xwayland (0x575291fd0000+0x36886) [0x575292006886]
(EE) 10: /lib/x86_64-linux-gnu/libc.so.6 (0x747edc200000+0x2a1ca) [0x747edc22a1ca]
(EE) 11: /lib/x86_64-linux-gnu/libc.so.6 (__libc_start_main+0x8b) [0x747edc22a28b]
(EE) 12: Xwayland (0x575291fd0000+0x38475) [0x575292008475]
(EE) 
(EE) Segmentation fault at address 0x40
(EE) 
Fatal server error:
(EE) Caught signal 11 (Segmentation fault). Server aborting
(EE) 
[gamescope] [Error] wlserver: [xwayland/server.c:269] Xwayland startup failed, not setting up xwm

I have no idea how to resolve it and I'm not a pro in Linux either. Please help. Thanks.

slagiewka commented 3 months ago

Gamescope seems to crash now on latest master even without any arguments. A simple case:

➜  ~ gamescope -- glxgears
[gamescope] [Info]  console: gamescope version 3.14.26-9-geafd073+
ATTENTION: default value of option vk_khr_present_wait overridden by environment.
ATTENTION: default value of option vk_khr_present_wait overridden by environment.
ATTENTION: default value of option vk_khr_present_wait overridden by environment.
ATTENTION: default value of option vk_khr_present_wait overridden by environment.
[gamescope] [Info]  vulkan: selecting physical device 'AMD Radeon RX 6800 (RADV NAVI21)': queue family 1 (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: 
[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:   XB30 (0x30334258)
[gamescope] [Info]  vulkan:   AR30 (0x30335241)
[gamescope] [Info]  vulkan:   XR30 (0x30335258)
[gamescope] [Info]  wlserver: [wayland] wl_global_create: implemented version for 'wl_shm' higher than interface version (2 > 1)
[gamescope] [Error] wlserver: [types/wlr_shm.c:536] wl_global_create failed
[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] [Info]  wlserver: [xwayland/server.c:107] Starting Xwayland on :1
(EE) 
(EE) Backtrace:
(EE) 0: Xwayland (0x55cc23632000+0x16a412) [0x55cc2379c412]
(EE) 1: Xwayland (0x55cc23632000+0x16a515) [0x55cc2379c515]
(EE) 2: /lib64/libc.so.6 (0x7f1e78c0f000+0x40d00) [0x7f1e78c4fd00]
(EE) 3: /lib64/libwayland-client.so.0 (wl_proxy_get_version+0x4) [0x7f1e795e92f4]
(EE) 4: Xwayland (0x55cc23632000+0x305ea) [0x55cc236625ea]
(EE) 5: Xwayland (0x55cc23632000+0x27c0e) [0x55cc23659c0e]
(EE) 6: Xwayland (0x55cc23632000+0xfb9c7) [0x55cc2372d9c7]
(EE) 7: Xwayland (0x55cc23632000+0xac967) [0x55cc236de967]
(EE) 8: Xwayland (0x55cc23632000+0x95739) [0x55cc236c7739]
(EE) 9: Xwayland (0x55cc23632000+0x206c5) [0x55cc236526c5]
(EE) 10: /lib64/libc.so.6 (0x7f1e78c0f000+0x2a088) [0x7f1e78c39088]
(EE) 11: /lib64/libc.so.6 (__libc_start_main+0x8b) [0x7f1e78c3914b]
(EE) 12: Xwayland (0x55cc23632000+0x22525) [0x55cc23654525]
(EE) 
(EE) Segmentation fault at address 0x40
(EE) 
Fatal server error:
(EE) Caught signal 11 (Segmentation fault). Server aborting
(EE) 
[gamescope] [Error] wlserver: [xwayland/server.c:269] Xwayland startup failed, not setting up xwm

Fedora 40 KDE Plasma 6.1.3 Mesa 24.1.5

KostiukI commented 3 months ago

So the workaround is to use earlier versions of gamescope? Which is best to use?

misyltoad commented 3 months ago

Your XWayland is out of date compared to the XWayland you built against.

Not a Gamescope bug.

KostiukI commented 3 months ago

Oh, ok, I see. How to find out the version it was built for? I have just used the instructions somewhere in github of how to build it, so I have no idea, honestly