Bug 441179 - Moving mouse quickly between panel tooltips may affect their geometry and freeze plasmashell
Summary: Moving mouse quickly between panel tooltips may affect their geometry and fre...
Status: RESOLVED DUPLICATE of bug 422072
Alias: None
Product: plasmashell
Classification: Plasma
Component: generic-performance (show other bugs)
Version: 5.22.4
Platform: Neon Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: wayland
Depends on:
Blocks:
 
Reported: 2021-08-19 15:35 UTC by nttkde
Modified: 2021-11-03 15:41 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.23


Attachments
VM Wayland (784.40 KB, video/mp4)
2021-08-19 15:35 UTC, nttkde
Details
x11 (3.38 KB, image/jpeg)
2021-08-19 15:36 UTC, nttkde
Details
plasmashell stacks (61.30 KB, text/plain)
2021-08-19 15:37 UTC, nttkde
Details
WAYLAND_DEBUG=1 (924.93 KB, text/plain)
2021-10-17 21:29 UTC, nttkde
Details

Note You need to log in before you can comment on or make changes to this bug.
Description nttkde 2021-08-19 15:35:51 UTC
Created attachment 140843 [details]
VM Wayland

If you hover mouse in the panel tray/status area so that a tooltip is visible, and then quickly move it to show Digital Clock's 'tooltip', the tooltip size/position may be affected (/copied from other tooltip). The Digital Clock tooltip seems to be the culprit somehow; I didn't manage to reproduce with other clock variants or widgets.
It's quite easy to accidentally flick your mouse quickly enough.

See attachment "x11" that shows how the numerical date is cut off on my X11 KDE Neon desktop. Once been cut off, it seems to stay like it until I reboot (or it gets some other tooltip size after more furious mouse-flicking :p). I have not had any freezes on X11.



In Wayland (virtual machine) doing the same can cause panel and desktop plasmoids freeze (at least graphically).
First part of the attached video "VM Wayland" shows how the tooltip starts flickering between two sizes and the freeze occurs. (Framerate of the recording is poor; in reality it was flickering very fast.)
Plasmashell may get high CPU usage if I try to interact with it after that.
'plasmashell --replace' gets things back to normal again, but I have to first do 'pkill -TERM plasmashell' as it's too stuck (org.kde.plasmashell DBUS name already owned by another process).

In the second part of the video, notice how the clock tooltip ends up getting the same big size as the Show Desktop tooltip on its right.
Plasmashell does NOT freeze from that.



I attached some different gdb stack traces I got of the plasmashell process while panel/desktop was frozen. Probably nothing too useful there and some traces may be taken after I clicked at something.


On my X11 desktop, I had noticed the cut-off clock tooltip problem for some time. Maybe less than a year, maybe just some months, I don't remember.
Comment 1 nttkde 2021-08-19 15:36:38 UTC
Created attachment 140844 [details]
x11
Comment 2 nttkde 2021-08-19 15:37:14 UTC
Created attachment 140845 [details]
plasmashell stacks
Comment 3 Nate Graham 2021-08-19 20:44:08 UTC
I was experiencing this problem too, but it stopped happening in current git master builds. Something recent must have fixed it. \o/
Comment 4 nttkde 2021-10-17 21:15:42 UTC
I tried again in 5.23 and can unfortunately still reproduce it. I also tried today's Unstable KDE Neon ISO (neon-unstable-20211017-0330) in VirtualBox and could reproduce.
Comment 5 nttkde 2021-10-17 21:29:13 UTC
Created attachment 142544 [details]
WAYLAND_DEBUG=1

I don't know if it's of any help but I attached an output I got using "env WAYLAND_DEBUG=1 plasmashell --replace". 
In the latter part there's some repeating printout it was doing while it was stuck, the tooltip flashing on the screen.
Comment 6 Patrick Silva 2021-10-30 18:34:10 UTC
Possibly duplicate of bug 422072
Comment 7 Nate Graham 2021-11-03 15:41:13 UTC
Yup. Good catch.

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