Created attachment 170629 [details] bug video SUMMARY Screensharing, that worked prior to the update (to 6.1), doesn't work anymore. STEPS TO REPRODUCE 1. Start Slack or Google Meet 2. Try sharing the screen 3. The popup to choose what screen/window to share comes up 4. You choose/click one option from step 3 OBSERVED RESULT A blank pop up (which you can only close) appears after you choose the screen/window to share EXPECTED RESULT I should see a screen inside the popup which, when clicked, starts the sharing. 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
What's the gpu? Does screencasting work in obs? Are window thumbnails in the task manager are blank too?
Also please check kwin_wayland's logs
journalctl --boot --user plasma-kwin_wayland
(In reply to Vlad Zahorodnii from comment #1) > What's the gpu? Does screencasting work in obs? Are window thumbnails in the > task manager are blank too? Window thumbnails (including VLC playing video) are OK when hovering over taskbar, alt+tabbing or activating Overview. Rest of the system details: Processors: 16 × AMD Ryzen 7 4800H with Radeon Graphics Memory: 15,0 GiB of RAM Graphics Processor: AMD Radeon Graphics Manufacturer: HUAWEI Product Name: KLVL-WXX9 System Version: M1040
(In reply to Vlad Zahorodnii from comment #1) > What's the gpu? Does screencasting work in obs? Are window thumbnails in the > task manager are blank too? Just tried OBS and screen is black. Prior to the update it worked as I did a few screencasts in it.
(In reply to Vlad Zahorodnii from comment #3) > journalctl --boot --user plasma-kwin_wayland this gives me the following error "Failed to add match 'plasma-kwin_wayland': Invalid argument"
Huh, did you disable systemd boot?
Created attachment 170631 [details] Screencasting icon stays even after app is closed
(In reply to Matija from comment #8) > Created attachment 170631 [details] > Screencasting icon stays even after app is closed(In reply to Matija from comment #8) > Created attachment 170631 [details] > Screencasting icon stays even after app is closed And I have to click it and when the popup shows, then click on "End" button
(In reply to Vlad Zahorodnii from comment #7) > Huh, did you disable systemd boot? As far as I know, I didn't :\
Sorry, that was a wrong command. Try journalctl --boot --user-unit plasma-kwin_wayland instead
(In reply to Vlad Zahorodnii from comment #11) > Sorry, that was a wrong command. Try > > journalctl --boot --user-unit plasma-kwin_wayland > > instead lip 19 12:27:57 userX kwin_wayland[2309]: OpenGL vendor string: AMD lip 19 12:27:57 userX kwin_wayland[2309]: OpenGL renderer string: AMD Radeon Graphics (renoir, LLVM 15.0.7, DRM 3.54, 6.5.0-41-generic) lip 19 12:27:57 userX kwin_wayland[2309]: OpenGL version string: 4.6 (Core Profile) Mesa 23.2.1-1ubuntu3.1~22.04.2 lip 19 12:27:57 userX kwin_wayland[2309]: OpenGL shading language version string: 4.60 lip 19 12:27:57 userX kwin_wayland[2309]: Driver: Unknown lip 19 12:27:57 userX kwin_wayland[2309]: GPU class: Unknown lip 19 12:27:57 userX kwin_wayland[2309]: OpenGL version: 4.6 lip 19 12:27:57 userX kwin_wayland[2309]: GLSL version: 4.60 lip 19 12:27:57 userX kwin_wayland[2309]: Mesa version: 23.2.1 lip 19 12:27:57 userX kwin_wayland[2309]: Requires strict binding: no lip 19 12:27:57 userX kwin_wayland[2309]: Virtual Machine: no lip 19 12:29:07 userX kwin_wayland[2309]: kf.windowsystem: static bool KX11Extras::mapViewport() may only be used on X11 lip 19 12:29:47 userX kwin_wayland[2309]: kf.windowsystem: static bool KX11Extras::mapViewport() may only be used on X11 lip 19 12:29:59 userX kwin_wayland[2309]: This plugin does not support raise() At 12:29 i tried screensharing again and those 3 lines were generated. Do you need the whole output?
Please also set QT_LOGGING_RULES envvar
(In reply to Vlad Zahorodnii from comment #13) > Please also set QT_LOGGING_RULES envvar Sorry, not versed about debugging Qt... Did you mean this "QT_LOGGING_RULES="default.debug=true" journalctl --boot --user-unit plasma-kwin_wayland"
No, put `QT_LOGGING_RULES="kwin_screencast.debug=true"` in /etc/environment and then reboot
(In reply to Vlad Zahorodnii from comment #15) > No, put `QT_LOGGING_RULES="kwin_screencast.debug=true"` in /etc/environment > and then reboot here's the dump after restart lip 19 17:37:06 userX systemd[1611]: Starting KDE Window Manager... lip 19 17:37:06 userX systemd[1611]: Started KDE Window Manager. lip 19 17:37:06 userX kwin_wayland[1674]: No backend specified, automatically choosing drm lip 19 17:37:06 userX kwin_wayland[1674]: OpenGL vendor string: AMD lip 19 17:37:06 userX kwin_wayland[1674]: OpenGL renderer string: AMD Radeon Graphics (renoir, LLVM 15.0.7, DRM 3.54, 6.5.0-41-generic) lip 19 17:37:06 userX kwin_wayland[1674]: OpenGL version string: 4.6 (Core Profile) Mesa 23.2.1-1ubuntu3.1~22.04.2 lip 19 17:37:06 userX kwin_wayland[1674]: OpenGL shading language version string: 4.60 lip 19 17:37:06 userX kwin_wayland[1674]: Driver: Unknown lip 19 17:37:06 userX kwin_wayland[1674]: GPU class: Unknown lip 19 17:37:06 userX kwin_wayland[1674]: OpenGL version: 4.6 lip 19 17:37:06 userX kwin_wayland[1674]: GLSL version: 4.60 lip 19 17:37:06 userX kwin_wayland[1674]: Mesa version: 23.2.1 lip 19 17:37:06 userX kwin_wayland[1674]: Requires strict binding: no lip 19 17:37:06 userX kwin_wayland[1674]: Virtual Machine: no lip 19 17:37:06 userX kwin_wayland[1674]: OpenGL vendor string: AMD lip 19 17:37:06 userX kwin_wayland[1674]: OpenGL renderer string: AMD Radeon Graphics (renoir, LLVM 15.0.7, DRM 3.54, 6.5.0-41-generic) lip 19 17:37:06 userX kwin_wayland[1674]: OpenGL version string: 4.6 (Core Profile) Mesa 23.2.1-1ubuntu3.1~22.04.2 lip 19 17:37:06 userX kwin_wayland[1674]: OpenGL shading language version string: 4.60 lip 19 17:37:06 userX kwin_wayland[1674]: Driver: Unknown lip 19 17:37:06 userX kwin_wayland[1674]: GPU class: Unknown lip 19 17:37:06 userX kwin_wayland[1674]: OpenGL version: 4.6 lip 19 17:37:06 userX kwin_wayland[1674]: GLSL version: 4.60 lip 19 17:37:06 userX kwin_wayland[1674]: Mesa version: 23.2.1 lip 19 17:37:06 userX kwin_wayland[1674]: Requires strict binding: no lip 19 17:37:06 userX kwin_wayland[1674]: Virtual Machine: no lip 19 17:37:07 userX kwin_wayland_wrapper[1791]: The XKEYBOARD keymap compiler (xkbcomp) reports: lip 19 17:37:07 userX kwin_wayland_wrapper[1791]: > Warning: Unsupported maximum keycode 708, clipping. lip 19 17:37:07 userX kwin_wayland_wrapper[1791]: > X11 cannot support keycodes above 255. lip 19 17:37:07 userX kwin_wayland_wrapper[1791]: Errors from xkbcomp are not fatal to the X server lip 19 17:37:07 userX kcminit[1792]: Initializing "/usr/lib/x86_64-linux-gnu/qt6/plugins/plasma/kcms/systemsettings/kcm_fonts.so" lip 19 17:37:07 userX kcminit[1792]: Initializing "/usr/lib/x86_64-linux-gnu/qt6/plugins/plasma/kcms/systemsettings/kcm_style.so" lip 19 17:37:08 userX kwin_wayland[1674]: kf.windowsystem: static bool KX11Extras::mapViewport() may only be used on X11 lip 19 17:40:04 userX kwin_wayland[1674]: kwin_screencast: "firefox-aurora" state changed unconnected -> connecting lip 19 17:40:04 userX kwin_wayland[1674]: kwin_screencast: "firefox-aurora" stream created, drm format: "AR24 little-endian (0x34325241)" with DMA-BUF: true lip 19 17:40:04 userX kwin_wayland[1674]: kwin_screencast: "firefox-aurora" state changed unconnected -> connecting lip 19 17:40:04 userX kwin_wayland[1674]: kwin_screencast: "firefox-aurora" stream created, drm format: "AR24 little-endian (0x34325241)" with DMA-BUF: true lip 19 17:40:04 userX kwin_wayland[1674]: kwin_screencast: "eDP-1" state changed unconnected -> connecting lip 19 17:40:04 userX kwin_wayland[1674]: kwin_screencast: "eDP-1" stream created, drm format: "AR24 little-endian (0x34325241)" with DMA-BUF: true lip 19 17:40:04 userX kwin_wayland[1674]: kwin_screencast: "firefox-aurora" state changed connecting -> paused lip 19 17:40:04 userX kwin_wayland[1674]: kwin_screencast: "firefox-aurora" state changed connecting -> paused lip 19 17:40:04 userX kwin_wayland[1674]: kwin_screencast: "eDP-1" state changed connecting -> paused lip 19 17:40:04 userX kwin_wayland[1674]: kwin_screencast: "eDP-1" Stream dmabuf modifiers received, offering our best suited modifier true lip 19 17:40:04 userX kwin_wayland[1674]: kwin_screencast: "eDP-1" Stream format found, defining buffers lip 19 17:40:04 userX kwin_wayland[1674]: kwin_screencast: "eDP-1" announcing stream params. with dmabuf: true lip 19 17:40:05 userX kwin_wayland[1674]: kwin_screencast: "eDP-1" state changed paused -> streaming lip 19 17:40:05 userX kwin_wayland[1674]: kwin_screencast: "eDP-1" state changed unconnected -> connecting lip 19 17:40:05 userX kwin_wayland[1674]: kwin_screencast: "eDP-1" stream created, drm format: "AR24 little-endian (0x34325241)" with DMA-BUF: true lip 19 17:40:05 userX kwin_wayland[1674]: kwin_screencast: "eDP-1" state changed connecting -> paused lip 19 17:40:05 userX kwin_wayland[1674]: kwin_screencast: "eDP-1" state changed streaming -> paused lip 19 17:40:06 userX kwin_wayland[1674]: kwin_screencast: "eDP-1" state changed paused -> unconnected lip 19 17:40:06 userX kwin_wayland[1674]: kwin_screencast: "firefox-aurora" state changed paused -> unconnected lip 19 17:40:06 userX kwin_wayland[1674]: kwin_screencast: "firefox-aurora" state changed paused -> unconnected lip 19 17:40:24 userX kwin_wayland[1674]: kwin_screencast: "eDP-1" state changed paused -> unconnected
The blank popups is being drawn by your web browser. I suspect one of the following things happened: 1. The browser broke 2. The browser is running in XWayland mode and this previously worked because you has XWaylandVideoBridge running, but it's not running right now.
(In reply to Nate Graham from comment #17) > The blank popups is being drawn by your web browser. > > I suspect one of the following things happened: > 1. The browser broke > 2. The browser is running in XWayland mode and this previously worked > because you has XWaylandVideoBridge running, but it's not running right now. Don't think so, as this started happening just after the update to 6.1. First screencast shows it happening in Slack. Second one in Firefox Developer edition. Tried with Google Chrome and it can share Chrome Tab ONLY, but fails with a window or a screen. OBS can't record screen anymore (it's black). Weird that suddenly all browsers broke or switched to XWayland.
(In reply to Matija from comment #18) > (In reply to Nate Graham from comment #17) > > The blank popups is being drawn by your web browser. > > > > I suspect one of the following things happened: > > 1. The browser broke > > 2. The browser is running in XWayland mode and this previously worked > > because you has XWaylandVideoBridge running, but it's not running right now. > > Don't think so, as this started happening just after the update to 6.1. > > First screencast shows it happening in Slack. > Second one in Firefox Developer edition. > Tried with Google Chrome and it can share Chrome Tab ONLY, but fails with a > window or a screen. > > OBS can't record screen anymore (it's black). > > Weird that suddenly all browsers broke or switched to XWayland. Just now, tried with a completely new user. A little bit different, but still doesn't work. What I mean by different, there is no empty popup, BUT nothing happens after I choose the screen/window. After I close the app that wanted to share, I have to manually close that red icon in the tray, that indicates recording in progress. When I click it and afterwards click on END, nothing happens but the icon gets removed from tray.
I'm not trying to offend anyone, but in my daily meetings I'm doing a lot of screensharing with teammates, which is suddenly unavailable across apps. Thus, my thoughts are some new changes touched upon this and corrupted it (maybe that remote desktop feat, as it's "similar" thing).
Created attachment 170664 [details] A screenshot of Wayland to X11 Video Bridge (Xwaylandvideobridge), showing that the preview still show up The Wayland to X11 Video Bridge window still show the preview, so I'm guessing that OBS is not receiving any data from xwaylandvideobridge. 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: 8 × 11th Gen Intel® Core™ i5-1135G7 @ 2.40GHz Memory: 15.4 GiB of RAM Graphics Processor: Mesa Intel® Xe Graphics Output of `journalctl --boot --user-unit plasma-kwin_wayland` (after setting `QT_LOGGING_RULES="kwin_screencast.debug=true"` in `/etc/environment` and then reboot. After unlocking, I opened OBS, created a new display capture and selected "Laptop screen"). Jun 20 15:02:43 lts20050703 systemd[957]: Starting KDE Window Manager... Jun 20 15:02:43 lts20050703 systemd[957]: Started KDE Window Manager. Jun 20 15:02:43 lts20050703 kwin_wayland[1097]: No backend specified, automatically choosing drm Jun 20 15:02:44 lts20050703 kwin_wayland[1097]: OpenGL vendor string: Intel Jun 20 15:02:44 lts20050703 kwin_wayland[1097]: OpenGL renderer string: Mesa Intel(R) Xe Graphics (TGL GT2) Jun 20 15:02:44 lts20050703 kwin_wayland[1097]: OpenGL version string: 4.6 (Core Profile) Mesa 23.2.1-1ubuntu3.1~22.04.2 Jun 20 15:02:44 lts20050703 kwin_wayland[1097]: OpenGL shading language version string: 4.60 Jun 20 15:02:44 lts20050703 kwin_wayland[1097]: Driver: Intel Jun 20 15:02:44 lts20050703 kwin_wayland[1097]: GPU class: Tiger Lake Jun 20 15:02:44 lts20050703 kwin_wayland[1097]: OpenGL version: 4.6 Jun 20 15:02:44 lts20050703 kwin_wayland[1097]: GLSL version: 4.60 Jun 20 15:02:44 lts20050703 kwin_wayland[1097]: Mesa version: 23.2.1 Jun 20 15:02:44 lts20050703 kwin_wayland[1097]: Requires strict binding: no Jun 20 15:02:44 lts20050703 kwin_wayland[1097]: Virtual Machine: no Jun 20 15:02:44 lts20050703 kwin_wayland[1097]: OpenGL vendor string: Intel Jun 20 15:02:44 lts20050703 kwin_wayland[1097]: OpenGL renderer string: Mesa Intel(R) Xe Graphics (TGL GT2) Jun 20 15:02:44 lts20050703 kwin_wayland[1097]: OpenGL version string: 4.6 (Core Profile) Mesa 23.2.1-1ubuntu3.1~22.04.2 Jun 20 15:02:44 lts20050703 kwin_wayland[1097]: OpenGL shading language version string: 4.60 Jun 20 15:02:44 lts20050703 kwin_wayland[1097]: Driver: Intel Jun 20 15:02:44 lts20050703 kwin_wayland[1097]: GPU class: Tiger Lake Jun 20 15:02:44 lts20050703 kwin_wayland[1097]: OpenGL version: 4.6 Jun 20 15:02:44 lts20050703 kwin_wayland[1097]: GLSL version: 4.60 Jun 20 15:02:44 lts20050703 kwin_wayland[1097]: Mesa version: 23.2.1 Jun 20 15:02:44 lts20050703 kwin_wayland[1097]: Requires strict binding: no Jun 20 15:02:44 lts20050703 kwin_wayland[1097]: Virtual Machine: no Jun 20 15:02:45 lts20050703 kwin_wayland_wrapper[1222]: The XKEYBOARD keymap compiler (xkbcomp) reports: Jun 20 15:02:45 lts20050703 kwin_wayland_wrapper[1222]: > Warning: Unsupported maximum keycode 708, clipping. Jun 20 15:02:45 lts20050703 kwin_wayland_wrapper[1222]: > X11 cannot support keycodes above 255. Jun 20 15:02:45 lts20050703 kwin_wayland_wrapper[1222]: Errors from xkbcomp are not fatal to the X server Jun 20 15:02:45 lts20050703 kcminit[1223]: Initializing "/usr/lib/x86_64-linux-gnu/qt6/plugins/plasma/kcms/systemsettings/kcm_fonts.so" Jun 20 15:02:45 lts20050703 kcminit[1223]: Initializing "/usr/lib/x86_64-linux-gnu/qt6/plugins/plasma/kcms/systemsettings/kcm_style.so" Jun 20 15:02:46 lts20050703 kwin_wayland[1097]: kf.config.core: "\"fsrestore1\" - conversion of \"0,0,0,0\" to QRect failed" Jun 20 15:02:46 lts20050703 kwin_wayland[1097]: kf.windowsystem: static bool KX11Extras::mapViewport() may only be used on X11 Jun 20 15:03:02 lts20050703 kwin_wayland[1097]: kwin_libinput: Libinput: event4 - MSFT0004:00 06CB:CD98 Touchpad: kernel bug: Touch jump detected and discarded. See https://wayland.freedesktop.org/libinput/doc/1.20.0/touchpad-jumping-cursors.html for details Jun 20 15:03:15 lts20050703 kwin_wayland[1097]: qt.dbus.integration: QDBusConnection: couldn't handle call to Teardown, no slot matched Jun 20 15:03:15 lts20050703 kwin_wayland[1097]: qt.dbus.integration: QDBusConnection: couldn't handle call to Teardown, no slot matched Jun 20 15:03:15 lts20050703 kwin_wayland[1097]: qt.dbus.integration: Could not find slot Krunner1Adaptor::Teardown Jun 20 15:03:20 lts20050703 kwin_wayland[1097]: kwin_screencast: "org.kde.konsole" state changed unconnected -> connecting Jun 20 15:03:20 lts20050703 kwin_wayland[1097]: kwin_screencast: "org.kde.konsole" stream created, drm format: "AR24 little-endian (0x34325241)" with DMA-BUF: true Jun 20 15:03:20 lts20050703 kwin_wayland[1097]: kwin_screencast: "com.obsproject.Studio" state changed unconnected -> connecting Jun 20 15:03:20 lts20050703 kwin_wayland[1097]: kwin_screencast: "com.obsproject.Studio" stream created, drm format: "AR24 little-endian (0x34325241)" with DMA-BUF: true Jun 20 15:03:20 lts20050703 kwin_wayland[1097]: kwin_screencast: "org.kde.konsole" state changed connecting -> paused Jun 20 15:03:20 lts20050703 kwin_wayland[1097]: kwin_screencast: "com.obsproject.Studio" state changed connecting -> paused Jun 20 15:03:20 lts20050703 kwin_wayland[1097]: kwin_screencast: "org.kde.konsole" Stream dmabuf modifiers received, offering our best suited modifier true Jun 20 15:03:20 lts20050703 kwin_wayland[1097]: kwin_screencast: "com.obsproject.Studio" Stream dmabuf modifiers received, offering our best suited modifier true Jun 20 15:03:20 lts20050703 kwin_wayland[1097]: kwin_screencast: "org.kde.konsole" Stream format found, defining buffers Jun 20 15:03:20 lts20050703 kwin_wayland[1097]: kwin_screencast: "org.kde.konsole" announcing stream params. with dmabuf: true Jun 20 15:03:20 lts20050703 kwin_wayland[1097]: kwin_screencast: "com.obsproject.Studio" Stream format found, defining buffers Jun 20 15:03:20 lts20050703 kwin_wayland[1097]: kwin_screencast: "com.obsproject.Studio" announcing stream params. with dmabuf: true Jun 20 15:03:20 lts20050703 kwin_wayland[1097]: kwin_screencast: "org.kde.konsole" state changed paused -> streaming Jun 20 15:03:20 lts20050703 kwin_wayland[1097]: kwin_screencast: "com.obsproject.Studio" state changed paused -> streaming Jun 20 15:03:23 lts20050703 kwin_wayland[1097]: kwin_screencast: "org.kde.konsole" state changed streaming -> paused Jun 20 15:03:23 lts20050703 kwin_wayland[1097]: kwin_screencast: "com.obsproject.Studio" state changed streaming -> paused Jun 20 15:03:23 lts20050703 kwin_wayland[1097]: kwin_screencast: "org.kde.konsole" state changed paused -> unconnected Jun 20 15:03:23 lts20050703 kwin_wayland[1097]: kwin_screencast: "com.obsproject.Studio" state changed paused -> unconnected Jun 20 15:03:24 lts20050703 kwin_wayland[1097]: kwin_screencast: "com.obsproject.Studio" state changed unconnected -> connecting Jun 20 15:03:24 lts20050703 kwin_wayland[1097]: kwin_screencast: "com.obsproject.Studio" stream created, drm format: "AR24 little-endian (0x34325241)" with DMA-BUF: true Jun 20 15:03:24 lts20050703 kwin_wayland[1097]: kwin_screencast: "com.obsproject.Studio" state changed connecting -> paused Jun 20 15:03:35 lts20050703 kwin_wayland[1097]: kwin_screencast: "eDP-1" state changed unconnected -> connecting Jun 20 15:03:35 lts20050703 kwin_wayland[1097]: kwin_screencast: "eDP-1" stream created, drm format: "AR24 little-endian (0x34325241)" with DMA-BUF: true Jun 20 15:03:35 lts20050703 kwin_wayland[1097]: kwin_screencast: "eDP-1" state changed connecting -> paused Jun 20 15:03:35 lts20050703 kwin_wayland[1097]: kwin_screencast: "eDP-1" Stream dmabuf modifiers received, offering our best suited modifier true Jun 20 15:03:35 lts20050703 kwin_wayland[1097]: kwin_screencast: "eDP-1" Stream format found, defining buffers Jun 20 15:03:35 lts20050703 kwin_wayland[1097]: kwin_screencast: "eDP-1" announcing stream params. with dmabuf: true Jun 20 15:03:35 lts20050703 kwin_wayland[1097]: kwin_screencast: "eDP-1" state changed paused -> streaming Jun 20 15:04:00 lts20050703 kwin_wayland[1097]: kwin_screencast: "eDP-1" state changed unconnected -> connecting Jun 20 15:04:00 lts20050703 kwin_wayland[1097]: kwin_screencast: "eDP-1" stream created, drm format: "AR24 little-endian (0x34325241)" with DMA-BUF: true Jun 20 15:04:00 lts20050703 kwin_wayland[1097]: kwin_screencast: "eDP-1" state changed connecting -> paused Jun 20 15:04:00 lts20050703 kwin_wayland[1097]: kwin_screencast: "eDP-1" state changed streaming -> paused Jun 20 15:04:00 lts20050703 kwin_wayland[1097]: kwin_screencast: "eDP-1" state changed paused -> unconnected Jun 20 15:04:03 lts20050703 kwin_wayland[1097]: This plugin does not support raise() Jun 20 15:04:07 lts20050703 kwin_wayland[1097]: kwin_screencast: "com.obsproject.Studio" state changed paused -> unconnected Jun 20 15:04:10 lts20050703 kwin_wayland[1097]: kwin_screencast: "eDP-1" state changed paused -> unconnected
If you run chrome with native wayland support, does screencasting work then? also what about screen recording in spectacle, is it broken too?
(In reply to Vlad Zahorodnii from comment #22) > If you run chrome with native wayland support, does screencasting work then? > also what about screen recording in spectacle, is it broken too? Spectacle screen recording works. Chrome checked if native wayland with `xwininfo` from https://www.reddit.com/r/Fedora/comments/kx5yq6/how_to_detect_if_an_app_runs_on_wayland_or/ and i got + sign. Chrome fails to screenshare.
Hello everyone, I have the same (or similar) problem. Maybe my log will help you - I get a segfault in libpipewire-module-protocol-native.so. Please note that I have probably an unsupported system - Ubuntu 22.04 with Neon repositories added, so maybe my package versions are just wrong, I don't want to waste your time. Operating System: Ubuntu 22.04.4 LTS (Jammy Jellyfish) 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 Pipewire: 0.3.48 libpipewire-0.3-modules: 0.3.48 This is what gets logged when I try to screenshare and select my screen in the "Screen Share" dialog: Jun 20 13:12:35 hostname krunner[104596]: info: PipeWire initialized Jun 20 13:12:35 hostname dbus-daemon[50162]: [session uid=2023870900 pid=50162] Activating via systemd: service name='org.freedesktop.portal.Desktop' unit='xdg-desktop-portal.service' requested by ':1.281' (uid=2023870900 pid=104593 comm="xdg-dbus-proxy --args=41 " label="unconfined") Jun 20 13:12:35 hostname systemd[50136]: Starting Portal service... Jun 20 13:12:35 hostname xdg-desktop-por[104879]: Choosing gtk.portal for org.freedesktop.impl.portal.Lockdown as a last-resort fallback Jun 20 13:12:35 hostname xdg-desktop-por[104879]: The preferred method to match portal implementations to desktop environments is to use the portals.conf(5) configuration file Jun 20 13:12:35 hostname rtkit-daemon[2824]: Supervising 7 threads of 4 processes of 1 users. Jun 20 13:12:35 hostname rtkit-daemon[2824]: Supervising 7 threads of 4 processes of 1 users. Jun 20 13:12:35 hostname rtkit-daemon[2824]: Supervising 7 threads of 4 processes of 1 users. Jun 20 13:12:35 hostname xdg-desktop-por[104879]: Choosing kwallet.portal for org.freedesktop.impl.portal.Secret via the deprecated UseIn key Jun 20 13:12:35 hostname dbus-daemon[50162]: [session uid=2023870900 pid=50162] Successfully activated service 'org.freedesktop.portal.Desktop' Jun 20 13:12:35 hostname systemd[50136]: Started Portal service. Jun 20 13:12:35 hostname kded6[50428]: Registering ":1.294/StatusNotifierItem" to system tray Jun 20 13:12:35 hostname krunner[104596]: info: [pipewire] Screencast session created Jun 20 13:12:35 hostname krunner[104596]: info: [pipewire] Asking for desktop Jun 20 13:12:37 hostname krunner[104596]: info: [pipewire] desktop selected, setting up screencast Jun 20 13:12:37 hostname audit[104879]: ANOM_ABEND auid=2023870900 uid=2023870900 gid=2023870900 ses=22 subj=unconfined pid=104879 comm="pool-/usr/libex" exe="/usr/libexec/xdg-desktop-portal" sig=11 res=1 Jun 20 13:12:37 hostname wireplumber[50146]: <WpPortalPermissionStorePlugin:0x60a5a1930950> Failed to call Lookup: GDBus.Error:org.freedesktop.portal.Error.NotFound: No entry for camera Jun 20 13:12:37 hostname systemd[50136]: xdg-desktop-portal.service: Main process exited, code=killed, status=11/SEGV Jun 20 13:12:37 hostname kernel: pool-/usr/libex[104883]: segfault at 2114 ip 00007b7d141c7c15 sp 00007b7d0f7fd5d8 error 4 in libpipewire-module-protocol-native.so[7b7d141c7000+1d000] likely on CPU 3 (core 3, socket 0) Jun 20 13:12:37 hostname kernel: 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 48 8d 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 20 13:12:37 hostname systemd[50136]: xdg-desktop-portal.service: Failed with result 'signal'. Jun 20 13:12:37 hostname krunner[104596]: error: [pipewire] Error retrieving pipewire fd: GDBus.Error:org.freedesktop.DBus.Error.NoReply: Message recipient disconnected from message bus without replying
Can you get the backtrace of the crash please? coredumpctl list xdg-desktop-portal-kde then type coredumpctl gdb <pid> where <pid> is the pid of the corresponding crash entry
> Pipewire: 0.3.48 Also, it's a quite old version. It may explain why I don't see the crash, because I run 1.0.7, i.e. the latest version of pipewire.
(In reply to Vlad Zahorodnii from comment #26) > > Pipewire: 0.3.48 > > Also, it's a quite old version. It may explain why I don't see the crash, > because I run 1.0.7, i.e. the latest version of pipewire. Also here v0.3.48, I think default on KDE Neon. How do you update to the latest (1.0.7) and is it recommended?
Yes the pipewire version is old, but it seems that is the latest for Ubuntu 22.04. So one solution would be to upgrade, I guess :D I have a record only for the xdg-desktop-portal, not the xdg-desktop-portal-kde... ❯ coredumpctl list TIME PID UID GID SIG COREFILE EXE SIZE Thu 2024-06-20 13:40:24 CEST 105246 2023870900 2023870900 SIGSEGV present /usr/libexec/xdg-desktop-portal 444.9K ~ ❯ coredumpctl gdb 105246 PID: 105246 (xdg-desktop-por) UID: 2023870900 (blazekra) GID: 2023870900 (blazekra) Signal: 11 (SEGV) Timestamp: Thu 2024-06-20 13:40:24 CEST (7min ago) Command Line: /usr/libexec/xdg-desktop-portal Executable: /usr/libexec/xdg-desktop-portal Control Group: /user.slice/user-2023870900.slice/user@2023870900.service/session.slice/xdg-desktop-portal.service Unit: user@2023870900.service User Unit: xdg-desktop-portal.service Slice: user-2023870900.slice Owner UID: 2023870900 (blazekra) Boot ID: 2f4d2b91425548f59b30d04dbcfd2609 Machine ID: 3cdd4058a7dc4b6e860a3d8e14354bc3 Hostname: prgcxl1044.prg.st.com Storage: /var/lib/systemd/coredump/core.xdg-desktop-por.2023870900.2f4d2b91425548f59b30d04dbcfd2609.105246.1718883624000000.zst (present) Disk Size: 444.9K Message: Process 105246 (xdg-desktop-por) of user 2023870900 dumped core. Found module linux-vdso.so.1 with build-id: c3530aed66e71bfd10af66039f58cc7c4d2eaba8 Found module libpipewire-module-session-manager.so with build-id: a4fa9861ba90f36edb94076d1dfef11d1c561d5e Found module libpipewire-module-metadata.so with build-id: dafd3ff9e45eda8b8e72a6c4ee9859bbf3efacfb Found module libpipewire-module-adapter.so with build-id: 4229761ed63759830ca135ab7803b3b450df049a Found module libpipewire-module-client-device.so with build-id: b251ac1d891b2fdc5b8bf4cac47f3211dd44286b Found module libpipewire-module-client-node.so with build-id: 378e0e3bfe3777ae7f02c07f42351b73818bf265 Found module libpipewire-module-protocol-native.so with build-id: 95016f55aab5ffa103dec6b3585936003036b597 Found module libdbus-1.so.3 with build-id: 63e8b99215502138cb63afd6d65851a5e837ed49 Found module libspa-dbus.so with build-id: 7a8c8e1a46e27116cbe556707781aa1785593e07 Found module libspa-journal.so with build-id: 8013a6aa985deab57e102a306d3014c5e1a217c7 Found module libspa-support.so with build-id: 044dd25a7eab5ed0b9438a1fcfad2b8904dd3888 Found module libgioenvironmentproxy.so with build-id: 937ddc05722e2faba65bdfae91987c454cf6cb7b Found module libgcc_s.so.1 with build-id: e3a44e0da9c6e835d293ed8fd2882b4c4a87130c Found module libstdc++.so.6 with build-id: e37fe1a879783838de78cbc8c80621fa685d58a2 Found module libgvfscommon.so with build-id: e7fa580fb91bb21aac9fc69229e0961dc743f2b1 Found module libgvfsdbus.so with build-id: 28abe694dac468552cc1d23d6f643e7989de85e8 Found module libgpg-error.so.0 with build-id: 3fbec71c67bee60d8aef00697ee187079b0fb307 Found module libpcre2-8.so.0 with build-id: 184a841c55fb7fe5e3873fcda8368c71016cd54c Found module libblkid.so.1 with build-id: ecc1dfaec3a7241b41b76c3590fa135fb3c8ddfa Found module ld-linux-x86-64.so.2 with build-id: 4186944c50f8a32b47d74931e3f512b811813b64 Found module libgcrypt.so.20 with build-id: 60a5e524de0ed8323edf33e9eb9127a9eee02359 Found module libcap.so.2 with build-id: b4bf900abf14aabe12d90988ceb30888acb2bcb0 Found module liblz4.so.1 with build-id: a85971851cd059f1af80d553c8e7170d42ec59a1 Found module libzstd.so.1 with build-id: 5d9d0d946a3154a748e87e17af9d14764519237b Found module liblzma.so.5 with build-id: b85da6c48eb60a646615392559483b93617ef265 Found module libffi.so.8 with build-id: 59c2a6b204f74f358ca7711d2dfd349d88711f6a Found module libselinux.so.1 with build-id: 6fa53202ce676297de24873c886443b2759bfd8a Found module libmount.so.1 with build-id: a339abbcd0eb8dadcbd09c372ffac2f0eb31eeaa Found module libz.so.1 with build-id: 30840b79ac329ecbf1dec0bb60180eed256d319f Found module libgmodule-2.0.so.0 with build-id: 4663e16af8ee20469e2ed5937b1aeb3b50df0af1 Found module libm.so.6 with build-id: a508ec5d8bf12fb7fd08204e0f87518e5cd0b102 Found module libpcre.so.3 with build-id: 3982f316c887e3ad9598015fa5bae8557320476a Found module libc.so.6 with build-id: 490fef8403240c91833978d494d39e537409b92e Found module libsystemd.so.0 with build-id: e17e357f3a8e8198b1de01bd084ca319c72d231b Found module libpipewire-0.3.so.0 with build-id: 0c122bd80353edde4617625d446616d5ba3db69f Found module libjson-glib-1.0.so.0 with build-id: ad0e4fa336337086be19bf34bf6cc3abcf7a73de Found module libgobject-2.0.so.0 with build-id: 9e8e57082c3651843713c59ecf2976863d6d1dcd Found module libgio-2.0.so.0 with build-id: 9fc3ec50ff6302f82ac43f1b28e67909662dc914 Found module libglib-2.0.so.0 with build-id: 224ac2a88b72bc8e2fe8566ee28fae789fc69241 Found module xdg-desktop-portal with build-id: 440667c8b8708240738da1777befd1bc0d1c3cf1 Stack trace of thread 107794: #0 0x000076890d6b5c15 n/a (libpipewire-module-protocol-native.so + 0x12c15) #1 0x000076890d6bc92b n/a (libpipewire-module-protocol-native.so + 0x1992b) #2 0x000076891068cd42 pw_proxy_destroy (libpipewire-0.3.so.0 + 0x73d42) #3 0x000055aecc3ea43d n/a (xdg-desktop-portal + 0x7443d) #4 0x000055aecc3efe8a n/a (xdg-desktop-portal + 0x79e8a) #5 0x000076891043fe2e n/a (libffi.so.8 + 0x7e2e) #6 0x000076891043c493 n/a (libffi.so.8 + 0x4493) #7 0x000076891073916d g_cclosure_marshal_generic (libgobject-2.0.so.0 + 0x1b16d) #8 0x0000768910732d2f g_closure_invoke (libgobject-2.0.so.0 + 0x14d2f) #9 0x000076891074e624 n/a (libgobject-2.0.so.0 + 0x30624) #10 0x000055aecc3b9d54 n/a (xdg-desktop-portal + 0x43d54) #11 0x00007689108a315e n/a (libgio-2.0.so.0 + 0x12515e) #12 0x0000768910830194 n/a (libgio-2.0.so.0 + 0xb2194) #13 0x00007689109df714 n/a (libglib-2.0.so.0 + 0x87714) #14 0x00007689109dcab1 n/a (libglib-2.0.so.0 + 0x84ab1) #15 0x0000768910294ac3 start_thread (libc.so.6 + 0x94ac3) #16 0x0000768910326850 __clone3 (libc.so.6 + 0x126850) Stack trace of thread 105246: #0 0x0000768910318bcf __GI___poll (libc.so.6 + 0x118bcf) #1 0x0000768910a03256 n/a (libglib-2.0.so.0 + 0xab256) #2 0x00007689109ad2b3 g_main_loop_run (libglib-2.0.so.0 + 0x552b3) #3 0x000055aecc39da25 n/a (xdg-desktop-portal + 0x27a25) #4 0x0000768910229d90 __libc_start_call_main (libc.so.6 + 0x29d90) #5 0x0000768910229e40 __libc_start_main_impl (libc.so.6 + 0x29e40) #6 0x000055aecc39dcc5 n/a (xdg-desktop-portal + 0x27cc5) Stack trace of thread 105247: #0 0x0000768910318bcf __GI___poll (libc.so.6 + 0x118bcf) #1 0x0000768910a03256 n/a (libglib-2.0.so.0 + 0xab256) #2 0x00007689109ab3e3 g_main_context_iteration (libglib-2.0.so.0 + 0x533e3) #3 0x00007689109ab431 n/a (libglib-2.0.so.0 + 0x53431) #4 0x00007689109dcab1 n/a (libglib-2.0.so.0 + 0x84ab1) #5 0x0000768910294ac3 start_thread (libc.so.6 + 0x94ac3) #6 0x0000768910326850 __clone3 (libc.so.6 + 0x126850) Stack trace of thread 105248: #0 0x0000768910318bcf __GI___poll (libc.so.6 + 0x118bcf) #1 0x0000768910a03256 n/a (libglib-2.0.so.0 + 0xab256) #2 0x00007689109ad2b3 g_main_loop_run (libglib-2.0.so.0 + 0x552b3) #3 0x000076891089381a n/a (libgio-2.0.so.0 + 0x11581a) #4 0x00007689109dcab1 n/a (libglib-2.0.so.0 + 0x84ab1) #5 0x0000768910294ac3 start_thread (libc.so.6 + 0x94ac3) #6 0x0000768910326850 __clone3 (libc.so.6 + 0x126850) Stack trace of thread 107795: #0 0x0000768910325e2e epoll_wait (libc.so.6 + 0x125e2e) #1 0x000076890fd89918 n/a (libspa-support.so + 0x13918) #2 0x000076890fd7cd7c n/a (libspa-support.so + 0x6d7c) #3 0x0000768910657226 n/a (libpipewire-0.3.so.0 + 0x3e226) #4 0x0000768910294ac3 start_thread (libc.so.6 + 0x94ac3) #5 0x0000768910326850 __clone3 (libc.so.6 + 0x126850) Stack trace of thread 105252: #0 0x00007689102e57f8 __GI___clock_nanosleep (libc.so.6 + 0xe57f8) #1 0x00007689102ea677 __GI___nanosleep (libc.so.6 + 0xea677) #2 0x00007689102ea5ae __sleep (libc.so.6 + 0xea5ae) #3 0x000055aecc3cf6f3 n/a (xdg-desktop-portal + 0x596f3) #4 0x00007689109dcab1 n/a (libglib-2.0.so.0 + 0x84ab1) #5 0x0000768910294ac3 start_thread (libc.so.6 + 0x94ac3) #6 0x0000768910326850 __clone3 (libc.so.6 + 0x126850) Stack trace of thread 105251: #0 0x0000768910325e2e epoll_wait (libc.so.6 + 0x125e2e) #1 0x000076890fd89918 n/a (libspa-support.so + 0x13918) #2 0x000076890fd7cd7c n/a (libspa-support.so + 0x6d7c) #3 0x0000768910657226 n/a (libpipewire-0.3.so.0 + 0x3e226) #4 0x0000768910294ac3 start_thread (libc.so.6 + 0x94ac3) #5 0x0000768910326850 __clone3 (libc.so.6 + 0x126850) GNU gdb (Ubuntu 12.1-0ubuntu1~22.04) 12.1 Copyright (C) 2022 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: <https://www.gnu.org/software/gdb/bugs/>. Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from /usr/libexec/xdg-desktop-portal... (No debugging symbols found in /usr/libexec/xdg-desktop-portal) warning: Can't open file /var/cache/nscd/group during file-backed mapping note processing [New LWP 107794] [New LWP 105246] [New LWP 105247] [New LWP 105248] [New LWP 107795] [New LWP 105252] [New LWP 105251] [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". Core was generated by `/usr/libexec/xdg-desktop-portal'. Program terminated with signal SIGSEGV, Segmentation fault. #0 0x000076890d6b5c15 in ?? () from /usr/lib/x86_64-linux-gnu/pipewire-0.3/libpipewire-module-protocol-native.so [Current thread is 1 (Thread 0x76890e785640 (LWP 107794))] (gdb) bt #0 0x000076890d6b5c15 in () at /usr/lib/x86_64-linux-gnu/pipewire-0.3/libpipewire-module-protocol-native.so #1 0x000076890d6bc92b in () at /usr/lib/x86_64-linux-gnu/pipewire-0.3/libpipewire-module-protocol-native.so #2 0x000076891068cd42 in pw_proxy_destroy () at /lib/x86_64-linux-gnu/libpipewire-0.3.so.0 #3 0x000055aecc3ea43d in () #4 0x000055aecc3efe8a in () #5 0x000076891043fe2e in () at /lib/x86_64-linux-gnu/libffi.so.8 #6 0x000076891043c493 in () at /lib/x86_64-linux-gnu/libffi.so.8 #7 0x000076891073916d in g_cclosure_marshal_generic () at /lib/x86_64-linux-gnu/libgobject-2.0.so.0 #8 0x0000768910732d2f in g_closure_invoke () at /lib/x86_64-linux-gnu/libgobject-2.0.so.0 #9 0x000076891074e624 in () at /lib/x86_64-linux-gnu/libgobject-2.0.so.0 #10 0x000055aecc3b9d54 in () #11 0x00007689108a315e in () at /lib/x86_64-linux-gnu/libgio-2.0.so.0 #12 0x0000768910830194 in () at /lib/x86_64-linux-gnu/libgio-2.0.so.0 #13 0x00007689109df714 in () at /lib/x86_64-linux-gnu/libglib-2.0.so.0 #14 0x00007689109dcab1 in () at /lib/x86_64-linux-gnu/libglib-2.0.so.0 #15 0x0000768910294ac3 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442 #16 0x0000768910326850 in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81 (gdb)
Apparently it's an xdg-desktop-portal bug https://github.com/flatpak/xdg-desktop-portal/pull/1319#issuecomment-2159958045. I've just downloaded KDE neon livecd and I see the same results: screencasting is broken in apps that use xdg desktop portals (xdg-desktop-portal crashes), while window thumbnails and spectacle still have functioning screencasting.
(In reply to Vlad Zahorodnii from comment #29) > Apparently it's an xdg-desktop-portal bug > https://github.com/flatpak/xdg-desktop-portal/pull/1319#issuecomment- > 2159958045. I've just downloaded KDE neon livecd and I see the same results: > screencasting is broken in apps that use xdg desktop portals > (xdg-desktop-portal crashes), while window thumbnails and spectacle still > have functioning screencasting. Radovan's issue is entirely separate from what I or Matija or, from what I can tell, all the following people are facing: https://redd.it/1djej8g https://redd.it/1dkhsx9 I get no segfault. I've been on xdg-desktop-portals v1.18.4 for weeks now. It was only until updating to KDE v6.1 that this started occurring.
(In reply to miranda from comment #30) > (In reply to Vlad Zahorodnii from comment #29) > > Apparently it's an xdg-desktop-portal bug > > https://github.com/flatpak/xdg-desktop-portal/pull/1319#issuecomment- > > 2159958045. I've just downloaded KDE neon livecd and I see the same results: > > screencasting is broken in apps that use xdg desktop portals > > (xdg-desktop-portal crashes), while window thumbnails and spectacle still > > have functioning screencasting. > > Radovan's issue is entirely separate from what I or Matija or, from what I > can tell, all the following people are facing: > https://redd.it/1djej8g > https://redd.it/1dkhsx9 > > I get no segfault. I've been on xdg-desktop-portals v1.18.4 for weeks now. > It was only until updating to KDE v6.1 that this started occurring. Do you also have pipewire 0.3?
(In reply to Vlad Zahorodnii from comment #31) > (In reply to miranda from comment #30) > > (In reply to Vlad Zahorodnii from comment #29) > > > Apparently it's an xdg-desktop-portal bug > > > https://github.com/flatpak/xdg-desktop-portal/pull/1319#issuecomment- > > > 2159958045. I've just downloaded KDE neon livecd and I see the same results: > > > screencasting is broken in apps that use xdg desktop portals > > > (xdg-desktop-portal crashes), while window thumbnails and spectacle still > > > have functioning screencasting. > > > > Radovan's issue is entirely separate from what I or Matija or, from what I > > can tell, all the following people are facing: > > https://redd.it/1djej8g > > https://redd.it/1dkhsx9 > > > > I get no segfault. I've been on xdg-desktop-portals v1.18.4 for weeks now. > > It was only until updating to KDE v6.1 that this started occurring. > > Do you also have pipewire 0.3? I do not. > $ pipewire --version > pipewire > Compiled with libpipewire 1.0.7 > Linked with libpipewire 1.0.7
Does kwin print any errors when screencasting?
(In reply to Vlad Zahorodnii from comment #33) > Does kwin print any errors when screencasting? When clicking the "Share" button in zoom kwin_wayland does not print any errors, no.
As a work around, downgrading xdg-desktop-portal from 1.14.4 to 1.14.3 made screen sharing work again for me. I was able to get the old 1.14.3 package from Ubuntu packages: https://packages.ubuntu.com/jammy/xdg-desktop-portal.
Can confirm that after downgrading to 1.14.3-0ubuntu2 (by running `sudo apt install xdg-desktop-portal=1.14.3-0ubuntu2`) it works again! This has annoyed me for many days now, thank you so much!
(In reply to LTS20050703 from comment #36) > Can confirm that after downgrading to 1.14.3-0ubuntu2 (by running `sudo apt > install xdg-desktop-portal=1.14.3-0ubuntu2`) it works again! This has > annoyed me for many days now, thank you so much! Which issue are you talking about? Radovan's segfault issue? Or the share window not showing anything like in the OP's description? Considering I'm on xdg-desktop-portals v1.18.4 (as mentioned in comment #30) and the issue didn't start occurring for me on an upgrade of that package, only KDE's, I'm not sure how I'm meant to reconcile that. If it is an upstream issue then that implies it's been an issue for 2+ years. Is there something about the way these dependencies work I'm not grasping?
(In reply to miranda from comment #37) > (In reply to LTS20050703 from comment #36) > > Can confirm that after downgrading to 1.14.3-0ubuntu2 (by running `sudo apt > > install xdg-desktop-portal=1.14.3-0ubuntu2`) it works again! This has > > annoyed me for many days now, thank you so much! > > Which issue are you talking about? Radovan's segfault issue? Or the share > window not showing anything like in the OP's description? > > Considering I'm on xdg-desktop-portals v1.18.4 (as mentioned in comment #30) > and the issue didn't start occurring for me on an upgrade of that package, > only KDE's, I'm not sure how I'm meant to reconcile that. If it is an > upstream issue then that implies it's been an issue for 2+ years. Is there > something about the way these dependencies work I'm not grasping? Looking into this further, more and more I believe a nearly identical issue (in terms of behavior) was rolled out to zoom at the same time.
*** Bug 488724 has been marked as a duplicate of this bug. ***
(In reply to miranda from comment #37) > Which issue are you talking about? Radovan's segfault issue? Or the share > window not showing anything like in the OP's description? I'm talking about the share window not showing anything like in the OP's description. I'm confident that is this an issue with `xdg-desktop-portal/jammy 1.18.4-1+22.04+jammy+release+build1 amd64`. Downgading to either `xdg-desktop-portal/jammy-updates,now 1.14.4-1ubuntu2~22.04.1 amd64` or `xdg-desktop-portal/jammy 1.14.3-0ubuntu2 amd64` and screen sharing works again. (I tested using OBS screen/window capture as well as Discord Web screen share)
(In reply to Vlad Zahorodnii from comment #1) > What's the gpu? Does screencasting work in obs? Are window thumbnails in the > task manager are blank too? I am able to get zoom screensharing working. Kind of. Setting `XDG_SESSION_TYPE=x11` in environment variable for zoom, stops the dialog from showing "Can not start share, Wayland is supported on...." and a dialog appears allowing you to choose screen to share. However, clicking on the screen (be it full screen or window), will cause a green border to appear around the screen indicating screen sharing should be happening. But the preview shows a gray hatched error screen and the screen does not show up. Screen sharing works on google meets via firefox and on obs
(In reply to agapp11@hotmail.com from comment #41) > (In reply to Vlad Zahorodnii from comment #1) > > What's the gpu? Does screencasting work in obs? Are window thumbnails in the > > task manager are blank too? > > I am able to get zoom screensharing working. Kind of. > > Setting `XDG_SESSION_TYPE=x11` in environment variable for zoom, stops the > dialog from showing "Can not start share, Wayland is supported on...." and a > dialog appears allowing you to choose screen to share. However, clicking on > the screen (be it full screen or window), will cause a green border to > appear around the screen indicating screen sharing should be happening. But > the preview shows a gray hatched error screen and the screen does not show > up. > > Screen sharing works on google meets via firefox and on obs Sorry for double post, I don't know how to edit here. This is for KDE Plasma 6.1.1 on Archlinux with an Nvidia 2060 and on Kernel: 6.9.7-arch1-1
(In reply to agapp11@hotmail.com from comment #42) > (In reply to agapp11@hotmail.com from comment #41) > > (In reply to Vlad Zahorodnii from comment #1) > > > What's the gpu? Does screencasting work in obs? Are window thumbnails in the > > > task manager are blank too? > > > > I am able to get zoom screensharing working. Kind of. > > > > Setting `XDG_SESSION_TYPE=x11` in environment variable for zoom, stops the > > dialog from showing "Can not start share, Wayland is supported on...." and a > > dialog appears allowing you to choose screen to share. However, clicking on > > the screen (be it full screen or window), will cause a green border to > > appear around the screen indicating screen sharing should be happening. But > > the preview shows a gray hatched error screen and the screen does not show > > up. > > > > Screen sharing works on google meets via firefox and on obs > > Sorry for double post, I don't know how to edit here. > > This is for KDE Plasma 6.1.1 on Archlinux with an Nvidia 2060 and on Kernel: > 6.9.7-arch1-1 The Zoom issue you're describing is very likely separate from this bug report if it's working in other applications. You can try various solutions here: https://wiki.archlinux.org/title/Zoom_Meetings#Screen_share But it's probably best to share your experiences on the AUR page: https://aur.archlinux.org/packages/zoom Or the Arch community forums: https://bbs.archlinux.org/
Screencasting with Google Chrome (and CEF friends) still doesn't work with current Neon testing (6.1.3?). while Spectacle screen recording does work, when trying to screencast window or desktop from Google Chrome, after selecting the casting source Google Chrome does not actually start casting - the source selection dialog stays at the default tab "Chrome Tab" and I have to press Cancel. There's no red dot in the system notification tray and I get this in the logs: --------- Jul 09 14:39:20 vesho xdg-desktop-portal-kde[4233]: xdp-kde-screencast: CreateSession called with parameters: Jul 09 14:39:20 vesho xdg-desktop-portal-kde[4233]: xdp-kde-screencast: handle: "/org/freedesktop/portal/desktop/request/1_16163/webrtc_2080062416" Jul 09 14:39:20 vesho xdg-desktop-portal-kde[4233]: xdp-kde-screencast: session_handle: "/org/freedesktop/portal/desktop/session/1_16163/webrtc_session1677275446" Jul 09 14:39:20 vesho xdg-desktop-portal-kde[4233]: xdp-kde-screencast: app_id: "" Jul 09 14:39:20 vesho xdg-desktop-portal-kde[4233]: xdp-kde-screencast: options: QMap() Jul 09 14:39:20 vesho xdg-desktop-portal-kde[4233]: kf.statusnotifieritem: service is "org.kde.StatusNotifierItem-4233-5" Jul 09 14:39:20 vesho xdg-desktop-portal-kde[4233]: kf.statusnotifieritem: Registering a client interface to the KStatusNotifierWatcher Jul 09 14:39:20 vesho kded6[3925]: Registering ":1.17547/StatusNotifierItem" to system tray Jul 09 14:39:20 vesho plasmashell[132818]: kde.systemtray: Registering ":1.17547/StatusNotifierItem" Jul 09 14:39:20 vesho xdg-desktop-portal-kde[4233]: xdp-kde-screencast: SelectSource called with parameters: Jul 09 14:39:20 vesho xdg-desktop-portal-kde[4233]: xdp-kde-screencast: handle: "/org/freedesktop/portal/desktop/request/1_16163/webrtc702295533" Jul 09 14:39:20 vesho xdg-desktop-portal-kde[4233]: xdp-kde-screencast: session_handle: "/org/freedesktop/portal/desktop/session/1_16163/webrtc_session1677275446" Jul 09 14:39:20 vesho xdg-desktop-portal-kde[4233]: xdp-kde-screencast: app_id: "" Jul 09 14:39:20 vesho xdg-desktop-portal-kde[4233]: xdp-kde-screencast: options: QMap(("cursor_mode", QVariant(uint, 4))("multiple", QVariant(bool, false))("persist_mode", QVariant(uint, 1))("types", QVariant(uint, 1))) Jul 09 14:39:20 vesho xdg-desktop-portal-kde[4233]: xdp-kde-screencast: Start called with parameters: Jul 09 14:39:20 vesho xdg-desktop-portal-kde[4233]: xdp-kde-screencast: handle: "/org/freedesktop/portal/desktop/request/1_16163/webrtc383343063" Jul 09 14:39:20 vesho xdg-desktop-portal-kde[4233]: xdp-kde-screencast: session_handle: "/org/freedesktop/portal/desktop/session/1_16163/webrtc_session1677275446" Jul 09 14:39:20 vesho xdg-desktop-portal-kde[4233]: xdp-kde-screencast: app_id: "" Jul 09 14:39:20 vesho xdg-desktop-portal-kde[4233]: xdp-kde-screencast: parent_window: "" Jul 09 14:39:20 vesho xdg-desktop-portal-kde[4233]: xdp-kde-screencast: options: QMap() Jul 09 14:39:20 vesho kwin_wayland[3706]: kwin_libinput: Libinput: event11 - debounce state: DEBOUNCE_STATE_IS_DOWN_WAITING → DEBOUNCE_EVENT_TIMEOUT → DEBOUNCE_STATE_IS_DOWN Jul 09 14:39:20 vesho kwin_wayland[3706]: kwin_core: authorized "/usr/lib/x86_64-linux-gnu/libexec/xdg-desktop-portal-kde" "zkde_screencast_unstable_v1" Jul 09 14:39:20 vesho kwin_wayland[3706]: kwin_screencast: "eDP-1" state changed unconnected -> connecting Jul 09 14:39:20 vesho kwin_wayland[3706]: kwin_screencast: "eDP-1" stream created, drm format: "AR24 little-endian (0x34325241)" with DMA-BUF: true Jul 09 14:39:20 vesho kwin_wayland[3706]: kwin_core: authorized "/usr/lib/x86_64-linux-gnu/libexec/xdg-desktop-portal-kde" "zkde_screencast_unstable_v1" Jul 09 14:39:20 vesho kwin_wayland[3706]: kwin_screencast: "DP-6" state changed unconnected -> connecting Jul 09 14:39:20 vesho kwin_wayland[3706]: kwin_screencast: "DP-6" stream created, drm format: "AR24 little-endian (0x34325241)" with DMA-BUF: true Jul 09 14:39:20 vesho kwin_wayland[3706]: kwin_core: authorized "/usr/lib/x86_64-linux-gnu/libexec/xdg-desktop-portal-kde" "zkde_screencast_unstable_v1" Jul 09 14:39:20 vesho kwin_wayland[3706]: kwin_screencast: "DP-5" state changed unconnected -> connecting Jul 09 14:39:20 vesho kwin_wayland[3706]: kwin_screencast: "DP-5" stream created, drm format: "AR24 little-endian (0x34325241)" with DMA-BUF: true Jul 09 14:39:20 vesho kwin_wayland[3706]: kwin_core: Rule found: [ "All windows on main screen" : "" ] : KWin::XdgToplevelWindow(0x6472e75f1fb0, surface=KWin::SurfaceInterface(0x6472e4cf8180), caption="Screen Sharing") Jul 09 14:39:20 vesho kwin_wayland[3706]: kwin_screencast: "eDP-1" state changed connecting -> paused Jul 09 14:39:20 vesho kwin_wayland[3706]: kwin_screencast: "DP-6" state changed connecting -> paused Jul 09 14:39:20 vesho kwin_wayland[3706]: kwin_screencast: "DP-5" state changed connecting -> paused Jul 09 14:39:20 vesho xdg-desktop-portal-kde[4233]: kpipewire_logging: state changed unconnected -> connecting Jul 09 14:39:20 vesho xdg-desktop-portal-kde[4233]: kpipewire_logging: created successfully 115 Jul 09 14:39:20 vesho xdg-desktop-portal-kde[4233]: kpipewire_logging: state changed unconnected -> connecting Jul 09 14:39:20 vesho xdg-desktop-portal-kde[4233]: kpipewire_logging: created successfully 123 Jul 09 14:39:20 vesho xdg-desktop-portal-kde[4233]: kpipewire_logging: state changed unconnected -> connecting Jul 09 14:39:20 vesho xdg-desktop-portal-kde[4233]: kpipewire_logging: created successfully 129 Jul 09 14:39:20 vesho kwin_wayland[3706]: kwin_libinput: Libinput: event11 - debounce state: DEBOUNCE_STATE_IS_DOWN → DEBOUNCE_EVENT_RELEASE → DEBOUNCE_STATE_IS_UP_DETECTING_SPURIOUS Jul 09 14:39:20 vesho xdg-desktop-portal-kde[4233]: kpipewire_logging: state changed connecting -> paused Jul 09 14:39:20 vesho xdg-desktop-portal-kde[4233]: kpipewire_logging: state changed connecting -> paused Jul 09 14:39:20 vesho xdg-desktop-portal-kde[4233]: kpipewire_logging: state changed connecting -> paused Jul 09 14:39:20 vesho kwin_wayland[3706]: kwin_screencast: "eDP-1" Stream dmabuf modifiers received, offering our best suited modifier true Jul 09 14:39:20 vesho kwin_wayland[3706]: kwin_libinput: Libinput: event11 - debounce state: DEBOUNCE_STATE_IS_UP_DETECTING_SPURIOUS → DEBOUNCE_EVENT_TIMEOUT_SHORT → DEBOUNCE_STATE_IS_UP_WAITING Jul 09 14:39:20 vesho kwin_wayland[3706]: kwin_screencast: "DP-6" Stream dmabuf modifiers received, offering our best suited modifier true Jul 09 14:39:20 vesho kwin_wayland[3706]: kwin_screencast: "DP-5" Stream dmabuf modifiers received, offering our best suited modifier true Jul 09 14:39:20 vesho kwin_wayland[3706]: kwin_libinput: Libinput: event11 - debounce state: DEBOUNCE_STATE_IS_UP_WAITING → DEBOUNCE_EVENT_TIMEOUT → DEBOUNCE_STATE_IS_UP Jul 09 14:39:20 vesho kwin_wayland[3706]: kwin_screencast: "eDP-1" Stream format found, defining buffers Jul 09 14:39:20 vesho kwin_wayland[3706]: kwin_screencast: "eDP-1" announcing stream params. with dmabuf: true Jul 09 14:39:20 vesho kwin_wayland[3706]: kwin_screencast: "DP-6" Stream format found, defining buffers Jul 09 14:39:20 vesho kwin_wayland[3706]: kwin_screencast: "DP-6" announcing stream params. with dmabuf: true Jul 09 14:39:20 vesho kwin_wayland[3706]: kwin_screencast: "DP-5" Stream format found, defining buffers Jul 09 14:39:20 vesho kwin_wayland[3706]: kwin_screencast: "DP-5" announcing stream params. with dmabuf: true Jul 09 14:39:20 vesho xdg-desktop-portal-kde[4233]: kpipewire_logging: state changed paused -> streaming Jul 09 14:39:20 vesho xdg-desktop-portal-kde[4233]: kpipewire_logging: state changed paused -> streaming Jul 09 14:39:20 vesho xdg-desktop-portal-kde[4233]: kpipewire_logging: state changed paused -> streaming Jul 09 14:39:20 vesho kwin_wayland[3706]: kwin_screencast: "eDP-1" state changed paused -> streaming Jul 09 14:39:20 vesho kwin_wayland[3706]: kwin_screencast: "DP-6" state changed paused -> streaming Jul 09 14:39:20 vesho kwin_wayland[3706]: kwin_scene_opengl: 0x2: using glMapBufferRange(buffer 11, offset 0, length 64) to update a GL_STATIC_DRAW buffer Jul 09 14:39:20 vesho kwin_wayland[3706]: kwin_screencast: "DP-5" state changed paused -> streaming Jul 09 14:39:20 vesho kwin_wayland[3706]: kwin_scene_opengl: 0x2: using glMapBufferRange(buffer 8, offset 0, length 64) to update a GL_STATIC_DRAW buffer Jul 09 14:39:20 vesho kwin_wayland[3706]: kwin_scene_opengl: 0x2: using glMapBufferRange(buffer 10, offset 0, length 64) to update a GL_STATIC_DRAW buffer Jul 09 14:39:20 vesho kwin_wayland[3706]: kwin_scene_opengl: 0x2: using glMapBufferRange(buffer 7, offset 0, length 64) to update a GL_STATIC_DRAW buffer Jul 09 14:39:20 vesho kwin_wayland[3706]: kwin_scene_opengl: 0x2: using glMapBufferRange(buffer 8, offset 0, length 64) to update a GL_STATIC_DRAW buffer Jul 09 14:39:20 vesho kwin_wayland[3706]: kwin_scene_opengl: 0x2: using glMapBufferRange(buffer 8, offset 0, length 64) to update a GL_STATIC_DRAW buffer Jul 09 14:39:20 vesho kwin_wayland[3706]: kwin_scene_opengl: 0x2: using glMapBufferRange(buffer 7, offset 0, length 64) to update a GL_STATIC_DRAW buffer Jul 09 14:39:20 vesho kwin_wayland[3706]: kwin_scene_opengl: 0x2: using glMapBufferRange(buffer 7, offset 0, length 64) to update a GL_STATIC_DRAW buffer Jul 09 14:39:21 vesho kwin_wayland[3706]: kwin_scene_opengl: 0x2: using glMapBufferRange(buffer 8, offset 0, length 64) to update a GL_STATIC_DRAW buffer Jul 09 14:39:21 vesho kwin_wayland[3706]: kwin_scene_opengl: 0x2: using glMapBufferRange(buffer 8, offset 0, length 64) to update a GL_STATIC_DRAW buffer Jul 09 14:39:21 vesho kwin_wayland[3706]: kwin_scene_opengl: 0x2: using glMapBufferRange(buffer 12, offset 0, length 64) to update a GL_STATIC_DRAW buffer Jul 09 14:39:21 vesho kwin_wayland[3706]: kwin_scene_opengl: 0x2: using glMapBufferRange(buffer 7, offset 0, length 64) to update a GL_STATIC_DRAW buffer Jul 09 14:39:21 vesho kwin_wayland[3706]: kwin_scene_opengl: 0x2: using glMapBufferRange(buffer 7, offset 0, length 64) to update a GL_STATIC_DRAW buffer Jul 09 14:39:21 vesho kwin_wayland[3706]: kwin_scene_opengl: 0x2: using glMapBufferRange(buffer 8, offset 0, length 64) to update a GL_STATIC_DRAW buffer Jul 09 14:39:21 vesho kwin_wayland[3706]: kwin_scene_opengl: 0x2: using glMapBufferRange(buffer 8, offset 0, length 64) to update a GL_STATIC_DRAW buffer Jul 09 14:39:21 vesho kwin_wayland[3706]: kwin_scene_opengl: 0x2: using glMapBufferRange(buffer 7, offset 0, length 64) to update a GL_STATIC_DRAW buffer Jul 09 14:39:21 vesho kwin_wayland[3706]: kwin_scene_opengl: 0x2: using glMapBufferRange(buffer 7, offset 0, length 64) to update a GL_STATIC_DRAW buffer Jul 09 14:39:21 vesho kwin_wayland[3706]: kwin_libinput: Libinput: event11 - debounce state: DEBOUNCE_STATE_IS_UP → DEBOUNCE_EVENT_PRESS → DEBOUNCE_STATE_IS_DOWN_WAITING Jul 09 14:39:21 vesho kwin_wayland[3706]: kwin_libinput: Libinput: event11 - debounce state: DEBOUNCE_STATE_IS_DOWN_WAITING → DEBOUNCE_EVENT_TIMEOUT → DEBOUNCE_STATE_IS_DOWN Jul 09 14:39:21 vesho kwin_wayland[3706]: kwin_scene_opengl: 0x2: using glMapBufferRange(buffer 8, offset 0, length 64) to update a GL_STATIC_DRAW buffer Jul 09 14:39:21 vesho kwin_wayland[3706]: kwin_scene_opengl: 0x2: using glMapBufferRange(buffer 8, offset 0, length 64) to update a GL_STATIC_DRAW buffer Jul 09 14:39:21 vesho kwin_wayland[3706]: kwin_libinput: Libinput: event11 - debounce state: DEBOUNCE_STATE_IS_DOWN → DEBOUNCE_EVENT_RELEASE → DEBOUNCE_STATE_IS_UP_DETECTING_SPURIOUS Jul 09 14:39:21 vesho kwin_wayland[3706]: kwin_scene_opengl: 0x2: using glMapBufferRange(buffer 7, offset 0, length 64) to update a GL_STATIC_DRAW buffer Jul 09 14:39:21 vesho kwin_wayland[3706]: kwin_scene_opengl: 0x2: using glMapBufferRange(buffer 7, offset 0, length 64) to update a GL_STATIC_DRAW buffer Jul 09 14:39:21 vesho kwin_wayland[3706]: kwin_libinput: Libinput: event11 - debounce state: DEBOUNCE_STATE_IS_UP_DETECTING_SPURIOUS → DEBOUNCE_EVENT_TIMEOUT_SHORT → DEBOUNCE_STATE_IS_UP_WAITING Jul 09 14:39:21 vesho kwin_wayland[3706]: kwin_libinput: Libinput: event11 - debounce state: DEBOUNCE_STATE_IS_UP_WAITING → DEBOUNCE_EVENT_TIMEOUT → DEBOUNCE_STATE_IS_UP Jul 09 14:39:21 vesho kwin_wayland[3706]: kwin_screencast: "0,0 5520x3200" state changed unconnected -> connecting Jul 09 14:39:21 vesho kwin_wayland[3706]: kwin_screencast: "0,0 5520x3200" stream created, drm format: "AR24 little-endian (0x34325241)" with DMA-BUF: true Jul 09 14:39:21 vesho kwin_wayland[3706]: kwin_screencast: "0,0 5520x3200" state changed connecting -> paused Jul 09 14:39:21 vesho xdg-desktop-portal-kde[4233]: xdp-kde-screencast: Screencast started successfully Jul 09 14:39:21 vesho systemd[3503]: xdg-desktop-portal.service: Main process exited, code=killed, status=11/SEGV Jul 09 14:39:21 vesho plasmashell[354414]: [354409:354409:0709/143921.825905: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 Jul 09 14:39:21 vesho plasmashell[354414]: [354409:354409:0709/143921.825945:ERROR:base_capturer_pipewire.cc(81)] ScreenCastPortal failed: 3 Jul 09 14:39:21 vesho dbus-daemon[3527]: [session uid=1000 pid=3527] Activating via systemd: service name='org.freedesktop.portal.Desktop' unit='xdg-desktop-portal.service' requested by ':1.16163' (uid=1000 pid=354409 comm="/opt/google/chrome/chrome --user-data-dir=/home/od" label="unconfined") Jul 09 14:39:21 vesho plasmashell[132818]: org.kde.plasma.notificationmanager: Request inhibit from service ":1.51" which is "" with reason "Screen sharing in progress" Jul 09 14:39:21 vesho plasmashell[132818]: org.kde.plasma.notificationmanager: Resolved inhibition to be from process name "xdg-desktop-portal-kde" Jul 09 14:39:21 vesho xdg-desktop-portal-kde[4233]: kpipewire_logging: state changed streaming -> paused Jul 09 14:39:21 vesho xdg-desktop-portal-kde[4233]: kpipewire_logging: state changed paused -> unconnected Jul 09 14:39:21 vesho xdg-desktop-portal-kde[4233]: kpipewire_logging: state changed streaming -> paused Jul 09 14:39:21 vesho xdg-desktop-portal-kde[4233]: kpipewire_logging: state changed paused -> unconnected Jul 09 14:39:21 vesho xdg-desktop-portal-kde[4233]: kpipewire_logging: state changed streaming -> paused Jul 09 14:39:21 vesho xdg-desktop-portal-kde[4233]: kpipewire_logging: state changed paused -> unconnected Jul 09 14:39:21 vesho kwin_wayland[3706]: kwin_screencast: "eDP-1" state changed streaming -> paused Jul 09 14:39:21 vesho kwin_wayland[3706]: kwin_screencast: "DP-6" state changed streaming -> paused Jul 09 14:39:21 vesho kwin_wayland[3706]: kwin_screencast: "DP-5" state changed streaming -> paused Jul 09 14:39:21 vesho systemd[3503]: xdg-desktop-portal.service: Failed with result 'signal'. Jul 09 14:39:21 vesho xdg-desktop-portal-kde[4233]: xdp-kde-notificationinhibition: Inhibiting notifications for "" with reason "Screen sharing in progress" and cookie 4 Jul 09 14:39:21 vesho kwin_wayland[3706]: kwin_scene_opengl: 0x2: using glMapBufferRange(buffer 8, offset 0, length 64) to update a GL_STATIC_DRAW buffer Jul 09 14:39:21 vesho kwin_wayland[3706]: kwin_screencast: "eDP-1" state changed paused -> unconnected Jul 09 14:39:21 vesho kwin_wayland[3706]: kwin_screencast: "DP-6" state changed paused -> unconnected Jul 09 14:39:21 vesho kwin_wayland[3706]: kwin_screencast: "DP-5" state changed paused -> unconnected Jul 09 14:39:21 vesho systemd[3503]: Starting Portal service... Jul 09 14:39:21 vesho xdg-desktop-por[384168]: Choosing gtk.portal for org.freedesktop.impl.portal.Lockdown as a last-resort fallback Jul 09 14:39:21 vesho xdg-desktop-por[384168]: The preferred method to match portal implementations to desktop environments is to use the portals.conf(5) configuration file Jul 09 14:39:21 vesho xdg-desktop-por[384168]: Choosing kwallet.portal for org.freedesktop.impl.portal.Secret via the deprecated UseIn key -------
I had the issue that was resolved by downgrading xdg-desktop-portal. I think this issue is separate from OP's issue. My issue was that when screensharing, it was possible to select a window or a screen to share, but after selecting the screen to share, the "recording" icon would pop up in the system area (on the panel) but the app would not actually see the screen being shared.
Later today, I might be able to figure out which version of xdg-desktop-portal introduced the bug. I experienced the bug on 1.18.4-1+22.04+jammy+release+build1 from archive.neon.kde.org, and I downgraded to 1.14.3-0ubuntu2 from archive.ubuntu.com.
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/6100
(In reply to Bug Janitor Service from comment #47) > A possibly relevant merge request was started @ > https://invent.kde.org/plasma/kwin/-/merge_requests/6100 I think the above is not relevant at all
I had the same issue with brave (chromium based) after the upgrade to KDE 6.1. I found that setting XDG_SESSION_TYPE=xorg at least allowed me to share XWayland windows but not wayland e.g. Konsole. If I set XDG_SESSION_TYPE=wayland and then run brave I got "no such interface org.freedesktop.portal.screencast" errors. That led me to think there might be an issue with the kde-portals.conf file. using /usr/lib/xdg-desktop-portal -vr & /usr/lib/xdg-desktop-portal-kde -vr i noticed the config was being grabbed from /usr/share/xdg-desktop-portal/kde-portals.conf and it had: [preferred] default=kde org.freedesktop.impl.portal.Settings=kde;gtk; I copied this to ~/.config/xdg-desktop-portal/kde-portals.conf and replaced it with: [preferred] default=kde org.freedesktop.impl.portal.Settings=kde org.freedesktop.impl.portal.Screencast=kde now setting XDG_SESSION_TYPE=wayland it all seems to work.
Garfield Watkins, could you share what OS you're on, and what xdg-desktop-portal and xdg-desktop-portal-kde version you're on? I see that the xdg-desktop-portal-kde package in KDE Neon includes the file /usr/share/xdg-desktop-portal/kde-portals.conf.
(In reply to Ethan C from comment #50) > Garfield Watkins, could you share what OS you're on, and what > xdg-desktop-portal and xdg-desktop-portal-kde version you're on? > > I see that the xdg-desktop-portal-kde package in KDE Neon includes the file > /usr/share/xdg-desktop-portal/kde-portals.conf. xdg-desktop-portal 1.18.4 xdg-desktop-portal-kde 6.1.3-1' Operating System: Arch Linux KDE Plasma Version: 6.1.3 KDE Frameworks Version: 6.4.0 Qt Version: 6.7.2 Kernel Version: 6.10.2-arch1-1 (64-bit)
(In reply to Ethan C from comment #50) > Garfield Watkins, could you share what OS you're on, and what > xdg-desktop-portal and xdg-desktop-portal-kde version you're on? > > I see that the xdg-desktop-portal-kde package in KDE Neon includes the file > /usr/share/xdg-desktop-portal/kde-portals.conf. sorry that was xdg-desktop-portal 1.18.4-1
It seems that if i reboot i get the same buggy behaviour again. e.g. not desktop sharing etc but then to get it going once more all i have to do is run /usr/lib/xdg-desktop-portal -vr & /usr/lib/xdg-desktop-portal-kde -vr .
(In reply to Garfield from comment #53) > It seems that if i reboot i get the same buggy behaviour again. e.g. not > desktop sharing etc but then to get it going once more all i have to do is > run /usr/lib/xdg-desktop-portal -vr & /usr/lib/xdg-desktop-portal-kde -vr . I cannot reproduce the workaround - on Neon I don't have these files. I do have the user services `xdg-desktop-portal.service` and `xdg-desktop-portal-gtk.service` (no KDE portal service), which do not use the `-vr` flag. If I stop them, they immediately restart and complain about missing configuration. There's a `/usr/share/xdg-desktop-portal/kde-portals.conf` that should be appropriate - so I don't know what they are on about. If I run `/usr/libexec/xdg-desktop-portal -vr & /usr/lib/x86_64-linux-gnu/libexec/xdg-desktop-portal-kde -vr` then the sharing still doesn't work and then I get xdg-desktop-portal issuing a segmentation fault in the terminal.
(In reply to Oded Arbel from comment #54) > (In reply to Garfield from comment #53) > > It seems that if i reboot i get the same buggy behaviour again. e.g. not > > desktop sharing etc but then to get it going once more all i have to do is > > run /usr/lib/xdg-desktop-portal -vr & /usr/lib/xdg-desktop-portal-kde -vr . > > I cannot reproduce the workaround - on Neon I don't have these files. > > I do have the user services `xdg-desktop-portal.service` and > `xdg-desktop-portal-gtk.service` (no KDE portal service), which do not use > the `-vr` flag. If I stop them, they immediately restart and complain about > missing configuration. There's a > `/usr/share/xdg-desktop-portal/kde-portals.conf` that should be appropriate > - so I don't know what they are on about. > > If I run `/usr/libexec/xdg-desktop-portal -vr & > /usr/lib/x86_64-linux-gnu/libexec/xdg-desktop-portal-kde -vr` then the > sharing still doesn't work and then I get xdg-desktop-portal issuing a > segmentation fault in the terminal. What xdg packages do you have installed ? I have these: ` xdg-dbus-proxy 0.1.5-2 xdg-desktop-portal 1.18.4-1 xdg-desktop-portal-kde 6.1.3-1 xdg-user-dirs 0.18-2 xdg-utils 1.2.1-1 `
(In reply to Garfield from comment #55) > What xdg packages do you have installed ? I have these: xdg-dbus-proxy 0.1.3-1 xdg-desktop-portal 1.18.4-1+22.04+jammy+stable+build1 xdg-desktop-portal-gtk 1.14.0-1build1 xdg-desktop-portal-kde 6.1.3+p22.04+vstable+git20240803.2352-0 xdg-user-dirs 0.18-1+22.04+jammy+stable+build7 xdg-utils 1.2.1-0xneon+22.04+jammy+stable+build7 So it looks relatively identical (disregarding distro package suffixes, I understand you are on a different distro), except xdg-dbus-proxy which I do not believe is relevant for this use case.
(In reply to Oded Arbel from comment #56) > (In reply to Garfield from comment #55) > > What xdg packages do you have installed ? > > I have these: > xdg-dbus-proxy 0.1.3-1 > xdg-desktop-portal 1.18.4-1+22.04+jammy+stable+build1 > xdg-desktop-portal-gtk 1.14.0-1build1 > xdg-desktop-portal-kde 6.1.3+p22.04+vstable+git20240803.2352-0 > xdg-user-dirs 0.18-1+22.04+jammy+stable+build7 > xdg-utils 1.2.1-0xneon+22.04+jammy+stable+build7 > > So it looks relatively identical (disregarding distro package suffixes, I > understand you are on a different distro), except xdg-dbus-proxy which I do > not believe is relevant for this use case. You should have the plasma-xdg-desktop-portal-kde service running. its activated by d-bus although you say don't even have the service definition file which is wierd. I think activation of plasma-xdg-desktop-portal-kde is dependant on the contents of the portal.config file (/usr/share/xdg-desktop-portal/kde-portals.conf). So what are the contents of that file ? do you have tkde as the selected provider for the Screecast interface ? e.g. even though i set the default for everything as kde i also explicitly set the Screencast as kde.. whether this make a difference or not i don't know [preferred] default=kde org.freedesktop.impl.portal.Settings=kde org.freedesktop.impl.portal.Screencast=kde
(In reply to Garfield from comment #57) > You should have the plasma-xdg-desktop-portal-kde service running. its > activated by d-bus although you say don't even have the service definition > file which is wierd. I'm not sure why I said that - it actually is there and running: $ systemctl --user is-active plasma-xdg-desktop-portal-kde.service active > (/usr/share/xdg-desktop-portal/kde-portals.conf). So what are the contents > of that file ? I have that installed as part of xdg-desktop-portal-kde 6.1.3+p24.04+vstable+git20240801.0419-0 and it is unchanged from the installation, so it looks like it is in the source here: https://invent.kde.org/plasma/xdg-desktop-portal-kde/-/blob/Plasma/6.1/data/kde-portals.conf > do you have tkde as the selected provider for the Screecast > interface ? No, I will try to set that.
(In reply to Oded Arbel from comment #58) > (In reply to Garfield from comment #57) > > You should have the plasma-xdg-desktop-portal-kde service running. its > > activated by d-bus although you say don't even have the service definition > > file which is wierd. > > I'm not sure why I said that - it actually is there and running: > > $ systemctl --user is-active plasma-xdg-desktop-portal-kde.service > active > > > > (/usr/share/xdg-desktop-portal/kde-portals.conf). So what are the contents > > of that file ? > > I have that installed as part of xdg-desktop-portal-kde > 6.1.3+p24.04+vstable+git20240801.0419-0 and it is unchanged from the > installation, so it looks like it is in the source here: > https://invent.kde.org/plasma/xdg-desktop-portal-kde/-/blob/Plasma/6.1/data/ > kde-portals.conf > > > do you have tkde as the selected provider for the Screecast > > interface ? > > No, I will try to set that. Strangely enough I had the same config file contents as you. Have a look at my first response in this thread. I copied the config file elsewhere and modified it (removed the gtk provider)
Do we know what the issue in xdg-desktop-portal is yet? Otherwise we'll probably have to make binary packages of every release of xdg-desktop-portal between 0.14 and 0.17 and try to find the offending version.
will this be fixed with 6.2?
(In reply to Matija from comment #61) > will this be fixed with 6.2? I don't think this will be fixed with 6.2 (but I haven't followed the development closely, so I can't be sure). If you still have the problem, you should install xdg-desktop-portal version 0.14 (I think any path release should work), and make sure that you don't update xdg-desktop-portal until the problem is fixed.
(In reply to Ethan C from comment #62) > (In reply to Matija from comment #61) > > will this be fixed with 6.2? > > I don't think this will be fixed with 6.2 (but I haven't followed the > development closely, so I can't be sure). If you still have the problem, you > should install xdg-desktop-portal version 0.14 (I think any path release > should work), and make sure that you don't update xdg-desktop-portal until > the problem is fixed. My current installed version (automatically since I didn't change anything) is: $ dpkg -s xdg-desktop-portal | grep Version Version: 1.18.4-1+22.04+jammy+release+build1 Since this is my daily workstation, I don't know if downgrading is safe? And if so, how to do it properly?
(In reply to Matija from comment #63) > (In reply to Ethan C from comment #62) > > (In reply to Matija from comment #61) > > > will this be fixed with 6.2? > > > > I don't think this will be fixed with 6.2 (but I haven't followed the > > development closely, so I can't be sure). If you still have the problem, you > > should install xdg-desktop-portal version 0.14 (I think any path release > > should work), and make sure that you don't update xdg-desktop-portal until > > the problem is fixed. > > My current installed version (automatically since I didn't change anything) > is: > $ dpkg -s xdg-desktop-portal | grep Version > Version: 1.18.4-1+22.04+jammy+release+build1 > > Since this is my daily workstation, I don't know if downgrading is safe? And > if so, how to do it properly? I've not encountered any issues. Can you try running `sudo apt install xdg-desktop-portal=1.14.3-0ubuntu2`? You will have to do this every time you run a full system upgrade -- it's possible to pin the package, but that's kinda annoying.
Not fixed in plasma 6.2 and the downgraded xdg portal does now also not work anymore.
(In reply to Ethan C from comment #64) > (In reply to Matija from comment #63) > > (In reply to Ethan C from comment #62) > > > (In reply to Matija from comment #61) > > > > will this be fixed with 6.2? > > > > > > I don't think this will be fixed with 6.2 (but I haven't followed the > > > development closely, so I can't be sure). If you still have the problem, you > > > should install xdg-desktop-portal version 0.14 (I think any path release > > > should work), and make sure that you don't update xdg-desktop-portal until > > > the problem is fixed. > > > > My current installed version (automatically since I didn't change anything) > > is: > > $ dpkg -s xdg-desktop-portal | grep Version > > Version: 1.18.4-1+22.04+jammy+release+build1 > > > > Since this is my daily workstation, I don't know if downgrading is safe? And > > if so, how to do it properly? > > I've not encountered any issues. Can you try running `sudo apt install > xdg-desktop-portal=1.14.3-0ubuntu2`? You will have to do this every time you > run a full system upgrade -- it's possible to pin the package, but that's > kinda annoying. Yes you may do this by adding a new file in /etc/apt/preferences.d/ like 'tmp_downgrades' with the following content after you manually downgraded the package: | # Avoid update of portal because it conflicts with old pipewire and result in screensharing issues | Package: xdg-desktop-portal | Pin: version 1.14.* | Pin-Priority: 1001
Workaround (downgrade) is no longer working :( Is there an alternative? I urgently need it.
Phillip, the bug does not appear on Plasma 6.2 with xdg-desktop-portal=1.19. Which distro are you currently using, and what is your Plasma version and xdg-desktop-portal version? You may need to upgrade to a newer version of your distro or to an unstable or rolling-release branch of your distro.
I can still not share my screen in Zoom or Meet despite having done and checked all the solutions discussed here. This is what I am using: Debian unstable KDE Plasma 6.3.4 xdg-dbus-proxy 0.1.6-1 xdg-desktop-portal-kds 6.3.4-1 xdg-desktop-portal 1.20.0+ds-2 xdg-user-dirs 0.18-2 xdg-utils 1.2.1-2 a Any help or suggestions very welcome and appreciated.
(In reply to debsid from comment #69) > I can still not share my screen in Zoom or Meet despite having done and > checked all the solutions discussed here. This is what I am using: > > Debian unstable > KDE Plasma 6.3.4 > xdg-dbus-proxy 0.1.6-1 > xdg-desktop-portal-kds 6.3.4-1 > xdg-desktop-portal 1.20.0+ds-2 > xdg-user-dirs 0.18-2 > xdg-utils 1.2.1-2 a > > Any help or suggestions very welcome and appreciated. Hi debsid. (In reply to debsid from comment #69) > I can still not share my screen in Zoom or Meet despite having done and > checked all the solutions discussed here. This is what I am using: > > Debian unstable > KDE Plasma 6.3.4 > xdg-dbus-proxy 0.1.6-1 > xdg-desktop-portal-kds 6.3.4-1 > xdg-desktop-portal 1.20.0+ds-2 > xdg-user-dirs 0.18-2 > xdg-utils 1.2.1-2 a > > Any help or suggestions very welcome and appreciated. The problem might be with the zoom app itself. I was unable to share my screen too after a zoom upgrade at some point but it was because zoom added a new setting that defaulted to a way of sharing that didn't work for me on Wayland. To check your zoom settings, right click on the zoom icon in the System Tray and select "Settings." Then, select "Share screen" and then click "Advanced." Next to "Screen capture mode on Wayland", select "Pipewire Mode" if it isn't selected already.
(In reply to John Schroeder from comment #70) > (In reply to debsid from comment #69) > > I can still not share my screen in Zoom or Meet despite having done and > > checked all the solutions discussed here. This is what I am using: > > > > Debian unstable > > KDE Plasma 6.3.4 > > xdg-dbus-proxy 0.1.6-1 > > xdg-desktop-portal-kds 6.3.4-1 > > xdg-desktop-portal 1.20.0+ds-2 > > xdg-user-dirs 0.18-2 > > xdg-utils 1.2.1-2 a > > > > Any help or suggestions very welcome and appreciated. > > Hi debsid. (In reply to debsid from comment #69) > > I can still not share my screen in Zoom or Meet despite having done and > > checked all the solutions discussed here. This is what I am using: > > > > Debian unstable > > KDE Plasma 6.3.4 > > xdg-dbus-proxy 0.1.6-1 > > xdg-desktop-portal-kds 6.3.4-1 > > xdg-desktop-portal 1.20.0+ds-2 > > xdg-user-dirs 0.18-2 > > xdg-utils 1.2.1-2 a > > > > Any help or suggestions very welcome and appreciated. > > The problem might be with the zoom app itself. I was unable to share my > screen too after a zoom upgrade at some point but it was because zoom added > a new setting that defaulted to a way of sharing that didn't work for me on > Wayland. > > To check your zoom settings, right click on the zoom icon in the System Tray > and select "Settings." Then, select "Share screen" and then click > "Advanced." Next to "Screen capture mode on Wayland", select "Pipewire Mode" > if it isn't selected already. Hi John, Thanks for the note. Unfortunately, it didn't help. I do think this has something to do with KDE. I was able to share screen both on Google Meet and Zoom, neither of which have worked since KDE Plasma 6. This is in today's work practices of course a huge problem.