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] `zwlr_screencopy_frame_v1@27: error 1: invalid buffer format` #203

Closed tigrato closed 7 months ago

tigrato commented 7 months ago

With NVIDIA card, XDPH terminates after the initial frame is written.

Testing screen share with Firefox causes XDPH to output the first frame (shown) and exit right after.

[LOG] [toplevel] (activate) locks: 2
[LOG] [screencopy] New session:
[LOG] [screencopy]  | /org/freedesktop/portal/desktop/request/1_54/webrtc_904099267
[LOG] [screencopy]  | /org/freedesktop/portal/desktop/session/1_54/webrtc_session48403427
[LOG] [screencopy]  | appid: 
[LOG] [screencopy] SelectSources:
[LOG] [screencopy]  | /org/freedesktop/portal/desktop/request/1_54/webrtc1979293267
[LOG] [screencopy]  | /org/freedesktop/portal/desktop/session/1_54/webrtc_session48403427
[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=20 HYPRLAND_INSTANCE_SIGNATURE=c5e28ebcfe00a510922779b2c568cfa52a317445_1711122276 XDPH_WINDOW_SHARING_LIST="1701060784[HC>]kitty[HT>]tiago@archlinux:~[HE>]1701061136[HC>]kitty[HT>]tail -f /var/log/pacman.log[HE>]1700771744[HC>]firefox[HT>]Meet - nat-wnoz-xyp — Mozilla Firefox[HE>]" hyprland-share-picker 2>&1
[LOG] [sc] Selection: /screen:DP-2

[LOG] [screencopy] SHAREDATA returned selection 0
[LOG] [screencopy] Start:
[LOG] [screencopy]  | /org/freedesktop/portal/desktop/request/1_54/webrtc1947977005
[LOG] [screencopy]  | /org/freedesktop/portal/desktop/session/1_54/webrtc_session48403427
[LOG] [screencopy]  | appid: 
[LOG] [screencopy]  | parent_window: 
[LOG] [pw] Building modifiers for dma
[LOG] [screencopy] Sharing initialized
[WARN] [pipewire] Asked for a wl_shm buffer which is legacy.
[WARN] [pipewire] Asked for a wl_shm buffer which is legacy.
[WARN] [pipewire] Asked for a wl_shm buffer which is legacy.
[WARN] [pipewire] Asked for a wl_shm buffer which is legacy.
[WARN] [pipewire] Asked for a wl_shm buffer which is legacy.
[WARN] [pipewire] Asked for a wl_shm buffer which is legacy.
[WARN] [pipewire] Asked for a wl_shm buffer which is legacy.
[WARN] [pipewire] Asked for a wl_shm buffer which is legacy.
zwlr_screencopy_frame_v1@27: error 1: invalid buffer format
[CRITICAL] [core] Disconnected from pollfd id 1
[ERR] [core] Terminated
vaxerski commented 7 months ago

try hyprland-git

tigrato commented 7 months ago

try hyprland-git

It worked. Thanks 🙏

I can now share my windows and screens with Firefox. Do you have any idea which commit fixed the issue?

vaxerski commented 7 months ago

yes I do, see https://github.com/hyprwm/Hyprland/issues/4791