elementary / portals

https://elementary.io
GNU General Public License v3.0
23 stars 5 forks source link

Pipewire Screen Capture returns no data #119

Open cyrneko opened 1 month ago

cyrneko commented 1 month ago

What Happened?

Trying to use the Wayland session in elementaryOS 8, you will not be able to start screen sharing either by selecting your display nor xdg-desktop-portal-pantheon in the picker. Sharing a single application is also impossible.

In programs like OBS or Discord it will simply return nothing, as if no output was chosen at all.

Steps to Reproduce

  1. Invoke the Pipewire Screen Capture Portal (e.g OBS, Discord, Firefox...)
  2. Select any option.
  3. Hit "share"
  4. See bug

Expected Behavior

Using any of the screen sharing options should allow the program in question to get a copy of your display or application output depending on your selection.

OS Version

8.x (Early Access)

Session Type

Secure Session (Wayland)

Software Version

Latest release (I have run all updates)

Log Output

No response

Hardware Info

relevant nvidia-smi output because I am running an Nvidia GPU with the proprietary drivers:

Sat Oct  5 18:37:05 2024       
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 550.107.02             Driver Version: 550.107.02     CUDA Version: 12.4     |
|-----------------------------------------+------------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
|                                         |                        |               MIG M. |
|=========================================+========================+======================|
|   0  NVIDIA GeForce GTX 1060 3GB    Off |   00000000:02:00.0  On |                  N/A |
| 37%   33C    P8              8W /  120W |     970MiB /   3072MiB |      1%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+
djaeris commented 1 day ago

I have the same problem, with NVIDIA GeForce RTX 3060 and driver version 550. There are other issues with this specific driver and Wayland, which are an upstream problem. I'm just speculating, but it may be related to stuff discussed here: https://github.com/NVIDIA/egl-wayland/pull/104 This should be (mostly) solved with v. 555 upwards (should appear in Ubuntu repos probably in February — I'm not sure how exactly the timeline works).

It would be helpful, if someone with a different GFX hardware would chime in, whether the screen sharing works in that case (Intel/AMD).

colinkiama commented 1 day ago

I'm on Intel graphics and I'm experiencing the same issue