hyprwm / xdg-desktop-portal-hyprland

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

First display capture works fine, subsequent display captures show black screens (on 1.2.6; 1.2.5 works fine) #148

Closed DJXJD closed 8 months ago

DJXJD commented 9 months ago

As is said in the title. This seems to be the case regardless of what application is doing the capture.

Here is a log of:

  1. Starting a pipewire screen capture in OBS
  2. Noticing it working
  3. Removing the screen capture
  4. Starting another pipewire screen capture in OBS
  5. Noticing it not working
diniamo commented 9 months ago

54a30259be0dd196ffc260d6a52b6bbdbf1d5273 should fix this

Zambieslar commented 9 months ago

I just tested on 1.2.5 being able to reproduce the same issue. So this seems to go back farther than that.

Limbozz-ms commented 8 months ago

I've downgraded to 1.2.5 and it works like it's supposed to.

JanValiska commented 8 months ago

54a3025 should fix this

Tested on Nvidia card. Works like charm. Before fix I got "[screencopy] Couldn't obtain a format from dma" every time I restarted sharing. So this will probably fix also issue: https://github.com/hyprwm/xdg-desktop-portal-hyprland/issues/131

Thank you.

rettetdemdativ commented 8 months ago

54a3025 should fix this

Can also confirm that this fixed the problem for me (Intel integrated graphics).