Bug 480421

Summary: Icons-only task manager often messes up rendering resulting in either 1-2 pixels wide icons or icons about 4 times as small as they should be
Product: [Plasma] plasmashell Reporter: Bart Ribbers <bribbers>
Component: Task Manager and Icons-Only Task ManagerAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: arvigeus, dougshaw77, kdedev, mail+30y4rgtc, nate, ptselios, qydwhotmail, yule2000
Priority: NOR Keywords: qt6
Version: 5.92.0   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=478259
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: 1-2 pixels wide icons
Still too small icons, but rather than 1-2 pixels wide now about 4 times as small as intended
The icons as they should be
Similar squished icons
Mangled panel icons
Panel behavior after plasmashell restart

Description Bart Ribbers 2024-01-28 09:49:35 UTC
Created attachment 165298 [details]
1-2 pixels wide icons

SUMMARY
As the title says, the icons-only task manager often messes up the rendering resulting in weird glitches. This is often "fixed" by launching or closing an application but that's not always the case, and after being correct for a while it also likes to mess up again. I'm not sure what invokes it but it definitely always appears just after booting.

I'd add more screenshots in this initial post demonstrating the problem but Bugzilla only seems to allow just 1 attachment per post, so I'll post the others in subsequent comments on this bug report.


STEPS TO REPRODUCE
1. Put the icons-only task manager on a panel
2. Reboot

OBSERVED RESULT
Rendering is messed up, resulting in either 1-2 pixels wide icons or icons about 3 times as small as they should be. Launching an application changes it back to regular sized icons.

EXPECTED RESULT
Icons to always be rendered at the correct size.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Alpine Linux edge
KDE Plasma Version: 5.92.0
KDE Frameworks Version: 5.248.0
Qt Version: 6.6.1
Comment 1 Bart Ribbers 2024-01-28 09:50:19 UTC
Created attachment 165299 [details]
Still too small icons, but rather than 1-2 pixels wide now about 4 times as small as intended
Comment 2 Bart Ribbers 2024-01-28 09:50:39 UTC
Created attachment 165300 [details]
The icons as they should be
Comment 3 Doug 2024-01-28 18:12:27 UTC
I've seen the 4x too small icons a few times, though not for a while, never seen the 1-2 pixel wide icons.

This was on KDE Neon Unstable.  Haven't had the issue on Testing with RC1
Comment 4 Nate Graham 2024-01-29 21:44:25 UTC
Are you able to nail down some of the conditions under which it happens? We periodically get bug reports like this, but I've never been able to reproduce any of them with a left screen edge vertical panel, which is my daily driver.
Comment 5 Bart Ribbers 2024-01-30 08:57:02 UTC
Sorry, not really so far. As you can see on the screenshot my panel is horizontally. It's on a left screen as well, the second screen to the right in my setup has no panel. It always happens on boot, but I can't figure out what other situations make it happen.

This has started since the Plasma 6 first beta release, it's not an issue on Plasma 5.
Comment 6 Nate Graham 2024-01-31 21:35:54 UTC
Aha, Bug 478259 is the one I was thinking of.

Unfortunately I can't reproduce either issue. :/ But clearly something weird is doing on here with a certain combination of settings, if only we could narrow down what they are...
Comment 7 Arian 2024-03-28 09:36:04 UTC
Hi, this may be related to the issue I am having.

When I turn off my screen and turn it back on the icons have a high likelyhood to get squished like that. So far I can only restore this by restarting the taskbar or rebooting/logging off/on.
Comment 8 Arian 2024-03-28 09:36:55 UTC
Created attachment 167882 [details]
Similar squished icons
Comment 9 Nikolay Stoynov 2024-03-28 15:34:06 UTC
Created attachment 167892 [details]
Mangled panel icons

Not sure if related, but sometimes panel items get messed up like this. This is not even my screenshot - someone else reported this on reddit as well. As a temporary workaround, I just go into Edit Mode and exit. My guess is that it may have something to do with applets that dynamically appear/disappear (example: [Application Title Bar](https://store.kde.org/p/2135509)), Global Menu), or calculate size dynamically (Spacer, Icons-Only Task).
My panel configuration is: Application Title Bar, Global Menu, Spacer, Icon-Only Tasks, Spacer, Notification area
Comment 10 Peter Tselios 2024-03-28 16:15:08 UTC
I second this bug. 
Please note that this is happening on X11 and Wayland as well. Identical behavior. 

My settings are: 
Bottom positioning, Center Alignment, Fill Width, Always Visible, Translucent, NOT floating. 

Height was 36px in KDE5 and reduced to 34 when I moved to KDE 6. 
Feel free to contact me as well for any possible tests. 
I use the openSUSE theme with Breeze Light style, Breeze decorations and Breeze Light cursors

(I was forced to select the BL cursors because after the upgrade I had no mouse pointer on my screen)
Comment 11 TraceyC 2024-08-13 18:46:31 UTC
I was able reproduce this issue reliably by restarting Plasma with a bottom panel, centered, with only the icons-only task manager.
On my system, I have to have spacers in another panel on the same display to reproduce.

```
systemctl restart --user plasma-plasmashell.service
```

TL;DR SUMMARY

Creating a panel with the icons-only task manager and nothing else, on an external display connected to the laptop, I did *not* initially see the bug. I saw it after at least one reboot and then was reliably able to reproduce when restarting the system, or just the plasma service

After changing some settings, the icons no longer stay too small, but I seem them slowly going from small to normal during panel animation.
Other settings cause the panel to draw in non-desirable ways, so it may be that there is weird interaction between the panel animations and the icons-only task manager widget. 

Right clicking and going to panel settings will restore it to the proper size (I found through testing that your results may vary if you change settings, even if you set them back to what they were later)
Launching an application from it does *not* restore the panel size for me as in the original report. Either changing workspaces or opening the panel config (causing a redraw) fixes the panel.

There seems to be weird interaction between panel animation, widget drawing / animation and something involving a loop that is probably single threaded.

DETAILED TESTING

**Original bug**
I started off with 3 panels, in Wayland. These are their initial settings that seem to matter in relation to the bug:
1 - laptop display - Bottom, fit width
2 - Main external display - Bottom, center, fit content
3 - Main external display - Top, fit width
4 - Second external display - no panel

Panel settings where the bug is present (bottom panel on external monitor). To reproduce, just restart plasmashell.

- Bottom
- Floating
- Translucent
- Center
- Fit content
- Always visible

I changed it from "fit content" to "fill width", then the task manager did not exhibit the bug

Another panel at the top does not have this issue. I have used various settings with it, it also has icons-only task manager
Floating / not floating
Centered / fit to screen
Translucent / solid

While changing settings to try to narrow down what might be causing the task manager to redraw correctly I found a few other problems
- Changing settings of the bottom panel where I saw the bug to something different, then back to what it had been, I no longer saw the bug when restarting Plasma. It might reappear after a reboot, I don't know.
- Changing all 3 panels to fit content results in very slow panel animation, especially with spacers
- With the animation being slow, the bottom panel looks smeared, then has the small icons but they eventually pop out to expected size. This is shown in the video I'm attaching.
Comment 12 TraceyC 2024-08-13 18:48:30 UTC
Created attachment 172595 [details]
Panel behavior after plasmashell restart

Video showing 3 panels across 2 displays. Notice the animation oddities after restarting plasmashell (when the screen goes black)
Comment 13 TraceyC 2024-08-13 18:49:39 UTC
I noticed that when I saw the bug, the panel container was not sized correctly, so icons-only task manager was not able to expand
When the task manager was able to expand icon size, the panel was correctly sized
Comment 14 Nate Graham 2024-08-14 21:58:17 UTC
Nice, it looks like you managed to reproduce Bug 489086. Does that seems accurate, or are these two different bugs?
Comment 15 TraceyC 2024-08-15 17:26:32 UTC
Indeed, this is identical to Bug 489086

Thanks to everyone who has provided details. I'm closing this bug in favor of the other one, since it has the linked QT issue.  You can follow the progress of this issue in the other report.

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