gamescope icon indicating copy to clipboard operation
gamescope copied to clipboard

FSR always crashes under wayland.

Open Neon095 opened this issue 2 years ago • 1 comments

If a activate FSR through lutris or I open a game and press super + u under wayland, it crashes the game, but under X11 no. GPU: AMD Radeon RX 6500 XT. I'm on latest vanilla arch with everything updated.

Logs (when pressing super + u when the game starts)
lutris-wrapper: Outer Wilds
Started initial process 4107 from gamescope -w 1280 -h 720 -W 2560 -H 1440 -f -- gamemoderun mangohud /home/sergio018/.local/share/lutris/runners/wine/wine-ge-8-26-x86_64/bin/wine /home/sergio018/Games/Outer Wilds/OuterWilds.exe
Start monitoring process.
No CAP_SYS_NICE, falling back to regular-priority compute and threads.
Performance will be affected.
ATTENTION: default value of option vk_khr_present_wait overridden by environment.
vulkan: selecting physical device 'AMD Radeon RX 6500 XT (RADV NAVI24)': queue family 1 (general queue family 0)
vulkan: physical device supports DRM format modifiers
wlserver: [backend/headless/backend.c:67] Creating headless backend
xdg_backend: Seat name: 
vulkan: supported DRM formats for sampling usage:
vulkan:   AR24 (0x34325241)
vulkan:   XR24 (0x34325258)
vulkan:   AB24 (0x34324241)
vulkan:   XB24 (0x34324258)
vulkan:   RG16 (0x36314752)
vulkan:   NV12 (0x3231564E)
vulkan:   AB4H (0x48344241)
vulkan:   XB4H (0x48344258)
vulkan:   AB48 (0x38344241)
vulkan:   XB48 (0x38344258)
vulkan:   AB30 (0x30334241)
vulkan:   XB30 (0x30334258)
vulkan:   AR30 (0x30335241)
vulkan:   XR30 (0x30335258)
wlserver: Running compositor on wayland display 'gamescope-0'
wlserver: [backend/headless/backend.c:17] Starting headless backend
wlserver: [xwayland/sockets.c:64] Failed to bind socket @/tmp/.X11-unix/X0: Address already in use
wlserver: [xwayland/server.c:107] Starting Xwayland on :2
wlserver: [types/wlr_compositor.c:771] New wlr_surface 0x638f60574830 (res 0x638f60575380)
wlserver: [xwayland/server.c:272] Xserver is ready
pipewire: stream state changed: connecting
pipewire: stream state changed: paused
pipewire: stream available on node ID: 78
xwm: Embedded, no cursor set. Using left_ptr by default.
vblank: Using timerfd.
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: 100 nits, Min Luminance: 0 nits, Max Full Frame Luminance: 100 nits
josh edid: Patching res 800x1280 -> 1280x720
gamemodeauto: 
gamemodeauto: 
gamemodeauto: 
ERROR: ld.so: object '/usr/$LIB/mangohud/libMangoHud_dlsym.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/usr/$LIB/mangohud/libMangoHud_opengl.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
gamemodeauto: 
ERROR: ld.so: object '/usr/$LIB/mangohud/libMangoHud_dlsym.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/usr/$LIB/mangohud/libMangoHud_opengl.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
gamemodeauto: 
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.
[2024-05-13 20:42:21.854] [MANGOHUD] [error] [overlay_params.cpp:1003] Failed to read presets file: '/home/sergio018/.config/MangoHud/presets.conf'
ATTENTION: default value of option vk_khr_present_wait overridden by environment.
ATTENTION: default value of option vk_khr_present_wait overridden by environment.
[2024-05-13 20:42:21.986] [MANGOHUD] [error] [overlay_params.cpp:1003] Failed to read presets file: '/home/sergio018/.config/MangoHud/presets.conf'
ATTENTION: default value of option vk_khr_present_wait overridden by environment.
[2024-05-13 20:42:22.039] [MANGOHUD] [error] [overlay_params.cpp:1003] Failed to read presets file: '/home/sergio018/.config/MangoHud/presets.conf'
[Gamescope WSI] Forcing on VK_EXT_swapchain_maintenance1.
[Gamescope WSI] Forcing on VK_EXT_swapchain_maintenance1.
wlserver: [types/wlr_compositor.c:771] New wlr_surface 0x638f607aff80 (res 0x638f60737630)
wlserver: [types/wlr_compositor.c:771] New wlr_surface 0x638f607b0440 (res 0x638f60682010)
[Gamescope WSI] Creating Gamescope surface: xid: 0x800034
[Gamescope WSI] Atom of T was wrong type. Expected XCB_ATOM_CARDINAL.
[Gamescope WSI] Atom of T was wrong type. Expected XCB_ATOM_CARDINAL.
wlserver: [types/wlr_compositor.c:771] New wlr_surface 0x638f607b0810 (res 0x638f606819b0)
[Gamescope WSI] Made gamescope surface for xid: 0x800034
[Gamescope WSI] Surface state:
  steam app id:                  0
  window xid:                    0x800034
  wayland surface res id:        5
  layer client flags:            0x4
  server hdr output enabled:     false
  hdr formats exposed to client: false
[Gamescope WSI] Creating swapchain for xid: 0x800034 - minImageCount: 4 - format: VK_FORMAT_R8G8B8A8_SRGB - colorspace: VK_COLOR_SPACE_SRGB_NONLINEAR_KHR - flip: true
xwm: got the same buffer committed twice, ignoring.
[Gamescope WSI] Created swapchain for xid: 0x800034 - imageCount: 4
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
xdg_backend: Changed refresh to: 164.998hz
xwm: Unhandled NET_WM_STATE property change: _KDE_NET_WM_STATE_SKIP_SWITCHER
xwm: Unhandled NET_WM_STATE property change: _NET_WM_STATE_ABOVE
xwm: Unhandled NET_WM_STATE property change: _NET_WM_STATE_MAXIMIZED_VERT
xwm: Unhandled NET_WM_STATE property change: _NET_WM_STATE_MAXIMIZED_HORZ
xwm: Unhandled NET_WM_STATE property change: _KDE_NET_WM_STATE_SKIP_SWITCHER
xwm: Unhandled NET_WM_STATE property change: _NET_WM_STATE_ABOVE
xwm: Unhandled NET_WM_STATE property change: _NET_WM_STATE_MAXIMIZED_VERT
xwm: Unhandled NET_WM_STATE property change: _NET_WM_STATE_MAXIMIZED_HORZ
[Gamescope WSI] Creating swapchain for xid: 0x800034 - minImageCount: 4 - format: VK_FORMAT_R8G8B8A8_SRGB - colorspace: VK_COLOR_SPACE_SRGB_NONLINEAR_KHR - flip: true
[Gamescope WSI] Created swapchain for xid: 0x800034 - imageCount: 4
[Gamescope WSI] Swapchain recieved new refresh cycle: 6.06ms
gamescope: ../gamescope/src/wayland_backend.cpp:688: void gamescope::CWaylandFb::OnCompositorRelease(): Assertion `m_bCompositorAcquired' failed.
(EE) failed to read Wayland events: Broken pipe
[Gamescope WSI] getWindowRect: xcb_get_geometry failed for window 0x800034.
X connection to :2 broken (explicit kill or server shutdown).
X connection to :2 broken (explicit kill or server shutdown).
X connection to :2 broken (explicit kill or server shutdown).
X connection to :2 broken (explicit kill or server shutdown).
Initial process has exited (return code: 134)
Monitored process exited.
All processes have quit
Exit with return code 134

Neon095 avatar May 13 '24 18:05 Neon095

@Neon095 Hi I have nvidia 3060 and running steam via gamescope.
I ran into similar issue - everything worked fine but when I launched a game AND turned on FSR with super+U AND the game was running in non native res gamescope crashed.

I was running steam via gamescope like this:

gamescope -fbe -W 2560 -H 1440 -r 240 -- steam -bigpicture

Then I managed to fix the crashing by doing this (idk why this works tho):

STEAM_MULTIPLE_XWAYLANDS=1 gamescope -fbe -W 2560 -H 1440 -r 240 --xwayland-count 2 -- steam -bigpicture

(notice STEAM_MULTIPLE_XWAYLANDS=1 var and --xwayland-count 2 param)

Hope this helps

barbiefan avatar Dec 20 '24 08:12 barbiefan