WayfireWM / wayfire

A modular and extensible wayland compositor
https://wayfire.org/
MIT License
2.38k stars 178 forks source link

Gamescope not running #2487

Open AgostinoA opened 2 weeks ago

AgostinoA commented 2 weeks ago

Describe the bug Not open gamescope

To Reproduce Steps to reproduce the behavior:

  1. Open gamescope

Expected behavior Open Gamescope

Screenshots or stacktrace [gamescope] [Info] console: gamescope version 3.15.5 No CAP_SYS_NICE, falling back to regular-priority compute and threads. Performance will be affected. ATTENTION: default value of option vk_khr_present_wait overridden by environment. ATTENTION: default value of option vk_khr_present_wait overridden by environment. [gamescope] [Info] vulkan: selecting physical device 'Intel(R) UHD Graphics (CML GT2)': 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: default [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: ../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): Assertion `!modifiers.empty()' failed. Aborted (core dumped)

Wayfire version 0.9.0

soreau commented 2 weeks ago

Does this work in any other compositor with this gpu, such as sway? It looks like the error message is due to your gpu or drivers not supporting modifiers.

AgostinoA commented 2 weeks ago

Yes, of course I tested with Sway and Hyprland

ammen99 commented 2 weeks ago

@AgostinoA even though it might work on Sway, I am not sure this is a Wayfire bug, asserts are often used by programmers to catch their own mistakes :)

Also in this case in particular it sounds like it fails somewhere in its own backend, not when communicating with the compositor. Maybe you are using different environment variables / drivers / etc with Sway, or maybe gamescope, wayfire and sway use different wlroots versions and something there is messed up?