hyprwm / xdg-desktop-portal-hyprland

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

xwaylandvideobridge screen share freezes after a few seconds #180

Open phonetic112 opened 9 months ago

phonetic112 commented 9 months ago

When I start screen-sharing (after I've started the portal) the share freezes after a few seconds.

Logs: ``` libEGL warning: egl: failed to create dri2 screen [LOG] [toplevel] (activate) locks: 2 [LOG] [screencopy] New session: [LOG] [screencopy] | /org/freedesktop/portal/desktop/request/1_1088/xwaylandvideobridge4032653782 [LOG] [screencopy] | /org/freedesktop/portal/desktop/session/1_1088/xwaylandvideobridge4032653782 [LOG] [screencopy] | appid: [LOG] [screencopy] SelectSources: [LOG] [screencopy] | /org/freedesktop/portal/desktop/request/1_1088/xwaylandvideobridge4032653782 [LOG] [screencopy] | /org/freedesktop/portal/desktop/session/1_1088/xwaylandvideobridge4032653782 [LOG] [screencopy] | appid: [LOG] [screencopy] option cursor_mode to 2 [LOG] [screencopy] unused option multiple [LOG] [screencopy] unused option types [LOG] [screencopy] restore data invalid / missing, prompting [LOG] [sc] Selection: /screen:HDMI-A-1 [LOG] [screencopy] SHAREDATA returned selection 0 [LOG] [screencopy] Start: [LOG] [screencopy] | /org/freedesktop/portal/desktop/request/1_1088/xwaylandvideobridge4032653782 [LOG] [screencopy] | /org/freedesktop/portal/desktop/session/1_1088/xwaylandvideobridge4032653782 [LOG] [screencopy] | appid: [LOG] [screencopy] | parent_window: org.kde.xwaylandvideobridge [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. [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. [LOG] [screencopy/pipewire] Out of buffers ```
niksingh710 commented 9 months ago

for me if i select specific region then this happens image

igor-ramazanov commented 8 months ago

For me it happens when I switch tabs in Firefox. Hyprland: 0.36.0 xdg-desktop-portal-hyprland: 1.3.1

igor-ramazanov commented 8 months ago

I think it works with Hyprland 0.35.0, will check later.

igor-ramazanov commented 8 months ago

So, the reason somewhere in Hyprland, the issue is unrelated to xdph, xdpw, pipewire or wireplumber.

The issue was introduced in Hyprland 0.36.0 and persists in 0.37.1, 0.35.0 works well.

vaxerski commented 8 months ago

git bisect then