Bug 483188 - With AMD GPU and non-floating panel, Icons-Only Task Manager on one monitor's panel randomly becomes unresponsive until plasmashell is restarted or a window is maximized and de-maximized
Summary: With AMD GPU and non-floating panel, Icons-Only Task Manager on one monitor's...
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Task Manager and Icons-Only Task Manager widgets (show other bugs)
Version: 6.0.1
Platform: Arch Linux Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
: 483263 483447 484266 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-03-11 01:12 UTC by pete
Modified: 2024-04-21 04:49 UTC (History)
6 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pete 2024-03-11 01:12:28 UTC
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
***


STEPS TO REPRODUCE
1. Use current Plasma 6 version
2. Use google-chrome-stable


OBSERVED RESULT
Panel becomes unresponsive then returns after a period of time. right clicking prompts me to open edit mode but pinned apps and notification area are frozen. Is sometimes fixed by moving chrome window to second screen and returning, or shrinking then re-maximizing the window.

EXPECTED RESULT
Panel should not become unresponsive.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 6.7.8-2
(available in About System)
KDE Plasma Version: 6.0.1
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2024-03-11 20:40:30 UTC
What kind of GPU are you using?

Does it ever happen when *not* using Chrome?

Does it still happen in a new clean user account?

Does it happen on only X11, or only Wayland, or both?
Comment 2 pete 2024-03-12 05:22:27 UTC
(In reply to Nate Graham from comment #1)
> What kind of GPU are you using?
> 
> Does it ever happen when *not* using Chrome?
> 
> Does it still happen in a new clean user account?
> 
> Does it happen on only X11, or only Wayland, or both?

Sorry Nate! I should have mentioned that is on Wayland, and it does happen even when not using Chrome.

In fact, I've noticed today that it primarily happens when I allow my monitor to turn off and return after a while. I don't have it set to sleep or lock, only turn the monitor off after ten minutes. Weirdly, I set it to 1 minute to test, let it turn off and tried it right after but the bug didn't appear. It may just need more time but I'm not sure yet.
Comment 3 pete 2024-03-12 08:20:20 UTC
(In reply to Nate Graham from comment #1)
> What kind of GPU are you using?

AMD RX6750xt

> Does it still happen in a new clean user account?

Yes it does. I should also mention that I use a dual monitor setup and this issue only occurs on my primary screen. The secondary screen is unaffected and I can use that until the main panel starts working again.
Comment 4 Nate Graham 2024-03-13 19:28:56 UTC
Thanks. Is it just the panel on the primary screen that's affected, or any app windows on that screen as well?

Also, is this only a visual freeze, or also a functional freeze? e.g if you use the frozen panel to launch an app, does it launch but the panel doesn't show it? Or does it not launch?

Finally, does any of this happen when you have only a single screen?
Comment 5 pete 2024-03-13 21:49:57 UTC
(In reply to Nate Graham from comment #4)
> Thanks. Is it just the panel on the primary screen that's affected, or any
> app windows on that screen as well?
> 
> Also, is this only a visual freeze, or also a functional freeze? e.g if you
> use the frozen panel to launch an app, does it launch but the panel doesn't
> show it? Or does it not launch?
> 
> Finally, does any of this happen when you have only a single screen?

I haven’t tested a single screen but will do that tonight.

Only the panel itself on the primary screen is affected. It is affected functionally - right clicking on it gives me the menu that would appear on a blank section (i.e option to enter edit mode, etc.). Clicking on pinned apps or the launcher does nothing.

If I grab an app, drag it to the primary screen, maximize then un-maximize it, the problem usually goes away. Otherwise it just works again after a few minutes usually. It doesn’t seem like lag.
Comment 6 Nate Graham 2024-03-14 15:57:37 UTC
*** Bug 483263 has been marked as a duplicate of this bug. ***
Comment 7 Nate Graham 2024-03-14 16:23:38 UTC
Thanks. Does it also help to restart plasmashell with `systemctl restart --user plasma-plasmashell.service`?
Comment 8 Nate Graham 2024-03-14 16:24:35 UTC
*** Bug 483447 has been marked as a duplicate of this bug. ***
Comment 9 pete 2024-03-14 23:37:57 UTC
(In reply to Nate Graham from comment #7)
> Thanks. Does it also help to restart plasmashell with `systemctl restart
> --user plasma-plasmashell.service`?

Yes. that fixes the problem when it happens.

I also tested with a single screen by disabling the second display, waiting for idle/shut off plus some extra, then moving the mouse to wake it up. With only the primary display enabled, the *app launchers* were responding, but the notification area wasn't. The clock, back to desktop button and system tray gave no response. It resolved the same way (by messing with windows or resetting plasma shell).
Comment 10 Nate Graham 2024-03-15 05:00:16 UTC
Thanks a lot!
Comment 11 pete 2024-03-15 05:27:56 UTC
(In reply to Nate Graham from comment #10)
> Thanks a lot!

My pleasure. I should mention something I just noticed: seeing how it behaved with a single screen, the next time it happened with dual screen (just now) I tried using notification buttons. They work! So with dual screen, the app launchers become unresponsive whereas with single screen, the tray is the side that goes bad... weird.
Comment 12 zxq5 2024-03-22 23:26:40 UTC
any updates on this?
Comment 13 pete 2024-03-31 06:58:11 UTC
My only theory is it might be related to me not using floating or hiding panels. Could be why it only started in 6.0. Still happens here as of 6.0.3.
Comment 14 Nate Graham 2024-04-01 15:48:11 UTC
Definitely would be nice if you could test with and without floating, and also with and without the "opaque" setting. Basically anything you can do to narrow down the issue to a specific set of settings would be great.
Comment 15 yurapostates 2024-04-01 16:22:14 UTC
(In reply to Nate Graham from comment #14)
> Definitely would be nice if you could test with and without floating, and
> also with and without the "opaque" setting. Basically anything you can do to
> narrow down the issue to a specific set of settings would be great.

Huh. Turning on Floating on the panel solves this issue for me. I've tried this a couple of times by turning on/off Floating, locking down my screen, waiting for the monitor to turn off and then unlocking the screen; when Floating is off the issue persists, but when Floating is on 
I'll leave Floating on, to see if this bug happens again.

Some extra details I've noticed when the panel is unresponsive:
When I enter "Edit mode" by right clicking on the parts of the panel that aren't frozen the Panel Settings don't appear, but that also fixes the issue.
Also If I right click the non-frozen part of the panel there's a very short period of time when the panel icons are responsive. Specifically the panel icons respond to the cursor moving over them (e.g. they light up and they show a window preview) but that lasts very shortly and I can't click on them
Comment 16 Nate Graham 2024-04-01 20:12:20 UTC
Fascinating. I wonder if the AMD GPU part is a red herring, and it really is about the floatingness. Or maybe they're interrelated.
Comment 17 pete 2024-04-01 22:09:22 UTC
I've been testing floating panels since this morning, and so far I haven't seen the issue occur. It would make sense to me if this is the issue, since I haven't heard about this issue from anyone else (except for zxq5). Most people probably just leave the floating panels on by default, and therefore never encounter a problem.

Still, its only been hours so I will report back if anything changes.
Comment 18 zxq5 2024-04-02 12:50:59 UTC
(In reply to pete from comment #17)
> I've been testing floating panels since this morning, and so far I haven't
> seen the issue occur. It would make sense to me if this is the issue, since
> I haven't heard about this issue from anyone else (except for zxq5). Most
> people probably just leave the floating panels on by default, and therefore
> never encounter a problem.
> 
> Still, its only been hours so I will report back if anything changes.

Can confirm the issue is happening for non-floating panels. I'll try setting them to floating mode and see if that solves my issue, thanks
Comment 19 pete 2024-04-02 15:32:21 UTC
(In reply to zxq5 from comment #18)
> (In reply to pete from comment #17)
> > I've been testing floating panels since this morning, and so far I haven't
> > seen the issue occur. It would make sense to me if this is the issue, since
> > I haven't heard about this issue from anyone else (except for zxq5). Most
> > people probably just leave the floating panels on by default, and therefore
> > never encounter a problem.
> > 
> > Still, its only been hours so I will report back if anything changes.
> 
> Can confirm the issue is happening for non-floating panels. I'll try setting
> them to floating mode and see if that solves my issue, thanks

It appears I spoke too soon. After a period of the screen being off, the problem appeared once when it came back on. That’s the only time so far since changing to floating panels so I will keep testing.
Comment 20 mr.yamamoto 2024-04-05 08:41:35 UTC
This happens to me every so often. I'm also on an AMD GPU. I am using a floating window as well. This is a regression from 6.0 as this did not happen to me before. A question for pete is do you have window previews enabled in the taskbar on hover? It might be related to pipewire.
Comment 21 pete 2024-04-05 20:41:42 UTC
(In reply to mr.yamamoto from comment #20)
> This happens to me every so often. I'm also on an AMD GPU. I am using a
> floating window as well. This is a regression from 6.0 as this did not
> happen to me before. A question for pete is do you have window previews
> enabled in the taskbar on hover? It might be related to pipewire.

I do have window previews enabled. Interesting idea, I'll try turning it off and see what happens. Testing with the opaque and floating settings is a mixed bag so far. With opaque enabled I had a few hard lock-ups that weren't fixed by maximizing/de-maximizing a window and actually had to restart. With floating and adaptive, it only happens rarely. Nothing I can see as a clear pattern so far.
Comment 22 Nate Graham 2024-04-12 21:23:28 UTC
*** Bug 484266 has been marked as a duplicate of this bug. ***
Comment 23 pete 2024-04-15 18:40:42 UTC
Update: no settings for the taskbar seem to prevent the issue, but leaving it floating seems to make it happen less often, and be more easily recoverable without restarting plasmashell.
One thing I notice that may help shed light on this (or just make it more confusing):

When my monitors wake up, the primary wakes up first and the secondary shows up a bit after. Part of that is definitely just different monitors acting differently but when the primary comes on, I can momentarily see a second taskbar appear on the primary before disappearing and reappearing on the secondary once it loads.
If I use the primary taskbar *right* before that happens, it works. But "right* after the secondary monitor's panel appears is when the primary panel stops working.
Comment 24 yurapostates 2024-04-15 18:42:39 UTC
For the record ever since I switched to floating panel, I've yet to encounter the issue again
Comment 25 pete 2024-04-15 18:46:38 UTC
(In reply to yurapostates from comment #24)
> For the record ever since I switched to floating panel, I've yet to
> encounter the issue again

Interesting. What distro are you on and do you use any non-default options? I have middle-click set to close windows and I turn off "Mark applications that play audio". Everything else is default IIRC.
Comment 26 yurapostates 2024-04-15 21:09:11 UTC
> Interesting. What distro are you on and do you use any non-default options?
> I have middle-click set to close windows and I turn off "Mark applications
> that play audio". Everything else is default IIRC.

Arch Linux. I have the default options afaik. I have middle click set to Opens a new window and Mark applications that play audio is turned on
Comment 27 pete 2024-04-19 22:53:33 UTC
Since 6.0.4, I haven't seen this issue at all. It may be resolved but I'll report back if it crops up again.
Comment 28 Nate Graham 2024-04-21 04:49:09 UTC
Oh wonderful, thanks for following up!