Bug 1894437 - Screen sharing from Firefox is broken in Wayland (google meet)
Summary: Screen sharing from Firefox is broken in Wayland (google meet)
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: xdg-desktop-portal-gtk
Version: 33
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: David King
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-11-04 09:36 UTC by Milan Zink
Modified: 2021-10-28 14:37 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-10-28 14:37:30 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Firefox complains it cannot share screen / present (27.90 KB, image/png)
2020-11-04 09:39 UTC, Milan Zink
no flags Details
Screen share works with downgraded pipewire (66.07 KB, image/png)
2020-11-04 20:59 UTC, Milan Zink
no flags Details

Description Milan Zink 2020-11-04 09:36:36 UTC
Description of problem:
Screen sharing is broken

Version-Release number of selected component (if applicable):
firefox-82.0.2-1.fc33.x86_64
pipewire0.2-libs-0.2.7-4.fc33.x86_64
pipewire-0.3.14-2.fc33.x86_64
pipewire-gstreamer-0.3.14-2.fc33.x86_64
pipewire-libs-0.3.14-2.fc33.x86_64
xdg-desktop-portal-1.8.0-1.fc33.x86_64
xdg-desktop-portal-gtk-1.8.0-1.fc33.x86_64

How reproducible:
Start screen sharing in Firefox (google meet, bluejeans)

Steps to Reproduce:
1. Open Firefox
2. Start meeting
3. Try to share a screen

Actual results:
First time asks about screen - normal expected dialog, gnome shows sharing screen indicator in panel, but it doesn't work
Second time (rejoin meeting) - it doesn't ask for screen

Expected results:
Share screen is working (it was woking fine with firefox-82 on F32)

Additional info:
firefox-82.0.2-1.fc33.x86_64
pipewire0.2-libs-0.2.7-4.fc33.x86_64
pipewire-0.3.14-2.fc33.x86_64
pipewire-gstreamer-0.3.14-2.fc33.x86_64
pipewire-libs-0.3.14-2.fc33.x86_64
xdg-desktop-portal-1.8.0-1.fc33.x86_64
xdg-desktop-portal-gtk-1.8.0-1.fc33.x86_64

systemctl --user status xdg-desktop-portal-gtk.service xdg-desktop-portal-gtk.service pipewire.socket pipewire.service
● xdg-desktop-portal-gtk.service - Portal service (GTK+/GNOME implementation)
     Loaded: loaded (/usr/lib/systemd/user/xdg-desktop-portal-gtk.service; static)
     Active: active (running) since Wed 2020-11-04 10:08:14 CET; 9min ago
   Main PID: 24692 (xdg-desktop-por)
      Tasks: 4 (limit: 19011)
     Memory: 11.4M
        CPU: 275ms
     CGroup: /user.slice/user-24473.slice/user/xdg-desktop-portal-gtk.service
             └─24692 /usr/libexec/xdg-desktop-portal-gtk

Nov 04 10:08:14 localhost.localdomain systemd[2246]: Starting Portal service (GTK+/GNOME implementation)...
Nov 04 10:08:14 localhost.localdomain systemd[2246]: Started Portal service (GTK+/GNOME implementation).
Nov 04 10:17:12 localhost.localdomain xdg-desktop-por[24692]: Unhandled parent window type 
Nov 04 10:17:12 localhost.localdomain xdg-desktop-por[24692]: Failed to associate portal window with parent window 

● xdg-desktop-portal-gtk.service - Portal service (GTK+/GNOME implementation)
     Loaded: loaded (/usr/lib/systemd/user/xdg-desktop-portal-gtk.service; static)
     Active: active (running) since Wed 2020-11-04 10:08:14 CET; 9min ago
   Main PID: 24692 (xdg-desktop-por)
      Tasks: 4 (limit: 19011)
     Memory: 11.4M
        CPU: 275ms
     CGroup: /user.slice/user-24473.slice/user/xdg-desktop-portal-gtk.service
             └─24692 /usr/libexec/xdg-desktop-portal-gtk

Nov 04 10:08:14 localhost.localdomain systemd[2246]: Starting Portal service (GTK+/GNOME implementation)...
Nov 04 10:08:14 localhost.localdomain systemd[2246]: Started Portal service (GTK+/GNOME implementation).
Nov 04 10:17:12 localhost.localdomain xdg-desktop-por[24692]: Unhandled parent window type 
Nov 04 10:17:12 localhost.localdomain xdg-desktop-por[24692]: Failed to associate portal window with parent window 

● pipewire.socket - Multimedia System
     Loaded: loaded (/usr/lib/systemd/user/pipewire.socket; enabled; vendor preset: enabled)
     Active: active (running) since Wed 2020-11-04 09:44:41 CET; 32min ago
   Triggers: ● pipewire.service
     Listen: /run/user/24473/pipewire-0 (Stream)
     CGroup: /user.slice/user-24473.slice/user/pipewire.socket

Nov 04 09:44:41 localhost.localdomain systemd[2246]: Listening on Multimedia System.

● pipewire.service - Multimedia Service
     Loaded: loaded (/usr/lib/systemd/user/pipewire.service; disabled; vendor preset: disabled)
    Drop-In: /usr/lib/systemd/user/pipewire.service.d
             └─00-uresourced.conf
     Active: active (running) since Wed 2020-11-04 09:44:41 CET; 32min ago
TriggeredBy: ● pipewire.socket
   Main PID: 18271 (pipewire)
      Tasks: 4 (limit: 19011)
     Memory: 8.1M
        CPU: 199ms
     CGroup: /user.slice/user-24473.slice/user/session.slice/pipewire.service
             ├─18271 /usr/bin/pipewire
             └─18286 /usr/bin/pipewire-media-session -d bluez5,pulse-bridge

Nov 04 10:04:34 localhost.localdomain pipewire[18271]: [E][000007747.440363][module-access.c:102 check_flatpak()] failed to open "/proc/2532/root": Permission denied
Nov 04 10:04:34 localhost.localdomain pipewire[18271]: [W][000007747.440377][module-access.c:196 context_check_access()] access 0x56040f8f5d30: client 0x56040fa47820 sandbox check failed: Permission denied
Nov 04 10:04:39 localhost.localdomain pipewire[18271]: [E][000007752.648787][module-access.c:102 check_flatpak()] failed to open "/proc/2532/root": Permission denied
Nov 04 10:04:39 localhost.localdomain pipewire[18271]: [W][000007752.648805][module-access.c:196 context_check_access()] access 0x56040f8f5d30: client 0x56040fa5e5d0 sandbox check failed: Permission denied
Nov 04 10:04:56 localhost.localdomain pipewire[18271]: [E][000007769.977084][module-access.c:102 check_flatpak()] failed to open "/proc/2532/root": Permission denied
Nov 04 10:04:56 localhost.localdomain pipewire[18271]: [W][000007769.977101][module-access.c:196 context_check_access()] access 0x56040f8f5d30: client 0x56040fa75410 sandbox check failed: Permission denied
Nov 04 10:05:03 localhost.localdomain pipewire[18271]: [E][000007776.762401][module-access.c:102 check_flatpak()] failed to open "/proc/2532/root": Permission denied
Nov 04 10:05:03 localhost.localdomain pipewire[18271]: [W][000007776.762422][module-access.c:196 context_check_access()] access 0x56040f8f5d30: client 0x56040fa9ff20 sandbox check failed: Permission denied
Nov 04 10:17:20 localhost.localdomain pipewire[18271]: [E][000008513.297846][module-access.c:102 check_flatpak()] failed to open "/proc/2532/root": Permission denied
Nov 04 10:17:20 localhost.localdomain pipewire[18271]: [W][000008513.297863][module-access.c:196 context_check_access()] access 0x56040f8f5d30: client 0x56040fa5b240 sandbox check failed: Permission denied

Comment 1 Milan Zink 2020-11-04 09:39:09 UTC
Created attachment 1726511 [details]
Firefox complains it cannot share screen / present

Comment 2 Milan Zink 2020-11-04 09:44:05 UTC
systemctl -l --user status xdg-desktop-portal-gtk.service xdg-desktop-portal-gtk.service pipewire.socket pipewire.service
● xdg-desktop-portal-gtk.service - Portal service (GTK+/GNOME implementation)
     Loaded: loaded (/usr/lib/systemd/user/xdg-desktop-portal-gtk.service; static)
     Active: active (running) since Wed 2020-11-04 10:08:14 CET; 31min ago
   Main PID: 24692 (xdg-desktop-por)
      Tasks: 4 (limit: 19011)
     Memory: 11.4M
        CPU: 318ms
     CGroup: /user.slice/user-24473.slice/user/xdg-desktop-portal-gtk.service
             └─24692 /usr/libexec/xdg-desktop-portal-gtk

Nov 04 10:08:14 localhost.localdomain systemd[2246]: Starting Portal service (GTK+/GNOME implementation)...
Nov 04 10:08:14 localhost.localdomain systemd[2246]: Started Portal service (GTK+/GNOME implementation).
Nov 04 10:17:12 localhost.localdomain xdg-desktop-por[24692]: Unhandled parent window type 
Nov 04 10:17:12 localhost.localdomain xdg-desktop-por[24692]: Failed to associate portal window with parent window 
Nov 04 10:18:30 localhost.localdomain xdg-desktop-por[24692]: Failed to close GNOME screen cast session: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.gnome.Mutter.ScreenCast.Session” on object at path /org/gnome/Mutter/ScreenCast/Session/u8

● xdg-desktop-portal-gtk.service - Portal service (GTK+/GNOME implementation)
     Loaded: loaded (/usr/lib/systemd/user/xdg-desktop-portal-gtk.service; static)
     Active: active (running) since Wed 2020-11-04 10:08:14 CET; 31min ago
   Main PID: 24692 (xdg-desktop-por)
      Tasks: 4 (limit: 19011)
     Memory: 11.4M
        CPU: 318ms
     CGroup: /user.slice/user-24473.slice/user/xdg-desktop-portal-gtk.service
             └─24692 /usr/libexec/xdg-desktop-portal-gtk

Nov 04 10:08:14 localhost.localdomain systemd[2246]: Starting Portal service (GTK+/GNOME implementation)...
Nov 04 10:08:14 localhost.localdomain systemd[2246]: Started Portal service (GTK+/GNOME implementation).
Nov 04 10:17:12 localhost.localdomain xdg-desktop-por[24692]: Unhandled parent window type 
Nov 04 10:17:12 localhost.localdomain xdg-desktop-por[24692]: Failed to associate portal window with parent window 
Nov 04 10:18:30 localhost.localdomain xdg-desktop-por[24692]: Failed to close GNOME screen cast session: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.gnome.Mutter.ScreenCast.Session” on object at path /org/gnome/Mutter/ScreenCast/Session/u8

● pipewire.socket - Multimedia System
     Loaded: loaded (/usr/lib/systemd/user/pipewire.socket; enabled; vendor preset: enabled)
     Active: active (running) since Wed 2020-11-04 09:44:41 CET; 54min ago
   Triggers: ● pipewire.service
     Listen: /run/user/24473/pipewire-0 (Stream)
     CGroup: /user.slice/user-24473.slice/user/pipewire.socket

Nov 04 09:44:41 localhost.localdomain systemd[2246]: Listening on Multimedia System.

● pipewire.service - Multimedia Service
     Loaded: loaded (/usr/lib/systemd/user/pipewire.service; disabled; vendor preset: disabled)
    Drop-In: /usr/lib/systemd/user/pipewire.service.d
             └─00-uresourced.conf
     Active: active (running) since Wed 2020-11-04 09:44:41 CET; 54min ago
TriggeredBy: ● pipewire.socket
   Main PID: 18271 (pipewire)
      Tasks: 4 (limit: 19011)
     Memory: 8.1M
        CPU: 209ms
     CGroup: /user.slice/user-24473.slice/user/session.slice/pipewire.service
             ├─18271 /usr/bin/pipewire
             └─18286 /usr/bin/pipewire-media-session -d bluez5,pulse-bridge

Nov 04 10:04:34 localhost.localdomain pipewire[18271]: [E][000007747.440363][module-access.c:102 check_flatpak()] failed to open "/proc/2532/root": Permission denied
Nov 04 10:04:34 localhost.localdomain pipewire[18271]: [W][000007747.440377][module-access.c:196 context_check_access()] access 0x56040f8f5d30: client 0x56040fa47820 sandbox check failed: Permission denied
Nov 04 10:04:39 localhost.localdomain pipewire[18271]: [E][000007752.648787][module-access.c:102 check_flatpak()] failed to open "/proc/2532/root": Permission denied
Nov 04 10:04:39 localhost.localdomain pipewire[18271]: [W][000007752.648805][module-access.c:196 context_check_access()] access 0x56040f8f5d30: client 0x56040fa5e5d0 sandbox check failed: Permission denied
Nov 04 10:04:56 localhost.localdomain pipewire[18271]: [E][000007769.977084][module-access.c:102 check_flatpak()] failed to open "/proc/2532/root": Permission denied
Nov 04 10:04:56 localhost.localdomain pipewire[18271]: [W][000007769.977101][module-access.c:196 context_check_access()] access 0x56040f8f5d30: client 0x56040fa75410 sandbox check failed: Permission denied
Nov 04 10:05:03 localhost.localdomain pipewire[18271]: [E][000007776.762401][module-access.c:102 check_flatpak()] failed to open "/proc/2532/root": Permission denied
Nov 04 10:05:03 localhost.localdomain pipewire[18271]: [W][000007776.762422][module-access.c:196 context_check_access()] access 0x56040f8f5d30: client 0x56040fa9ff20 sandbox check failed: Permission denied
Nov 04 10:17:20 localhost.localdomain pipewire[18271]: [E][000008513.297846][module-access.c:102 check_flatpak()] failed to open "/proc/2532/root": Permission denied
Nov 04 10:17:20 localhost.localdomain pipewire[18271]: [W][000008513.297863][module-access.c:196 context_check_access()] access 0x56040f8f5d30: client 0x56040fa5b240 sandbox check failed: Permission denied


BTW: gnome-screencast reording (Ctrl+Alt+Shift+R) works

Comment 3 Milan Zink 2020-11-04 20:58:48 UTC
Hi,

so the problem is with pipewire.

Works without issues with following versions:
firefox-82.0.2-1.fc33.x86_64
pipewire0.2-libs-0.2.7-4.fc33.x86_64
pipewire-0.3.13-4.fc33.x86_64
pipewire-gstreamer-0.3.13-4.fc33.x86_64
pipewire-libs-0.3.13-4.fc33.x86_64
xdg-desktop-portal-1.8.0-1.fc33.x86_64
xdg-desktop-portal-gtk-1.8.0-1.fc33.x86_64

pipewire-* 0.3.14-2 downgraded to 0.3.13-4.

Comment 4 Milan Zink 2020-11-04 20:59:36 UTC
Created attachment 1726699 [details]
Screen share works with downgraded pipewire

Comment 5 Milan Zink 2020-11-04 21:16:55 UTC
Works fine also with chrome/chromium based browser with: chrome://flags -> WebRTC PipeWire support: Enabled.

I think Component: needs to be changed to 'pipewire'.

Comment 6 Milan Zink 2020-11-06 07:40:07 UTC
Fixed by:

pipewire-libs-0.3.15-2.fc33.x86_64
pipewire-0.3.15-2.fc33.x86_64
pipewire-gstreamer-0.3.15-2.fc33.x86_64

Comment 7 Peter Skopek 2021-01-12 08:26:38 UTC
I still cannot share my screen on Fedora 33.

firefox-84.0.2-1.fc33.x86_64
pipewire0.2-libs-0.2.7-4.fc33.x86_64
pipewire-libs-0.3.19-2.fc33.x86_64
pipewire-0.3.19-2.fc33.x86_64
pipewire-gstreamer-0.3.19-2.fc33.x86_64
xdg-desktop-portal-gtk-1.8.0-1.fc33.x86_64
xdg-desktop-portal-1.8.0-1.fc33.x86_64

Comment 8 Peter Skopek 2021-01-14 18:40:42 UTC
The latest update to pipewire fixed the problem:
pipewire-0.3.19-3.fc33.x86_64
pipewire-libs-0.3.19-3.fc33.x86_64
pipewire-gstreamer-0.3.19-3.fc33.x86_64


Note You need to log in before you can comment on or make changes to this bug.