Bug 461501 - Glitchy flickering artifacts while rendering tooltips on system tray and certain applications when using Morphing Popups effect
Summary: Glitchy flickering artifacts while rendering tooltips on system tray and cert...
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: effects-various (show other bugs)
Version: 5.25.5
Platform: Compiled Sources Linux
: NOR major
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-11-06 14:58 UTC by Mingcong Bai
Modified: 2024-06-11 20:08 UTC (History)
4 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 Mingcong Bai 2022-11-06 14:58:09 UTC
SUMMARY

With the Plasma system tray and certain applications like LibreOffice, if one drags the mouse cursor across multiple UI elements that displays a tooltip, there is a chance that certain tooltips will leave a badly scaled and flickering tooltip (shadow?). These glitching, flickering artifacts is often scaled quite large and will not disappear unless another tooltip overlapped it, or that region of the window is redrawn.

For a better illustration of what I described above, please refer to this Imgur post (attachment size limit).

https://imgur.com/a/CrwIwDl

STEPS TO REPRODUCE

[With Plasma system tray]

Hover your mouse cursor on an icon, until a tooltip displays. Drag your mouse across the system tray quickly.

[With LibreOffice]

Drag your mouse randomly across the side toolbar.

OBSERVED RESULT

Tooltips displays and disappears as usual.

EXPECTED RESULT

See video recordings.

SOFTWARE/OS VERSIONS

Operating System: AOSC OS 9
KDE Plasma Version: 5.25.5
KDE Frameworks Version: 5.96.0
Qt Version: 5.15.5
Kernel Version: 6.0.2-aosc-main (64-bit)
Graphics Platform: X11
Processors: 8 × 11th Gen Intel® Core™ i7-1195G7 @ 2.90GHz
Memory: 15.3 GiB of RAM
Graphics Processor: Mesa Intel® Xe Graphics
Manufacturer: Panasonic Corporation
Product Name: CFSV2-1
System Version: 001
Comment 1 Bug Janitor Service 2022-11-06 15:33:30 UTC
Thank you for the bug report!

Please note that Plasma 5.25.5 is not supported for much longer by KDE; supported versions are 5.24, and 5.26 or newer.

If at all possible please upgrade to a supported version and verify that the bug is still happening there.

If you're unsure how to do this, contact your distributor about it.
Comment 2 Mingcong Bai 2022-11-06 22:31:37 UTC
As a workaround, disabling the "Morphing popups" would prevent the glitchiness.
Comment 3 Paolo Zamponi 2023-01-27 08:11:05 UTC
I can confirm this issue on a newer Plasma version as well:

Operating System: openSUSE Tumbleweed 20230124
KDE Plasma Version: 5.26.5
KDE Frameworks Version: 5.102.0
Qt Version: 5.15.8
Kernel Version: 6.1.7-1-default (64-bit)
Graphics Platform: X11

BTW, I've never understood why the first tooltip is being displayed after a certain delay, which is good, but the next ones are displayed immediately. This causes many tooltips which pops here and there, and it's annoying.
Comment 4 pf 2023-06-05 03:09:57 UTC
Confirmed on:

Operating System: Mageia 9
KDE Plasma Version: 5.27.5
KDE Frameworks Version: 5.105.0
Qt Version: 5.15.7
Kernel Version: 6.3.2-server-3.mga9 (64-bit)
Graphics Platform: X11
Processors: 20 × 12th Gen Intel® Core™ i7-12700K
Memory: 125.5 GiB of RAM
Graphics Processor: AMD Radeon RX 6600 XT
Manufacturer: Dell Inc.
Product Name: XPS 8950

There appear to be many ways to trigger this flickering; often, the mouse must be moved back to the area that started the flickering in order to get it to stop -- that means the flickering can last a long time if ignored.

Another related(?) artifact is that the tooltip images of applications will sometimes display another application's images. Just now, I hovered over claws-mail and the tooltip image was of okular and vice-versa...
Comment 5 Bug Janitor Service 2024-06-09 05:52:27 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/5861
Comment 6 David Edmundson 2024-06-11 20:08:40 UTC
Git commit d6360cc4ce4e0d85862a4bb077b8b3dc55cd74a7 by David Edmundson.
Committed on 11/06/2024 at 19:58.
Pushed by davidedmundson into branch 'master'.

effects: Drop morphing popups effect

The effect does not work very well for two main reasons:
Some clients will make a new popup rather than move an existing one, so
whether it does anything is highly unpredictable as a user.

Popups can be of massively different sizes with different amounts of
text. This means the text in the smaller popup gets resized which
doesn't look like a natural in-between state of the two popups. This
defeats the objective of looking smoother.

On top of that, it's rather glitchy.
This effect was purely visual, no functionality changes.
Related: bug 473411, bug 466638, bug 416048, bug 466637

M  +0    -1    src/plugins/CMakeLists.txt
D  +0    -1    src/plugins/morphingpopups/CMakeLists.txt
D  +0    -137  src/plugins/morphingpopups/package/contents/code/main.js
D  +0    -144  src/plugins/morphingpopups/package/metadata.json

https://invent.kde.org/plasma/kwin/-/commit/d6360cc4ce4e0d85862a4bb077b8b3dc55cd74a7