emersion / xdg-desktop-portal-wlr

xdg-desktop-portal backend for wlroots
MIT License
580 stars 54 forks source link

Assertion failed on initialization #216

Closed brunoanc closed 1 year ago

brunoanc commented 2 years ago

I'm trying to use this with Hyprland, with wlroots-git AUR package, but it crashes on startup.

Here's the output of systemctl --user status xdg-desktop-portal-wlr:

× xdg-desktop-portal-wlr.service - Portal service (wlroots implementation)
     Loaded: loaded (/usr/lib/systemd/user/xdg-desktop-portal-wlr.service; static)
     Active: failed (Result: core-dump) since Sun 2022-06-12 15:25:49 CDT; 21s ago
    Process: 5170 ExecStart=/usr/lib/xdg-desktop-portal-wlr (code=dumped, signal=ABRT)
   Main PID: 5170 (code=dumped, signal=ABRT)
        CPU: 45ms

Jun 12 15:25:49 bruno-arch systemd[744]: xdg-desktop-portal-wlr.service: Failed with result 'core-dump'.
Jun 12 15:25:49 bruno-arch systemd[744]: Failed to start Portal service (wlroots implementation).
Jun 12 15:25:49 bruno-arch systemd[744]: xdg-desktop-portal-wlr.service: Scheduled restart job, restart counter is at 5.
Jun 12 15:25:49 bruno-arch systemd[744]: Stopped Portal service (wlroots implementation).
Jun 12 15:25:49 bruno-arch systemd[744]: xdg-desktop-portal-wlr.service: Start request repeated too quickly.
Jun 12 15:25:49 bruno-arch systemd[744]: xdg-desktop-portal-wlr.service: Failed with result 'core-dump'.
Jun 12 15:25:49 bruno-arch systemd[744]: Failed to start Portal service (wlroots implementation).

Running manually to determine the error yields the following:

xdg-desktop-portal-wlr: ../src/screencast/wlr_screencast.c:612: linux_dmabuf_feedback_handle_main_device: Assertion `ctx->gbm == NULL' failed.
[2]  + 5069 IOT instruction (core dumped)  /usr/lib/xdg-desktop-portal-wlr

I'll provide any additional information if needed.

brunoanc commented 2 years ago

I'm using systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP on my Hyprland config.

brunoanc commented 2 years ago

Everything seems to work fine when downgrading to v5.0.0.

columbarius commented 2 years ago

Please provide a TRACE log.

/usr/lib/xdg-desktop-portal-wlr -r -l TRACE
brunoanc commented 2 years ago
2022/06/12 19:45:30 [TRACE] - config: trying config file /home/bruno/.config/xdg-desktop-portal-wlr/hyprland
2022/06/12 19:45:30 [TRACE] - config: trying config file /home/bruno/.config/xdg-desktop-portal-wlr/config
2022/06/12 19:45:30 [TRACE] - config: trying config file /etc/xdg/xdg-desktop-portal-wlr/hyprland
2022/06/12 19:45:30 [TRACE] - config: trying config file /etc/xdg/xdg-desktop-portal-wlr/config
2022/06/12 19:45:30 [INFO] - config: no config file found, using the default config
2022/06/12 19:45:30 [DEBUG] - config: outputname:  (null)
2022/06/12 19:45:30 [DEBUG] - config: max_fps:  0.000000
2022/06/12 19:45:30 [DEBUG] - config: exec_before:  (null)
2022/06/12 19:45:30 [DEBUG] - config: exec_after:  (null)
2022/06/12 19:45:30 [DEBUG] - config: chooser_cmd: (null)
2022/06/12 19:45:30 [DEBUG] - config: chooser_type: default
2022/06/12 19:45:30 [DEBUG] - config: force_mod_linear: 0
2022/06/12 19:45:30 [DEBUG] - dbus: connected
2022/06/12 19:45:30 [DEBUG] - wlroots: wl_display connected
2022/06/12 19:45:30 [DEBUG] - pipewire: pw_loop created
2022/06/12 19:45:30 [DEBUG] - pipewire: establishing connection to core
2022/06/12 19:45:30 [DEBUG] - wlroots: interface to register wl_shm  (Version: 1)
2022/06/12 19:45:30 [DEBUG] - wlroots: |-- registered to interface wl_shm (Version 1)
2022/06/12 19:45:30 [DEBUG] - wlroots: interface to register wl_drm  (Version: 2)
2022/06/12 19:45:30 [DEBUG] - wlroots: interface to register zwp_linux_dmabuf_v1  (Version: 4)
2022/06/12 19:45:30 [DEBUG] - wlroots: |-- registered to interface zwp_linux_dmabuf_v1 (Version 4)
2022/06/12 19:45:30 [DEBUG] - wlroots: interface to register wl_compositor  (Version: 4)
2022/06/12 19:45:30 [DEBUG] - wlroots: interface to register wl_subcompositor  (Version: 1)
2022/06/12 19:45:30 [DEBUG] - wlroots: interface to register wl_data_device_manager  (Version: 3)
2022/06/12 19:45:30 [DEBUG] - wlroots: interface to register zwp_linux_dmabuf_v1  (Version: 4)
2022/06/12 19:45:30 [DEBUG] - wlroots: |-- registered to interface zwp_linux_dmabuf_v1 (Version 4)
2022/06/12 19:45:30 [DEBUG] - wlroots: interface to register zwlr_export_dmabuf_manager_v1  (Version: 1)
2022/06/12 19:45:30 [DEBUG] - wlroots: interface to register zwlr_screencopy_manager_v1  (Version: 3)
2022/06/12 19:45:30 [DEBUG] - wlroots: |-- registered to interface zwlr_screencopy_manager_v1 (Version 3)
2022/06/12 19:45:30 [DEBUG] - wlroots: interface to register zwlr_data_control_manager_v1  (Version: 2)
2022/06/12 19:45:30 [DEBUG] - wlroots: interface to register zwlr_gamma_control_manager_v1  (Version: 1)
2022/06/12 19:45:30 [DEBUG] - wlroots: interface to register zwp_primary_selection_device_manager_v1  (Version: 1)
2022/06/12 19:45:30 [DEBUG] - wlroots: interface to register wp_viewporter  (Version: 1)
2022/06/12 19:45:30 [DEBUG] - wlroots: interface to register xdg_wm_base  (Version: 3)
2022/06/12 19:45:30 [DEBUG] - wlroots: interface to register wl_seat  (Version: 7)
2022/06/12 19:45:30 [DEBUG] - wlroots: interface to register wp_presentation  (Version: 1)
2022/06/12 19:45:30 [DEBUG] - wlroots: interface to register org_kde_kwin_idle  (Version: 1)
2022/06/12 19:45:30 [DEBUG] - wlroots: interface to register zwlr_layer_shell_v1  (Version: 4)
2022/06/12 19:45:30 [DEBUG] - wlroots: interface to register org_kde_kwin_server_decoration_manager  (Version: 1)
2022/06/12 19:45:30 [DEBUG] - wlroots: interface to register zxdg_decoration_manager_v1  (Version: 1)
2022/06/12 19:45:30 [DEBUG] - wlroots: interface to register zxdg_output_manager_v1  (Version: 3)
2022/06/12 19:45:30 [DEBUG] - wlroots: |-- registered to interface zxdg_output_manager_v1 (Version 3)
2022/06/12 19:45:30 [DEBUG] - wlroots: interface to register zwlr_output_manager_v1  (Version: 2)
2022/06/12 19:45:30 [DEBUG] - wlroots: interface to register zwlr_input_inhibit_manager_v1  (Version: 1)
2022/06/12 19:45:30 [DEBUG] - wlroots: interface to register zwp_keyboard_shortcuts_inhibit_manager_v1  (Version: 1)
2022/06/12 19:45:30 [DEBUG] - wlroots: interface to register zext_workspace_manager_v1  (Version: 1)
2022/06/12 19:45:30 [DEBUG] - wlroots: interface to register zwp_pointer_constraints_v1  (Version: 1)
2022/06/12 19:45:30 [DEBUG] - wlroots: interface to register zwp_relative_pointer_manager_v1  (Version: 1)
2022/06/12 19:45:30 [DEBUG] - wlroots: interface to register zwp_virtual_keyboard_manager_v1  (Version: 1)
2022/06/12 19:45:30 [DEBUG] - wlroots: interface to register zwlr_virtual_pointer_manager_v1  (Version: 2)
2022/06/12 19:45:30 [DEBUG] - wlroots: interface to register zwlr_foreign_toplevel_manager_v1  (Version: 3)
2022/06/12 19:45:30 [DEBUG] - wlroots: interface to register zwp_tablet_manager_v2  (Version: 1)
2022/06/12 19:45:30 [DEBUG] - wlroots: interface to register wl_output  (Version: 4)
2022/06/12 19:45:30 [DEBUG] - wlroots: |-- registered to interface wl_output (Version 1)
2022/06/12 19:45:30 [DEBUG] - wayland: registry listeners run
2022/06/12 19:45:30 [DEBUG] - wlroots: linux_dmabuf_feedback_handle_main_device called
2022/06/12 19:45:30 [INFO] - xdpw: Using render node /dev/dri/renderD128
2022/06/12 19:45:30 [DEBUG] - wlroots: linux_dmabuf_feedback_format_table called
2022/06/12 19:45:30 [DEBUG] - wlroots: linux_dmabuf_feedback_tranche_target_devices called
2022/06/12 19:45:30 [DEBUG] - wlroots: linux_dmabuf_feedback_tranche_flags called
2022/06/12 19:45:30 [DEBUG] - wlroots: linux_dmabuf_feedback_tranche_formats called
2022/06/12 19:45:30 [TRACE] - wlroots: format 1211384385 (72057594037927935)
2022/06/12 19:45:30 [TRACE] - wlroots: format 1211384385 (0)
2022/06/12 19:45:30 [TRACE] - wlroots: format 1211384385 (72057594037927937)
2022/06/12 19:45:30 [TRACE] - wlroots: format 1211384385 (72057594037927938)
2022/06/12 19:45:30 [TRACE] - wlroots: format 1211384385 (72057594037927940)
2022/06/12 19:45:30 [TRACE] - wlroots: format 1211384408 (72057594037927935)
2022/06/12 19:45:30 [TRACE] - wlroots: format 1211384408 (0)
2022/06/12 19:45:30 [TRACE] - wlroots: format 1211384408 (72057594037927937)
2022/06/12 19:45:30 [TRACE] - wlroots: format 1211384408 (72057594037927938)
2022/06/12 19:45:30 [TRACE] - wlroots: format 1211384408 (72057594037927940)
2022/06/12 19:45:30 [TRACE] - wlroots: format 808669761 (72057594037927935)
2022/06/12 19:45:30 [TRACE] - wlroots: format 808669761 (0)
2022/06/12 19:45:30 [TRACE] - wlroots: format 808669761 (72057594037927937)
2022/06/12 19:45:30 [TRACE] - wlroots: format 808669761 (72057594037927938)
2022/06/12 19:45:30 [TRACE] - wlroots: format 808669784 (72057594037927935)
2022/06/12 19:45:30 [TRACE] - wlroots: format 808669784 (0)
2022/06/12 19:45:30 [TRACE] - wlroots: format 808669784 (72057594037927937)
2022/06/12 19:45:30 [TRACE] - wlroots: format 808669784 (72057594037927938)
2022/06/12 19:45:30 [TRACE] - wlroots: format 808665665 (72057594037927935)
2022/06/12 19:45:30 [TRACE] - wlroots: format 808665665 (0)
2022/06/12 19:45:30 [TRACE] - wlroots: format 808665665 (72057594037927937)
2022/06/12 19:45:30 [TRACE] - wlroots: format 808665665 (72057594037927938)
2022/06/12 19:45:30 [TRACE] - wlroots: format 875713089 (72057594037927935)
2022/06/12 19:45:30 [TRACE] - wlroots: format 875713089 (0)
2022/06/12 19:45:30 [TRACE] - wlroots: format 875713089 (72057594037927937)
2022/06/12 19:45:30 [TRACE] - wlroots: format 875713089 (72057594037927938)
2022/06/12 19:45:30 [TRACE] - wlroots: format 875713089 (72057594037927940)
2022/06/12 19:45:30 [TRACE] - wlroots: format 875708993 (72057594037927935)
2022/06/12 19:45:30 [TRACE] - wlroots: format 875708993 (0)
2022/06/12 19:45:30 [TRACE] - wlroots: format 875708993 (72057594037927937)
2022/06/12 19:45:30 [TRACE] - wlroots: format 875708993 (72057594037927938)
2022/06/12 19:45:30 [TRACE] - wlroots: format 875708993 (72057594037927940)
2022/06/12 19:45:30 [TRACE] - wlroots: format 875713112 (72057594037927935)
2022/06/12 19:45:30 [TRACE] - wlroots: format 875713112 (0)
2022/06/12 19:45:30 [TRACE] - wlroots: format 875713112 (72057594037927937)
2022/06/12 19:45:30 [TRACE] - wlroots: format 875713112 (72057594037927938)
2022/06/12 19:45:30 [TRACE] - wlroots: format 875713112 (72057594037927940)
2022/06/12 19:45:30 [TRACE] - wlroots: format 875709016 (72057594037927935)
2022/06/12 19:45:30 [TRACE] - wlroots: format 875709016 (0)
2022/06/12 19:45:30 [TRACE] - wlroots: format 875709016 (72057594037927937)
2022/06/12 19:45:30 [TRACE] - wlroots: format 875709016 (72057594037927938)
2022/06/12 19:45:30 [TRACE] - wlroots: format 875709016 (72057594037927940)
2022/06/12 19:45:30 [TRACE] - wlroots: format 892424769 (72057594037927935)
2022/06/12 19:45:30 [TRACE] - wlroots: format 892424769 (0)
2022/06/12 19:45:30 [TRACE] - wlroots: format 892424769 (72057594037927937)
2022/06/12 19:45:30 [TRACE] - wlroots: format 892424769 (72057594037927938)
2022/06/12 19:45:30 [TRACE] - wlroots: format 909199186 (72057594037927935)
2022/06/12 19:45:30 [TRACE] - wlroots: format 909199186 (0)
2022/06/12 19:45:30 [TRACE] - wlroots: format 909199186 (72057594037927937)
2022/06/12 19:45:30 [TRACE] - wlroots: format 909199186 (72057594037927938)
2022/06/12 19:45:30 [TRACE] - wlroots: format 538982482 (72057594037927935)
2022/06/12 19:45:30 [TRACE] - wlroots: format 538982482 (0)
2022/06/12 19:45:30 [TRACE] - wlroots: format 538982482 (72057594037927937)
2022/06/12 19:45:30 [TRACE] - wlroots: format 538982482 (72057594037927938)
2022/06/12 19:45:30 [TRACE] - wlroots: format 540422482 (72057594037927935)
2022/06/12 19:45:30 [TRACE] - wlroots: format 540422482 (0)
2022/06/12 19:45:30 [TRACE] - wlroots: format 540422482 (72057594037927937)
2022/06/12 19:45:30 [TRACE] - wlroots: format 540422482 (72057594037927938)
2022/06/12 19:45:30 [TRACE] - wlroots: format 943215175 (72057594037927935)
2022/06/12 19:45:30 [TRACE] - wlroots: format 943215175 (0)
2022/06/12 19:45:30 [TRACE] - wlroots: format 943215175 (72057594037927937)
2022/06/12 19:45:30 [TRACE] - wlroots: format 943215175 (72057594037927938)
2022/06/12 19:45:30 [TRACE] - wlroots: format 842224199 (72057594037927935)
2022/06/12 19:45:30 [TRACE] - wlroots: format 842224199 (0)
2022/06/12 19:45:30 [TRACE] - wlroots: format 842224199 (72057594037927937)
2022/06/12 19:45:30 [TRACE] - wlroots: format 842224199 (72057594037927938)
2022/06/12 19:45:30 [TRACE] - wlroots: format 842224199 (72057594037927940)
2022/06/12 19:45:30 [TRACE] - wlroots: format 961959257 (72057594037927935)
2022/06/12 19:45:30 [TRACE] - wlroots: format 961959257 (0)
2022/06/12 19:45:30 [TRACE] - wlroots: format 961959257 (72057594037927937)
2022/06/12 19:45:30 [TRACE] - wlroots: format 961959257 (72057594037927938)
2022/06/12 19:45:30 [TRACE] - wlroots: format 825316697 (72057594037927935)
2022/06/12 19:45:30 [TRACE] - wlroots: format 825316697 (0)
2022/06/12 19:45:30 [TRACE] - wlroots: format 825316697 (72057594037927937)
2022/06/12 19:45:30 [TRACE] - wlroots: format 825316697 (72057594037927938)
2022/06/12 19:45:30 [TRACE] - wlroots: format 842093913 (72057594037927935)
2022/06/12 19:45:30 [TRACE] - wlroots: format 842093913 (0)
2022/06/12 19:45:30 [TRACE] - wlroots: format 842093913 (72057594037927937)
2022/06/12 19:45:30 [TRACE] - wlroots: format 842093913 (72057594037927938)
2022/06/12 19:45:30 [TRACE] - wlroots: format 909202777 (72057594037927935)
2022/06/12 19:45:30 [TRACE] - wlroots: format 909202777 (0)
2022/06/12 19:45:30 [TRACE] - wlroots: format 909202777 (72057594037927937)
2022/06/12 19:45:30 [TRACE] - wlroots: format 909202777 (72057594037927938)
2022/06/12 19:45:30 [TRACE] - wlroots: format 875713881 (72057594037927935)
2022/06/12 19:45:30 [TRACE] - wlroots: format 875713881 (0)
2022/06/12 19:45:30 [TRACE] - wlroots: format 875713881 (72057594037927937)
2022/06/12 19:45:30 [TRACE] - wlroots: format 875713881 (72057594037927938)
2022/06/12 19:45:30 [TRACE] - wlroots: format 961893977 (72057594037927935)
2022/06/12 19:45:30 [TRACE] - wlroots: format 961893977 (0)
2022/06/12 19:45:30 [TRACE] - wlroots: format 961893977 (72057594037927937)
2022/06/12 19:45:30 [TRACE] - wlroots: format 961893977 (72057594037927938)
2022/06/12 19:45:30 [TRACE] - wlroots: format 825316953 (72057594037927935)
2022/06/12 19:45:30 [TRACE] - wlroots: format 825316953 (0)
2022/06/12 19:45:30 [TRACE] - wlroots: format 825316953 (72057594037927937)
2022/06/12 19:45:30 [TRACE] - wlroots: format 825316953 (72057594037927938)
2022/06/12 19:45:30 [TRACE] - wlroots: format 842094169 (72057594037927935)
2022/06/12 19:45:30 [TRACE] - wlroots: format 842094169 (0)
2022/06/12 19:45:30 [TRACE] - wlroots: format 842094169 (72057594037927937)
2022/06/12 19:45:30 [TRACE] - wlroots: format 842094169 (72057594037927938)
2022/06/12 19:45:30 [TRACE] - wlroots: format 909203033 (72057594037927935)
2022/06/12 19:45:30 [TRACE] - wlroots: format 909203033 (0)
2022/06/12 19:45:30 [TRACE] - wlroots: format 909203033 (72057594037927937)
2022/06/12 19:45:30 [TRACE] - wlroots: format 909203033 (72057594037927938)
2022/06/12 19:45:30 [TRACE] - wlroots: format 875714137 (72057594037927935)
2022/06/12 19:45:30 [TRACE] - wlroots: format 875714137 (0)
2022/06/12 19:45:30 [TRACE] - wlroots: format 875714137 (72057594037927937)
2022/06/12 19:45:30 [TRACE] - wlroots: format 875714137 (72057594037927938)
2022/06/12 19:45:30 [TRACE] - wlroots: format 842094158 (72057594037927935)
2022/06/12 19:45:30 [TRACE] - wlroots: format 842094158 (0)
2022/06/12 19:45:30 [TRACE] - wlroots: format 842094158 (72057594037927937)
2022/06/12 19:45:30 [TRACE] - wlroots: format 842094158 (72057594037927938)
2022/06/12 19:45:30 [TRACE] - wlroots: format 808530000 (72057594037927935)
2022/06/12 19:45:30 [TRACE] - wlroots: format 808530000 (0)
2022/06/12 19:45:30 [TRACE] - wlroots: format 808530000 (72057594037927937)
2022/06/12 19:45:30 [TRACE] - wlroots: format 808530000 (72057594037927938)
2022/06/12 19:45:30 [TRACE] - wlroots: format 842084432 (72057594037927935)
2022/06/12 19:45:30 [TRACE] - wlroots: format 842084432 (0)
2022/06/12 19:45:30 [TRACE] - wlroots: format 842084432 (72057594037927937)
2022/06/12 19:45:30 [TRACE] - wlroots: format 842084432 (72057594037927938)
2022/06/12 19:45:30 [TRACE] - wlroots: format 909193296 (72057594037927935)
2022/06/12 19:45:30 [TRACE] - wlroots: format 909193296 (0)
2022/06/12 19:45:30 [TRACE] - wlroots: format 909193296 (72057594037927937)
2022/06/12 19:45:30 [TRACE] - wlroots: format 909193296 (72057594037927938)
2022/06/12 19:45:30 [TRACE] - wlroots: format 909203022 (72057594037927935)
2022/06/12 19:45:30 [TRACE] - wlroots: format 909203022 (0)
2022/06/12 19:45:30 [TRACE] - wlroots: format 909203022 (72057594037927937)
2022/06/12 19:45:30 [TRACE] - wlroots: format 909203022 (72057594037927938)
2022/06/12 19:45:30 [TRACE] - wlroots: format 1448433985 (72057594037927935)
2022/06/12 19:45:30 [TRACE] - wlroots: format 1448433985 (0)
2022/06/12 19:45:30 [TRACE] - wlroots: format 1448433985 (72057594037927937)
2022/06/12 19:45:30 [TRACE] - wlroots: format 1448433985 (72057594037927938)
2022/06/12 19:45:30 [TRACE] - wlroots: format 1448434008 (72057594037927935)
2022/06/12 19:45:30 [TRACE] - wlroots: format 1448434008 (0)
2022/06/12 19:45:30 [TRACE] - wlroots: format 1448434008 (72057594037927937)
2022/06/12 19:45:30 [TRACE] - wlroots: format 1448434008 (72057594037927938)
2022/06/12 19:45:30 [TRACE] - wlroots: format 808531033 (72057594037927935)
2022/06/12 19:45:30 [TRACE] - wlroots: format 808531033 (0)
2022/06/12 19:45:30 [TRACE] - wlroots: format 808531033 (72057594037927937)
2022/06/12 19:45:30 [TRACE] - wlroots: format 808531033 (72057594037927938)
2022/06/12 19:45:30 [TRACE] - wlroots: format 842085465 (72057594037927935)
2022/06/12 19:45:30 [TRACE] - wlroots: format 842085465 (0)
2022/06/12 19:45:30 [TRACE] - wlroots: format 842085465 (72057594037927937)
2022/06/12 19:45:30 [TRACE] - wlroots: format 842085465 (72057594037927938)
2022/06/12 19:45:30 [TRACE] - wlroots: format 909194329 (72057594037927935)
2022/06/12 19:45:30 [TRACE] - wlroots: format 909194329 (0)
2022/06/12 19:45:30 [TRACE] - wlroots: format 909194329 (72057594037927937)
2022/06/12 19:45:30 [TRACE] - wlroots: format 909194329 (72057594037927938)
2022/06/12 19:45:30 [TRACE] - wlroots: format 1448695129 (72057594037927935)
2022/06/12 19:45:30 [TRACE] - wlroots: format 1448695129 (0)
2022/06/12 19:45:30 [TRACE] - wlroots: format 1448695129 (72057594037927937)
2022/06/12 19:45:30 [TRACE] - wlroots: format 1448695129 (72057594037927938)
2022/06/12 19:45:30 [TRACE] - wlroots: format 1498831189 (72057594037927935)
2022/06/12 19:45:30 [TRACE] - wlroots: format 1498831189 (0)
2022/06/12 19:45:30 [TRACE] - wlroots: format 1498831189 (72057594037927937)
2022/06/12 19:45:30 [TRACE] - wlroots: format 1498831189 (72057594037927938)
2022/06/12 19:45:30 [TRACE] - wlroots: format 808530521 (72057594037927935)
2022/06/12 19:45:30 [TRACE] - wlroots: format 808530521 (0)
2022/06/12 19:45:30 [TRACE] - wlroots: format 808530521 (72057594037927937)
2022/06/12 19:45:30 [TRACE] - wlroots: format 808530521 (72057594037927938)
2022/06/12 19:45:30 [TRACE] - wlroots: format 842084953 (72057594037927935)
2022/06/12 19:45:30 [TRACE] - wlroots: format 842084953 (0)
2022/06/12 19:45:30 [TRACE] - wlroots: format 842084953 (72057594037927937)
2022/06/12 19:45:30 [TRACE] - wlroots: format 842084953 (72057594037927938)
2022/06/12 19:45:30 [TRACE] - wlroots: format 909193817 (72057594037927935)
2022/06/12 19:45:30 [TRACE] - wlroots: format 909193817 (0)
2022/06/12 19:45:30 [TRACE] - wlroots: format 909193817 (72057594037927937)
2022/06/12 19:45:30 [TRACE] - wlroots: format 909193817 (72057594037927938)
2022/06/12 19:45:30 [DEBUG] - wlroots: linux_dmabuf_feedback_tranche_done called
2022/06/12 19:45:30 [DEBUG] - wlroots: linux_dmabuf_feedback_handle_done called
2022/06/12 19:45:30 [DEBUG] - wlroots: linux_dmabuf_feedback_handle_main_device called
xdg-desktop-portal-wlr: ../src/screencast/wlr_screencast.c:612: linux_dmabuf_feedback_handle_main_device: Assertion `ctx->gbm == NULL' failed.
[1]    1756 IOT instruction (core dumped)  /usr/lib/xdg-desktop-portal-wlr -r -l TRACE &> trace.log
columbarius commented 2 years ago

And again with WAYLAND_DEBUG=1 please. Could you please run it with another wlroots compositor to test if the second handle_main_device originates from wlroots or hyperland.

brunoanc commented 2 years ago

With WAYLAND_DEBUG=1:

2022/06/13 07:43:26 [TRACE] - config: trying config file /home/bruno/.config/xdg-desktop-portal-wlr/hyprland
2022/06/13 07:43:26 [TRACE] - config: trying config file /home/bruno/.config/xdg-desktop-portal-wlr/config
2022/06/13 07:43:26 [TRACE] - config: trying config file /etc/xdg/xdg-desktop-portal-wlr/hyprland
2022/06/13 07:43:26 [TRACE] - config: trying config file /etc/xdg/xdg-desktop-portal-wlr/config
2022/06/13 07:43:26 [INFO] - config: no config file found, using the default config
2022/06/13 07:43:26 [DEBUG] - config: outputname:  (null)
2022/06/13 07:43:26 [DEBUG] - config: max_fps:  0.000000
2022/06/13 07:43:26 [DEBUG] - config: exec_before:  (null)
2022/06/13 07:43:26 [DEBUG] - config: exec_after:  (null)
2022/06/13 07:43:26 [DEBUG] - config: chooser_cmd: (null)
2022/06/13 07:43:26 [DEBUG] - config: chooser_type: default
2022/06/13 07:43:26 [DEBUG] - config: force_mod_linear: 0
2022/06/13 07:43:26 [DEBUG] - dbus: connected
2022/06/13 07:43:26 [DEBUG] - wlroots: wl_display connected
2022/06/13 07:43:26 [DEBUG] - pipewire: pw_loop created
2022/06/13 07:43:26 [DEBUG] - pipewire: establishing connection to core
[2724026.627]  -> wl_display@1.get_registry(new id wl_registry@2)
[2724026.660]  -> wl_display@1.sync(new id wl_callback@3)
[2724026.817] wl_display@1.delete_id(3)
[2724026.841] wl_registry@2.global(1, "wl_shm", 1)
2022/06/13 07:43:26 [DEBUG] - wlroots: interface to register wl_shm  (Version: 1)
2022/06/13 07:43:26 [DEBUG] - wlroots: |-- registered to interface wl_shm (Version 1)
[2724026.912]  -> wl_registry@2.bind(1, "wl_shm", 1, new id [unknown]@4)
[2724026.947] wl_registry@2.global(2, "wl_drm", 2)
2022/06/13 07:43:26 [DEBUG] - wlroots: interface to register wl_drm  (Version: 2)
[2724026.990] wl_registry@2.global(3, "zwp_linux_dmabuf_v1", 4)
2022/06/13 07:43:26 [DEBUG] - wlroots: interface to register zwp_linux_dmabuf_v1  (Version: 4)
2022/06/13 07:43:26 [DEBUG] - wlroots: |-- registered to interface zwp_linux_dmabuf_v1 (Version 4)
[2724027.053]  -> wl_registry@2.bind(3, "zwp_linux_dmabuf_v1", 4, new id [unknown]@5)
[2724027.089]  -> zwp_linux_dmabuf_v1@5.get_default_feedback(new id zwp_linux_dmabuf_feedback_v1@6)
[2724027.115] wl_registry@2.global(4, "wl_compositor", 4)
2022/06/13 07:43:26 [DEBUG] - wlroots: interface to register wl_compositor  (Version: 4)
[2724027.169] wl_registry@2.global(5, "wl_subcompositor", 1)
2022/06/13 07:43:26 [DEBUG] - wlroots: interface to register wl_subcompositor  (Version: 1)
[2724027.213] wl_registry@2.global(6, "wl_data_device_manager", 3)
2022/06/13 07:43:26 [DEBUG] - wlroots: interface to register wl_data_device_manager  (Version: 3)
[2724027.257] wl_registry@2.global(7, "zwp_linux_dmabuf_v1", 4)
2022/06/13 07:43:26 [DEBUG] - wlroots: interface to register zwp_linux_dmabuf_v1  (Version: 4)
2022/06/13 07:43:26 [DEBUG] - wlroots: |-- registered to interface zwp_linux_dmabuf_v1 (Version 4)
[2724027.319]  -> wl_registry@2.bind(7, "zwp_linux_dmabuf_v1", 4, new id [unknown]@7)
[2724027.355]  -> zwp_linux_dmabuf_v1@7.get_default_feedback(new id zwp_linux_dmabuf_feedback_v1@8)
[2724027.379] wl_registry@2.global(8, "zwlr_export_dmabuf_manager_v1", 1)
2022/06/13 07:43:26 [DEBUG] - wlroots: interface to register zwlr_export_dmabuf_manager_v1  (Version: 1)
[2724027.422] wl_registry@2.global(9, "zwlr_screencopy_manager_v1", 3)
2022/06/13 07:43:26 [DEBUG] - wlroots: interface to register zwlr_screencopy_manager_v1  (Version: 3)
2022/06/13 07:43:26 [DEBUG] - wlroots: |-- registered to interface zwlr_screencopy_manager_v1 (Version 3)
[2724027.484]  -> wl_registry@2.bind(9, "zwlr_screencopy_manager_v1", 3, new id [unknown]@9)
[2724027.518] wl_registry@2.global(10, "zwlr_data_control_manager_v1", 2)
2022/06/13 07:43:26 [DEBUG] - wlroots: interface to register zwlr_data_control_manager_v1  (Version: 2)
[2724027.561] wl_registry@2.global(11, "zwlr_gamma_control_manager_v1", 1)
2022/06/13 07:43:26 [DEBUG] - wlroots: interface to register zwlr_gamma_control_manager_v1  (Version: 1)
[2724027.604] wl_registry@2.global(12, "zwp_primary_selection_device_manager_v1", 1)
2022/06/13 07:43:26 [DEBUG] - wlroots: interface to register zwp_primary_selection_device_manager_v1  (Version: 1)
[2724027.663] wl_registry@2.global(13, "wp_viewporter", 1)
2022/06/13 07:43:26 [DEBUG] - wlroots: interface to register wp_viewporter  (Version: 1)
[2724027.707] wl_registry@2.global(14, "xdg_wm_base", 3)
2022/06/13 07:43:26 [DEBUG] - wlroots: interface to register xdg_wm_base  (Version: 3)
[2724027.750] wl_registry@2.global(15, "wl_seat", 7)
2022/06/13 07:43:26 [DEBUG] - wlroots: interface to register wl_seat  (Version: 7)
[2724027.793] wl_registry@2.global(16, "wp_presentation", 1)
2022/06/13 07:43:26 [DEBUG] - wlroots: interface to register wp_presentation  (Version: 1)
[2724027.837] wl_registry@2.global(17, "org_kde_kwin_idle", 1)
2022/06/13 07:43:26 [DEBUG] - wlroots: interface to register org_kde_kwin_idle  (Version: 1)
[2724027.880] wl_registry@2.global(18, "zwlr_layer_shell_v1", 4)
2022/06/13 07:43:26 [DEBUG] - wlroots: interface to register zwlr_layer_shell_v1  (Version: 4)
[2724027.923] wl_registry@2.global(19, "org_kde_kwin_server_decoration_manager", 1)
2022/06/13 07:43:26 [DEBUG] - wlroots: interface to register org_kde_kwin_server_decoration_manager  (Version: 1)
[2724027.966] wl_registry@2.global(20, "zxdg_decoration_manager_v1", 1)
2022/06/13 07:43:26 [DEBUG] - wlroots: interface to register zxdg_decoration_manager_v1  (Version: 1)
[2724028.009] wl_registry@2.global(21, "zxdg_output_manager_v1", 3)
2022/06/13 07:43:26 [DEBUG] - wlroots: interface to register zxdg_output_manager_v1  (Version: 3)
2022/06/13 07:43:26 [DEBUG] - wlroots: |-- registered to interface zxdg_output_manager_v1 (Version 3)
[2724028.073]  -> wl_registry@2.bind(21, "zxdg_output_manager_v1", 3, new id [unknown]@10)
[2724028.109] wl_registry@2.global(22, "zwlr_output_manager_v1", 2)
2022/06/13 07:43:26 [DEBUG] - wlroots: interface to register zwlr_output_manager_v1  (Version: 2)
[2724028.158] wl_registry@2.global(23, "zwlr_input_inhibit_manager_v1", 1)
2022/06/13 07:43:26 [DEBUG] - wlroots: interface to register zwlr_input_inhibit_manager_v1  (Version: 1)
[2724028.203] wl_registry@2.global(24, "zwp_keyboard_shortcuts_inhibit_manager_v1", 1)
2022/06/13 07:43:26 [DEBUG] - wlroots: interface to register zwp_keyboard_shortcuts_inhibit_manager_v1  (Version: 1)
[2724028.246] wl_registry@2.global(25, "zext_workspace_manager_v1", 1)
2022/06/13 07:43:26 [DEBUG] - wlroots: interface to register zext_workspace_manager_v1  (Version: 1)
[2724028.289] wl_registry@2.global(26, "zwp_pointer_constraints_v1", 1)
2022/06/13 07:43:26 [DEBUG] - wlroots: interface to register zwp_pointer_constraints_v1  (Version: 1)
[2724028.333] wl_registry@2.global(27, "zwp_relative_pointer_manager_v1", 1)
2022/06/13 07:43:26 [DEBUG] - wlroots: interface to register zwp_relative_pointer_manager_v1  (Version: 1)
[2724028.376] wl_registry@2.global(28, "zwp_virtual_keyboard_manager_v1", 1)
2022/06/13 07:43:26 [DEBUG] - wlroots: interface to register zwp_virtual_keyboard_manager_v1  (Version: 1)
[2724028.419] wl_registry@2.global(29, "zwlr_virtual_pointer_manager_v1", 2)
2022/06/13 07:43:26 [DEBUG] - wlroots: interface to register zwlr_virtual_pointer_manager_v1  (Version: 2)
[2724028.462] wl_registry@2.global(30, "zwlr_foreign_toplevel_manager_v1", 3)
2022/06/13 07:43:26 [DEBUG] - wlroots: interface to register zwlr_foreign_toplevel_manager_v1  (Version: 3)
[2724028.505] wl_registry@2.global(31, "zwp_tablet_manager_v2", 1)
2022/06/13 07:43:26 [DEBUG] - wlroots: interface to register zwp_tablet_manager_v2  (Version: 1)
[2724028.548] wl_registry@2.global(32, "wl_output", 4)
2022/06/13 07:43:26 [DEBUG] - wlroots: interface to register wl_output  (Version: 4)
2022/06/13 07:43:26 [DEBUG] - wlroots: |-- registered to interface wl_output (Version 1)
[2724028.611]  -> wl_registry@2.bind(32, "wl_output", 1, new id [unknown]@11)
[2724028.646]  -> zxdg_output_manager_v1@10.get_xdg_output(new id zxdg_output_v1@12, wl_output@11)
[2724028.676] wl_callback@3.done(512)
2022/06/13 07:43:26 [DEBUG] - wayland: registry listeners run
[2724028.708]  -> wl_display@1.sync(new id wl_callback@3)
[2724028.838] wl_display@1.delete_id(3)
[2724028.864] zwp_linux_dmabuf_feedback_v1@6.main_device(array[8])
2022/06/13 07:43:26 [DEBUG] - wlroots: linux_dmabuf_feedback_handle_main_device called
2022/06/13 07:43:26 [INFO] - xdpw: Using render node /dev/dri/renderD128
[2724047.923] zwp_linux_dmabuf_feedback_v1@6.format_table(fd 13, 2672)
2022/06/13 07:43:26 [DEBUG] - wlroots: linux_dmabuf_feedback_format_table called
[2724047.979] zwp_linux_dmabuf_feedback_v1@6.tranche_target_device(array[8])
2022/06/13 07:43:26 [DEBUG] - wlroots: linux_dmabuf_feedback_tranche_target_devices called
[2724048.274] zwp_linux_dmabuf_feedback_v1@6.tranche_flags(0)
2022/06/13 07:43:26 [DEBUG] - wlroots: linux_dmabuf_feedback_tranche_flags called
[2724048.306] zwp_linux_dmabuf_feedback_v1@6.tranche_formats(array[334])
2022/06/13 07:43:26 [DEBUG] - wlroots: linux_dmabuf_feedback_tranche_formats called
2022/06/13 07:43:26 [TRACE] - wlroots: format 1211384385 (72057594037927935)
2022/06/13 07:43:26 [TRACE] - wlroots: format 1211384385 (0)
2022/06/13 07:43:26 [TRACE] - wlroots: format 1211384385 (72057594037927937)
2022/06/13 07:43:26 [TRACE] - wlroots: format 1211384385 (72057594037927938)
2022/06/13 07:43:26 [TRACE] - wlroots: format 1211384385 (72057594037927940)
2022/06/13 07:43:26 [TRACE] - wlroots: format 1211384408 (72057594037927935)
2022/06/13 07:43:26 [TRACE] - wlroots: format 1211384408 (0)
2022/06/13 07:43:26 [TRACE] - wlroots: format 1211384408 (72057594037927937)
2022/06/13 07:43:26 [TRACE] - wlroots: format 1211384408 (72057594037927938)
2022/06/13 07:43:26 [TRACE] - wlroots: format 1211384408 (72057594037927940)
2022/06/13 07:43:26 [TRACE] - wlroots: format 808669761 (72057594037927935)
2022/06/13 07:43:26 [TRACE] - wlroots: format 808669761 (0)
2022/06/13 07:43:26 [TRACE] - wlroots: format 808669761 (72057594037927937)
2022/06/13 07:43:26 [TRACE] - wlroots: format 808669761 (72057594037927938)
2022/06/13 07:43:26 [TRACE] - wlroots: format 808669784 (72057594037927935)
2022/06/13 07:43:26 [TRACE] - wlroots: format 808669784 (0)
2022/06/13 07:43:26 [TRACE] - wlroots: format 808669784 (72057594037927937)
2022/06/13 07:43:26 [TRACE] - wlroots: format 808669784 (72057594037927938)
2022/06/13 07:43:26 [TRACE] - wlroots: format 808665665 (72057594037927935)
2022/06/13 07:43:26 [TRACE] - wlroots: format 808665665 (0)
2022/06/13 07:43:26 [TRACE] - wlroots: format 808665665 (72057594037927937)
2022/06/13 07:43:26 [TRACE] - wlroots: format 808665665 (72057594037927938)
2022/06/13 07:43:26 [TRACE] - wlroots: format 875713089 (72057594037927935)
2022/06/13 07:43:26 [TRACE] - wlroots: format 875713089 (0)
2022/06/13 07:43:26 [TRACE] - wlroots: format 875713089 (72057594037927937)
2022/06/13 07:43:26 [TRACE] - wlroots: format 875713089 (72057594037927938)
2022/06/13 07:43:26 [TRACE] - wlroots: format 875713089 (72057594037927940)
2022/06/13 07:43:26 [TRACE] - wlroots: format 875708993 (72057594037927935)
2022/06/13 07:43:26 [TRACE] - wlroots: format 875708993 (0)
2022/06/13 07:43:26 [TRACE] - wlroots: format 875708993 (72057594037927937)
2022/06/13 07:43:26 [TRACE] - wlroots: format 875708993 (72057594037927938)
2022/06/13 07:43:26 [TRACE] - wlroots: format 875708993 (72057594037927940)
2022/06/13 07:43:26 [TRACE] - wlroots: format 875713112 (72057594037927935)
2022/06/13 07:43:26 [TRACE] - wlroots: format 875713112 (0)
2022/06/13 07:43:26 [TRACE] - wlroots: format 875713112 (72057594037927937)
2022/06/13 07:43:26 [TRACE] - wlroots: format 875713112 (72057594037927938)
2022/06/13 07:43:26 [TRACE] - wlroots: format 875713112 (72057594037927940)
2022/06/13 07:43:26 [TRACE] - wlroots: format 875709016 (72057594037927935)
2022/06/13 07:43:26 [TRACE] - wlroots: format 875709016 (0)
2022/06/13 07:43:26 [TRACE] - wlroots: format 875709016 (72057594037927937)
2022/06/13 07:43:26 [TRACE] - wlroots: format 875709016 (72057594037927938)
2022/06/13 07:43:26 [TRACE] - wlroots: format 875709016 (72057594037927940)
2022/06/13 07:43:26 [TRACE] - wlroots: format 892424769 (72057594037927935)
2022/06/13 07:43:26 [TRACE] - wlroots: format 892424769 (0)
2022/06/13 07:43:26 [TRACE] - wlroots: format 892424769 (72057594037927937)
2022/06/13 07:43:26 [TRACE] - wlroots: format 892424769 (72057594037927938)
2022/06/13 07:43:26 [TRACE] - wlroots: format 909199186 (72057594037927935)
2022/06/13 07:43:26 [TRACE] - wlroots: format 909199186 (0)
2022/06/13 07:43:26 [TRACE] - wlroots: format 909199186 (72057594037927937)
2022/06/13 07:43:26 [TRACE] - wlroots: format 909199186 (72057594037927938)
2022/06/13 07:43:26 [TRACE] - wlroots: format 538982482 (72057594037927935)
2022/06/13 07:43:26 [TRACE] - wlroots: format 538982482 (0)
2022/06/13 07:43:26 [TRACE] - wlroots: format 538982482 (72057594037927937)
2022/06/13 07:43:26 [TRACE] - wlroots: format 538982482 (72057594037927938)
2022/06/13 07:43:26 [TRACE] - wlroots: format 540422482 (72057594037927935)
2022/06/13 07:43:26 [TRACE] - wlroots: format 540422482 (0)
2022/06/13 07:43:26 [TRACE] - wlroots: format 540422482 (72057594037927937)
2022/06/13 07:43:26 [TRACE] - wlroots: format 540422482 (72057594037927938)
2022/06/13 07:43:26 [TRACE] - wlroots: format 943215175 (72057594037927935)
2022/06/13 07:43:26 [TRACE] - wlroots: format 943215175 (0)
2022/06/13 07:43:26 [TRACE] - wlroots: format 943215175 (72057594037927937)
2022/06/13 07:43:26 [TRACE] - wlroots: format 943215175 (72057594037927938)
2022/06/13 07:43:26 [TRACE] - wlroots: format 842224199 (72057594037927935)
2022/06/13 07:43:26 [TRACE] - wlroots: format 842224199 (0)
2022/06/13 07:43:26 [TRACE] - wlroots: format 842224199 (72057594037927937)
2022/06/13 07:43:26 [TRACE] - wlroots: format 842224199 (72057594037927938)
2022/06/13 07:43:26 [TRACE] - wlroots: format 842224199 (72057594037927940)
2022/06/13 07:43:26 [TRACE] - wlroots: format 961959257 (72057594037927935)
2022/06/13 07:43:26 [TRACE] - wlroots: format 961959257 (0)
2022/06/13 07:43:26 [TRACE] - wlroots: format 961959257 (72057594037927937)
2022/06/13 07:43:26 [TRACE] - wlroots: format 961959257 (72057594037927938)
2022/06/13 07:43:26 [TRACE] - wlroots: format 825316697 (72057594037927935)
2022/06/13 07:43:26 [TRACE] - wlroots: format 825316697 (0)
2022/06/13 07:43:26 [TRACE] - wlroots: format 825316697 (72057594037927937)
2022/06/13 07:43:26 [TRACE] - wlroots: format 825316697 (72057594037927938)
2022/06/13 07:43:26 [TRACE] - wlroots: format 842093913 (72057594037927935)
2022/06/13 07:43:26 [TRACE] - wlroots: format 842093913 (0)
2022/06/13 07:43:26 [TRACE] - wlroots: format 842093913 (72057594037927937)
2022/06/13 07:43:26 [TRACE] - wlroots: format 842093913 (72057594037927938)
2022/06/13 07:43:26 [TRACE] - wlroots: format 909202777 (72057594037927935)
2022/06/13 07:43:26 [TRACE] - wlroots: format 909202777 (0)
2022/06/13 07:43:26 [TRACE] - wlroots: format 909202777 (72057594037927937)
2022/06/13 07:43:26 [TRACE] - wlroots: format 909202777 (72057594037927938)
2022/06/13 07:43:26 [TRACE] - wlroots: format 875713881 (72057594037927935)
2022/06/13 07:43:26 [TRACE] - wlroots: format 875713881 (0)
2022/06/13 07:43:26 [TRACE] - wlroots: format 875713881 (72057594037927937)
2022/06/13 07:43:26 [TRACE] - wlroots: format 875713881 (72057594037927938)
2022/06/13 07:43:26 [TRACE] - wlroots: format 961893977 (72057594037927935)
2022/06/13 07:43:26 [TRACE] - wlroots: format 961893977 (0)
2022/06/13 07:43:26 [TRACE] - wlroots: format 961893977 (72057594037927937)
2022/06/13 07:43:26 [TRACE] - wlroots: format 961893977 (72057594037927938)
2022/06/13 07:43:26 [TRACE] - wlroots: format 825316953 (72057594037927935)
2022/06/13 07:43:26 [TRACE] - wlroots: format 825316953 (0)
2022/06/13 07:43:26 [TRACE] - wlroots: format 825316953 (72057594037927937)
2022/06/13 07:43:26 [TRACE] - wlroots: format 825316953 (72057594037927938)
2022/06/13 07:43:26 [TRACE] - wlroots: format 842094169 (72057594037927935)
2022/06/13 07:43:26 [TRACE] - wlroots: format 842094169 (0)
2022/06/13 07:43:26 [TRACE] - wlroots: format 842094169 (72057594037927937)
2022/06/13 07:43:26 [TRACE] - wlroots: format 842094169 (72057594037927938)
2022/06/13 07:43:26 [TRACE] - wlroots: format 909203033 (72057594037927935)
2022/06/13 07:43:26 [TRACE] - wlroots: format 909203033 (0)
2022/06/13 07:43:26 [TRACE] - wlroots: format 909203033 (72057594037927937)
2022/06/13 07:43:26 [TRACE] - wlroots: format 909203033 (72057594037927938)
2022/06/13 07:43:26 [TRACE] - wlroots: format 875714137 (72057594037927935)
2022/06/13 07:43:26 [TRACE] - wlroots: format 875714137 (0)
2022/06/13 07:43:26 [TRACE] - wlroots: format 875714137 (72057594037927937)
2022/06/13 07:43:26 [TRACE] - wlroots: format 875714137 (72057594037927938)
2022/06/13 07:43:26 [TRACE] - wlroots: format 842094158 (72057594037927935)
2022/06/13 07:43:26 [TRACE] - wlroots: format 842094158 (0)
2022/06/13 07:43:26 [TRACE] - wlroots: format 842094158 (72057594037927937)
2022/06/13 07:43:26 [TRACE] - wlroots: format 842094158 (72057594037927938)
2022/06/13 07:43:26 [TRACE] - wlroots: format 808530000 (72057594037927935)
2022/06/13 07:43:26 [TRACE] - wlroots: format 808530000 (0)
2022/06/13 07:43:26 [TRACE] - wlroots: format 808530000 (72057594037927937)
2022/06/13 07:43:26 [TRACE] - wlroots: format 808530000 (72057594037927938)
2022/06/13 07:43:26 [TRACE] - wlroots: format 842084432 (72057594037927935)
2022/06/13 07:43:26 [TRACE] - wlroots: format 842084432 (0)
2022/06/13 07:43:26 [TRACE] - wlroots: format 842084432 (72057594037927937)
2022/06/13 07:43:26 [TRACE] - wlroots: format 842084432 (72057594037927938)
2022/06/13 07:43:26 [TRACE] - wlroots: format 909193296 (72057594037927935)
2022/06/13 07:43:26 [TRACE] - wlroots: format 909193296 (0)
2022/06/13 07:43:26 [TRACE] - wlroots: format 909193296 (72057594037927937)
2022/06/13 07:43:26 [TRACE] - wlroots: format 909193296 (72057594037927938)
2022/06/13 07:43:26 [TRACE] - wlroots: format 909203022 (72057594037927935)
2022/06/13 07:43:26 [TRACE] - wlroots: format 909203022 (0)
2022/06/13 07:43:26 [TRACE] - wlroots: format 909203022 (72057594037927937)
2022/06/13 07:43:26 [TRACE] - wlroots: format 909203022 (72057594037927938)
2022/06/13 07:43:26 [TRACE] - wlroots: format 1448433985 (72057594037927935)
2022/06/13 07:43:26 [TRACE] - wlroots: format 1448433985 (0)
2022/06/13 07:43:26 [TRACE] - wlroots: format 1448433985 (72057594037927937)
2022/06/13 07:43:26 [TRACE] - wlroots: format 1448433985 (72057594037927938)
2022/06/13 07:43:26 [TRACE] - wlroots: format 1448434008 (72057594037927935)
2022/06/13 07:43:26 [TRACE] - wlroots: format 1448434008 (0)
2022/06/13 07:43:26 [TRACE] - wlroots: format 1448434008 (72057594037927937)
2022/06/13 07:43:26 [TRACE] - wlroots: format 1448434008 (72057594037927938)
2022/06/13 07:43:26 [TRACE] - wlroots: format 808531033 (72057594037927935)
2022/06/13 07:43:26 [TRACE] - wlroots: format 808531033 (0)
2022/06/13 07:43:26 [TRACE] - wlroots: format 808531033 (72057594037927937)
2022/06/13 07:43:26 [TRACE] - wlroots: format 808531033 (72057594037927938)
2022/06/13 07:43:26 [TRACE] - wlroots: format 842085465 (72057594037927935)
2022/06/13 07:43:26 [TRACE] - wlroots: format 842085465 (0)
2022/06/13 07:43:26 [TRACE] - wlroots: format 842085465 (72057594037927937)
2022/06/13 07:43:26 [TRACE] - wlroots: format 842085465 (72057594037927938)
2022/06/13 07:43:26 [TRACE] - wlroots: format 909194329 (72057594037927935)
2022/06/13 07:43:26 [TRACE] - wlroots: format 909194329 (0)
2022/06/13 07:43:26 [TRACE] - wlroots: format 909194329 (72057594037927937)
2022/06/13 07:43:26 [TRACE] - wlroots: format 909194329 (72057594037927938)
2022/06/13 07:43:26 [TRACE] - wlroots: format 1448695129 (72057594037927935)
2022/06/13 07:43:26 [TRACE] - wlroots: format 1448695129 (0)
2022/06/13 07:43:26 [TRACE] - wlroots: format 1448695129 (72057594037927937)
2022/06/13 07:43:26 [TRACE] - wlroots: format 1448695129 (72057594037927938)
2022/06/13 07:43:26 [TRACE] - wlroots: format 1498831189 (72057594037927935)
2022/06/13 07:43:26 [TRACE] - wlroots: format 1498831189 (0)
2022/06/13 07:43:26 [TRACE] - wlroots: format 1498831189 (72057594037927937)
2022/06/13 07:43:26 [TRACE] - wlroots: format 1498831189 (72057594037927938)
2022/06/13 07:43:26 [TRACE] - wlroots: format 808530521 (72057594037927935)
2022/06/13 07:43:26 [TRACE] - wlroots: format 808530521 (0)
2022/06/13 07:43:26 [TRACE] - wlroots: format 808530521 (72057594037927937)
2022/06/13 07:43:26 [TRACE] - wlroots: format 808530521 (72057594037927938)
2022/06/13 07:43:26 [TRACE] - wlroots: format 842084953 (72057594037927935)
2022/06/13 07:43:26 [TRACE] - wlroots: format 842084953 (0)
2022/06/13 07:43:26 [TRACE] - wlroots: format 842084953 (72057594037927937)
2022/06/13 07:43:26 [TRACE] - wlroots: format 842084953 (72057594037927938)
2022/06/13 07:43:26 [TRACE] - wlroots: format 909193817 (72057594037927935)
2022/06/13 07:43:26 [TRACE] - wlroots: format 909193817 (0)
2022/06/13 07:43:26 [TRACE] - wlroots: format 909193817 (72057594037927937)
2022/06/13 07:43:26 [TRACE] - wlroots: format 909193817 (72057594037927938)
[2724051.324] zwp_linux_dmabuf_feedback_v1@6.tranche_done()
2022/06/13 07:43:26 [DEBUG] - wlroots: linux_dmabuf_feedback_tranche_done called
[2724051.349] zwp_linux_dmabuf_feedback_v1@6.done()
2022/06/13 07:43:26 [DEBUG] - wlroots: linux_dmabuf_feedback_handle_done called
[2724051.377] zwp_linux_dmabuf_feedback_v1@8.main_device(array[8])
2022/06/13 07:43:26 [DEBUG] - wlroots: linux_dmabuf_feedback_handle_main_device called
xdg-desktop-portal-wlr: ../src/screencast/wlr_screencast.c:612: linux_dmabuf_feedback_handle_main_device: Assertion `ctx->gbm == NULL' failed.
[1]    1713 IOT instruction (core dumped)  WAYLAND_DEBUG=1 /usr/lib/xdg-desktop-portal-wlr -r -l TRACE &> trace.log
brunoanc commented 2 years ago

I'll try Sway in a minute.

brunoanc commented 2 years ago

Alright, it works just fine with Sway. What do you think could be the issue with Hyprland? Should I open an issue there?

columbarius commented 2 years ago

Please ask them if they have a reason to send the feedback twice. This should only be necessary if your main gpu changes (gpu hotswap), which wlroots currently has not implemented and why xdpw doesn't handle it (no way to test for correctness). Therefore either it's a bug in Hyperland, or they implemented sth. advanced.

ObsidianChickenz commented 2 years ago

It's a bug in Hyprland. I'm trying to find exactly where it's sending feedback, but I've never contributed like this before. Can someone else take a look? I've already created an issue in Hyprland's repo.

vaxerski commented 2 years ago

fixed in hyprland in 217ff1f4011336e51bc65bd98fd7b931547ac45c

brunoanc commented 1 year ago

I can confirm it works in the latest Hyprland commit.