pop-os / cosmic-term

WIP COSMIC terminal emulator
GNU General Public License v3.0
388 stars 69 forks source link

panic in wgpu 0.18.0 when AMDVLK 2023.Q4.3 on Radeon RX 7900 XTX #30

Closed jokeyrhyme closed 9 months ago

jokeyrhyme commented 10 months ago

launching cosmic-term or AMD_VULKAN_ICD=AMDVLK cosmic-term results in the following error:

wl_drm@53: error 1: Format not advertised by wl_drm
warning: queue 0x563961aec090 destroyed while proxies still attached:
[2024-01-07T20:34:57Z ERROR wgpu_hal::vulkan::adapter] get_physical_device_surface_capabilities: An unknown error has occurred, due to an implementation or application bug
thread 'main' panicked at $HOME/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wgpu-0.18.0/src/backend/direct.rs:778:18:
Error in Surface::configure: Validation Error
Caused by:
Surface does not support the adapter's queue family
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

all of these do work, however:

I do not expect this to be addressed in wgpu nor cosmic-term (but awareness may be handy later)

Drakulix commented 10 months ago

Is there an open wgpu issue for this?

jokeyrhyme commented 10 months ago

Not yet, I'll raise one when I'm back at a computer

jokeyrhyme commented 10 months ago

Reported: https://github.com/gfx-rs/wgpu/issues/5021

jokeyrhyme commented 9 months ago

After being prompted over there, I tested in X11 and other compositors...

I could not reproduce this panic in sway, GNOME wayland, or GNOME x11, so it's likely specific to cosmic-comp ( this commit: https://github.com/pop-os/cosmic-comp/tree/9ce6a871c1ae48778aa10d61dbad7eab943195d3 )

I'd previously encountered an earlier bug in AMDVLK that was breaking wgpu so I incorrectly assumed it was another similar occurrence

ids1024 commented 9 months ago

So with AMDVLK, this wouldn't be using Mesa's EGL/Vulkan WSI code, and instead would use AMD's own implementation? Looking at https://github.com/GPUOpen-Drivers/pal/blob/dev/src/core/os/amdgpu/wayland/waylandWindowSystem.cpp, it seems to require wl_drm. (While other drivers have moved to the newer dmabuf protocol.)

So it may be a bug with cosmic-comp's wl_drm implementation.

Logs from running the client with WAYLAND_DEBUG=1 may provide some more information here.

jokeyrhyme commented 9 months ago

Okay, I ran AMD_VULKAN_ICD=AMDVLK WAYLAND_DEBUG=1 RUST_BACKTRACE=1 cosmic-term and captured the stderr

logs ``` [ 50093.262] -> wl_display@1.get_registry(new id wl_registry@2) [ 50093.276] -> wl_display@1.sync(new id wl_callback@3) [ 50093.346] wl_display@1.delete_id(3) [ 50093.349] wl_registry@2.global(1, "wl_compositor", 5) [ 50093.360] -> wl_registry@2.bind(1, "wl_compositor", 5, new id [unknown]@4) [ 50093.362] wl_registry@2.global(2, "wl_subcompositor", 1) [ 50093.364] -> wl_registry@2.bind(2, "wl_subcompositor", 1, new id [unknown]@5) [ 50093.366] wl_registry@2.global(3, "wl_data_device_manager", 3) [ 50093.367] wl_registry@2.global(4, "wp_fractional_scale_manager_v1", 1) [ 50093.369] -> wl_registry@2.bind(4, "wp_fractional_scale_manager_v1", 1, new id [unknown]@6) [ 50093.372] wl_registry@2.global(5, "zwp_keyboard_shortcuts_inhibit_manager_v1", 1) [ 50093.373] wl_registry@2.global(6, "zxdg_output_manager_v1", 3) [ 50093.374] wl_registry@2.global(7, "zwlr_output_manager_v1", 2) [ 50093.375] wl_registry@2.global(8, "wp_presentation", 1) [ 50093.376] wl_registry@2.global(9, "zwp_primary_selection_device_manager_v1", 1) [ 50093.378] wl_registry@2.global(10, "zcosmic_screencopy_manager_v1", 1) [ 50093.380] wl_registry@2.global(11, "wl_shm", 1) [ 50093.390] -> wl_registry@2.bind(11, "wl_shm", 1, new id [unknown]@7) [ 50093.392] wl_registry@2.global(12, "wp_viewporter", 1) [ 50093.393] -> wl_registry@2.bind(12, "wp_viewporter", 1, new id [unknown]@8) [ 50093.394] wl_registry@2.global(13, "org_kde_kwin_server_decoration_manager", 1) [ 50093.396] wl_registry@2.global(14, "zxdg_decoration_manager_v1", 1) [ 50093.398] -> wl_registry@2.bind(14, "zxdg_decoration_manager_v1", 1, new id [unknown]@9) [ 50093.399] wl_registry@2.global(15, "ext_session_lock_manager_v1", 1) [ 50093.402] wl_registry@2.global(17, "zwp_pointer_constraints_v1", 1) [ 50093.403] -> wl_registry@2.bind(17, "zwp_pointer_constraints_v1", 1, new id [unknown]@10) [ 50093.404] wl_registry@2.global(18, "zwp_pointer_gestures_v1", 3) [ 50093.406] wl_registry@2.global(19, "zwp_tablet_manager_v2", 1) [ 50093.407] wl_registry@2.global(20, "wp_security_context_manager_v1", 1) [ 50093.408] wl_registry@2.global(21, "zwp_input_method_manager_v2", 1) [ 50093.409] wl_registry@2.global(22, "zwp_text_input_manager_v3", 1) [ 50093.410] -> wl_registry@2.bind(22, "zwp_text_input_manager_v3", 1, new id [unknown]@11) [ 50093.412] wl_registry@2.global(23, "zwp_virtual_keyboard_manager_v1", 1) [ 50093.413] wl_registry@2.global(24, "zwlr_layer_shell_v1", 4) [ 50093.414] wl_registry@2.global(25, "xdg_wm_base", 6) [ 50093.416] wl_registry@2.global(26, "xdg_activation_v1", 1) [ 50093.417] -> wl_registry@2.bind(26, "xdg_activation_v1", 1, new id [unknown]@12) [ 50093.418] wl_registry@2.global(27, "zcosmic_toplevel_info_v1", 1) [ 50093.419] wl_registry@2.global(28, "zcosmic_toplevel_manager_v1", 2) [ 50093.420] wl_registry@2.global(29, "zcosmic_workspace_manager_v1", 1) [ 50093.421] wl_registry@2.global(30, "zwp_relative_pointer_manager_v1", 1) [ 50093.423] -> wl_registry@2.bind(30, "zwp_relative_pointer_manager_v1", 1, new id [unknown]@13) [ 50093.424] wl_registry@2.global(31, "zwp_linux_dmabuf_v1", 4) [ 50093.425] wl_registry@2.global(32, "wl_drm", 2) [ 50093.427] wl_registry@2.global(33, "wp_drm_lease_device_v1", 1) [ 50093.428] wl_registry@2.global(34, "wl_output", 4) [ 50093.430] -> wl_registry@2.bind(34, "wl_output", 4, new id [unknown]@14) [ 50093.433] wl_registry@2.global(37, "wp_drm_lease_device_v1", 1) [ 50093.434] wl_registry@2.global(38, "wl_seat", 9) [ 50093.436] -> wl_registry@2.bind(38, "wl_seat", 6, new id [unknown]@15) [ 50093.438] wl_callback@3.done(0) [ 50093.443] -> wl_display@1.sync(new id wl_callback@3) [ 50093.543] wl_display@1.delete_id(3) [ 50093.547] wl_shm@7.format(875708993) [ 50093.551] wl_shm@7.format(0) [ 50093.552] wl_shm@7.format(1) [ 50093.553] wl_shm@7.format(875709016) [ 50093.554] wl_output@14.geometry(0, 0, 710, 400, 0, "Unknown", "Unknown", 0) [ 50093.557] wl_output@14.mode(3, 3840, 2160, 59997) [ 50093.559] wl_output@14.mode(0, 3840, 2160, 119880) [ 50093.560] wl_output@14.mode(0, 3840, 2160, 60000) [ 50093.561] wl_output@14.mode(0, 3840, 2160, 59940) [ 50093.562] wl_output@14.mode(0, 3840, 2160, 50000) [ 50093.564] wl_output@14.mode(0, 3840, 2160, 30000) [ 50093.565] wl_output@14.mode(0, 3840, 2160, 29970) [ 50093.566] wl_output@14.mode(0, 3840, 2160, 25000) [ 50093.568] wl_output@14.mode(0, 3840, 2160, 24000) [ 50093.569] wl_output@14.mode(0, 3840, 2160, 23976) [ 50093.570] wl_output@14.mode(0, 2560, 1440, 143969) [ 50093.572] wl_output@14.mode(0, 2560, 1440, 119998) [ 50093.573] wl_output@14.mode(0, 2560, 1440, 59951) [ 50093.574] wl_output@14.mode(0, 1920, 1200, 59885) [ 50093.576] wl_output@14.mode(0, 1920, 1080, 143981) [ 50093.577] wl_output@14.mode(0, 1920, 1080, 120000) [ 50093.578] wl_output@14.mode(0, 1920, 1080, 119880) [ 50093.580] wl_output@14.mode(0, 1920, 1080, 119982) [ 50093.581] wl_output@14.mode(0, 1920, 1080, 100000) [ 50093.582] wl_output@14.mode(0, 1920, 1080, 60000) [ 50093.584] wl_output@14.mode(0, 1920, 1080, 59940) [ 50093.585] wl_output@14.mode(0, 1920, 1080, 50000) [ 50093.586] wl_output@14.mode(0, 1920, 1080, 30000) [ 50093.587] wl_output@14.mode(0, 1920, 1080, 29970) [ 50093.588] wl_output@14.mode(0, 1920, 1080, 25000) [ 50093.589] wl_output@14.mode(0, 1600, 1200, 60000) [ 50093.590] wl_output@14.mode(0, 1680, 1050, 59954) [ 50093.591] wl_output@14.mode(0, 1600, 900, 60000) [ 50093.593] wl_output@14.mode(0, 1280, 1024, 75025) [ 50093.594] wl_output@14.mode(0, 1280, 1024, 60020) [ 50093.595] wl_output@14.mode(0, 1280, 800, 59810) [ 50093.597] wl_output@14.mode(0, 1152, 864, 75000) [ 50093.598] wl_output@14.mode(0, 1280, 720, 60000) [ 50093.599] wl_output@14.mode(0, 1280, 720, 59940) [ 50093.601] wl_output@14.mode(0, 1024, 768, 75029) [ 50093.602] wl_output@14.mode(0, 1024, 768, 60004) [ 50093.603] wl_output@14.mode(0, 800, 600, 75000) [ 50093.605] wl_output@14.mode(0, 800, 600, 60317) [ 50093.606] wl_output@14.mode(0, 720, 576, 50000) [ 50093.607] wl_output@14.mode(0, 720, 480, 60000) [ 50093.609] wl_output@14.mode(0, 720, 480, 59940) [ 50093.610] wl_output@14.mode(0, 640, 480, 75000) [ 50093.611] wl_output@14.mode(0, 640, 480, 60000) [ 50093.613] wl_output@14.mode(0, 640, 480, 59940) [ 50093.614] wl_output@14.mode(0, 720, 400, 70082) [ 50093.615] wl_output@14.name("DP-4") [ 50093.617] wl_output@14.description("Unknown - Unknown - DP-4") [ 50093.619] wl_output@14.scale(1) [ 50093.620] wl_output@14.done() [ 50093.623] wl_seat@15.name("seat-0") [ 50093.626] wl_seat@15.capabilities(7) [ 50093.627] wl_callback@3.done(0) [ 50093.651] -> wl_compositor@4.create_surface(new id wl_surface@3) [ 50093.654] -> wl_seat@15.get_pointer(new id wl_pointer@16) [ 50093.663] -> zwp_relative_pointer_manager_v1@13.get_relative_pointer(new id zwp_relative_pointer_v1@17, wl_pointer@16) [ 50093.667] -> wl_seat@15.get_keyboard(new id wl_keyboard@18) [ 50095.017] -> wl_seat@15.get_touch(new id wl_touch@19) [ 50095.021] -> zwp_text_input_manager_v3@11.get_text_input(new id zwp_text_input_v3@20, wl_seat@15) [ 50135.453] -> wl_compositor@4.create_surface(new id wl_surface@21) [ 50135.460] -> wp_fractional_scale_manager_v1@6.get_fractional_scale(new id wp_fractional_scale_v1@22, wl_surface@21) [ 50135.463] -> wp_viewporter@8.get_viewport(new id wp_viewport@23, wl_surface@21) [ 50135.467] -> wl_registry@2.bind(25, "xdg_wm_base", 2, new id [unknown]@24) [ 50135.478] -> wl_shm@7.create_pool(new id wl_shm_pool@25, fd 9, 4096) [2024-01-10T01:04:23Z ERROR sctk_adwaita::config] XDG Settings Portal did not return response in time: timeout: 100ms, key: color-scheme [ 50148.638] -> xdg_wm_base@24.get_xdg_surface(new id xdg_surface@26, wl_surface@21) [ 50148.648] -> xdg_surface@26.get_toplevel(new id xdg_toplevel@27) [ 50148.652] -> wl_surface@21.commit() [ 50148.655] -> xdg_toplevel@27.set_min_size(2, 1) [ 50148.658] -> xdg_surface@26.set_window_geometry(0, 0, 1024, 768) [ 50148.663] -> wl_compositor@4.create_surface(new id wl_surface@28) [ 50148.667] -> wl_seat@15.get_pointer(new id wl_pointer@29) [ 50148.673] -> zxdg_decoration_manager_v1@9.get_toplevel_decoration(new id zxdg_toplevel_decoration_v1@30, xdg_toplevel@27) [ 50148.678] -> zxdg_toplevel_decoration_v1@30.set_mode(1) [ 50148.680] -> xdg_toplevel@27.set_min_size(2, 1) [ 50148.683] -> xdg_toplevel@27.set_max_size(0, 0) [ 50148.685] -> xdg_toplevel@27.set_app_id("com.system76.CosmicTerm") [ 50148.687] -> xdg_toplevel@27.set_min_size(2, 1) [ 50148.689] -> xdg_toplevel@27.set_max_size(0, 0) [ 50148.691] -> xdg_toplevel@27.set_title("") [ 50148.693] -> wl_surface@21.commit() [ 50148.696] -> wl_surface@21.set_opaque_region(nil) [ 50148.701] -> wl_display@1.sync(new id wl_callback@31) [ 50148.952] wl_display@1.delete_id(31) [ 50148.959] wl_keyboard@18.keymap(1, fd 9, 64788) [ 50150.122] wl_keyboard@18.repeat_info(25, 200) [ 50150.126] wp_fractional_scale_v1@22.preferred_scale(120) [ 50150.129] xdg_toplevel@27.configure(0, 0, array[0]) [ 50150.132] xdg_surface@26.configure(5897) [ 50150.135] -> xdg_surface@26.ack_configure(5897) [ 50150.137] wl_callback@31.done(0) [ 50196.304] -> wl_display@1.get_registry(new id wl_registry@2) [ 50196.309] -> wl_display@1.sync(new id wl_callback@3) [ 50196.454] wl_display@1.delete_id(3) [ 50196.456] wl_registry@2.global(1, "wl_compositor", 5) [ 50196.458] wl_registry@2.global(2, "wl_subcompositor", 1) [ 50196.459] wl_registry@2.global(3, "wl_data_device_manager", 3) [ 50196.460] wl_registry@2.global(4, "wp_fractional_scale_manager_v1", 1) [ 50196.461] wl_registry@2.global(5, "zwp_keyboard_shortcuts_inhibit_manager_v1", 1) [ 50196.462] wl_registry@2.global(6, "zxdg_output_manager_v1", 3) [ 50196.463] wl_registry@2.global(7, "zwlr_output_manager_v1", 2) [ 50196.464] wl_registry@2.global(8, "wp_presentation", 1) [ 50196.465] wl_registry@2.global(9, "zwp_primary_selection_device_manager_v1", 1) [ 50196.466] wl_registry@2.global(10, "zcosmic_screencopy_manager_v1", 1) [ 50196.467] wl_registry@2.global(11, "wl_shm", 1) [ 50196.468] wl_registry@2.global(12, "wp_viewporter", 1) [ 50196.469] wl_registry@2.global(13, "org_kde_kwin_server_decoration_manager", 1) [ 50196.470] wl_registry@2.global(14, "zxdg_decoration_manager_v1", 1) [ 50196.471] wl_registry@2.global(15, "ext_session_lock_manager_v1", 1) [ 50196.472] wl_registry@2.global(17, "zwp_pointer_constraints_v1", 1) [ 50196.473] wl_registry@2.global(18, "zwp_pointer_gestures_v1", 3) [ 50196.474] wl_registry@2.global(19, "zwp_tablet_manager_v2", 1) [ 50196.475] wl_registry@2.global(20, "wp_security_context_manager_v1", 1) [ 50196.476] wl_registry@2.global(21, "zwp_input_method_manager_v2", 1) [ 50196.478] wl_registry@2.global(22, "zwp_text_input_manager_v3", 1) [ 50196.479] wl_registry@2.global(23, "zwp_virtual_keyboard_manager_v1", 1) [ 50196.480] wl_registry@2.global(24, "zwlr_layer_shell_v1", 4) [ 50196.481] wl_registry@2.global(25, "xdg_wm_base", 6) [ 50196.484] wl_registry@2.global(26, "xdg_activation_v1", 1) [ 50196.485] wl_registry@2.global(27, "zcosmic_toplevel_info_v1", 1) [ 50196.486] wl_registry@2.global(28, "zcosmic_toplevel_manager_v1", 2) [ 50196.487] wl_registry@2.global(29, "zcosmic_workspace_manager_v1", 1) [ 50196.488] wl_registry@2.global(30, "zwp_relative_pointer_manager_v1", 1) [ 50196.490] wl_registry@2.global(31, "zwp_linux_dmabuf_v1", 4) [ 50196.492] -> wl_registry@2.bind(31, "zwp_linux_dmabuf_v1", 4, new id [unknown]@4) [ 50196.493] wl_registry@2.global(32, "wl_drm", 2) [ 50196.494] wl_registry@2.global(33, "wp_drm_lease_device_v1", 1) [ 50196.497] wl_registry@2.global(34, "wl_output", 4) [ 50196.498] wl_registry@2.global(37, "wp_drm_lease_device_v1", 1) [ 50196.499] wl_registry@2.global(38, "wl_seat", 9) [ 50196.500] wl_callback@3.done(0) [ 50196.502] -> zwp_linux_dmabuf_v1@4.get_default_feedback(new id zwp_linux_dmabuf_feedback_v1@3) [ 50196.503] -> wl_display@1.sync(new id wl_callback@5) [ 50196.554] wl_display@1.delete_id(5) [ 50196.555] zwp_linux_dmabuf_feedback_v1@3.main_device(array[8]) [ 50196.869] zwp_linux_dmabuf_feedback_v1@3.format_table(fd 19, 5984) [ 50196.877] zwp_linux_dmabuf_feedback_v1@3.tranche_target_device(array[8]) [ 50196.879] zwp_linux_dmabuf_feedback_v1@3.tranche_flags(0) [ 50196.880] zwp_linux_dmabuf_feedback_v1@3.tranche_formats(array[748]) [ 50196.887] zwp_linux_dmabuf_feedback_v1@3.tranche_done() [ 50196.889] zwp_linux_dmabuf_feedback_v1@3.done() [ 50196.889] wl_callback@5.done(0) [ 50196.891] -> zwp_linux_dmabuf_feedback_v1@3.destroy() [2024-01-10T01:04:23Z WARN wgpu_hal::gles::egl] Re-initializing Gles context due to Wayland window [ 50207.683] -> wl_display@1.get_registry(new id wl_registry@31) [ 50207.686] -> wl_display@1.sync(new id wl_callback@32) [ 50207.770] wl_display@1.delete_id(32) [ 50207.772] wl_registry@31.global(1, "wl_compositor", 5) [ 50207.774] wl_registry@31.global(2, "wl_subcompositor", 1) [ 50207.775] wl_registry@31.global(3, "wl_data_device_manager", 3) [ 50207.776] wl_registry@31.global(4, "wp_fractional_scale_manager_v1", 1) [ 50207.778] wl_registry@31.global(5, "zwp_keyboard_shortcuts_inhibit_manager_v1", 1) [ 50207.779] wl_registry@31.global(6, "zxdg_output_manager_v1", 3) [ 50207.780] wl_registry@31.global(7, "zwlr_output_manager_v1", 2) [ 50207.782] wl_registry@31.global(8, "wp_presentation", 1) [ 50207.783] wl_registry@31.global(9, "zwp_primary_selection_device_manager_v1", 1) [ 50207.784] wl_registry@31.global(10, "zcosmic_screencopy_manager_v1", 1) [ 50207.787] wl_registry@31.global(11, "wl_shm", 1) [ 50207.788] wl_registry@31.global(12, "wp_viewporter", 1) [ 50207.789] wl_registry@31.global(13, "org_kde_kwin_server_decoration_manager", 1) [ 50207.791] wl_registry@31.global(14, "zxdg_decoration_manager_v1", 1) [ 50207.792] wl_registry@31.global(15, "ext_session_lock_manager_v1", 1) [ 50207.793] wl_registry@31.global(17, "zwp_pointer_constraints_v1", 1) [ 50207.795] wl_registry@31.global(18, "zwp_pointer_gestures_v1", 3) [ 50207.796] wl_registry@31.global(19, "zwp_tablet_manager_v2", 1) [ 50207.797] wl_registry@31.global(20, "wp_security_context_manager_v1", 1) [ 50207.799] wl_registry@31.global(21, "zwp_input_method_manager_v2", 1) [ 50207.800] wl_registry@31.global(22, "zwp_text_input_manager_v3", 1) [ 50207.801] wl_registry@31.global(23, "zwp_virtual_keyboard_manager_v1", 1) [ 50207.802] wl_registry@31.global(24, "zwlr_layer_shell_v1", 4) [ 50207.803] wl_registry@31.global(25, "xdg_wm_base", 6) [ 50207.804] wl_registry@31.global(26, "xdg_activation_v1", 1) [ 50207.805] wl_registry@31.global(27, "zcosmic_toplevel_info_v1", 1) [ 50207.806] wl_registry@31.global(28, "zcosmic_toplevel_manager_v1", 2) [ 50207.808] wl_registry@31.global(29, "zcosmic_workspace_manager_v1", 1) [ 50207.809] wl_registry@31.global(30, "zwp_relative_pointer_manager_v1", 1) [ 50207.810] wl_registry@31.global(31, "zwp_linux_dmabuf_v1", 4) [ 50207.811] -> wl_registry@31.bind(31, "zwp_linux_dmabuf_v1", 4, new id [unknown]@33) [ 50207.813] wl_registry@31.global(32, "wl_drm", 2) [ 50207.814] wl_registry@31.global(33, "wp_drm_lease_device_v1", 1) [ 50207.815] wl_registry@31.global(34, "wl_output", 4) [ 50207.817] wl_registry@31.global(37, "wp_drm_lease_device_v1", 1) [ 50207.818] wl_registry@31.global(38, "wl_seat", 9) [ 50207.819] wl_callback@32.done(0) [ 50207.820] -> zwp_linux_dmabuf_v1@33.get_default_feedback(new id zwp_linux_dmabuf_feedback_v1@32) [ 50207.822] -> wl_display@1.sync(new id wl_callback@34) [ 50207.865] wl_display@1.delete_id(34) [ 50207.867] zwp_linux_dmabuf_feedback_v1@32.main_device(array[8]) [ 50208.166] zwp_linux_dmabuf_feedback_v1@32.format_table(fd 17, 5984) [ 50208.174] zwp_linux_dmabuf_feedback_v1@32.tranche_target_device(array[8]) [ 50208.176] zwp_linux_dmabuf_feedback_v1@32.tranche_flags(0) [ 50208.177] zwp_linux_dmabuf_feedback_v1@32.tranche_formats(array[748]) [ 50208.183] zwp_linux_dmabuf_feedback_v1@32.tranche_done() [ 50208.185] zwp_linux_dmabuf_feedback_v1@32.done() [ 50208.186] wl_callback@34.done(0) [ 50208.187] -> zwp_linux_dmabuf_feedback_v1@32.destroy() [ 50215.668] -> zwp_linux_dmabuf_v1@4.destroy() [ 50218.844] -> wl_display@1.get_registry(new id wl_registry@34) [ 50218.848] -> wl_display@1.sync(new id wl_callback@35) [ 50218.956] wl_display@1.delete_id(32) [ 50218.958] wl_display@1.delete_id(35) [ 50218.959] wl_registry@34.global(1, "wl_compositor", 5) [ 50218.961] wl_registry@34.global(2, "wl_subcompositor", 1) [ 50218.962] wl_registry@34.global(3, "wl_data_device_manager", 3) [ 50218.963] wl_registry@34.global(4, "wp_fractional_scale_manager_v1", 1) [ 50218.965] wl_registry@34.global(5, "zwp_keyboard_shortcuts_inhibit_manager_v1", 1) [ 50218.968] wl_registry@34.global(6, "zxdg_output_manager_v1", 3) [ 50218.969] wl_registry@34.global(7, "zwlr_output_manager_v1", 2) [ 50218.970] wl_registry@34.global(8, "wp_presentation", 1) [ 50218.971] wl_registry@34.global(9, "zwp_primary_selection_device_manager_v1", 1) [ 50218.972] wl_registry@34.global(10, "zcosmic_screencopy_manager_v1", 1) [ 50218.973] wl_registry@34.global(11, "wl_shm", 1) [ 50218.975] wl_registry@34.global(12, "wp_viewporter", 1) [ 50218.976] wl_registry@34.global(13, "org_kde_kwin_server_decoration_manager", 1) [ 50218.977] wl_registry@34.global(14, "zxdg_decoration_manager_v1", 1) [ 50218.978] wl_registry@34.global(15, "ext_session_lock_manager_v1", 1) [ 50218.979] wl_registry@34.global(17, "zwp_pointer_constraints_v1", 1) [ 50218.980] wl_registry@34.global(18, "zwp_pointer_gestures_v1", 3) [ 50218.981] wl_registry@34.global(19, "zwp_tablet_manager_v2", 1) [ 50218.982] wl_registry@34.global(20, "wp_security_context_manager_v1", 1) [ 50218.983] wl_registry@34.global(21, "zwp_input_method_manager_v2", 1) [ 50218.984] wl_registry@34.global(22, "zwp_text_input_manager_v3", 1) [ 50218.985] wl_registry@34.global(23, "zwp_virtual_keyboard_manager_v1", 1) [ 50218.987] wl_registry@34.global(24, "zwlr_layer_shell_v1", 4) [ 50218.988] wl_registry@34.global(25, "xdg_wm_base", 6) [ 50218.989] wl_registry@34.global(26, "xdg_activation_v1", 1) [ 50218.990] wl_registry@34.global(27, "zcosmic_toplevel_info_v1", 1) [ 50218.991] wl_registry@34.global(28, "zcosmic_toplevel_manager_v1", 2) [ 50218.992] wl_registry@34.global(29, "zcosmic_workspace_manager_v1", 1) [ 50218.993] wl_registry@34.global(30, "zwp_relative_pointer_manager_v1", 1) [ 50218.996] wl_registry@34.global(31, "zwp_linux_dmabuf_v1", 4) [ 50218.997] wl_registry@34.global(32, "wl_drm", 2) [ 50218.998] -> wl_registry@34.bind(32, "wl_drm", 2, new id [unknown]@32) [ 50219.000] wl_registry@34.global(33, "wp_drm_lease_device_v1", 1) [ 50219.001] wl_registry@34.global(34, "wl_output", 4) [ 50219.002] wl_registry@34.global(37, "wp_drm_lease_device_v1", 1) [ 50219.003] wl_registry@34.global(38, "wl_seat", 9) [ 50219.005] wl_callback@35.done(0) [ 50219.007] -> wl_display@1.sync(new id wl_callback@35) [ 50219.063] wl_display@1.delete_id(35) [ 50219.065] wl_drm@32.device("/dev/dri/renderD128") [ 50219.066] wl_drm@32.capabilities(1) [ 50219.067] wl_callback@35.done(0) [ 50219.075] -> wl_display@1.get_registry(new id wl_registry@35) [ 50219.077] -> wl_display@1.sync(new id wl_callback@36) [ 50219.128] wl_display@1.delete_id(36) [ 50219.130] wl_registry@35.global(1, "wl_compositor", 5) [ 50219.131] wl_registry@35.global(2, "wl_subcompositor", 1) [ 50219.132] wl_registry@35.global(3, "wl_data_device_manager", 3) [ 50219.133] wl_registry@35.global(4, "wp_fractional_scale_manager_v1", 1) [ 50219.135] wl_registry@35.global(5, "zwp_keyboard_shortcuts_inhibit_manager_v1", 1) [ 50219.136] wl_registry@35.global(6, "zxdg_output_manager_v1", 3) [ 50219.137] wl_registry@35.global(7, "zwlr_output_manager_v1", 2) [ 50219.138] wl_registry@35.global(8, "wp_presentation", 1) [ 50219.139] wl_registry@35.global(9, "zwp_primary_selection_device_manager_v1", 1) [ 50219.140] wl_registry@35.global(10, "zcosmic_screencopy_manager_v1", 1) [ 50219.141] wl_registry@35.global(11, "wl_shm", 1) [ 50219.142] wl_registry@35.global(12, "wp_viewporter", 1) [ 50219.144] wl_registry@35.global(13, "org_kde_kwin_server_decoration_manager", 1) [ 50219.146] wl_registry@35.global(14, "zxdg_decoration_manager_v1", 1) [ 50219.147] wl_registry@35.global(15, "ext_session_lock_manager_v1", 1) [ 50219.149] wl_registry@35.global(17, "zwp_pointer_constraints_v1", 1) [ 50219.150] wl_registry@35.global(18, "zwp_pointer_gestures_v1", 3) [ 50219.152] wl_registry@35.global(19, "zwp_tablet_manager_v2", 1) [ 50219.154] wl_registry@35.global(20, "wp_security_context_manager_v1", 1) [ 50219.155] wl_registry@35.global(21, "zwp_input_method_manager_v2", 1) [ 50219.156] wl_registry@35.global(22, "zwp_text_input_manager_v3", 1) [ 50219.157] wl_registry@35.global(23, "zwp_virtual_keyboard_manager_v1", 1) [ 50219.158] wl_registry@35.global(24, "zwlr_layer_shell_v1", 4) [ 50219.159] wl_registry@35.global(25, "xdg_wm_base", 6) [ 50219.160] wl_registry@35.global(26, "xdg_activation_v1", 1) [ 50219.161] wl_registry@35.global(27, "zcosmic_toplevel_info_v1", 1) [ 50219.162] wl_registry@35.global(28, "zcosmic_toplevel_manager_v1", 2) [ 50219.163] wl_registry@35.global(29, "zcosmic_workspace_manager_v1", 1) [ 50219.164] wl_registry@35.global(30, "zwp_relative_pointer_manager_v1", 1) [ 50219.165] wl_registry@35.global(31, "zwp_linux_dmabuf_v1", 4) [ 50219.168] wl_registry@35.global(32, "wl_drm", 2) [ 50219.169] -> wl_registry@35.bind(32, "wl_drm", 2, new id [unknown]@37) [ 50219.171] wl_registry@35.global(33, "wp_drm_lease_device_v1", 1) [ 50219.172] wl_registry@35.global(34, "wl_output", 4) [ 50219.175] wl_registry@35.global(37, "wp_drm_lease_device_v1", 1) [ 50219.176] wl_registry@35.global(38, "wl_seat", 9) [ 50219.177] wl_callback@36.done(0) [ 50219.178] -> wl_display@1.sync(new id wl_callback@36) [ 50219.222] wl_display@1.delete_id(36) [ 50219.223] wl_drm@37.device("/dev/dri/renderD128") [ 50219.224] wl_drm@37.capabilities(1) [ 50219.225] wl_callback@36.done(0) [ 50219.769] -> wl_display@1.get_registry(new id wl_registry@36) [ 50219.772] -> wl_display@1.sync(new id wl_callback@38) [ 50219.814] wl_display@1.delete_id(38) [ 50219.816] wl_registry@36.global(1, "wl_compositor", 5) [ 50219.817] wl_registry@36.global(2, "wl_subcompositor", 1) [ 50219.818] wl_registry@36.global(3, "wl_data_device_manager", 3) [ 50219.820] wl_registry@36.global(4, "wp_fractional_scale_manager_v1", 1) [ 50219.821] wl_registry@36.global(5, "zwp_keyboard_shortcuts_inhibit_manager_v1", 1) [ 50219.822] wl_registry@36.global(6, "zxdg_output_manager_v1", 3) [ 50219.824] wl_registry@36.global(7, "zwlr_output_manager_v1", 2) [ 50219.825] wl_registry@36.global(8, "wp_presentation", 1) [ 50219.826] wl_registry@36.global(9, "zwp_primary_selection_device_manager_v1", 1) [ 50219.829] wl_registry@36.global(10, "zcosmic_screencopy_manager_v1", 1) [ 50219.830] wl_registry@36.global(11, "wl_shm", 1) [ 50219.831] wl_registry@36.global(12, "wp_viewporter", 1) [ 50219.833] wl_registry@36.global(13, "org_kde_kwin_server_decoration_manager", 1) [ 50219.834] wl_registry@36.global(14, "zxdg_decoration_manager_v1", 1) [ 50219.835] wl_registry@36.global(15, "ext_session_lock_manager_v1", 1) [ 50219.837] wl_registry@36.global(17, "zwp_pointer_constraints_v1", 1) [ 50219.838] wl_registry@36.global(18, "zwp_pointer_gestures_v1", 3) [ 50219.839] wl_registry@36.global(19, "zwp_tablet_manager_v2", 1) [ 50219.841] wl_registry@36.global(20, "wp_security_context_manager_v1", 1) [ 50219.842] wl_registry@36.global(21, "zwp_input_method_manager_v2", 1) [ 50219.843] wl_registry@36.global(22, "zwp_text_input_manager_v3", 1) [ 50219.845] wl_registry@36.global(23, "zwp_virtual_keyboard_manager_v1", 1) [ 50219.846] wl_registry@36.global(24, "zwlr_layer_shell_v1", 4) [ 50219.847] wl_registry@36.global(25, "xdg_wm_base", 6) [ 50219.849] wl_registry@36.global(26, "xdg_activation_v1", 1) [ 50219.850] wl_registry@36.global(27, "zcosmic_toplevel_info_v1", 1) [ 50219.851] wl_registry@36.global(28, "zcosmic_toplevel_manager_v1", 2) [ 50219.853] wl_registry@36.global(29, "zcosmic_workspace_manager_v1", 1) [ 50219.854] wl_registry@36.global(30, "zwp_relative_pointer_manager_v1", 1) [ 50219.855] wl_registry@36.global(31, "zwp_linux_dmabuf_v1", 4) [ 50219.857] wl_registry@36.global(32, "wl_drm", 2) [ 50219.859] -> wl_registry@36.bind(32, "wl_drm", 2, new id [unknown]@39) [ 50219.861] wl_registry@36.global(33, "wp_drm_lease_device_v1", 1) [ 50219.862] wl_registry@36.global(34, "wl_output", 4) [ 50219.863] wl_registry@36.global(37, "wp_drm_lease_device_v1", 1) [ 50219.864] wl_registry@36.global(38, "wl_seat", 9) [ 50219.865] wl_callback@38.done(0) [ 50219.866] -> wl_display@1.sync(new id wl_callback@38) [ 50219.896] wl_display@1.delete_id(38) [ 50219.897] wl_drm@39.device("/dev/dri/renderD128") [ 50219.898] wl_drm@39.capabilities(1) [ 50219.899] wl_callback@38.done(0) [ 50226.231] -> wl_display@1.get_registry(new id wl_registry@38) [ 50226.237] -> wl_display@1.sync(new id wl_callback@40) [ 50226.262] -> wl_display@1.get_registry(new id wl_registry@41) [ 50226.271] -> wl_display@1.sync(new id wl_callback@42) [ 50226.363] wl_registry@38.global(1, "wl_compositor", 5) [ 50226.371] wl_registry@38.global(2, "wl_subcompositor", 1) [ 50226.374] wl_registry@38.global(3, "wl_data_device_manager", 3) [ 50226.376] wl_registry@38.global(4, "wp_fractional_scale_manager_v1", 1) [ 50226.378] wl_registry@38.global(5, "zwp_keyboard_shortcuts_inhibit_manager_v1", 1) [ 50226.365] wl_display@1.delete_id(40) [ 50226.380] wl_registry@38.global(6, "zxdg_output_manager_v1", 3) [ 50226.396] wl_registry@38.global(7, "zwlr_output_manager_v1", 2) [ 50226.400] wl_registry@38.global(8, "wp_presentation", 1) [ 50226.396] wl_display@1.delete_id(42) [ 50226.403] wl_registry@38.global(9, "zwp_primary_selection_device_manager_v1", 1) [ 50226.404] wl_registry@41.global(1, "wl_compositor", 5) [ 50226.405] wl_registry@38.global(10, "zcosmic_screencopy_manager_v1", 1) [ 50226.413] wl_registry@38.global(11, "wl_shm", 1) [ 50226.413] wl_registry@41.global(2, "wl_subcompositor", 1) [ 50226.414] wl_registry@38.global(12, "wp_viewporter", 1) [ 50226.416] wl_registry@41.global(3, "wl_data_device_manager", 3) [ 50226.416] wl_registry@38.global(13, "org_kde_kwin_server_decoration_manager", 1) [ 50226.422] -> wl_registry@41.bind(3, "wl_data_device_manager", 3, new id [unknown]@43) [ 50226.433] wl_registry@41.global(4, "wp_fractional_scale_manager_v1", 1) [ 50226.438] wl_registry@41.global(5, "zwp_keyboard_shortcuts_inhibit_manager_v1", 1) [ 50226.435] wl_registry@38.global(14, "zxdg_decoration_manager_v1", 1) [ 50226.440] wl_registry@41.global(6, "zxdg_output_manager_v1", 3) [ 50226.441] wl_registry@38.global(15, "ext_session_lock_manager_v1", 1) [ 50226.442] wl_registry@41.global(7, "zwlr_output_manager_v1", 2) [ 50226.443] wl_registry@38.global(17, "zwp_pointer_constraints_v1", 1) [ 50226.444] wl_registry@41.global(8, "wp_presentation", 1) [ 50226.445] wl_registry@38.global(18, "zwp_pointer_gestures_v1", 3) [ 50226.446] wl_registry@41.global(9, "zwp_primary_selection_device_manager_v1", 1) [ 50226.447] wl_registry@38.global(19, "zwp_tablet_manager_v2", 1) [ 50226.448] wl_registry@41.global(10, "zcosmic_screencopy_manager_v1", 1) [ 50226.452] wl_registry@41.global(11, "wl_shm", 1) [ 50226.449] wl_registry@38.global(20, "wp_security_context_manager_v1", 1) [ 50226.454] wl_registry@41.global(12, "wp_viewporter", 1) [ 50226.455] wl_registry@38.global(21, "zwp_input_method_manager_v2", 1) [ 50226.456] wl_registry@41.global(13, "org_kde_kwin_server_decoration_manager", 1) [ 50226.457] wl_registry@38.global(22, "zwp_text_input_manager_v3", 1) [ 50226.460] wl_registry@38.global(23, "zwp_virtual_keyboard_manager_v1", 1) [ 50226.462] wl_registry@38.global(24, "zwlr_layer_shell_v1", 4) [ 50226.465] wl_registry@38.global(25, "xdg_wm_base", 6) [ 50226.458] wl_registry@41.global(14, "zxdg_decoration_manager_v1", 1) [ 50226.467] wl_registry@38.global(26, "xdg_activation_v1", 1) [ 50226.469] wl_registry@41.global(15, "ext_session_lock_manager_v1", 1) [ 50226.472] wl_registry@41.global(17, "zwp_pointer_constraints_v1", 1) [ 50226.469] wl_registry@38.global(27, "zcosmic_toplevel_info_v1", 1) [ 50226.475] wl_registry@41.global(18, "zwp_pointer_gestures_v1", 3) [ 50226.476] wl_registry@38.global(28, "zcosmic_toplevel_manager_v1", 2) [ 50226.480] wl_registry@38.global(29, "zcosmic_workspace_manager_v1", 1) [ 50226.477] wl_registry@41.global(19, "zwp_tablet_manager_v2", 1) [ 50226.482] wl_registry@38.global(30, "zwp_relative_pointer_manager_v1", 1) [ 50226.484] wl_registry@41.global(20, "wp_security_context_manager_v1", 1) [ 50226.488] wl_registry@41.global(21, "zwp_input_method_manager_v2", 1) [ 50226.484] wl_registry@38.global(31, "zwp_linux_dmabuf_v1", 4) [ 50226.489] wl_registry@41.global(22, "zwp_text_input_manager_v3", 1) [ 50226.494] wl_registry@41.global(23, "zwp_virtual_keyboard_manager_v1", 1) [ 50226.498] wl_registry@41.global(24, "zwlr_layer_shell_v1", 4) [ 50226.491] wl_registry@38.global(32, "wl_drm", 2) [ 50226.500] wl_registry@41.global(25, "xdg_wm_base", 6) [ 50226.502] -> wl_registry@38.bind(32, "wl_drm", 2, new id [unknown]@44) [ 50226.506] wl_registry@38.global(33, "wp_drm_lease_device_v1", 1) [ 50226.509] wl_registry@38.global(34, "wl_output", 4) [ 50226.513] wl_registry@41.global(26, "xdg_activation_v1", 1) [ 50226.515] wl_registry@38.global(37, "wp_drm_lease_device_v1", 1) [ 50226.518] wl_registry@38.global(38, "wl_seat", 9) [ 50226.515] wl_registry@41.global(27, "zcosmic_toplevel_info_v1", 1) [ 50226.520] wl_callback@40.done(0) [ 50226.522] wl_registry@41.global(28, "zcosmic_toplevel_manager_v1", 2) [ 50226.524] -> wl_display@1.sync(new id wl_callback@40) [ 50226.533] wl_registry@41.global(29, "zcosmic_workspace_manager_v1", 1) [ 50226.536] wl_registry@41.global(30, "zwp_relative_pointer_manager_v1", 1) [ 50226.537] wl_registry@41.global(31, "zwp_linux_dmabuf_v1", 4) [ 50226.539] wl_registry@41.global(32, "wl_drm", 2) [ 50226.541] wl_registry@41.global(33, "wp_drm_lease_device_v1", 1) [ 50226.543] wl_registry@41.global(34, "wl_output", 4) [ 50226.545] wl_registry@41.global(37, "wp_drm_lease_device_v1", 1) [ 50226.547] wl_registry@41.global(38, "wl_seat", 9) [ 50226.549] -> wl_registry@41.bind(38, "wl_seat", 6, new id [unknown]@45) [ 50226.553] wl_callback@42.done(0) [ 50226.557] -> wl_display@1.sync(new id wl_callback@42) [ 50226.580] wl_display@1.delete_id(40) [ 50226.583] wl_drm@44.device("/dev/dri/renderD128") [ 50226.585] wl_drm@44.capabilities(1) [ 50226.587] wl_callback@40.done(0) [ 50226.608] wl_display@1.delete_id(42) [ 50226.610] wl_seat@45.name("seat-0") [ 50226.614] wl_seat@45.capabilities(7) [ 50226.618] -> wl_data_device_manager@43.get_data_device(new id wl_data_device@40, wl_seat@45) [ 50226.622] wl_callback@42.done(0) [ 50226.626] -> wl_display@1.get_registry(new id wl_registry@42) [ 50226.630] -> wl_display@1.sync(new id wl_callback@46) [ 50226.632] -> wl_registry@41.bind(9, "zwp_primary_selection_device_manager_v1", 1, new id [unknown]@47) [ 50226.637] -> zwp_primary_selection_device_manager_v1@47.get_device(new id zwp_primary_selection_device_v1@48, wl_seat@45) [ 50226.643] -> wl_seat@45.get_keyboard(new id wl_keyboard@49) [ 50226.647] -> wl_seat@45.get_pointer(new id wl_pointer@50) [ 50226.795] wl_display@1.delete_id(46) [ 50226.797] wl_registry@42.global(1, "wl_compositor", 5) [ 50226.799] wl_registry@42.global(2, "wl_subcompositor", 1) [ 50226.801] wl_registry@42.global(3, "wl_data_device_manager", 3) [ 50226.803] wl_registry@42.global(4, "wp_fractional_scale_manager_v1", 1) [ 50226.805] wl_registry@42.global(5, "zwp_keyboard_shortcuts_inhibit_manager_v1", 1) [ 50226.807] wl_registry@42.global(6, "zxdg_output_manager_v1", 3) [ 50226.808] wl_registry@42.global(7, "zwlr_output_manager_v1", 2) [ 50226.810] wl_registry@42.global(8, "wp_presentation", 1) [ 50226.812] wl_registry@42.global(9, "zwp_primary_selection_device_manager_v1", 1) [ 50226.813] wl_registry@42.global(10, "zcosmic_screencopy_manager_v1", 1) [ 50226.815] wl_registry@42.global(11, "wl_shm", 1) [ 50226.816] wl_registry@42.global(12, "wp_viewporter", 1) [ 50226.818] wl_registry@42.global(13, "org_kde_kwin_server_decoration_manager", 1) [ 50226.819] wl_registry@42.global(14, "zxdg_decoration_manager_v1", 1) [ 50226.821] wl_registry@42.global(15, "ext_session_lock_manager_v1", 1) [ 50226.822] wl_registry@42.global(17, "zwp_pointer_constraints_v1", 1) [ 50226.824] wl_registry@42.global(18, "zwp_pointer_gestures_v1", 3) [ 50226.825] wl_registry@42.global(19, "zwp_tablet_manager_v2", 1) [ 50226.827] wl_registry@42.global(20, "wp_security_context_manager_v1", 1) [ 50226.828] wl_registry@42.global(21, "zwp_input_method_manager_v2", 1) [ 50226.830] wl_registry@42.global(22, "zwp_text_input_manager_v3", 1) [ 50226.831] wl_registry@42.global(23, "zwp_virtual_keyboard_manager_v1", 1) [ 50226.833] wl_registry@42.global(24, "zwlr_layer_shell_v1", 4) [ 50226.834] wl_registry@42.global(25, "xdg_wm_base", 6) [ 50226.836] wl_registry@42.global(26, "xdg_activation_v1", 1) [ 50226.837] wl_registry@42.global(27, "zcosmic_toplevel_info_v1", 1) [ 50226.839] wl_registry@42.global(28, "zcosmic_toplevel_manager_v1", 2) [ 50226.841] wl_registry@42.global(29, "zcosmic_workspace_manager_v1", 1) [ 50226.842] wl_registry@42.global(30, "zwp_relative_pointer_manager_v1", 1) [ 50226.844] wl_registry@42.global(31, "zwp_linux_dmabuf_v1", 4) [ 50226.845] wl_registry@42.global(32, "wl_drm", 2) [ 50226.847] -> wl_registry@42.bind(32, "wl_drm", 2, new id [unknown]@51) [ 50226.849] wl_registry@42.global(33, "wp_drm_lease_device_v1", 1) [ 50226.851] wl_registry@42.global(34, "wl_output", 4) [ 50226.852] wl_registry@42.global(37, "wp_drm_lease_device_v1", 1) [ 50226.854] wl_registry@42.global(38, "wl_seat", 9) [ 50226.855] wl_callback@46.done(0) [ 50226.857] -> wl_display@1.sync(new id wl_callback@46) [ 50226.902] wl_display@1.delete_id(46) [ 50226.904] wl_drm@51.device("/dev/dri/renderD128") [ 50226.906] wl_drm@51.capabilities(1) [ 50226.907] wl_callback@46.done(0) [ 50226.916] -> wl_display@1.get_registry(new id wl_registry@46) [ 50226.918] -> wl_display@1.sync(new id wl_callback@52) [ 50226.973] wl_display@1.delete_id(52) [ 50226.975] wl_registry@46.global(1, "wl_compositor", 5) [ 50226.977] wl_registry@46.global(2, "wl_subcompositor", 1) [ 50226.979] wl_registry@46.global(3, "wl_data_device_manager", 3) [ 50226.981] wl_registry@46.global(4, "wp_fractional_scale_manager_v1", 1) [ 50226.982] wl_registry@46.global(5, "zwp_keyboard_shortcuts_inhibit_manager_v1", 1) [ 50226.984] wl_registry@46.global(6, "zxdg_output_manager_v1", 3) [ 50226.985] wl_registry@46.global(7, "zwlr_output_manager_v1", 2) [ 50226.987] wl_registry@46.global(8, "wp_presentation", 1) [ 50226.988] wl_registry@46.global(9, "zwp_primary_selection_device_manager_v1", 1) [ 50226.990] wl_registry@46.global(10, "zcosmic_screencopy_manager_v1", 1) [ 50226.991] wl_registry@46.global(11, "wl_shm", 1) [ 50226.994] wl_registry@46.global(12, "wp_viewporter", 1) [ 50226.996] wl_registry@46.global(13, "org_kde_kwin_server_decoration_manager", 1) [ 50226.997] wl_registry@46.global(14, "zxdg_decoration_manager_v1", 1) [ 50226.999] wl_registry@46.global(15, "ext_session_lock_manager_v1", 1) [ 50227.001] wl_registry@46.global(17, "zwp_pointer_constraints_v1", 1) [ 50227.003] wl_registry@46.global(18, "zwp_pointer_gestures_v1", 3) [ 50227.005] wl_registry@46.global(19, "zwp_tablet_manager_v2", 1) [ 50227.007] wl_registry@46.global(20, "wp_security_context_manager_v1", 1) [ 50227.009] wl_registry@46.global(21, "zwp_input_method_manager_v2", 1) [ 50227.010] wl_registry@46.global(22, "zwp_text_input_manager_v3", 1) [ 50227.012] wl_registry@46.global(23, "zwp_virtual_keyboard_manager_v1", 1) [ 50227.014] wl_registry@46.global(24, "zwlr_layer_shell_v1", 4) [ 50227.015] wl_registry@46.global(25, "xdg_wm_base", 6) [ 50227.018] wl_registry@46.global(26, "xdg_activation_v1", 1) [ 50227.020] wl_registry@46.global(27, "zcosmic_toplevel_info_v1", 1) [ 50227.022] wl_registry@46.global(28, "zcosmic_toplevel_manager_v1", 2) [ 50227.024] wl_registry@46.global(29, "zcosmic_workspace_manager_v1", 1) [ 50227.027] wl_registry@46.global(30, "zwp_relative_pointer_manager_v1", 1) [ 50227.028] wl_registry@46.global(31, "zwp_linux_dmabuf_v1", 4) [ 50227.030] wl_registry@46.global(32, "wl_drm", 2) [ 50227.032] -> wl_registry@46.bind(32, "wl_drm", 2, new id [unknown]@53) [ 50227.034] wl_registry@46.global(33, "wp_drm_lease_device_v1", 1) [ 50227.036] wl_registry@46.global(34, "wl_output", 4) [ 50227.038] wl_registry@46.global(37, "wp_drm_lease_device_v1", 1) [ 50227.040] wl_registry@46.global(38, "wl_seat", 9) [ 50227.041] wl_callback@52.done(0) [ 50227.043] -> wl_display@1.sync(new id wl_callback@52) [ 50227.083] wl_display@1.delete_id(52) [ 50227.085] wl_drm@53.device("/dev/dri/renderD128") [ 50227.087] wl_drm@53.capabilities(1) [ 50227.088] wl_callback@52.done(0) [ 50227.193] -> wl_drm@53.create_prime_buffer(new id wl_buffer@52, fd 24, 1024, 768, 875713112, 0, 4096, 0, 0, 0, 0) [ 50227.224] -> wl_drm@53.create_prime_buffer(new id wl_buffer@54, fd 25, 1024, 768, 875713112, 0, 4096, 0, 0, 0, 0) [ 50227.249] -> wl_drm@53.create_prime_buffer(new id wl_buffer@55, fd 26, 1024, 768, 875713112, 0, 4096, 0, 0, 0, 0) [ 50227.709] wl_keyboard@49.keymap(1, fd 20, 64788) [ 50227.727] wl_keyboard@49.repeat_info(25, 200) [ 50233.963] -> wp_viewport@23.set_destination(1024, 768) [ 50233.969] -> xdg_surface@26.set_window_geometry(0, 0, 1024, 768) [ 50233.973] -> wl_surface@21.set_opaque_region(nil) [ 50242.696] -> wl_display@1.get_registry(new id wl_registry@56) [ 50242.703] -> wl_display@1.sync(new id wl_callback@57) [ 50242.709] wl_display@1.error(wl_drm@53, 1, "Format not advertised by wl_drm") wl_drm@53: error 1: Format not advertised by wl_drm warning: queue 0x5650007362d0 destroyed while proxies still attached: wl_registry@56 still attached [2024-01-10T01:04:23Z ERROR wgpu_hal::vulkan::adapter] get_physical_device_surface_capabilities: An unknown error has occurred, due to an implementation or application bug thread 'main' panicked at HOME/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wgpu-0.18.0/src/backend/direct.rs:778:18: Error in Surface::configure: Validation Error Caused by: Surface does not support the adapter's queue family stack backtrace: warning: queue 0x7feb98000ca0 destroyed while proxies still attached: zwp_primary_selection_device_v1@48 still attached zwp_primary_selection_device_manager_v1@47 still attached wl_data_device@40 still attached wl_seat@45 still attached wl_data_device_manager@43 still attached wl_registry@41 still attached 0: rust_begin_unwind at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:645:5 1: core::panicking::panic_fmt at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/panicking.rs:72:14 2: wgpu::backend::direct::Context::handle_error_fatal 3: ::surface_configure 4: ::surface_configure 5: wgpu::Surface::configure 6: as iced_graphics::compositor::Compositor>::configure_surface 7: iced_winit::application::run::{{closure}} 8: winit::platform_impl::platform::wayland::event_loop::EventLoop::run_return 9: iced_winit::application::run 10: cosmic_term::main note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace. warning: queue 0x564fff32f610 destroyed while proxies still attached: xdg_wm_base@24 still attached wl_seat@15 still attached wl_output@14 still attached zwp_relative_pointer_manager_v1@13 still attached xdg_activation_v1@12 still attached zwp_text_input_manager_v3@11 still attached zwp_pointer_constraints_v1@10 still attached zxdg_decoration_manager_v1@9 still attached wp_viewporter@8 still attached wl_shm@7 still attached wp_fractional_scale_manager_v1@6 still attached wl_subcompositor@5 still attached wl_compositor@4 still attached wl_registry@2 still attached ```
ids1024 commented 9 months ago

So the client is trying to use 875713112. That's XRGB8888. Which I think should be supported fine?

But wl_drm::format isn't being sent here, so either the compositor isn't advertising any formats, or the client isn't waiting for the compositor before selecting the format.

ids1024 commented 9 months ago

Yeah, I think wl_drm::format should appear in the log right after wl_drm::capabilities. Is the format list empty, or did wl_drm::Format::try_from(*format as u32) fail to convert any formats, somehow?

jokeyrhyme commented 9 months ago

I can add more instrumentation somewhere and recompile to find out?

ids1024 commented 9 months ago

I'd probably change https://github.com/pop-os/cosmic-comp/blob/f75d89b4240fb25f6e43443efd18f95c8484a620/src/wayland/protocols/drm.rs#L93-L98 to something like:

for format in global_data.formats.iter() {
    dbg!(format);
    if let Ok(converted) = dbg!(wl_drm::Format::try_from(*format as u32)) {
        drm_instance.format(converted as u32);
    }
}

I'm not really familiar with AMDVLK, but I should be able to test it, assuming it works with any modern integrated AMD GPU.

jokeyrhyme commented 9 months ago

Hmmm, I've tried compiling cosmic-comp with cargo build --release and cargo build (debug) and neither results in dbg!(...) output ending up in journalctl -xb

I even put a trivial dbg!("cosmic-comp starting up"); in main.rs to confirm, and it doesn't appear in the logs

Do I need to run cosmic-comp or cosmic-session with an environment variable to get this log output?

ids1024 commented 9 months ago

Oh yeah. dbg! will just be written to stderr, not journald. Something like ./target/release/cosmic-comp 2>&1 | tee log-file is what I often use to test that sort of thing. Something like tracing::error! will instead write to both journald and stderr.

jokeyrhyme commented 9 months ago

Okay, I instrumented the start of cosmic-comp::main() and cosmic-comp::wayland::protocols::drm::WlDrmState::bind() , as well as the body of the for loop in the latter

I can see that bind() is called multiple times when trying to run cosmic-term, but there is no output from inside the loop, so I assume this means global_data.formats is empty

ids1024 commented 9 months ago

Seems AMDVLK recently dropped support for older graphics, including the Renoir APU I have handy, but https://github.com/GPUOpen-Drivers/AMDVLK/releases/tag/v-2023.Q3.3 works.

I am able to reproduce the issue easily with that.

ids1024 commented 9 months ago

Ah, so .filter(|f| f.modifier == Modifier::Invalid) ends up filtering out all of the formats. ("Invalid" here means formats that work with an "implicit dmabuf modifier".)

Removing that gives me wl_drm@53: error 2: buffer import failed instead. Presumably Mesa's EGL failed to import the dmabuf.

I could make sense that Mesa is requiring explicit modifiers for import while AMDVLK needs wl_drm which doesn't support them, but then if other compositors work with the same drivers, I'm not sure what they're doing differently.

ids1024 commented 9 months ago

https://github.com/Smithay/smithay/pull/1274 seems to fix this.

i509VCB commented 9 months ago

Also an issue to see if amdvlk will implement zwp-linux-dmabuf-v1: https://github.com/GPUOpen-Drivers/pal/issues/96

ids1024 commented 9 months ago

Yeah, AMDVLK should move to the dmabuf protocol, and probably make use of explicit modifiers. wl_drm is basically a deprecated API at this point, and Mesa and compositors are interested in dropping support for it once it's no longer needed anywhere.

RADV likely offers overall better Wayland support, though there is still more to improve in Mesa's Vulkan and EGL Wayland WSI support.

ids1024 commented 9 months ago

This should be fixed now that the Smithay PR is merged, and cosmic-comp has updated Smithay.

jokeyrhyme commented 9 months ago

I can confirm that this is fixed for me: https://github.com/pop-os/cosmic-epoch/pull/186