Bug 446916 - QML KCMs and Overview effect thumbnails flicker when cursor passes over them
Summary: QML KCMs and Overview effect thumbnails flicker when cursor passes over them
Status: RESOLVED UPSTREAM
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: 5.23.3
Platform: Other Linux
: VHI normal
Target Milestone: ---
Assignee: KWin default assignee
URL: https://gitlab.freedesktop.org/mesa/m...
Keywords: regression
: 447088 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-12-13 08:51 UTC by Kwon-Young Choi
Modified: 2021-12-20 20:18 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
video showing stuttering in the system settings app (1.17 MB, video/x-matroska)
2021-12-13 08:51 UTC, Kwon-Young Choi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kwon-Young Choi 2021-12-13 08:51:45 UTC
Created attachment 144503 [details]
video showing stuttering in the system settings app

SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

The whole app stutters with a lot of the ui constantly disappearing and reappearing when moving the mouse.

STEPS TO REPRODUCE
1. open the settings app
2. move the mouse
3. 

OBSERVED RESULT

The whole app stutters with a lot of the ui constantly disappearing and reappearing when moving the mouse.

EXPECTED RESULT

Nothing stutters.

SOFTWARE/OS VERSIONS

Operating System: Fedora Linux 35
KDE Plasma Version: 5.23.3
KDE Frameworks Version: 5.88.0
Qt Version: 5.15.2
Kernel Version: 5.15.6-200.fc35.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 16 × Intel® Core™ i9-10885H CPU @ 2.40GHz
Memory: 62.5 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics

My laptop also has a nvidia gpu quadro that I use only for deep learning, so I have the nvidia drivers and cuda installed but that's all.
All of the desktop is rendered through the intel gpu.

ADDITIONAL INFORMATION
Comment 1 Kwon-Young Choi 2021-12-13 18:16:43 UTC
I also forgot to say that I am using a 200% scaling factor.
I believe that this is the cause because I use another very similar laptop but with a 1080p screen instead of 4k and the settings app does not flicker.
Comment 2 Nate Graham 2021-12-14 20:26:26 UTC
I am experiencing the same thing after upgrading to Fedora 35 yesterday with 200% scale and using an Intel iGPU.

I can also reproduce with kcmshell (e.g. kcmshell5 kcm_lookandfeel). It doesn't happen in pure QtWidgets KCMs. But it happens in QtQuick KCMs and the Activities KCM, which is a mixture of QtWidgets and QtQuick. Perhaps it's an issue in QQuickWiget or how it's interacting with other stuff.

I've got all KDE stuff built from source, and I did before the upgrade, too. So the only things that have changed on my system which could have caused this are Fedora-provided components. Perhaps a Qt issue or patch? That's something I don't build from source. I am suspecting a downstream distro-specific issue at this point.

Neil and Rex, any ideas?
Comment 3 Neal Gompa 2021-12-14 20:49:51 UTC
I don't see anything in particular that would cause this:

* qt5-qtbase: https://src.fedoraproject.org/rpms/qt5-qtbase/tree/rawhide
* qt5-qtdeclarative: https://src.fedoraproject.org/rpms/qt5-qtdeclarative/tree/rawhide
* qt5-qtwayland: https://src.fedoraproject.org/rpms/qt5-qtwayland/tree/rawhide

Qt5 QtBase commit: d3806f677b6d6417cf181e58fbe753cd76a53e11
Qt5 QtDeclarative: 7024ac8358f9e576dff013ce2452c1daa0d34506
Qt5 QtWayland commit: 992833ca741efe8f533c61abfaf129a1d8bfcfee
Comment 4 Red Valsen 2021-12-15 20:04:40 UTC
This bug affects me too.
My laptop screen is 1920x1080 and i don't use scaling factor.
This cannot be a distro-specific issue because i use arch based distro.

Operating System: EndeavourOS
KDE Plasma Version: 5.23.4
KDE Frameworks Version: 5.89.0
Qt Version: 5.15.2
Kernel Version: 5.15.8-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ i5-10300H CPU @ 2.50GHz
Memory: 15.5 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics
Comment 5 Nate Graham 2021-12-15 20:06:14 UTC
OK. Perhaps a recent KWin or Frameworks change caused it.
Comment 6 Nate Graham 2021-12-16 19:20:48 UTC
*** Bug 447088 has been marked as a duplicate of this bug. ***
Comment 7 Nate Graham 2021-12-17 16:46:09 UTC
I think I'm seeing the same thing in the new KWin Overview effect. Can anyone else who is able to reproduce the bug confirm that?
Comment 8 Kwon-Young Choi 2021-12-18 14:15:42 UTC
> I think I'm seeing the same thing in the new KWin Overview effect. Can anyone else who is able to reproduce the bug confirm that?

Sorry, I can't compile kde software from source on the laptop with the bug.

But I have another laptop of the same brand and series, a bit older with a 1080p screen and I can't reproduce the bug there.
Here is the configuration of that laptop:

Operating System: Fedora Linux 35
KDE Plasma Version: 5.23.3
KDE Frameworks Version: 5.88.0
Qt Version: 5.15.2
Kernel Version: 5.15.6-200.fc35.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ i7-7820HQ CPU @ 2.90GHz
Memory: 31.2 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 630

From this quick comparison, the only thing that changes is the cpu generation and the graphics processor being `HD Graphics 630` vs `UHD Graphics`
Comment 9 Kwon-Young Choi 2021-12-18 14:24:05 UTC
Ah, I'm sorry, after going back to the settings app, what I've noticed is that the list of settings category on the left-hand side of the app does not flicker, but some kcms like "display and monitor" -> "display configuration" does flicker (a lot less than the other laptop though) but not "display and monitor" -> "compositor".
After switching scaling factors, the problem seems to get a little bit worse, and even the left-hand side list starts to flicker.
Restarting the settings app seems to resolve the flickering of the list but not the rest.

I'll try to compile the new overview effect on this
Comment 10 Nate Graham 2021-12-19 20:59:16 UTC
I am seeing this when I pass the cursor over window thumbnalis in KWin's new Overview effect too, so it does not seem to be systemsettings-specific. Moving to KWin.

My GPU hardware is an Intel UHD 620 iGPU from the 10th gen Comet Lake processor architecture.
Comment 11 Nate Graham 2021-12-20 00:18:04 UTC
Hmm, or maybe they're not related. I can reproduce the Overview effect thumbnail flicker on both X11 and Wayland, but the System Settings KCM flicker only happens on Wayland for me.

KWin folks, any ideas here?
Comment 12 Zamundaaa 2021-12-20 08:20:51 UTC
No flicker for me on X11, Wayland, built from source or from Manjaro repos.
Everyone else here is using Intel though, might be a driver issue. Could you try an older version of Mesa?
Comment 13 Nate Graham 2021-12-20 14:56:56 UTC
Indeed, it does appear to be a recent regression in Mesa 21.3.1. See https://gitlab.freedesktop.org/mesa/mesa/-/issues/5731
Comment 14 Red Valsen 2021-12-20 20:18:22 UTC
I have another older laptop ( i5-6300HQ CPU + Intel HD Graphics 530 )  arch based distro  with kde and systemsettings works as expected no flickering at all. I think just new Intel graphic cards are effected.