Bug 377483 - Huge repainting periodicity when using threaded render loop. Clock does not show me every second.
Summary: Huge repainting periodicity when using threaded render loop. Clock does not s...
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: generic-performance (show other bugs)
Version: 5.12.6
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-11 07:53 UTC by DimanNe
Modified: 2023-09-19 20:10 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description DimanNe 2017-03-11 07:53:01 UTC
Here is video - https://drive.google.com/file/d/1kjaJ53ie0LaKz2W7fq_h8A-t3-B5E403pg/view.
Watch for seconds. Digital clock show me every second or third second.

If I force updating/repainting of the area by making KDE show popups, everything starts to work and every second is shown.
Digital clock start misbehaving, as soon as I leave the area.

Such behaviour occurs after relatively long uptimes. My current uptime is 5 days.

My graphical card is GeForce GTX 650 Ti BOOST

$ nvidia-smi                                                                                                                                                           
Sat Mar 11 10:23:03 2017                                                                                                                                                                  
+-----------------------------------------------------------------------------+                                                                                                           
| NVIDIA-SMI 375.39                 Driver Version: 375.39                    |                                                                                                           
|-------------------------------+----------------------+----------------------+                                                                                                           
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |                                                                                                           
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |                                                                                                           
|===============================+======================+======================|                                                                                                           
|   0  GeForce GTX 650...  Off  | 0000:01:00.0     N/A |                  N/A |                                                                                                           
| 10%   36C    P8    N/A /  N/A |   1143MiB /  1996MiB |     N/A      Default |                                                                                                           
+-------------------------------+----------------------+----------------------+                                                                                                           
                                                                                                                                                                                          
+-----------------------------------------------------------------------------+                                                                                                           
| Processes:                                                       GPU Memory |                                                                                                           
|  GPU       PID  Type  Process name                               Usage      |                                                                                                           
|=============================================================================|                                                                                                           
|    0                  Not Supported                                         |                                                                                                           
+-----------------------------------------------------------------------------+
Comment 1 Christoph Feck 2017-03-14 03:57:20 UTC
Which Plasma version are you using?
Comment 2 DimanNe 2017-03-14 07:11:46 UTC
5.31.0-0ubuntu1
Comment 3 Christoph Feck 2017-03-17 15:15:11 UTC
This is the frameworks, but I need to see the Plasma version. Please use "kinfocenter" or "kcmshell5 about-distro".
Comment 4 DimanNe 2017-03-19 08:41:39 UTC
KDE Plasma Version: 5.9.3
KDE Frameworks Version: 5.31.0
Qt Version: 5.7.1
Comment 5 DimanNe 2017-03-19 09:34:07 UTC
By the way, here is another demonstration of the bug: https://drive.google.com/file/d/0B4r5nJvpzEHGZm9pSXRZV1RTRU0/view
Look at task manager panel.
Comment 6 Christoph Feck 2017-03-21 14:32:28 UTC
Thanks, reassigning.
Comment 7 Ken Mankoff 2018-11-24 12:12:56 UTC
I'm still experiencing this on Kubuntu 18.04

KDE Plasma Version: 5.12.6
Frameworks: 5.44.0
QT: 5.9.5
Kernel: 4.15.0-39-generic

No NVIDIA graphics card.

I know everyone wants *their bug* to be the most important, but I'd like to suggest this is higher than "NOR". Although the video linked here shows ~1-3 second lags, sometimes it just stops updating. Having a clock off by several minutes is a pretty big issue for a desktop computer - that means missed meetings, real-world consequences, etc.
Comment 8 Ken Mankoff 2018-11-24 18:43:37 UTC
When I put the clock in an empty panel then it updates. I'm not surprised this is specific to my machine - seems like it would be mentioned more if it were a clean-KDE issue.

If I figure out which applet is causing the clock update issue I'll post back here.
Comment 9 David Edmundson 2018-11-25 17:31:17 UTC
So this still happens after a plasmashell restart?

Can you also see if changing  render loop to basic in 
kcmshell5 qtquicksettings     

makes any difference?
Comment 10 Ken Mankoff 2018-11-25 18:55:08 UTC
> So this still happens after a plasmashell restart?

I did do a "killall plasmashell; plasmashell & " for some reason yesteday (it was unrelated to this issue), and now things do appear to be working. Is that what you mean by restart?

> Can you also see if changing  render loop to basic in
> kcmshell5 qtquicksettings makes any difference?

If I run "kcmshell5 qtquicksettings" I see:

> Could not find module 'qtquicksettings'. 
> See kcmshell5 --list for the full list of modules.

If I search "render" in the "System Settings" app, under "Display and Monitor" I see "Rendering Backend" set to "OpenGL 2.0", with choices of that, "OpenGL 3.1" or "XRender".

Is there something I should run next time the clock stops updating to help debug this?
Comment 11 David Edmundson 2018-11-25 21:15:05 UTC
>Is that what you mean by restart?

It is.

> Could not find module 'qtquicksettings'. 

That would happen if you're on an old plasma.

It would be worth upgrading before spending time doing anything else.

>If I search "render"

That's something else
Comment 12 Ken Mankoff 2018-11-25 21:28:53 UTC
Can I upgrade the relevant parts but remain on 18.04? I like LTS...
Comment 13 Christoph Feck 2018-12-20 17:29:42 UTC
The qtquicksettings KCM was added in Plasma 5.13.
Comment 14 glaebhoerl 2020-12-15 08:39:06 UTC
I've also experienced this bug occasionally. (Was not easy to google for.)

Restarting plasma is indeed the only thing I've tried that fixes it. I've now configured it to use the basic render loop (does this need a restart to take effect? it didn't say so), but it'll take quite a while before I'll be able to notice, "yes, it definitely seems to have stopped happening".

DIGRESSION:

Another thing I have is an animated wallpaper. And another issue I've experienced is that after several days the wallpaper animation bogs down (becomes slow and choppy), and Plasma likewise needs to be restarted. 

I do not know yet if these are related. The clock issue is more like, "the clock does not repaint _at all_ unless I take some action, such as hovering over it, which seemingly triggers a repaint". But when I noticed the clock issue, the wallpaper was also slow or frozen (unfortunately I can't remember which). 

Previously I'd assumed the wallpaper plugin is poorly implemented and has some kind of resource leak... but maybe the two have a common root cause, and I just hadn't noticed in the case of the clock because 20FPS vs. 2FPS doesn't lead to an observable difference there. I don't think the wallpaper could be causing the problem for the clock, because I've also experienced the clock problem long before I started using an animated wallpaper. It's of course also possible that the two issues are entirely distinct and merely have similar symptoms.
Comment 15 Alexander Meshcheryakov 2021-02-06 17:58:41 UTC
I notice similar behavior after long uptime periods. It looks like this (recorded today): https://youtu.be/hsawEg67qE8

For the first time I've noticed this in 2018.

Toggling desktop effects off restores proper clock ticking. It stays properly ticking even after enabling desktop effects back.


Operating System: Arch Linux
KDE Plasma Version: 5.20.4
KDE Frameworks Version: 5.77.0
Qt Version: 5.15.2
Kernel Version: 5.9.14-arch1-1
OS Type: 64-bit
Processors: 4 × Intel® Core™ i5-4690 CPU @ 3.50GHz
Memory: 31,3 GiB of RAM
Graphics Processor: Mesa DRI Intel® HD Graphics 4600
Comment 16 Nate Graham 2023-09-19 20:10:53 UTC
This issue with the threaded render loop has been fixed for Plasma 6.