hyprwm / xdg-desktop-portal-hyprland

xdg-desktop-portal backend for Hyprland
BSD 3-Clause "New" or "Revised" License
305 stars 48 forks source link

XDPH crashes when screen capturing if any window gets moved before selecting source #169

Open rurigk opened 10 months ago

rurigk commented 10 months ago

It works as intended when Open OBS -> Add screen capture (Pipewire) -> Open the source selector -> Select source in the dialog

It crashes when Open OBS -> Add screen capture (Pipewire) -> Open the source selector -> Move any window -> Select source in the dialog

hyprland 0.34.0-1 from arch repos xdg-desktop-portal-hyprland 1.3.1-2 from arch repos

$ /usr/lib/xdg-desktop-portal-hyprland -v
[LOG] Initializing xdph...
[LOG] XDG_CURRENT_DESKTOP set to Hyprland
[LOG] Gathering exported interfaces
[LOG]  | Got interface: wl_shm (ver 1)
[LOG]  | Got interface: wl_drm (ver 2)
[LOG]  | Got interface: zwp_linux_dmabuf_v1 (ver 4)
[LOG]  | Got interface: wl_compositor (ver 6)
[LOG]  | Got interface: wl_subcompositor (ver 1)
[LOG]  | Got interface: wl_data_device_manager (ver 3)
[LOG]  | Got interface: zwlr_export_dmabuf_manager_v1 (ver 1)
[LOG]  | Got interface: zwlr_data_control_manager_v1 (ver 2)
[LOG]  | Got interface: zwp_primary_selection_device_manager_v1 (ver 1)
[LOG]  | Got interface: wp_viewporter (ver 1)
[LOG]  | Got interface: zwlr_gamma_control_manager_v1 (ver 1)
[LOG]  | Got interface: zwlr_output_power_manager_v1 (ver 1)
[LOG]  | Got interface: xdg_wm_base (ver 5)
[LOG]  | Got interface: wl_seat (ver 8)
[LOG]  | Got interface: wp_presentation (ver 1)
[LOG]  | Got interface: ext_idle_notifier_v1 (ver 1)
[LOG]  | Got interface: zwlr_layer_shell_v1 (ver 4)
[LOG]  | Got interface: org_kde_kwin_server_decoration_manager (ver 1)
[LOG]  | Got interface: zxdg_decoration_manager_v1 (ver 1)
[LOG]  | Got interface: zwlr_output_manager_v1 (ver 4)
[LOG]  | Got interface: zwp_keyboard_shortcuts_inhibit_manager_v1 (ver 1)
[LOG]  | Got interface: zwp_pointer_constraints_v1 (ver 1)
[LOG]  | Got interface: zwp_relative_pointer_manager_v1 (ver 1)
[LOG]  | Got interface: zwp_virtual_keyboard_manager_v1 (ver 1)
[LOG]  | Got interface: zwlr_virtual_pointer_manager_v1 (ver 2)
[LOG]  | Got interface: zwlr_foreign_toplevel_manager_v1 (ver 3)
[LOG] [toplevel] (activate) locks: 1
[LOG]  | Got interface: wp_drm_lease_device_v1 (ver 1)
[LOG]  | Got interface: zwp_tablet_manager_v2 (ver 1)
[LOG]  | Got interface: zwp_idle_inhibit_manager_v1 (ver 1)
[LOG]  | Got interface: zxdg_exporter_v1 (ver 1)
[LOG]  | Got interface: zxdg_importer_v1 (ver 1)
[LOG]  | Got interface: zxdg_exporter_v2 (ver 1)
[LOG]  | Got interface: zxdg_importer_v2 (ver 1)
[LOG]  | Got interface: zwp_pointer_gestures_v1 (ver 3)
[LOG]  | Got interface: zwp_text_input_manager_v3 (ver 1)
[LOG]  | Got interface: zwp_input_method_manager_v2 (ver 1)
[LOG]  | Got interface: xdg_activation_v1 (ver 1)
[LOG]  | Got interface: ext_session_lock_manager_v1 (ver 1)
[LOG]  | Got interface: wp_cursor_shape_manager_v1 (ver 1)
[LOG]  | Got interface: wp_tearing_control_manager_v1 (ver 1)
[LOG]  | Got interface: wp_single_pixel_buffer_manager_v1 (ver 1)
[LOG]  | Got interface: xwayland_shell_v1 (ver 1)
[LOG]  | Got interface: hyprland_toplevel_export_manager_v1 (ver 2)
[LOG]  | Got interface: wp_fractional_scale_manager_v1 (ver 1)
[LOG]  | Got interface: zwp_text_input_manager_v1 (ver 1)
[LOG]  | Got interface: hyprland_global_shortcuts_manager_v1 (ver 1)
[LOG] [globalshortcuts] registered
[LOG]  | Got interface: zwlr_screencopy_manager_v1 (ver 3)
[LOG] [pipewire] connected
[LOG] [screencopy] init successful
[LOG]  | Got interface: zxdg_output_manager_v1 (ver 3)
[LOG]  | Got interface: wl_output (ver 4)
[LOG] [core] dmabufFeedbackMainDevice
[TRACE] [core] createGBMDevice: render node /dev/dri/renderD128

[TRACE] [core] dmabufFeedbackFormatTable
[TRACE] [core] dmabufFeedbackTrancheTargetDevice
[TRACE] [core] dmabufFeedbackTrancheFormats
[TRACE] [core] dmabufFeedbackTrancheDone
[TRACE] [core] dmabufFeedbackDone
[TRACE] [toplevel] New toplevel at 0x563411e3c270
[TRACE] [toplevel] New toplevel at 0x563411e3c3d0
[TRACE] [toplevel] New toplevel at 0x563411e3c560
[TRACE] [toplevel] New toplevel at 0x563411e3c6c0
[TRACE] [toplevel] toplevel at 0x563411efa090 set title to rurigk@rurigk:~
[TRACE] [toplevel] toplevel at 0x563411efa090 set class to Alacritty
[TRACE] [toplevel] toplevel at 0x563411ef9680 set title to /usr/lib/xdg-desktop-portal
[TRACE] [toplevel] toplevel at 0x563411ef9680 set class to Alacritty
[TRACE] [toplevel] toplevel at 0x563411ef9050 set title to /usr/lib/xdg-desktop-portal-hyprland -v
[TRACE] [toplevel] toplevel at 0x563411ef9050 set class to Alacritty
[TRACE] [toplevel] toplevel at 0x563411ef7b40 set title to Hyprland Desktop Portal | Hyprland Wiki — Mozilla Firefox
[TRACE] [toplevel] toplevel at 0x563411ef7b40 set class to firefox
[LOG] Found output name DP-2
[LOG] [toplevel] Activated, bound to 563411e0a2b0, toplevels: 4
[LOG] [screencopy] Registered for toplevel export
[LOG] [screenshot] init successful
[INFO] hyprpicker not found. We suggest to use hyprpicker for color picking to be less meh.
[TRACE] [core] got poll event
[TRACE] [core] got poll event
[TRACE] [core] got poll event
[TRACE] [core] got poll event
[TRACE] [core] got poll event
[TRACE] [core] got poll event
[TRACE] [core] got poll event
[TRACE] [core] got poll event
[TRACE] [core] got poll event
[TRACE] [core] got poll event
[TRACE] [core] got poll event
[TRACE] [core] got poll event
[TRACE] [core] got poll event
[TRACE] [toplevel] toplevel at 0x563411efa090 set title to obs
[TRACE] [core] got poll event
[TRACE] [core] got poll event
[TRACE] [core] got poll event
[TRACE] [core] got poll event
[TRACE] [core] got poll event
[TRACE] [core] got poll event
[TRACE] [core] got poll event
[TRACE] [core] got poll event
[TRACE] [core] got poll event
[TRACE] [core] got poll event
[TRACE] [core] got poll event
[TRACE] [core] got poll event
[TRACE] [core] got poll event
[TRACE] [core] got poll event
[TRACE] [core] got poll event
[TRACE] [core] got poll event
[TRACE] [core] got poll event
[TRACE] [core] got poll event
[TRACE] [core] got poll event
[TRACE] [core] got poll event
[TRACE] [core] got poll event
[TRACE] [core] got poll event
[TRACE] [core] got poll event
[TRACE] [core] got poll event
[LOG] [toplevel] (activate) locks: 2
[LOG] [screencopy] New session:
[LOG] [screencopy]  | /org/freedesktop/portal/desktop/request/1_10296/obs1
[LOG] [screencopy]  | /org/freedesktop/portal/desktop/session/1_10296/obs1
[LOG] [screencopy]  | appid:
[TRACE] [internal] Create Session /org/freedesktop/portal/desktop/session/1_10296/obs1
[TRACE] [internal] Create Request /org/freedesktop/portal/desktop/request/1_10296/obs1
[TRACE] [core] got poll event
[TRACE] [core] got poll event
[TRACE] [core] got poll event
[TRACE] [core] got poll event
[TRACE] [core] got poll event
[TRACE] [core] got poll event
[TRACE] [core] got poll event
[TRACE] [core] got poll event
[TRACE] [core] got poll event
[TRACE] [core] got poll event
[TRACE] [core] got poll event
[TRACE] [core] got poll event
[TRACE] [core] got poll event
[TRACE] [core] got poll event
[TRACE] [core] got poll event
[TRACE] [core] got poll event
[TRACE] [core] got poll event
[TRACE] [core] got poll event
[TRACE] [core] got poll event
[TRACE] [core] got poll event
[TRACE] [core] got poll event
[TRACE] [core] got poll event
[TRACE] [core] got poll event
[LOG] [screencopy] SelectSources:
[LOG] [screencopy]  | /org/freedesktop/portal/desktop/request/1_10296/obs2
[LOG] [screencopy]  | /org/freedesktop/portal/desktop/session/1_10296/obs1
[LOG] [screencopy]  | appid:
[LOG] [screencopy] option cursor_mode to 2
[LOG] [screencopy] option persist_mode to 2
[LOG] [screencopy] unused option multiple
[LOG] [screencopy] unused option types
[LOG] [screencopy] restore data invalid / missing, prompting
[LOG] execAndGet: WAYLAND_DISPLAY=wayland-1 QT_QPA_PLATFORM="wayland" XCURSOR_SIZE=48 HYPRLAND_INSTANCE_SIGNATURE=ef445093f9fbd9a41a91914ef45e6499b3afa54d_1705182442 XDPH_WINDOW_SHARING_LIST="300139120[HC>]Alacritty[HT>]obs[HE>]300139472[HC>]Alacritty[HT>]/usr/lib/xdg-desktop-portal[HE>]300139872[HC>]Alacritty[HT>]/usr/lib/xdg-desktop-portal-hyprland -v[HE>]300140224[HC>]firefox[HT>]Hyprland Desktop Portal | Hyprland Wiki — Mozilla Firefox[HE>]" hyprland-share-picker 2>&1
[LOG] [sc] Selection: /screen:DP-2

[LOG] [screencopy] SHAREDATA returned selection 0
[TRACE] [core] got poll event
[TRACE] [core] got poll event
[TRACE] [toplevel] New toplevel at 0x563411fe88f0
[TRACE] [toplevel] toplevel at 0x563411e3d520 set class to com.obsproject.Studio
[TRACE] [toplevel] toplevel at 0x563411e3d520 set title to OBS 30.0.2-1 - Profile: Untitled - Scenes: Untitled
[TRACE] [toplevel] toplevel at 0x563411e3d520 set title to OBS 30.0.2-1 - Profile: Untitled - Scenes: Untitled
[TRACE] [toplevel] New toplevel at 0x563411fe8a60
[TRACE] [toplevel] toplevel at 0x563411ef5590 set class to hyprland-share-picker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [core] got poll event
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[CRITICAL] [core] Disconnected from pollfd id 1
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x563411ef5590 set title to MainPicker
[ERR] [core] Terminated
[1]    97529 segmentation fault (core dumped)  /usr/lib/xdg-desktop-portal-hyprland -v
$ /usr/lib/xdg-desktop-portal

(/usr/lib/xdg-desktop-portal:94960): xdg-desktop-portal-WARNING **: 17:06:32.367: A backend call failed: Remote peer disconnected
rurigk commented 9 months ago

After extensive use and while doing https://github.com/hyprwm/xdg-desktop-portal-hyprland/pull/173 i noticed that it also happens if you leave the dialog open for a long time

This is the callstack i got in vscode using GDB

libsdbus-c++.so.1![Unknown/Just-In-Time compiled code] (Unknown Source:0)
std::default_delete<sdbus::IObject>::operator()(const std::default_delete<sdbus::IObject> * const this, sdbus::IObject * __ptr) (/usr/include/c++/13.2.1/bits/unique_ptr.h:99)
std::unique_ptr<sdbus::IObject, std::default_delete<sdbus::IObject> >::~unique_ptr(std::unique_ptr<sdbus::IObject, std::default_delete<sdbus::IObject> > * const this) (/usr/include/c++/13.2.1/bits/unique_ptr.h:404)
CScreenshotPortal::~CScreenshotPortal(CScreenshotPortal * const this) (/home/rurigk/git/rurigk/xdg-desktop-portal-hyprland/src/portals/Screenshot.hpp:6)
std::default_delete<CScreenshotPortal>::operator()(const std::default_delete<CScreenshotPortal> * const this, CScreenshotPortal * __ptr) (/usr/include/c++/13.2.1/bits/unique_ptr.h:99)
std::unique_ptr<CScreenshotPortal, std::default_delete<CScreenshotPortal> >::~unique_ptr(std::unique_ptr<CScreenshotPortal, std::default_delete<CScreenshotPortal> > * const this) (/usr/include/c++/13.2.1/bits/unique_ptr.h:404)
CPortalManager::{unnamed type#2}::~CPortalManager()(struct {...} * const this) (/home/rurigk/git/rurigk/xdg-desktop-portal-hyprland/src/core/PortalManager.hpp:48)
CPortalManager::~CPortalManager(CPortalManager * const this) (/home/rurigk/git/rurigk/xdg-desktop-portal-hyprland/src/core/PortalManager.hpp:32)
std::default_delete<CPortalManager>::operator()(const std::default_delete<CPortalManager> * const this, CPortalManager * __ptr) (/usr/include/c++/13.2.1/bits/unique_ptr.h:99)
std::unique_ptr<CPortalManager, std::default_delete<CPortalManager> >::~unique_ptr(std::unique_ptr<CPortalManager, std::default_delete<CPortalManager> > * const this) (/usr/include/c++/13.2.1/bits/unique_ptr.h:404)
libc.so.6![Unknown/Just-In-Time compiled code] (Unknown Source:0)
libc.so.6!exit (Unknown Source:0)
libc.so.6![Unknown/Just-In-Time compiled code] (Unknown Source:0)
libc.so.6!__libc_start_main (Unknown Source:0)
_start (Unknown Source:0)
vaxerski commented 9 months ago

it's wayland yeeting us.

https://gitlab.freedesktop.org/wayland/wayland/-/merge_requests/188

Picker blocks the execution so we can't keep up with the wayland socket when it's open.

rurigk commented 9 months ago

It makes sense