Bug 473703 - Icon-only task manager often doesn't show window previews on Wayland
Summary: Icon-only task manager often doesn't show window previews on Wayland
Status: RESOLVED UPSTREAM
Alias: None
Product: KPipeWire
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL: https://gitlab.freedesktop.org/pipewi...
Keywords: regression
: 477478 (view as bug list)
Depends on:
Blocks:
 
Reported: 2023-08-23 22:36 UTC by iodreamify
Modified: 2024-07-16 16:56 UTC (History)
11 users (show)

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


Attachments
journalctl -f (13.75 KB, text/plain)
2023-08-23 22:36 UTC, iodreamify
Details
screenshot (240.27 KB, image/png)
2023-08-23 22:36 UTC, iodreamify
Details
video (161.32 KB, video/webm)
2024-03-04 12:08 UTC, iodreamify
Details

Note You need to log in before you can comment on or make changes to this bug.
Description iodreamify 2023-08-23 22:36:27 UTC
Created attachment 161143 [details]
journalctl -f

SUMMARY
As per title, previews often fail to show up for me, they're just blank. The worst issue is its very hard to reproduce: there seems to be an almost 50/50 chance whether they'll appear or not. If you have a group of windows sometimes no previews are there, sometimes only one is empty, sometimes it'll take 1-2 seconds to appear. 

But most often, if no previews appear, you have to let them disappear and click on the plus or hover again and this time they'll be there. I have seen multiple bug reports about this and many seem to be marked as fixed and yet i've never found the previews to be reliably working. I was always told having minimized windows not showing thumbnails was a limitation of X11 and something Wayland would fix but it's just not reliable. 

I'm not sure if the logs contain anything useful but i've attached journalctl output.

I rely on these a lot so having them working would be grand. Thank you for reading. 

STEPS TO REPRODUCE
1. Create a few windows of the same type
2. Hover or click on the plus icon on the icon only task manager

OBSERVED RESULT
empty window previews

EXPECTED RESULT
windows previews are working

Operating System: Arch Linux 
KDE Plasma Version: 5.27.7
KDE Frameworks Version: 5.109.0
Qt Version: 5.15.10
Kernel Version: 6.4.11-arch2-1 (64-bit)
Graphics Platform: Wayland
Comment 1 iodreamify 2023-08-23 22:36:42 UTC
Created attachment 161144 [details]
screenshot
Comment 2 iodreamify 2024-03-04 12:08:28 UTC
Created attachment 166393 [details]
video

Still a problem with Plasma 6 Wayland, although much less frequent. The previews also flicker each time the cursor leaves the preview area, and can promptly refresh and show themselves, but i'm not sure if it's connected to this bug.
Comment 3 Nate Graham 2024-06-12 14:28:39 UTC
*** Bug 477478 has been marked as a duplicate of this bug. ***
Comment 4 popov895 2024-06-26 08:56:26 UTC
I sometimes face the same issue when switching between windows using Alt+Tab - previews are empty.
Comment 5 postix 2024-06-28 20:21:08 UTC
Since a recent update to 6.1.1 Wayland + Pipewire 1.1.83-1.1 on openSUSE TW, I no longer have window previews in the icon only task manager but also only black content for screens and windows in OBS Studio 29.x and 30.x (including the flatpak version).
Comment 6 equeim 2024-06-29 22:03:00 UTC
(In reply to postix from comment #5)
> Since a recent update to 6.1.1 Wayland + Pipewire 1.1.83-1.1 on openSUSE TW,
> I no longer have window previews in the icon only task manager but also only
> black content for screens and windows in OBS Studio 29.x and 30.x (including
> the flatpak version).

Can confirm the issue on Tumbleweed.
Comment 7 postix 2024-06-30 16:19:46 UTC
(In reply to equeim from comment #6)
> Can confirm the issue on Tumbleweed.

Looks it's already resolved again with the latest snapshot + pipewire 1.2.0. Sorry for the noise. :)
Comment 8 popov895 2024-06-30 20:45:56 UTC
I'm still facing this issue on openSUSE Tumbeweed 20240629 with pipewire 1.2.0.
Comment 9 postix 2024-07-01 11:59:17 UTC
It take my comment 7 back, it's still reproducible:

1) Sometimes, when the popup becomes visible, it takes a short delay of ~100 ms until the preview is shown
2) or it shows first am empty popover but after ~ 1 second the app icons appear but no preview
    in case of multiple opened windows of an app, sometimes for the first window the preview is shown but for the others only the icon. Again   always also with a delay
Comment 10 postix 2024-07-01 12:19:32 UTC
I see no errors in the pipewire debug log, but at least a deprecation warning:
`kwin_wayland[27271]: D pw.stream [stream.c:2437:pw_stream_queue_buffer]: deprecated: use pw_stream_trigger_process() to drive the stream.`
Comment 11 gigastarcraft2 2024-07-02 13:55:09 UTC
Worked with 6.1.0. Now broken again with 6.1.1
Comment 12 Vlad Zahorodnii 2024-07-03 15:40:00 UTC
It got fixed upstream. The fix has been backported to 1.2 branch too.
Comment 13 postix 2024-07-03 16:48:05 UTC
(In reply to Vlad Zahorodnii from comment #12)
> It got fixed upstream. The fix has been backported to 1.2 branch too.

Thank you so much for looking into it! :)
Comment 14 Patrick Silva 2024-07-12 12:56:20 UTC
I have just updated to pipewire 1.2.1-1 on my system. Now the bug is harder to reproduce, but the tooltip of a task is still failing to appear sometimes.

Operating System: Arch Linux 
KDE Plasma Version: 6.1.2
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.2
Kernel Version: 6.9.9-arch1-1 (64-bit)
Graphics Platform: Wayland
Comment 15 postix 2024-07-16 16:56:16 UTC
>  but the tooltip of a task is still failing to appear sometimes.
I believe there was a bug report for that, but I cannot find it anymore. Could someone please link it here? Thanks! :)