Bug 427826 - Window thumbnails usually aren't displayed on Wayland
Summary: Window thumbnails usually aren't displayed on Wayland
Status: RESOLVED WORKSFORME
Alias: None
Product: yakuake
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: HI normal
Target Milestone: ---
Assignee: Eike Hein
URL:
Keywords: wayland
: 428355 429568 429785 435719 436039 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-10-16 18:58 UTC by Claudius Ellsel
Modified: 2022-05-13 15:09 UTC (History)
26 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.23


Attachments
Screenshot of the problem (646.42 KB, image/png)
2020-10-16 18:58 UTC, Claudius Ellsel
Details
Konsoles without preview (35.34 KB, image/png)
2021-04-14 01:07 UTC, Patrick Silva
Details
Plasma 5.23 beta (101.77 KB, image/png)
2021-09-18 22:06 UTC, Patrick Silva
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Claudius Ellsel 2020-10-16 18:58:28 UTC
SUMMARY
Window thumbnails don't work for me, tested on Wayland.

STEPS TO REPRODUCE
1. Open applications
2. Hover over them to get the thumbnail

OBSERVED RESULT
No thumbnail is displayed

EXPECTED RESULT
A thumbnail is displayed

SOFTWARE/OS VERSIONS
Operating System: Manjaro Linux
KDE Plasma Version: 5.20.0
KDE Frameworks Version: 5.75.0
Qt Version: 5.15.1
Kernel Version: 5.8.14-1-MANJARO
OS Type: 64-bit
Processors: 4 × Intel® Xeon® CPU E3-1225 v3 @ 3.20GHz
Memory: 11.6 GiB of RAM
Graphics Processor: Mesa DRI Intel® HD Graphics P4600/P4700

ADDITIONAL INFORMATION
I think I read somewhere that this bug has been recently fixed (with 5.20?), but could not find a bug report for it, so might be mistaken.
Comment 1 Claudius Ellsel 2020-10-16 18:58:47 UTC
Created attachment 132437 [details]
Screenshot of the problem
Comment 2 Justin Zobel 2020-11-09 04:34:20 UTC
I've just tested this on KDE Neon Unstable wayland session and I cannot reproduce.

Is it any particular windows or all of them.

Can you please test and confirm if this issue is still occurring or if this bug report can be marked as resolved, thanks.
Comment 3 Claudius Ellsel 2020-11-09 15:14:30 UTC
Thanks for getting back.

It seems to happen for all windows, at least I did not experience any instance where it was working.

What I can confirm is that when I tested it on KDE Neon unstable in a VM it worked. However, if I recall correctly, it does not work on a compiled session from master.

Maybe the problem is specific to my distribution (lacking required packages?).

I am happy for advice to further track the reasons of this down.

Window thumbnails appear to work fine for the task switcher (Alt + Tab).
Comment 4 Justin Zobel 2020-11-09 23:02:44 UTC
(In reply to Claudius Ellsel from comment #3)
> Thanks for getting back.
> 
> It seems to happen for all windows, at least I did not experience any
> instance where it was working.
> 
> What I can confirm is that when I tested it on KDE Neon unstable in a VM it
> worked. However, if I recall correctly, it does not work on a compiled
> session from master.
> 
> Maybe the problem is specific to my distribution (lacking required
> packages?).
> 
> I am happy for advice to further track the reasons of this down.
> 
> Window thumbnails appear to work fine for the task switcher (Alt + Tab).

I'm wondering if it's something Manjaro related as I've just downloaded and booted the Manjaro KDE ISO (latest) in a virtual machine and it won't show the thumbnails either.
Comment 5 Claudius Ellsel 2020-11-10 12:07:26 UTC
Interesting. Thanks for testing.

I'll mark this bug as confirmed, since you could reproduce.

Additionally I'll add Vlad to CC, maybe he has an idea what could cause this.
Comment 6 Till Schäfer 2020-11-27 01:12:29 UTC
I can confirm the issue on Gentoo with plasma 5.20.3 / mesa 20.1.10. It is always reproducible (no matter of qt, gtk, xwayland).

Operating System: Gentoo Linux
KDE Plasma Version: 5.20.3
KDE Frameworks Version: 5.76.0
Qt Version: 5.15.2
Kernel Version: 5.9.11-gentoo
OS Type: 64-bit
Processors: 8 × Intel® Core™ i7-4810MQ CPU @ 2.80GHz
Memory: 15.5 GiB of RAM
Graphics Processor: Mesa DRI Intel® HD Graphics 4600
Comment 7 Till Schäfer 2020-11-29 15:47:02 UTC
upgrading to mesa 20.2.3 did not change anything

possible duplicate reports: 
Bug 428284 - Window thumbnails don't work without EXT_image_dma_buf_import
Bug 429785 - Window thumbnail images are invisible on Wayland
Comment 8 Till Schäfer 2020-11-29 15:48:47 UTC
*** Bug 429785 has been marked as a duplicate of this bug. ***
Comment 9 Claudius Ellsel 2021-01-25 16:34:37 UTC
Still happening on the current Plasma Beta. I think this is only happening on Wayland (on Tumbleweed).

Sometimes it seems to work however after waiting a second or two.

Also, I noticed an interesting detail: Thumbnails are often not displayed while the mouse is over the hover card. But as soon as it moves on top of the corresponding window, the thumbnail is displayed. This is a pretty weird behavior. Maybe some security thing where thumbnails can only be taken from an "active" window?
Comment 10 Claudius Ellsel 2021-01-25 16:38:07 UTC
Things seem to work fine on X11, so setting Wayland keyword.
Comment 11 Nate Graham 2021-04-07 22:15:36 UTC
Can reproduce.

find /etc/pipewire/
/etc/pipewire/
/etc/pipewire/pipewire.conf
/etc/pipewire/jack.conf
/etc/pipewire/media-session.d
/etc/pipewire/media-session.d/v4l2-monitor.conf
/etc/pipewire/media-session.d/bluez-monitor.conf
/etc/pipewire/media-session.d/media-session.conf
/etc/pipewire/media-session.d/alsa-monitor.conf
/etc/pipewire/client-rt.conf
/etc/pipewire/client.conf
/etc/pipewire/pipewire-pulse.conf
Comment 12 Alex 2021-04-13 14:21:12 UTC
I can't reproduce this on Fedora 34, with Plasma 5.21.4.

(In reply to Nate Graham from comment #11)

Also,

> find /etc/pipewire/
> /etc/pipewire/
> /etc/pipewire/pipewire.conf
> /etc/pipewire/jack.conf
> /etc/pipewire/media-session.d
> /etc/pipewire/media-session.d/v4l2-monitor.conf
> /etc/pipewire/media-session.d/bluez-monitor.conf
> /etc/pipewire/media-session.d/media-session.conf
> /etc/pipewire/media-session.d/alsa-monitor.conf
> /etc/pipewire/client-rt.conf
> /etc/pipewire/client.conf
> /etc/pipewire/pipewire-pulse.conf

Am I missing something? I don't really understand what this part of the comment is for...
Comment 13 Patrick Silva 2021-04-14 01:07:19 UTC
Created attachment 137573 [details]
Konsoles without preview

I can reproduce with grouped Konsoles.

Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.21.80
KDE Frameworks Version: 5.82.0
Qt Version: 5.15.2
Graphics Platform: Wayland
Comment 14 Nate Graham 2021-04-14 13:47:05 UTC
*** Bug 435719 has been marked as a duplicate of this bug. ***
Comment 15 Nate Graham 2021-04-22 18:10:33 UTC
*** Bug 436039 has been marked as a duplicate of this bug. ***
Comment 16 twinshadows404 2021-04-23 23:21:45 UTC
*** Bug 428355 has been marked as a duplicate of this bug. ***
Comment 17 twinshadows404 2021-04-23 23:22:15 UTC
*** Bug 429568 has been marked as a duplicate of this bug. ***
Comment 18 la_iscla 2021-04-28 17:11:04 UTC
Same here on ArchLinux.

journalctl reads "plasmashell[2110]: kf.plasma.quick: Couldn't create KWindowShadow to ToolTipDialog(0x55b410d4e310)"
Comment 19 David Edmundson 2021-06-03 09:51:11 UTC
Please confirm this happens in 5.22
Comment 20 Martins 2021-06-03 11:09:52 UTC
Still exists in 5.21.90

journalctl /usr/bin/plasmashell report while hovering over icon:
Jun 03 13:33:29 myarch plasmashell[785]: kf.plasma.quick: Couldn't create KWindowShadow for ToolTipDialog(0x55f747baaa90)

To reproduce: Select "Display Informational tooltips on mouse hover" in 
System settings > workspace behaviour > general behaviour

Additional: The bug doesn't appear while using Xorg.
In the firefox case, a tooltip can be seen if a video is opened in the tab.

System info:
Operating System: Arch Linux
KDE Plasma Version: 5.21.90
KDE Frameworks Version: 5.82.0
Qt Version: 5.15.2
Kernel Version: 5.12.8-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 3600 6-Core Processor
Memory: 31,4 GiB of RAM
Graphics Processor: AMD Radeon RX 5700 XT
GPU driver:mesa-21.1.1-1
Comment 21 tromzy 2021-06-09 10:46:34 UTC
In my case, the upgrade from 5.21 to 5.22 made it go from "thumbnails never showing" to "thumbnails showing but sometimes stop working".
Comment 22 la_iscla 2021-06-09 21:55:37 UTC
Problem still ongoing here on Arch with KDE 5.22
Comment 23 Nate Graham 2021-07-17 11:35:55 UTC
Can confirm this with git master everything on Fedora 34 with PipeWire.
Comment 24 speltriao 2021-08-13 14:54:17 UTC
Can confirm on Arch Linux Wayland, with Plasma 5.22.4-1.
Comment 25 sk.griffinix 2021-08-23 08:26:00 UTC
Update on the issue. I was getting obs to work on kde wayland, and for that i needed to install wlroots and xdg-desktop-portal-wlr. After a restart, i got window thumbnails. Basically, getting obs studio to screen record in wayland solved the issue for me
Comment 26 pierrea 2021-08-24 11:32:35 UTC
I had the issue too, and just like sk.griffinix, it was fixed by trying to get OBS to work. 

In my case, it was fixed by installing pipewire-media-session. 
I'm on Manjaro KDE, testing branch.
Comment 27 la_iscla 2021-08-30 23:13:33 UTC
I just undertook to install pipewire-media-session as per the previous comment and... it works!
Running Arch, Plasma 5.22.4.
Comment 28 David Edmundson 2021-09-17 23:27:47 UTC
Sounds good. Please reopen if there are issues in 5.23.0 with a new bug report.
Comment 29 Patrick Silva 2021-09-18 22:06:49 UTC
Created attachment 141690 [details]
Plasma 5.23 beta

previews of grouped apps are still not displayed sometimes.

Operating System: Arch Linux
KDE Plasma Version: 5.22.90
KDE Frameworks Version: 5.86.0
Qt Version: 5.15.2
Graphics Platform: Wayland
Comment 30 Till Schäfer 2021-10-14 13:01:47 UTC
Still does not work for me with Plasma 5.23. Pipewires Media Session files are installed.

$ equery files pipewire | grep media-session
/usr/bin/pipewire-media-session
/usr/lib/debug/usr/bin/pipewire-media-session.debug
/usr/lib/systemd/user/pipewire-media-session.service
/usr/share/pipewire/media-session.d
/usr/share/pipewire/media-session.d/alsa-monitor.conf
/usr/share/pipewire/media-session.d/bluez-hardware.conf
/usr/share/pipewire/media-session.d/bluez-monitor.conf
/usr/share/pipewire/media-session.d/media-session.conf
/usr/share/pipewire/media-session.d/v4l2-monitor.conf
/usr/share/pipewire/media-session.d/with-jack
/usr/share/pipewire/media-session.d/with-pulseaudio


Operating System: Gentoo Linux
KDE Plasma Version: 5.23.0
KDE Frameworks Version: 5.87.0
Qt Version: 5.15.2
Kernel Version: 5.14.10-gentoo (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ i7-4810MQ CPU @ 2.80GHz
Memory: 15.5 GiB of RAM
Graphics Processor: Mesa DRI Intel® HD Graphics 4600
Comment 31 Till Schäfer 2021-10-14 15:04:35 UTC
(In reply to David Edmundson from comment #28)
> Sounds good. Please reopen if there are issues in 5.23.0 with a new bug
> report.

Just saw, that I should have opened a new bugreport. Thus, I opened Bug 443719 and closed this one again. Sry for the noise.