Bug 478286 - KPipeWire-based window thumbnails not displayed properly
Summary: KPipeWire-based window thumbnails not displayed properly
Status: RESOLVED DUPLICATE of bug 478309
Alias: None
Product: KPipeWire
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2023-12-09 00:04 UTC by chriserizo
Modified: 2023-12-12 18:25 UTC (History)
6 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 chriserizo 2023-12-09 00:04:50 UTC
SUMMARY
Apps that utilize the xdg desktop portal kde do not capture the window properly, instead they display a black screen.

STEPS TO REPRODUCE
1. Open any flatpak app that uses portals (OBS, for example)
2. Select a window to capture
3. Check the output

OBSERVED RESULT
The capture displays a black screen.

EXPECTED RESULT
The capture should display the window in question.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora 40 
(available in About System)
KDE Plasma Version: KDE Plasma 5.90 (6.0 Beta 1)
KDE Frameworks Version: 5.246.0
Qt Version: 6.6.1
Comment 1 Nate Graham 2023-12-09 05:12:18 UTC
Cannot reproduce.

Are Task Manager window thumbnails working?
Comment 2 chriserizo 2023-12-09 14:01:58 UTC
(In reply to Nate Graham from comment #1)
> Cannot reproduce.
> 
> Are Task Manager window thumbnails working?

No, window thumbnails from the task manager show transparent on my end. 
I should also add I use a Nvidia GPU with the 535 driver (latest stable branch)
I haven't tested with 545 feature branch.
Comment 3 deresiant 2023-12-11 10:58:32 UTC
I have the exact same issue as OP. Black screen when using pipewire window or display capture on OBS and other screenshare applications and task manager window previews are empty.
not sure if relevent but here are the logs from systemctl --user status plasma-xdg-desktop-portal-kde.service whenever the window choosing thing pops up to choose what to screenshare:
qt.qml.typeresolution.cycle: Cyclic dependency detected between "qrc:/qt/qml/org/kde/desktop/private/TextFieldContextMenu.qml" and "qrc:/qt/qml/org/kde/desktop/MenuItem.qml"
<Unknown File>:
kpipewire_logging: cannot convert spa format to fourcc 10
kpipewire_logging: cannot convert spa format to fourcc 10
kpipewire_logging: cannot convert spa format to fourcc 10
kpipewire_logging: cannot convert spa format to fourcc 10
kpipewire_logging: cannot convert spa format to fourcc 10
kpipewire_logging: cannot convert spa format to fourcc 10
kpipewire_logging: Stream error:  no more input formats
kpipewire_logging: PipeWire remote error:  -32 no more input formats
kpipewire_logging: Stream error:  no more input formats
kpipewire_logging: PipeWire remote error:  -32 no more input formats
Comment 4 Nate Graham 2023-12-11 20:18:05 UTC
deresiant@protonmail.ch do you also have an NVIDIA GPU using the 545 driver series?
Comment 5 deresiant 2023-12-12 14:41:41 UTC
(In reply to Nate Graham from comment #4)
> deresiant@protonmail.ch do you also have an NVIDIA GPU using the 545 driver
> series?

Yes, driver version 545.29.06

KDE Plasma Version: 5.90.0
KDE Frameworks Version: 5.246.0
Qt Version: 6.6.1
Kernel Version: 6.7.0-rc3-273-tkg-eevdf (64-bit)
Comment 6 Nate Graham 2023-12-12 18:25:36 UTC
Thanks, I thought so.

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