Bug 478403

Summary: Broken Camera & Screenshare Portal
Product: [Plasma] xdg-desktop-portal-kde Reporter: Henning <boredsquirrel>
Component: generalAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: grave CC: aleixpol, jgrulich, nate
Priority: NOR    
Version First Reported In: 5.27.9   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Henning 2023-12-11 16:28:21 UTC
Specified App:
xdg-desktop-portal-1.18.2-1.fc39.x86_64
xdg-desktop-portal-gtk-1.15.1-1.fc39.x86_64
xdg-desktop-portal-kde-5.27.9-1.fc39.x86_64

--- Software ---
OS: Fedora Linux 39.20231210.0 (Kinoite)
KDE Plasma: 5.27.9
KDE Frameworks: 5.111.0
Qt: 5.15.11
Kernel: 6.6.4-200.fc39.x86_64
Compositor: wayland

--- Hardware ---
CPU: AMD Ryzen 5 PRO 3500U w/ Radeon Vega Mobile Gfx
RAM: 21.4 GB
GPU: AMD Radeon Vega 8 Graphics
Video memory: 2048MB
Audio: Pipewire

I dont get the video / screenshare portal on Firefox and Signal Desktop (Electron). They both worked normally before.
Comment 1 Henning 2023-12-11 16:30:46 UTC
Meanwhile Audio access works.
Comment 2 Nate Graham 2023-12-11 20:02:52 UTC
What happens instead?

How exactly are you triggering these portals?

Can you run `journalctl -f`, reproduce the problem again and paste any errors or warnings that appear when you do so?
Comment 3 Henning 2023-12-11 23:40:38 UTC
It doesnt do anything. Signal Desktop would open the portal interface, you would select the screen and tadaa signal shows your screen. Same on BBB, it just says "no camera found" etc, as the portal is not opening

dec 12 00:39:30 PC xdg-desktop-portal-kde[2069]: file:///usr/lib64/qt5/qml/org/kde/plasma/workspace/dialogs/SystemDialog.qml:103:5: QML Binding: Not restoring previous value because restoreMode has not been set.
                                                 This behavior is deprecated.
                                                 You have to import QtQml 2.15 after any QtQuick imports and set
                                                 the restoreMode of the binding to fix this warning.
                                                 In Qt < 6.0 the default is Binding.RestoreBinding.
                                                 In Qt >= 6.0 the default is Binding.RestoreBindingOrValue.
                                                  
                                                          Binding { 
                                                          ^
dec 12 00:39:30 PC xdg-desktop-portal-kde[2069]: file:///usr/lib64/qt5/qml/org/kde/plasma/workspace/dialogs/SystemDialog.qml:103:5: QML Binding: Not restoring previous value because restoreMode has not been set.
                                                 This behavior is deprecated.
                                                 You have to import QtQml 2.15 after any QtQuick imports and set
                                                 the restoreMode of the binding to fix this warning.
                                                 In Qt < 6.0 the default is Binding.RestoreBinding.
                                                 In Qt >= 6.0 the default is Binding.RestoreBindingOrValue.
dec 12 00:39:34 PC xdg-desktop-portal-kde[2069]: kpipewire_logging: Window not available PipeWireSourceItem(0x562b0f854020, parent=0x562b0f41d080, geometry=0,0 199x150)
dec 12 00:39:34 PC kwin_wayland[1896]: kf.service.services: The desktop entry file "/var/home/user/.local/share/applications/ODV-Manual.desktop" has Type= "Application" but has no Exec field.
dec 12 00:39:34 PC kwin_wayland[1896]: kf.service.services: The desktop entry file "/usr/share/applications/org.freedesktop.Xwayland.desktop" has Type= "Application" but has no Exec field.
dec 12 00:39:34 PC kwin_wayland[1896]: kf.service.services: The desktop entry file "/usr/share/applications/qemu.desktop" has Type= "Application" but has no Exec field.
dec 12 00:39:34 PC kwin_wayland[1896]: kf.service.services: The desktop entry file "/var/home/user/.local/share/applications/ODV.desktop" has Type= "Application" but has no Exec field.
dec 12 00:39:34 PC plasmashell[3712]: 'loop->recurse > 0' failed at ../src/pipewire/thread-loop.c:426 pw_thread_loop_wait()
dec 12 00:39:37 PC xdg-desktop-portal-kde[2069]: kpipewire_logging: Window not available PipeWireSourceItem(0x562b0f87acb0, parent=0x562b0fb343d0, geometry=0,0 223x150)
dec 12 00:39:46 PC plasmashell[3712]: [Parent 3712, Main Thread] WARNING: invalid (NULL) pointer instance: 'glib warning', file /builddir/build/BUILD/firefox-120.0.1/toolkit/xre/nsSigHandlers.cpp:187
dec 12 00:39:46 PC plasmashell[3712]: [Parent 3712, Main Thread] WARNING: g_signal_emit_by_name: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed: 'glib warning', file /builddir/build/BUILD/firefox-120.0.1/toolkit/xre/nsSigHandlers.cpp:187
dec 12 00:39:46 PC firefox[3712]: invalid (NULL) pointer instance
dec 12 00:39:46 PC firefox[3712]: g_signal_emit_by_name: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
dec 12 00:39:46 PC plasmashell[2018]: file:///usr/share/plasma/plasmoids/org.kde.plasma.private.systemtray/contents/ui/items/PlasmoidItem.qml:125: TypeError: Cannot read property 'compactRepresentationItem' of null
dec 12 00:39:46 PC plasmashell[2018]: file:///usr/share/plasma/plasmoids/org.kde.plasma.private.systemtray/contents/ui/items/PlasmoidItem.qml:125: TypeError: Cannot read property 'compactRepresentationItem' of null

Weird, I cannot reproduce this after a reboot.

Will set as worksforme until it happens again