Bug 489115 - Screen sharing didn't work since 6.1 on Wayland (Chrome, Firefox, Discord, Teams, Zoom, Slack)
Summary: Screen sharing didn't work since 6.1 on Wayland (Chrome, Firefox, Discord, Te...
Status: RESOLVED DUPLICATE of bug 488749
Alias: None
Product: neon
Classification: KDE Neon
Component: Packages User Edition (show other bugs)
Version: unspecified
Platform: Neon Linux
: NOR grave
Target Milestone: ---
Assignee: Neon Bugs
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2024-06-24 16:30 UTC by tchiot.ludo
Modified: 2024-07-11 13:02 UTC (History)
13 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tchiot.ludo 2024-06-24 16:30:32 UTC
SUMMARY
Since Plasma 6.1, no more screen sharing is working. 

STEPS TO REPRODUCE
1. Open Google Meet 
2. Click Share screen 
3. Choose Windows or Entire Screen (Tab Sharing is working) 
4. See the KDE Portal popup opening 
5. Choose any one 
6. You will see the KDE Portal popup closing (as usual), but the screen selection from Chrome as going back to tab sharing

In the past, you will have to double choose the windows, and It's works. Now, it's will be close in infinite and no more screen sharing is possible. Added below some logs below with a kernel error on pipewire. FYI, Spectable is working well 

SOFTWARE/OS VERSIONS
Operating System: KDE neon 6.0
KDE Plasma Version: 6.1.0
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.0
Kernel Version: 6.5.0-41-generic (64-bit)
Graphics Platform: Wayland
Processors: 16 × 13th Gen Intel® Core™ i7-1360P
Memory: 31,1 GiB of RAM
Graphics Processor: Mesa Intel® Graphics
Manufacturer: LG Electronics
Product Name: 16Z90R-G.AD78F
System Version: 0.1

LOG: 
```
Jun 24 18:21:29 udol kernel: [  686.139764] pool-/usr/libex[16465]: segfault at 2114 ip 000079fab5edac15 sp 000079fab6ffc5d8error 4 in libpipewire-module-protocol-native.so[79fab5eda000+1d000] likely on CPU 10 (core 18, socket 0)
Jun 24 18:21:29 udol kernel: [  686.139803] Code: 0f 1f 44 00 00 f3 0f 1e fa 48 8b 47 20 8b 4f 28 40 0f b6 f6 66 0f ef c0 488d 3d 46 d7 02 00 48 8b 80 58 01 00 00 48 8b 40 60 <83> b8 14 21 00 00 02 89 88 a8 20 00 00 4c 8d 80 d0 20 00 00 89 b0
Jun 24 18:21:29 udol systemd[1864]: xdg-desktop-portal.service: Main process exited, code=killed, status=11/SEGV
Jun 24 18:21:29 udol systemd[1864]: xdg-desktop-portal.service: Failed with result 'signal'.
Jun 24 18:21:29 udol krunner[9066]: [9056:9056:0624/182129.874025:ERROR:screencast_portal.cc(450)] Failed to open the PipeWire remote: GDBus.Error:org.freedesktop.DBus.Error.NoReply: Message recipient disconnected from message bus without replying
Jun 24 18:21:29 udol krunner[9066]: [9056:9056:0624/182129.874099:ERROR:base_capturer_pipewire.cc(81)] ScreenCastPortal failed: 3
Jun 24 18:21:29 udol dbus-daemon[1980]: [session uid=1000 pid=1980] Activating via systemd: service name='org.freedesktop.portal.Desktop' unit='xdg-desktop-portal.service' requested by ':1.90' (uid=1000 pid=9056 comm="/opt/google/chrome/chrome " label="unconfined")
Jun 24 18:21:29 udol xdg-desktop-portal-kde[2756]: kpipewire_logging: Window not available PipeWireSourceItem(0x610ec6bf9910, id="pipeWireSourceItem", parent=0x610ec68a65f0, geometry=0,8 189x31)
Jun 24 18:21:29 udol systemd[1864]: Starting Portal service...
Jun 24 18:21:29 udol xdg-desktop-por[16563]: Choosing gtk.portal for org.freedesktop.impl.portal.Lockdown as a last-resort fallback
Jun 24 18:21:29 udol xdg-desktop-por[16563]: The preferred method to match portal implementations to desktop environments isto use the portals.conf(5) configuration file
Jun 24 18:21:29 udol rtkit-daemon[1919]: Supervising 10 threads of 3 processes of 1 users.
Jun 24 18:21:29 udol rtkit-daemon[1919]: message repeated 2 times: [ Supervising 10 threads of 3 processes of 1 users.]
Jun 24 18:21:29 udol xdg-desktop-por[16563]: Choosing kwallet.portal for org.freedesktop.impl.portal.Secret via the deprecated UseIn key
Jun 24 18:21:29 udol dbus-daemon[1980]: [session uid=1000 pid=1980] Successfully activated service 'org.freedesktop.portal.Desktop'
Jun 24 18:21:29 udol systemd[1864]: Started Portal service.
````

$ps ax | grep pipe
2359 ?        S<sl   0:00 /usr/bin/pipewire
2368 ?        Ssl    0:00 /usr/bin/pipewire-media-session
17507 pts/2    S+     0:00 grep --color=auto pipe

$ps ax | grep portal
2300 ?        Ssl    0:00 /usr/libexec/xdg-document-portal
2310 ?        Ss     0:00 fusermount3 -o rw,nosuid,nodev,fsname=portal,auto_unmount,subtype=portal -- /run/user/1000/doc
2315 ?        Ssl    0:00 /usr/libexec/xdg-desktop-portal-gtk
2756 ?        Ssl    0:13 /usr/lib/x86_64-linux-gnu/libexec/xdg-desktop-portal-kde
16563 ?        Ssl    0:00 /usr/libexec/xdg-desktop-portal
17665 pts/2    S+     0:00 grep --color=auto portal
Comment 1 Fieldservice4 2024-06-25 18:07:09 UTC
Confirm.

Screen sharing doesn't work on Wayland KDE 6.1 with Chrome and Microsoft Teams.
Comment 2 julien_palmieri 2024-06-25 22:41:21 UTC
Same problem on KDE NEON since plasma6.1
 screen sharing doesn't works with Teams or Zoom. 

... Of course i blamed Teams!  ;)
but please, i need screen sharing at work ^^
Comment 3 Fieldservice4 2024-06-25 22:49:18 UTC
(In reply to julien_palmieri from comment #2)
> Same problem on KDE NEON since plasma6.1
>  screen sharing doesn't works with Teams or Zoom. 
> 
> ... Of course i blamed Teams!  ;)
> but please, i need screen sharing at work ^^

The issue is isolated to the Wayland session. 
Log in to X11 since Microsoft Teams works there (tested extensively and no problem).
Comment 4 Nate Graham 2024-06-26 22:10:53 UTC
This is clearly the problem:

Jun 24 18:21:29 udol krunner[9066]: [9056:9056:0624/182129.874025:ERROR:screencast_portal.cc(450)] Failed to open the PipeWire remote: GDBus.Error:org.freedesktop.DBus.Error.NoReply: Message recipient disconnected from message bus without replying
Jun 24 18:21:29 udol krunner[9066]: [9056:9056:0624/182129.874099:ERROR:base_capturer_pipewire.cc(81)] ScreenCastPortal failed: 3
Jun 24 18:21:29 udol dbus-daemon[1980]: [session uid=1000 pid=1980] Activating via systemd: service name='org.freedesktop.portal.Desktop' unit='xdg-desktop-portal.service' requested by ':1.90' (uid=1000 pid=9056 comm="/opt/google/chrome/chrome " label="unconfined")
Jun 24 18:21:29 udol xdg-desktop-portal-kde[2756]: kpipewire_logging: Window not available PipeWireSourceItem(0x610ec6bf9910,
Comment 5 Nate Graham 2024-06-26 22:11:24 UTC
Ah of course, it's because you're on Neon and Neon's version of PipeWire is too old in Plasma 6.1, which breaks tons of stuff. :/
Comment 6 tchiot.ludo 2024-06-26 22:13:40 UTC
Maybe I'm wrong, I was thinking the main issue could be : 
Jun 24 18:21:29 udol kernel: [  686.139764] pool-/usr/libex[16465]: segfault at 2114 ip 000079fab5edac15 sp 000079fab6ffc5d8error 4 in libpipewire-module-protocol-native.so[79fab5eda000+1d000] likely on CPU 10 (core 18, socket 0)
Jun 24 18:21:29 udol kernel: [  686.139803] Code: 0f 1f 44 00 00 f3 0f 1e fa 48 8b 47 20 8b 4f 28 40 0f b6 f6 66 0f ef c0 488d 3d 46 d7 02 00 48 8b 80 58 01 00 00 48 8b 40 60 <83> b8 14 21 00 00 02 89 88 a8 20 00 00 4c 8d 80 d0 20 00 00 89 b0
Jun 24 18:21:29 udol systemd[1864]: xdg-desktop-portal.service: Main process exited, code=killed, status=11/SEGV
Jun 24 18:21:29 udol systemd[1864]: xdg-desktop-portal.service: Failed with result 'signal'.

since pipewire segfault and crashed, no way to capture the output?
Comment 7 tchiot.ludo 2024-06-26 22:15:50 UTC
$sudo dpkg -l | grep pipewire
ii  libkpipewire6                                 6.1.0-0xneon+22.04+jammy+release+build40                     amd64        KDE's Pipewire library
ii  libkpipewirerecord6                           6.1.0-0xneon+22.04+jammy+release+build40                     amd64        KDE's Pipewire library
ii  libpipewire-0.3-0:amd64                       0.3.48-1ubuntu3                                              amd64        libraries for the PipeWire multimedia server
ii  libpipewire-0.3-common                        0.3.48-1ubuntu3                                              all          libraries for the PipeWire multimedia server - common files
ii  libpipewire-0.3-modules:amd64                 0.3.48-1ubuntu3                                              amd64        libraries for the PipeWire multimedia server - modules
ii  pipewire:amd64                                0.3.48-1ubuntu3                                              amd64        audio and video processing engine multimedia server
ii  pipewire-bin                                  0.3.48-1ubuntu3                                              amd64        PipeWire multimedia server - programs
ii  pipewire-media-session                        0.4.1-2ubuntu1                                               amd64        example session manager for PipeWire
ii  qml6-module-org-kde-pipewire                  6.1.0-0xneon+22.04+jammy+release+build40                     amd64        KDE's Pipewire library

If it could help :)
Comment 8 Dilam 2024-06-29 09:56:14 UTC
It's an important issue !
I have personally seen that screen sharing doesn't work on Google Meet (on Firefox) or University network (Firefox) or on Discord.
Other comment say that it don't work on Microsoft Teams, Zoom, or Slack.
It probably doesn't work on any website and in any tool.

Operating System: KDE neon 6.0
KDE Plasma Version: 6.1.1
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.0
Kernel Version: 6.5.0-41-generic (64-bit)
Graphics Platform: Wayland
Comment 9 Fieldservice4 2024-06-29 15:00:51 UTC
(In reply to Nate Graham from comment #5)
> Ah of course, it's because you're on Neon and Neon's version of PipeWire is
> too old in Plasma 6.1, which breaks tons of stuff. :/

I am extremely unskilled with Linux, so please take this with a grain of salt. 

But googling around and trying some commands, it seems that not only is PipeWire in Ubuntu 22.04 really old, but it also seems that PipeWire isn't even fully active on Ubuntu 22.04. For audio, it seems that KDE Neon runs fully on PulseAudio alone?
Comment 10 gus 2024-07-01 14:41:16 UTC
Screen sharing stopped working for me as well with 6.1. I am on arch/cahyos with pipewire 1.2, which I believe is the latest. Now zoom refuse screen sharing saying: "Can not start share, we only support Wayland on Gnome ...". It used to work with 6.0.

The only line I see in the logs (`journalctl -f`) is: "Jul 01 10:39:03 gus-cachyos kwin_wayland[986]: kf.windowsystem: static bool KX11Extras::mapViewport() may only be used on X11"

Operating System: CachyOS Linux 
KDE Plasma Version: 6.1.1
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.2
Kernel Version: 6.9.7-2-cachyos (64-bit)
Graphics Platform: Wayland
Processors: 8 × 11th Gen Intel® Core™ i7-11390H @ 3.40GHz
Memory: 15.4 GiB of RAM
Graphics Processor: Mesa Intel® Xe Graphics
Manufacturer: Dell Inc.
Product Name: Vostro 14 5410
Comment 11 Gaël de Chalendar (aka Kleag) 2024-07-04 07:59:27 UTC
Same problem. Commenting to be added to the CC list as I really need a working screen sharing for my work.
Comment 12 Juraj 2024-07-10 20:41:31 UTC
This could be caused by Falkon not implementing new screen sharing API of QtWebEngine where the screen which is to be shared is being selected.
Comment 13 Nate Graham 2024-07-11 13:02:45 UTC

*** This bug has been marked as a duplicate of bug 488749 ***