NVIDIA / NVIDIA/open-gpu-kernel-modules

Pipewire screen sharing under Wayland results in black canvas with cursors

Open
#467 26 comments 16 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
C
Stars
17.4k
Forks
1.9k
PR merge metrics
No merged PRs in 30d

Description

NVIDIA Open GPU Kernel Modules Version

525.89.02

Does this happen with the proprietary driver (of the same version) as well?

Yes

Operating System and Version

NixOS (Nixpkgs commit 806075b)

Kernel Release

6.1.13

Hardware: GPU

NVIDIA GeForce RTX 3070

Describe the bug

When using Pipewire screen sharing on Chromium or Firefox on Wayland, the shared stream is black, with the cursor visible and moving. Here's a screenshot of it.

Screenshot 2023-02-26 at 22-37-17 WebRTC Screen Sharing Plugin-free

This bug was reported to Pipewire. All affected users are using the proprietary Nvidia driver, and the bug is reproducible with the open kernel module.

Note that while on Chromium and Firefox the results were black, I was able to record the screen with OBS Studio, so it's unclear whether this bug belongs to here.

To Reproduce
  1. Open Chromium or Firefox.
  2. Open any website that uses WebRTC screen sharing (tested on https://www.webrtc-experiment.com) and share the screen.
  3. From the xdg-desktop-portal popup dialog, select the entire screen.
Bug Incidence

Always

nvidia-bug-report.log.gz

Due to Nixpkgs missing the nvidia-bug-report.sh script (NixOS/nixpkgs#172739), this part is left out.

More Info

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue with Chromium or Firefox on Wayland and follow the xdg-desktop-portal screen-selection steps. Compare the black WebRTC stream with the working OBS Studio recording and review the linked PipeWire issue to determine whether the problem belongs in this repository. Done means identifying and resolving the cause of the black shared canvas.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux
Domain
audio-video-rtc, desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.