Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebRTC screen sharing doesn't work (but works in sway) #136

Open
ingemaradahl opened this issue Nov 27, 2023 · 6 comments
Open

WebRTC screen sharing doesn't work (but works in sway) #136

ingemaradahl opened this issue Nov 27, 2023 · 6 comments

Comments

@ingemaradahl
Copy link

Hi.

Screen sharing used to work for me, but "something happened", and now it doesn't. I've been experimenting for quite a while now, but cannot get it to work in Hyprland. Confusingly enough, it does work using sway with xdg-desktop-portal-hyprland. I'm using https://mozilla.github.io/webrtc-landing/gum_test.html to test, and after selecting which source to capture the stream from, nothing really happens at all.

Journal while running sway:

Nov 27 11:06:52 neon xdg-desktop-portal-hyprland[31008]: [LOG] execAndGet: WAYLAND_DISPLAY=wayland-1 QT_QPA_PLATFORM="wayland" XCURSOR_SIZE=24 HYPRLAND_INSTANCE_SIGNATURE=1b48642fd15c433c53876f1b933dcd46265caf8f_1701079150 XDPH_WIND
Nov 27 11:06:52 neon systemd[1246]: xdg-desktop-portal-hyprland.service: Consumed 3.199s CPU time.
Nov 27 11:07:07 neon wireplumber[1301]: Failed to get percentage from UPower: org.freedesktop.DBus.Error.NameHasNoOwner
Nov 27 11:07:07 neon wireplumber[1301]: GetManagedObjects() failed: org.freedesktop.DBus.Error.NameHasNoOwner
Nov 27 11:07:33 neon rf-token[1296]: 2023-11-27 11:07:33,426 DEBUG   [Thread-1 (refresh_grants)] [rf.auth.rftoken] refreshing grants
Nov 27 11:07:33 neon dbus-daemon[1314]: [session uid=1000 pid=1314] Activating via systemd: service name='org.freedesktop.impl.portal.desktop.hyprland' unit='xdg-desktop-portal-hyprland.service' requested by ':1.19' (uid=1000 pid=2018 comm="/usr>
Nov 27 11:07:33 neon systemd[1246]: Starting Portal service (Hyprland implementation)...
Nov 27 11:07:33 neon dbus-daemon[1314]: [session uid=1000 pid=1314] Successfully activated service 'org.freedesktop.impl.portal.desktop.hyprland'
Nov 27 11:07:33 neon systemd[1246]: Started Portal service (Hyprland implementation).
Nov 27 11:07:35 neon xdg-desktop-portal-hyprland[34358]: [LOG] Initializing xdph...
Nov 27 11:07:35 neon xdg-desktop-portal-hyprland[34358]: [LOG] XDG_CURRENT_DESKTOP set to sway
Nov 27 11:07:35 neon xdg-desktop-portal-hyprland[34358]: [WARN] Not running on hyprland, some features might be unavailable
Nov 27 11:07:35 neon xdg-desktop-portal-hyprland[34358]: [LOG] Gathering exported interfaces
Nov 27 11:07:35 neon xdg-desktop-portal-hyprland[34358]: [LOG]  | Got interface: wl_shm (ver 1)
Nov 27 11:07:35 neon xdg-desktop-portal-hyprland[34358]: [LOG]  | Got interface: wl_drm (ver 2)
Nov 27 11:07:35 neon xdg-desktop-portal-hyprland[34358]: [LOG]  | Got interface: zwp_linux_dmabuf_v1 (ver 4)
Nov 27 11:07:35 neon xdg-desktop-portal-hyprland[34358]: [LOG]  | Got interface: wl_compositor (ver 5)
Nov 27 11:07:35 neon xdg-desktop-portal-hyprland[34358]: [LOG]  | Got interface: wl_subcompositor (ver 1)
Nov 27 11:07:35 neon xdg-desktop-portal-hyprland[34358]: [LOG]  | Got interface: wl_data_device_manager (ver 3)
Nov 27 11:07:35 neon xdg-desktop-portal-hyprland[34358]: [LOG]  | Got interface: zwlr_gamma_control_manager_v1 (ver 1)
Nov 27 11:07:35 neon xdg-desktop-portal-hyprland[34358]: [LOG]  | Got interface: zxdg_output_manager_v1 (ver 3)
Nov 27 11:07:35 neon xdg-desktop-portal-hyprland[34358]: [LOG]  | Got interface: org_kde_kwin_idle (ver 1)
Nov 27 11:07:35 neon xdg-desktop-portal-hyprland[34358]: [LOG]  | Got interface: ext_idle_notifier_v1 (ver 1)
Nov 27 11:07:35 neon xdg-desktop-portal-hyprland[34358]: [LOG]  | Got interface: zwp_idle_inhibit_manager_v1 (ver 1)
Nov 27 11:07:35 neon xdg-desktop-portal-hyprland[34358]: [LOG]  | Got interface: zwlr_layer_shell_v1 (ver 4)
Nov 27 11:07:35 neon xdg-desktop-portal-hyprland[34358]: [LOG]  | Got interface: xdg_wm_base (ver 2)
Nov 27 11:07:35 neon xdg-desktop-portal-hyprland[34358]: [LOG]  | Got interface: zwp_tablet_manager_v2 (ver 1)
Nov 27 11:07:35 neon xdg-desktop-portal-hyprland[34358]: [LOG]  | Got interface: org_kde_kwin_server_decoration_manager (ver 1)
Nov 27 11:07:35 neon xdg-desktop-portal-hyprland[34358]: [LOG]  | Got interface: zxdg_decoration_manager_v1 (ver 1)
Nov 27 11:07:35 neon xdg-desktop-portal-hyprland[34358]: [LOG]  | Got interface: zwp_relative_pointer_manager_v1 (ver 1)
Nov 27 11:07:35 neon xdg-desktop-portal-hyprland[34358]: [LOG]  | Got interface: zwp_pointer_constraints_v1 (ver 1)
Nov 27 11:07:35 neon xdg-desktop-portal-hyprland[34358]: [LOG]  | Got interface: wp_presentation (ver 1)
Nov 27 11:07:35 neon xdg-desktop-portal-hyprland[34358]: [LOG]  | Got interface: zwlr_output_manager_v1 (ver 4)
Nov 27 11:07:35 neon xdg-desktop-portal-hyprland[34358]: [LOG]  | Got interface: zwlr_output_power_manager_v1 (ver 1)
Nov 27 11:07:35 neon xdg-desktop-portal-hyprland[34358]: [LOG]  | Got interface: zwp_input_method_manager_v2 (ver 1)
Nov 27 11:07:35 neon xdg-desktop-portal-hyprland[34358]: [LOG]  | Got interface: zwp_text_input_manager_v3 (ver 1)
Nov 27 11:07:35 neon xdg-desktop-portal-hyprland[34358]: [LOG]  | Got interface: zwlr_foreign_toplevel_manager_v1 (ver 3)
Nov 27 11:07:35 neon xdg-desktop-portal-hyprland[34358]: [LOG]  | Got interface: ext_session_lock_manager_v1 (ver 1)
Nov 27 11:07:35 neon xdg-desktop-portal-hyprland[34358]: [LOG]  | Got interface: wp_drm_lease_device_v1 (ver 1)
Nov 27 11:07:35 neon xdg-desktop-portal-hyprland[34358]: [LOG]  | Got interface: zwlr_export_dmabuf_manager_v1 (ver 1)
Nov 27 11:07:35 neon xdg-desktop-portal-hyprland[34358]: [LOG]  | Got interface: zwlr_screencopy_manager_v1 (ver 3)
Nov 27 11:07:35 neon xdg-desktop-portal-hyprland[34358]: [LOG] [pipewire] connected
Nov 27 11:07:35 neon xdg-desktop-portal-hyprland[34358]: [LOG] [screencopy] init successful
Nov 27 11:07:35 neon xdg-desktop-portal-hyprland[34358]: [LOG]  | Got interface: zwlr_data_control_manager_v1 (ver 2)
Nov 27 11:07:35 neon xdg-desktop-portal-hyprland[34358]: [LOG]  | Got interface: zwp_primary_selection_device_manager_v1 (ver 1)
Nov 27 11:07:35 neon xdg-desktop-portal-hyprland[34358]: [LOG]  | Got interface: wp_viewporter (ver 1)
Nov 27 11:07:35 neon xdg-desktop-portal-hyprland[34358]: [LOG]  | Got interface: wp_single_pixel_buffer_manager_v1 (ver 1)
Nov 27 11:07:35 neon xdg-desktop-portal-hyprland[34358]: [LOG]  | Got interface: zxdg_exporter_v1 (ver 1)
Nov 27 11:07:35 neon xdg-desktop-portal-hyprland[34358]: [LOG]  | Got interface: zxdg_importer_v1 (ver 1)
Nov 27 11:07:35 neon xdg-desktop-portal-hyprland[34358]: [LOG]  | Got interface: zxdg_exporter_v2 (ver 1)
Nov 27 11:07:35 neon xdg-desktop-portal-hyprland[34358]: [LOG]  | Got interface: zxdg_importer_v2 (ver 1)
Nov 27 11:07:35 neon xdg-desktop-portal-hyprland[34358]: [LOG]  | Got interface: xdg_activation_v1 (ver 1)
Nov 27 11:07:35 neon xdg-desktop-portal-hyprland[34358]: [LOG]  | Got interface: zwp_virtual_keyboard_manager_v1 (ver 1)
Nov 27 11:07:35 neon xdg-desktop-portal-hyprland[34358]: [LOG]  | Got interface: zwlr_virtual_pointer_manager_v1 (ver 2)
Nov 27 11:07:35 neon xdg-desktop-portal-hyprland[34358]: [LOG]  | Got interface: zwlr_input_inhibit_manager_v1 (ver 1)
Nov 27 11:07:35 neon xdg-desktop-portal-hyprland[34358]: [LOG]  | Got interface: zwp_keyboard_shortcuts_inhibit_manager_v1 (ver 1)
Nov 27 11:07:35 neon xdg-desktop-portal-hyprland[34358]: [LOG]  | Got interface: wl_seat (ver 8)
Nov 27 11:07:35 neon xdg-desktop-portal-hyprland[34358]: [LOG]  | Got interface: zwp_pointer_gestures_v1 (ver 3)
Nov 27 11:07:35 neon xdg-desktop-portal-hyprland[34358]: [LOG]  | Got interface: wl_output (ver 4)
Nov 27 11:07:35 neon xdg-desktop-portal-hyprland[34358]: [LOG] [screenshot] init successful
Nov 27 11:07:35 neon xdg-desktop-portal-hyprland[34358]: [INFO] hyprpicker not found. We suggest to use hyprpicker for color picking to be less meh.
Nov 27 11:07:35 neon xdg-desktop-portal-hyprland[34358]: [LOG] [core] dmabufFeedbackMainDevice
Nov 27 11:07:35 neon xdg-desktop-portal-hyprland[34358]: [LOG] Found output name eDP-1
Nov 27 11:07:35 neon xdg-desktop-portal-hyprland[34358]: [LOG] [screencopy] New session:
Nov 27 11:07:35 neon xdg-desktop-portal-hyprland[34358]: [LOG] [screencopy]  | /org/freedesktop/portal/desktop/request/1_124/webrtc_557944012
Nov 27 11:07:35 neon xdg-desktop-portal-hyprland[34358]: [LOG] [screencopy]  | /org/freedesktop/portal/desktop/session/1_124/webrtc_session1298487784
Nov 27 11:07:35 neon xdg-desktop-portal-hyprland[34358]: [LOG] [screencopy]  | appid:
Nov 27 11:07:35 neon xdg-desktop-portal-hyprland[34358]: [LOG] [screencopy] SelectSources:
Nov 27 11:07:35 neon xdg-desktop-portal-hyprland[34358]: [LOG] [screencopy]  | /org/freedesktop/portal/desktop/request/1_124/webrtc108890796
Nov 27 11:07:35 neon xdg-desktop-portal-hyprland[34358]: [LOG] [screencopy]  | /org/freedesktop/portal/desktop/session/1_124/webrtc_session1298487784
Nov 27 11:07:35 neon xdg-desktop-portal-hyprland[34358]: [LOG] [screencopy]  | appid:
Nov 27 11:07:35 neon xdg-desktop-portal-hyprland[34358]: [LOG] [screencopy] option persist_mode to 1
Nov 27 11:07:35 neon xdg-desktop-portal-hyprland[34358]: [LOG] [screencopy] unused option multiple
Nov 27 11:07:35 neon xdg-desktop-portal-hyprland[34358]: [LOG] [screencopy] unused option types
Nov 27 11:07:35 neon xdg-desktop-portal-hyprland[34358]: [LOG] [screencopy] restore data invalid / missing, prompting
Nov 27 11:07:35 neon xdg-desktop-portal-hyprland[34358]: [LOG] execAndGet: WAYLAND_DISPLAY=wayland-1 QT_QPA_PLATFORM="wayland" XCURSOR_SIZE=24 HYPRLAND_INSTANCE_SIGNATURE=1b48642fd15c433c53876f1b933dcd46265caf8f_1701079150 XDPH_WINDOW_SHARING_LIST="" hyprland>
Nov 27 11:07:35 neon xdg-desktop-portal-hyprland[34358]: [LOG] [sc] Selection: /screen:eDP-1
Nov 27 11:07:35 neon xdg-desktop-portal-hyprland[34358]: [LOG] [screencopy] SHAREDATA returned selection 0
Nov 27 11:07:35 neon xdg-desktop-portal-hyprland[34358]: [LOG] [screencopy] Start:
Nov 27 11:07:35 neon xdg-desktop-portal-hyprland[34358]: [LOG] [screencopy]  | /org/freedesktop/portal/desktop/request/1_124/webrtc811710072
Nov 27 11:07:35 neon xdg-desktop-portal-hyprland[34358]: [LOG] [screencopy]  | /org/freedesktop/portal/desktop/session/1_124/webrtc_session1298487784
Nov 27 11:07:35 neon xdg-desktop-portal-hyprland[34358]: [LOG] [screencopy]  | appid:
Nov 27 11:07:35 neon wireplumber[1301]: <WpPortalPermissionStorePlugin:0x5559fdbf6b00> Failed to call Lookup: GDBus.Error:org.freedesktop.portal.Error.NotFound: No entry for camera

Corresponding journal when running Hyprland (I omitted a bunch/most of [core] got poll event messages):

% /usr/lib/xdg-desktop-portal-hyprland --verbose
[LOG] Initializing xdph...
[LOG] XDG_CURRENT_DESKTOP set to sway
[WARN] Not running on hyprland, some features might be unavailable
[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: org_kde_kwin_idle (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: zwlr_input_inhibit_manager_v1 (ver 1)
[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]  | 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_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] [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.
[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 0x55ff8a7c0b30
[TRACE] [toplevel] New toplevel at 0x55ff8a7c0c90
[TRACE] [toplevel] New toplevel at 0x55ff8a7c0e20
[TRACE] [toplevel] New toplevel at 0x55ff8a7c0f80
[TRACE] [toplevel] toplevel at 0x55ff8a836630 set title to /usr/lib/xdg-desktop-portal-hyprland --verbose
[TRACE] [toplevel] toplevel at 0x55ff8a836630 set class to Alacritty
[TRACE] [toplevel] toplevel at 0x55ff8a830650 set title to New Issue · hyprwm/xdg-desktop-portal-hyprland — Mozilla Firefox
[TRACE] [toplevel] toplevel at 0x55ff8a830650 set class to firefox
[TRACE] [toplevel] toplevel at 0x55ff8a830450 set title to Issues · hyprwm/xdg-desktop-portal-hyprland · GitHub — Mozilla Firefox
[TRACE] [toplevel] toplevel at 0x55ff8a830450 set class to firefox
[TRACE] [toplevel] toplevel at 0x55ff8a82c4b0 set title to ingemar@neon: ~
[TRACE] [toplevel] toplevel at 0x55ff8a82c4b0 set class to Alacritty
[LOG] Found output name eDP-1
[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 0x55ff8a830450 set title to Mozilla Firefox
[TRACE] [toplevel] toplevel at 0x55ff8a830450 set title to gUM Test Page — Mozilla Firefox
[LOG] [screencopy] New session:
[LOG] [screencopy]  | /org/freedesktop/portal/desktop/request/1_163/webrtc_557220760
[LOG] [screencopy]  | /org/freedesktop/portal/desktop/session/1_163/webrtc_session1530364168
[LOG] [screencopy]  | appid:
[TRACE] [internal] Create Session /org/freedesktop/portal/desktop/session/1_163/webrtc_session1530364168
[TRACE] [internal] Create Request /org/freedesktop/portal/desktop/request/1_163/webrtc_557220760
[LOG] [screencopy] SelectSources:
[LOG] [screencopy]  | /org/freedesktop/portal/desktop/request/1_163/webrtc192696186
[LOG] [screencopy]  | /org/freedesktop/portal/desktop/session/1_163/webrtc_session1530364168
[LOG] [screencopy]  | appid:
[LOG] [screencopy] option persist_mode to 1
[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=24 HYPRLAND_INSTANCE_SIGNATURE=1b48642fd15c433c53876f1b933dcd46265caf8f_1701080034 XDPH_WINDOW_SHARING_LIST="2323385136[HC>]Alacritty[HT>]/usr/lib/xdg-desktop-portal-hyprland --verbose[HE>]2323385488[HC>]firefox[HT>]New Issue · hyprwm/xdg-desktop-portal-hyprland — Mozilla Firefox[HE>]2323385888[HC>]firefox[HT>]gUM Test Page — Mozilla Firefox[HE>]2323386240[HC>]Alacritty[HT>]ingemar@neon: ~[HE>]" hyprland-share-picker 2>&1
[LOG] [sc] Selection: /screen:eDP-1

[LOG] [screencopy] SHAREDATA returned selection 0
[TRACE] [core] got poll event
[TRACE] [toplevel] New toplevel at 0x55ff8a84e790
[TRACE] [toplevel] toplevel at 0x55ff8a8500a0 set class to hyprland-share-picker
[TRACE] [toplevel] toplevel at 0x55ff8a8500a0 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x55ff8a8500a0 set title to MainPicker
[TRACE] [toplevel] toplevel at 0x55ff8a8500a0 closed
[LOG] [screencopy] Start:
[LOG] [screencopy]  | /org/freedesktop/portal/desktop/request/1_163/webrtc1195248641
[LOG] [screencopy]  | /org/freedesktop/portal/desktop/session/1_163/webrtc_session1530364168
[LOG] [screencopy]  | appid:
[LOG] [screencopy]  | parent_window:
[TRACE] [screencopy] frame callbacks initialized
[TRACE] [sc] wlrOnBuffer for 0x55ff8a7cd7f0
[TRACE] [sc] wlrOnDmabuf for 0x55ff8a7cd7f0
[TRACE] [sc] wlrOnBufferDone for 0x55ff8a7cd7f0
[TRACE] [sc] wlrOnBufferDone: no stream
[TRACE] [pw] New stream name xdph-streaming-812488
[TRACE] [pw] build_modifierlist: count 6
[LOG] [pw] Building modifiers for dma
[TRACE] [pw] pwStreamStateChange on 0x55ff8a7c8880 from unconnected to connecting, node id 4294967295
[TRACE] [pw] Stream got nodeid 4294967295
[TRACE] [pw] pwStreamStateChange on 0x55ff8a7c8880 from connecting to paused, node id 87
[LOG] [screencopy] Sharing initialized
[TRACE] [sc] queued frame in 16.666666666666668ms
[TRACE] [pw] pwStreamParamChanged on 0x55ff8a7c8880
[TRACE] [pw] invalid call in pwStreamParamChanged
[TRACE] [pw] pwStreamStateChange on 0x55ff8a7c8880 from paused to error, node id 87

For reference, I'm running Arch linux using
pipewire 1:0.3.85-1
wireplumber 0.4.16-1
hyprland 0.30.0-1
xdg-desktop-portal-hyprland 1.2.5-1

@vaxerski
Copy link
Member

that's a very outdated hyprland. Arch maintainer hasn't updated the package in ages.

@ingemaradahl
Copy link
Author

Thanks for the quick reply. I upgraded to 0.32.3.r84.99ca26d4-1 via hyprland-git, but no dice, screen sharing still doesn't work.

When successfully screen sharing from sway, this is written to the journal after xdg-desktop-portal-hyprland has done its thing:

wireplumber[1301]: <WpPortalPermissionStorePlugin:0x5559fdbf6b00> Failed to call Lookup: GDBus.Error:org.freedesktop.portal.Error.NotFound: No entry for camera
wireplumber[1301]: Failed to get percentage from UPower: org.freedesktop.DBus.Error.NameHasNoOwner
wireplumber[1301]: GetManagedObjects() failed: org.freedesktop.DBus.Error.NameHasNoOwner
xdg-desktop-portal-hyprland[34358]: [LOG] [screencopy]  | pa
systemd[1246]: xdg-desktop-portal-hyprland.service: Consumed 1.474s CPU time.
wireplumber[1301]: Failed to get percentage from UPower: org.freedesktop.DBus.Error.NameHasNoOwner
wireplumber[1301]: GetManagedObjects() failed: org.freedesktop.DBus.Error.NameHasNoOwner

Corresponding journal for Hyprland:

wireplumber[1301]: <WpPortalPermissionStorePlugin:0x5559fdbf6b00> Failed to call Lookup: GDBus.Error:org.freedesktop.portal.Error.NotFound: No entry for camera
pipewire[1293]: pw.context: params Spa:Enum:ParamId:EnumFormat: 0:0 Invalid argument (input format (no more input formats))
pipewire[1293]: pw.context: Object: size 344, type Spa:Pod:Object:Param:Format (262147), id Spa:Enum:ParamId:EnumFormat (3)
pipewire[1293]: pw.context:   Prop: key Spa:Pod:Object:Param:Format:mediaType (1), flags 00000000
pipewire[1293]: pw.context:     Id 2        (Spa:Enum:MediaType:video)
pipewire[1293]: pw.context:   Prop: key Spa:Pod:Object:Param:Format:mediaSubtype (2), flags 00000000
pipewire[1293]: pw.context:     Id 1        (Spa:Enum:MediaSubtype:raw)
pipewire[1293]: pw.context:   Prop: key Spa:Pod:Object:Param:Format:Video:format (131073), flags 00000000
pipewire[1293]: pw.context:     Id 12       (Spa:Enum:VideoFormat:BGRA)
pipewire[1293]: pw.context:   Prop: key Spa:Pod:Object:Param:Format:Video:modifier (131074), flags 00000018
pipewire[1293]: pw.context:     Choice: type Spa:Enum:Choice:Enum, flags 00000000 80 8
pipewire[1293]: pw.context:       Long 0
pipewire[1293]: pw.context:       Long 0
pipewire[1293]: pw.context:       Long 72057594037927937
pipewire[1293]: pw.context:       Long 72057594037927938
pipewire[1293]: pw.context:       Long 72057594037927942
pipewire[1293]: pw.context:       Long 72057594037927943
pipewire[1293]: pw.context:       Long 72057594037927944
pipewire[1293]: pw.context:       Long 72057594037927935
pipewire[1293]: pw.context:   Prop: key Spa:Pod:Object:Param:Format:Video:size (131075), flags 00000000
pipewire[1293]: pw.context:     Choice: type Spa:Enum:Choice:Range, flags 00000000 40 8
pipewire[1293]: pw.context:       Rectangle 1x1
pipewire[1293]: pw.context:       Rectangle 1x1
pipewire[1293]: pw.context:       Rectangle -1x-1
pipewire[1293]: pw.context:   Prop: key Spa:Pod:Object:Param:Format:Video:framerate (131076), flags 00000000
pipewire[1293]: pw.context:     Choice: type Spa:Enum:Choice:Range, flags 00000000 40 8
pipewire[1293]: pw.context:       Fraction 60/1
pipewire[1293]: pw.context:       Fraction 0/1
pipewire[1293]: pw.context:       Fraction 60/1
pipewire[1293]: pw.context:   Prop: key Spa:Pod:Object:Param:Format:Video:maxFramerate (131077), flags 00000000
pipewire[1293]: pw.context:     Choice: type Spa:Enum:Choice:Range, flags 00000000 40 8
pipewire[1293]: pw.context:       Fraction 60/1
pipewire[1293]: pw.context:       Fraction 0/1
pipewire[1293]: pw.context:       Fraction 60/1
...

@vaxerski
Copy link
Member

generally no clue. only thing I can suspect is nvidia being wonky, but I don't even know if you are on nvidia.

@ingemaradahl
Copy link
Author

I'm on a Intel based system (ThinkPad something something). I'm also at a loss. But I assume that since it works in sway there must be something in the handshake between the compositor and pipewire via dbus which gets tripped up when using Hyprland. Maybe this is a ticket for https://github.com/hyprwm/Hyprland 🤔.

@NextWork123
Copy link

NextWork123 commented Nov 28, 2023

generally no clue. only thing I can suspect is nvidia being wonky, but I don't even know if you are on nvidia.

something is wrong i tested the 1.2.2 and isn't working and too the latest version only the 1.1.0 is working and i'm on gentoo with an amdgpu seem something messed with pipewire or idk

@Rudolchr
Copy link
Contributor

Rudolchr commented Dec 1, 2023

Also on gentoo neither 1.1.0, 1.2.2 nor 1.2.5 work for screensharing, while it did work on 23th of november which was the last time i used it. On that time it was v1.1.0 which does not work anymore for me 😞
But i can say when using xdg-desktop-portel-wlr with most current hyprland version it suddenly works again.
So maybe it's some dependency change 🤔

The provided versions by gentoo for this project are these

Edit 1:
used versions:
wlroots-0.17.0
hyprland-0.32.3
xdg-desktop-portal-1.18.2
xdg-desktop-portal-hyprland: each of: {(1.2.5), (1.2.2), (1.1.0)}
I also testet current updatream master from git which produce the same result.

Testet everything both on intel integrated (Intel® Iris™ Pro Grafik 6200; i-7 5700HQ) and nvidia (GTX-965M) with same result on both gpus.

Edit 2:
Environment that i made working with WebRTC screen share:
wlroots-0.17.0
hyprland-0.32.3
xdg-desktop-portal-1.18.2
xdg-desktop-portal-wlr-0.7.0

Each might be provided with gentoo specific patches.

Edit 3:
If that helps to debug:
With current master xwaylandvideobridge-0.3.0 trying to screenshare discord fails with:
"Couldn't initialize the remote control session"
it didn't when it still worked. also doesn't with current wlr version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants