hyprwm / xdg-desktop-portal-hyprland

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

core dumped after seconds of screenshare #107

Closed joelsleeba closed 1 year ago

joelsleeba commented 1 year ago

XDPH: 1:r308.7df2d3e Hyprland: 0.30.0-1

Steps to reproduce:

  1. Start a screenshare (tried with google meet)
  2. Select window/screen
  3. The screensharing freezes immediately or within a second
journalctl --user-unit xdg-desktop-portal-hyprland.service --follow ``` Oct 05 22:46:20 spyder systemd[483]: Starting Portal service (Hyprland implementation)... Oct 05 22:46:20 spyder systemd[483]: Started Portal service (Hyprland implementation). Oct 05 22:46:21 spyder xdg-desktop-portal-hyprland[24531]: [LOG] Initializing xdph... Oct 05 22:46:21 spyder xdg-desktop-portal-hyprland[24531]: [LOG] XDG_CURRENT_DESKTOP set to Hyprland Oct 05 22:46:21 spyder xdg-desktop-portal-hyprland[24531]: [LOG] Gathering exported interfaces Oct 05 22:46:21 spyder xdg-desktop-portal-hyprland[24531]: [LOG] | Got interface: wl_shm (ver 1) Oct 05 22:46:21 spyder xdg-desktop-portal-hyprland[24531]: [LOG] | Got interface: wl_drm (ver 2) Oct 05 22:46:21 spyder xdg-desktop-portal-hyprland[24531]: [LOG] | Got interface: zwp_linux_dmabuf_v1 (ver 4) Oct 05 22:46:21 spyder xdg-desktop-portal-hyprland[24531]: [LOG] | Got interface: wl_compositor (ver 6) Oct 05 22:46:21 spyder xdg-desktop-portal-hyprland[24531]: [LOG] | Got interface: wl_subcompositor (ver 1) Oct 05 22:46:21 spyder xdg-desktop-portal-hyprland[24531]: [LOG] | Got interface: wl_data_device_manager (ver 3) Oct 05 22:46:21 spyder xdg-desktop-portal-hyprland[24531]: [LOG] | Got interface: zwlr_export_dmabuf_manager_v1 (ver 1) Oct 05 22:46:21 spyder xdg-desktop-portal-hyprland[24531]: [LOG] | Got interface: zwlr_data_control_manager_v1 (ver 2) Oct 05 22:46:21 spyder xdg-desktop-portal-hyprland[24531]: [LOG] | Got interface: zwp_primary_selection_device_manager_v1 (ver 1) Oct 05 22:46:21 spyder xdg-desktop-portal-hyprland[24531]: [LOG] | Got interface: wp_viewporter (ver 1) Oct 05 22:46:21 spyder xdg-desktop-portal-hyprland[24531]: [LOG] | Got interface: zwlr_gamma_control_manager_v1 (ver 1) Oct 05 22:46:21 spyder xdg-desktop-portal-hyprland[24531]: [LOG] | Got interface: zwlr_output_power_manager_v1 (ver 1) Oct 05 22:46:21 spyder xdg-desktop-portal-hyprland[24531]: [LOG] | Got interface: xdg_wm_base (ver 5) Oct 05 22:46:21 spyder xdg-desktop-portal-hyprland[24531]: [LOG] | Got interface: wl_seat (ver 8) Oct 05 22:46:21 spyder xdg-desktop-portal-hyprland[24531]: [LOG] | Got interface: wp_presentation (ver 1) Oct 05 22:46:21 spyder xdg-desktop-portal-hyprland[24531]: [LOG] | Got interface: org_kde_kwin_idle (ver 1) Oct 05 22:46:21 spyder xdg-desktop-portal-hyprland[24531]: [LOG] | Got interface: ext_idle_notifier_v1 (ver 1) Oct 05 22:46:21 spyder xdg-desktop-portal-hyprland[24531]: [LOG] | Got interface: zwlr_layer_shell_v1 (ver 4) Oct 05 22:46:21 spyder xdg-desktop-portal-hyprland[24531]: [LOG] | Got interface: org_kde_kwin_server_decoration_manager (ver 1) Oct 05 22:46:21 spyder xdg-desktop-portal-hyprland[24531]: [LOG] | Got interface: zxdg_decoration_manager_v1 (ver 1) Oct 05 22:46:21 spyder xdg-desktop-portal-hyprland[24531]: [LOG] | Got interface: zwlr_output_manager_v1 (ver 4) Oct 05 22:46:21 spyder xdg-desktop-portal-hyprland[24531]: [LOG] | Got interface: zwlr_input_inhibit_manager_v1 (ver 1) Oct 05 22:46:21 spyder xdg-desktop-portal-hyprland[24531]: [LOG] | Got interface: zwp_keyboard_shortcuts_inhibit_manager_v1 (ver 1) Oct 05 22:46:21 spyder xdg-desktop-portal-hyprland[24531]: [LOG] | Got interface: zwp_pointer_constraints_v1 (ver 1) Oct 05 22:46:21 spyder xdg-desktop-portal-hyprland[24531]: [LOG] | Got interface: zwp_relative_pointer_manager_v1 (ver 1) Oct 05 22:46:21 spyder xdg-desktop-portal-hyprland[24531]: [LOG] | Got interface: zwp_virtual_keyboard_manager_v1 (ver 1) Oct 05 22:46:21 spyder xdg-desktop-portal-hyprland[24531]: [LOG] | Got interface: zwlr_virtual_pointer_manager_v1 (ver 2) Oct 05 22:46:21 spyder xdg-desktop-portal-hyprland[24531]: [LOG] | Got interface: zwlr_foreign_toplevel_manager_v1 (ver 3) Oct 05 22:46:21 spyder xdg-desktop-portal-hyprland[24531]: [LOG] | Got interface: wp_drm_lease_device_v1 (ver 1) Oct 05 22:46:21 spyder xdg-desktop-portal-hyprland[24531]: [LOG] | Got interface: zwp_tablet_manager_v2 (ver 1) Oct 05 22:46:21 spyder xdg-desktop-portal-hyprland[24531]: [LOG] | Got interface: zwp_idle_inhibit_manager_v1 (ver 1) Oct 05 22:46:21 spyder xdg-desktop-portal-hyprland[24531]: [LOG] | Got interface: zxdg_exporter_v1 (ver 1) Oct 05 22:46:21 spyder xdg-desktop-portal-hyprland[24531]: [LOG] | Got interface: zxdg_importer_v1 (ver 1) Oct 05 22:46:21 spyder xdg-desktop-portal-hyprland[24531]: [LOG] | Got interface: zxdg_exporter_v2 (ver 1) Oct 05 22:46:21 spyder xdg-desktop-portal-hyprland[24531]: [LOG] | Got interface: zxdg_importer_v2 (ver 1) Oct 05 22:46:21 spyder xdg-desktop-portal-hyprland[24531]: [LOG] | Got interface: zwp_pointer_gestures_v1 (ver 3) Oct 05 22:46:21 spyder xdg-desktop-portal-hyprland[24531]: [LOG] | Got interface: zwp_text_input_manager_v3 (ver 1) Oct 05 22:46:21 spyder xdg-desktop-portal-hyprland[24531]: [LOG] | Got interface: zwp_input_method_manager_v2 (ver 1) Oct 05 22:46:21 spyder xdg-desktop-portal-hyprland[24531]: [LOG] | Got interface: xdg_activation_v1 (ver 1) Oct 05 22:46:21 spyder xdg-desktop-portal-hyprland[24531]: [LOG] | Got interface: ext_session_lock_manager_v1 (ver 1) Oct 05 22:46:21 spyder xdg-desktop-portal-hyprland[24531]: [LOG] | Got interface: wp_cursor_shape_manager_v1 (ver 1) Oct 05 22:46:21 spyder xdg-desktop-portal-hyprland[24531]: [LOG] | Got interface: wp_single_pixel_buffer_manager_v1 (ver 1) Oct 05 22:46:21 spyder xdg-desktop-portal-hyprland[24531]: [LOG] | Got interface: xwayland_shell_v1 (ver 1) Oct 05 22:46:21 spyder xdg-desktop-portal-hyprland[24531]: [LOG] | Got interface: hyprland_toplevel_export_manager_v1 (ver 2) Oct 05 22:46:21 spyder xdg-desktop-portal-hyprland[24531]: [LOG] | Got interface: wp_fractional_scale_manager_v1 (ver 1) Oct 05 22:46:21 spyder xdg-desktop-portal-hyprland[24531]: [LOG] | Got interface: zwp_text_input_manager_v1 (ver 1) Oct 05 22:46:21 spyder xdg-desktop-portal-hyprland[24531]: [LOG] | Got interface: hyprland_global_shortcuts_manager_v1 (ver 1) Oct 05 22:46:21 spyder xdg-desktop-portal-hyprland[24531]: [LOG] [globalshortcuts] registered Oct 05 22:46:21 spyder xdg-desktop-portal-hyprland[24531]: [LOG] | Got interface: zwlr_screencopy_manager_v1 (ver 3) Oct 05 22:46:21 spyder xdg-desktop-portal-hyprland[24531]: [LOG] [pipewire] connected Oct 05 22:46:21 spyder xdg-desktop-portal-hyprland[24531]: [LOG] [screencopy] init successful Oct 05 22:46:21 spyder xdg-desktop-portal-hyprland[24531]: [LOG] | Got interface: zxdg_output_manager_v1 (ver 3) Oct 05 22:46:21 spyder xdg-desktop-portal-hyprland[24531]: [LOG] | Got interface: wl_output (ver 4) Oct 05 22:46:21 spyder xdg-desktop-portal-hyprland[24531]: [LOG] | Got interface: wl_output (ver 4) Oct 05 22:46:21 spyder xdg-desktop-portal-hyprland[24531]: [LOG] [screencopy] Registered for toplevel export Oct 05 22:46:21 spyder xdg-desktop-portal-hyprland[24531]: [LOG] [core] dmabufFeedbackMainDevice Oct 05 22:46:21 spyder xdg-desktop-portal-hyprland[24531]: [LOG] Found output name HDMI-A-1 Oct 05 22:46:21 spyder xdg-desktop-portal-hyprland[24531]: [LOG] Found output name eDP-1 Oct 05 22:46:21 spyder xdg-desktop-portal-hyprland[24531]: [LOG] [screencopy] New session: Oct 05 22:46:21 spyder xdg-desktop-portal-hyprland[24531]: [LOG] [screencopy] | /org/freedesktop/portal/desktop/request/1_31/webrtc_58560315 Oct 05 22:46:21 spyder xdg-desktop-portal-hyprland[24531]: [LOG] [screencopy] | /org/freedesktop/portal/desktop/session/1_31/webrtc_session773765012 Oct 05 22:46:21 spyder xdg-desktop-portal-hyprland[24531]: [LOG] [screencopy] | appid: Oct 05 22:46:21 spyder xdg-desktop-portal-hyprland[24531]: [LOG] [screencopy] SelectSources: Oct 05 22:46:21 spyder xdg-desktop-portal-hyprland[24531]: [LOG] [screencopy] | /org/freedesktop/portal/desktop/request/1_31/webrtc1485132486 Oct 05 22:46:21 spyder xdg-desktop-portal-hyprland[24531]: [LOG] [screencopy] | /org/freedesktop/portal/desktop/session/1_31/webrtc_session773765012 Oct 05 22:46:21 spyder xdg-desktop-portal-hyprland[24531]: [LOG] [screencopy] | appid: Oct 05 22:46:21 spyder xdg-desktop-portal-hyprland[24531]: [LOG] [screencopy] option persist_mode to 1 Oct 05 22:46:21 spyder xdg-desktop-portal-hyprland[24531]: [LOG] [screencopy] unused option multiple Oct 05 22:46:21 spyder xdg-desktop-portal-hyprland[24531]: [LOG] [screencopy] unused option types Oct 05 22:46:21 spyder xdg-desktop-portal-hyprland[24531]: [LOG] [screencopy] restore data invalid / missing, prompting Oct 05 22:46:31 spyder systemd-coredump[24578]: [🡕] Process 24531 (xdg-desktop-por) of user 1000 dumped core. Stack trace of thread 24531: #0 0x000055d684afc93e _ZL19pwStreamStateChangePv15pw_stream_stateS0_PKc (xdg-desktop-portal-hyprland + 0x2c93e) #1 0x00007f7af01e9dd1 n/a (libpipewire-0.3.so.0 + 0x83dd1) #2 0x00007f7af01e0f68 pw_proxy_destroy (libpipewire-0.3.so.0 + 0x7af68) #3 0x00007f7af01ee6d8 n/a (libpipewire-0.3.so.0 + 0x886d8) #4 0x00007f7af01ae4b6 n/a (libpipewire-0.3.so.0 + 0x484b6) #5 0x00007f7af01e1198 n/a (libpipewire-0.3.so.0 + 0x7b198) #6 0x00007f7af01ae998 pw_core_disconnect (libpipewire-0.3.so.0 + 0x48998) #7 0x000055d684afa63f _ZN19CPipewireConnectionD1Ev (xdg-desktop-portal-hyprland + 0x2a63f) #8 0x000055d684af3da6 _ZN14CPortalManager14startEventLoopEv (xdg-desktop-portal-hyprland + 0x23da6) #9 0x000055d684adc766 main (xdg-desktop-portal-hyprland + 0xc766) #10 0x00007f7aefb58cd0 n/a (libc.so.6 + 0x27cd0) #11 0x00007f7aefb58d8a __libc_start_main (libc.so.6 + 0x27d8a) #12 0x000055d684add425 _start (xdg-desktop-portal-hyprland + 0xd425) Stack trace of thread 24532: #0 0x00007f7aefc41bf6 epoll_wait (libc.so.6 + 0x110bf6) #1 0x00007f7aef75dcd9 n/a (libspa-support.so + 0x15cd9) #2 0x00007f7aef7504fd n/a (libspa-support.so + 0x84fd) #3 0x00007f7af01abcc2 n/a (libpipewire-0.3.so.0 + 0x45cc2) #4 0x00007f7aefbbd9eb n/a (libc.so.6 + 0x8c9eb) #5 0x00007f7aefc417cc n/a (libc.so.6 + 0x1107cc) Stack trace of thread 24535: #0 0x00007f7aefbba4ae n/a (libc.so.6 + 0x894ae) #1 0x00007f7aefbbcd40 pthread_cond_wait (libc.so.6 + 0x8bd40) #2 0x00007f7aecad1b5c n/a (iris_dri.so + 0xd1b5c) #3 0x00007f7aecb1ca0c n/a (iris_dri.so + 0x11ca0c) #4 0x00007f7aefbbd9eb n/a (libc.so.6 + 0x8c9eb) #5 0x00007f7aefc417cc n/a (libc.so.6 + 0x1107cc) Stack trace of thread 24534: #0 0x00007f7aefbba4ae n/a (libc.so.6 + 0x894ae) #1 0x00007f7aefbbcd40 pthread_cond_wait (libc.so.6 + 0x8bd40) #2 0x00007f7aecad1b5c n/a (iris_dri.so + 0xd1b5c) #3 0x00007f7aecb1ca0c n/a (iris_dri.so + 0x11ca0c) #4 0x00007f7aefbbd9eb n/a (libc.so.6 + 0x8c9eb) #5 0x00007f7aefc417cc n/a (libc.so.6 + 0x1107cc) Stack trace of thread 24537: #0 0x00007f7aefbba4ae n/a (libc.so.6 + 0x894ae) #1 0x00007f7aefbbcd40 pthread_cond_wait (libc.so.6 + 0x8bd40) #2 0x00007f7aecad1b5c n/a (iris_dri.so + 0xd1b5c) #3 0x00007f7aecb1ca0c n/a (iris_dri.so + 0x11ca0c) #4 0x00007f7aefbbd9eb n/a (libc.so.6 + 0x8c9eb) #5 0x00007f7aefc417cc n/a (libc.so.6 + 0x1107cc) Stack trace of thread 24536: #0 0x00007f7aefbba4ae n/a (libc.so.6 + 0x894ae) #1 0x00007f7aefbbcd40 pthread_cond_wait (libc.so.6 + 0x8bd40) #2 0x00007f7aecad1b5c n/a (iris_dri.so + 0xd1b5c) #3 0x00007f7aecb1ca0c n/a (iris_dri.so + 0x11ca0c) #4 0x00007f7aefbbd9eb n/a (libc.so.6 + 0x8c9eb) #5 0x00007f7aefc417cc n/a (libc.so.6 + 0x1107cc) ELF object binary architecture: AMD x86-64 Oct 05 22:46:31 spyder systemd[483]: xdg-desktop-portal-hyprland.service: Main process exited, code=dumped, status=11/SEGV Oct 05 22:46:31 spyder xdg-desktop-portal-hyprland[24531]: [LOG] execAndGet: WAYLAND_DISPLAY=wayland-1 QT_QPA_PLATFORM="wayland" XCURSOR_SIZE=24 HYPRLAND_INSTANCE_SIGNATURE=1b48642fd15c433c53876f1b933dcd46265caf8f_1696524443 XDPH_WINDOW_SHARING_LIST="2244921488[HC>]foot[HT>]joel@spyder:~[HE>] Oct 05 22:46:31 spyder systemd[483]: xdg-desktop-portal-hyprland.service: Failed with result 'core-dump'. Oct 05 22:46:31 spyder systemd[483]: xdg-desktop-portal-hyprland.service: Scheduled restart job, restart counter is at 1. Oct 05 22:46:31 spyder systemd[483]: Starting Portal service (Hyprland implementation)... Oct 05 22:46:31 spyder systemd[483]: Started Portal service (Hyprland implementation). ```

Unlike #93 this issue doesn't care about the focus of the window/screen

vaxerski commented 1 year ago

I need a log from a verbose session (-v)

leonardvdj commented 1 year ago

Having same issue (I think, if not I can create another issue), screen share will freeze after approximately 8 seconds in my case. Tested with both obs, and firefox gum test in firefox.

hyprland-nvidia 0.30.0-1 xdg-desktop-portal-hyprland 1.2.0-1 nvidia-dkms 535.113.01-2

xdg-desktop-portal-hyprland.log

vaxerski commented 1 year ago

oh my fucking god