Bug 466681 - Mouse is lagging/skipping frames when entering Task Manager area
Summary: Mouse is lagging/skipping frames when entering Task Manager area
Status: RESOLVED DUPLICATE of bug 464530
Alias: None
Product: plasmashell
Classification: Plasma
Component: Task Manager and Icons-Only Task Manager (show other bugs)
Version: 5.27.2
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2023-03-01 21:18 UTC by Marcelo Bossoni
Modified: 2024-05-10 12:03 UTC (History)
8 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
firefox drops fps (8.05 KB, image/png)
2023-03-07 11:00 UTC, Aleksey Zagorodnikov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marcelo Bossoni 2023-03-01 21:18:49 UTC
SUMMARY
On plasma 5.27 series hovering mouse over task manager area make it stop for a while, like skipped frames


STEPS TO REPRODUCE
1. Hover the mouse normally on some task to switch or show thumbnails

OBSERVED RESULT
Mouse skip some frames and get stuck for some time

EXPECTED RESULT
Mouse movement is smooth

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 5.27.2
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8
Kernel Version: 6.2.1-273-tkg-pds (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 5700X 8-Core Processor
Memory: 15.5 GiB of RAM
Graphics Processor: NVIDIA GeForce GTX 1070/PCIe/SSE2
Manufacturer: Micro-Star International Co., Ltd.
Product Name: MS-7A37
System Version: 1.0

ADDITIONAL INFORMATION
Video evidence
https://photos.app.goo.gl/afaMvgyKtAxTZVXk6

And bug didn't happen on .26
Comment 1 Nate Graham 2023-03-02 20:15:24 UTC
Possibly something to do with the triangle mouse filter? But I can't reproduce the issue and I have much weaker hardware than Marcelo is using.
Comment 2 Bharadwaj Raju 2023-03-03 05:32:56 UTC
Probably the filter, yes. Not entirely sure about the cause, but maybe the logic we use for the secondary point is too slow? Will need profiling.
Comment 3 Marcelo Bossoni 2023-03-05 15:57:38 UTC
Any way to disable the effect on user side just to test?
Comment 4 Aleksey Zagorodnikov 2023-03-07 11:00:03 UTC
Created attachment 157080 [details]
firefox drops fps
Comment 5 Aleksey Zagorodnikov 2023-03-07 11:01:41 UTC
Got the same issue, but it does not consistently reproduce, at least several minutes it works okay after boot, or after plasmashell --replace.
I've noticed that video in Firefox stutters too when hovering over the task manager. 
I enable FPS counter inside firefox and it drops from 120/60 to <30fps when this happens.

It reproduces on built-in display and on an external monitor too.

My hardware:
Operating System: Manjaro Linux 
KDE Plasma Version: 5.27.2
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8
Kernel Version: 6.2.2-1-MANJARO (64-bit)
Graphics Platform: Wayland
Processors: 16 × 12th Gen Intel® Core™ i5-1240P
Memory: 38,9 GiB of RAM
Graphics Processor: Mesa Intel® Graphics
Manufacturer: LENOVO
Product Name: 21DJ
System Version: ThinkBook 15 G4 IAP
Comment 6 Aleksey Zagorodnikov 2023-03-07 11:14:03 UTC
Noticed in journal
kwin_wayland[1819]: kwin_screencast: Dropping a screencast frame because the compositor is slow

And it seems disabling "Show small windows previews when hovering over Tasks" option in Task Manager settings solves the problem.
Comment 7 Bharadwaj Raju 2023-03-07 11:18:27 UTC
Aleksey's problem appears to be unrelated to the triangle mouse filter, and is instead due to some inefficiency in the screencasting. Did this happen before 5.27 as well?
Comment 8 Aleksey Zagorodnikov 2023-03-07 11:28:40 UTC
Before 5.27 it wasn't happening, noticed it right after update.

During tests, I've realized that firefox and chrome somehow related to this behavior. When I close their windows - mouse seems to hover smoothly. But instantly laggy after running the browser again.

Disabling hover previews doesn't instantly solve the issue, it needs to restart plasmashell, otherwise, it is laggy even without previews.
Comment 9 Marcelo Bossoni 2023-03-07 20:28:44 UTC
For me even disabling previews doesn't work. It makes it better, but doesn't fix the problem.
I also see some instances of failed thumbnailing when youtube is the page in focus (don't know if it is related to media controls though).
If you minimize and restore some window (like konsole) using the taskbar button, things get worse.
Comment 10 Fushan Wen 2023-03-16 01:25:51 UTC

*** This bug has been marked as a duplicate of bug 464530 ***
Comment 11 Marcelo Bossoni 2023-04-07 12:48:32 UTC
Still happening on 5.27.4
Every time mouse is entering task manager icons it lags/skip frames
Comment 12 Fushan Wen 2023-04-07 14:03:24 UTC

*** This bug has been marked as a duplicate of bug 464530 ***
Comment 13 Fushan Wen 2023-04-07 14:13:53 UTC
The root cause is basically the same. Please do not reopen this bug. Thank you!
Comment 14 Felipe Castilho 2023-09-29 19:33:32 UTC
It seems to be happening again on 5.27.8, maybe a regression or something? (I can provide video proof and/or more information if needed)
Comment 15 Alexey 2024-01-05 14:40:38 UTC
(In reply to Felipe Castilho from comment #14)
> It seems to be happening again on 5.27.8, maybe a regression or something?
> (I can provide video proof and/or more information if needed)

I can confirm, it happens on my setup as well, 5.27.10
Comment 16 Mikko Keränen 2024-05-10 10:39:19 UTC
This still happens on version 5.27.11, mouse movement lags in task manager area. 
Also that this is market as duplicate of 464530 which doesn't sound right. My laptop have resources 8 cores, 31GB etc. and INTEL graphics, not NVIDIA as they say is root cause of 464530. 

Here is my setup:
Operating System: Manjaro Linux 
KDE Plasma Version: 5.27.11
KDE Frameworks Version: 5.115.0
Qt Version: 5.15.12
Kernel Version: 6.6.25-1-MANJARO (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ i7-8565U CPU @ 1.80GHz
Memory: 31,0 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 620
Manufacturer: LENOVO
Product Name: 20NR001MMX
System Version: ThinkPad L390

It would be great to know how to solve this because this is annoying bug.

Thanks!
Comment 17 Marcelo Bossoni 2024-05-10 10:51:21 UTC
Your best bet: upgrade do plasma 6 OR disable thumbnails on taskbar/
I believe this has to do with nvidia + thumbnailer + opengl quirks on nvidia
Comment 18 Mikko Keränen 2024-05-10 12:03:51 UTC
(In reply to Marcelo Bossoni from comment #17)
> Your best bet: upgrade do plasma 6 OR disable thumbnails on taskbar/
> I believe this has to do with nvidia + thumbnailer + opengl quirks on nvidia

Ok, thanks. I will then start looking how to do upgrade to plasma 6