Bug 462345 - System monitor widget disappears from the panel after KDE logout and needs to be added to the panel again to be shown
Summary: System monitor widget disappears from the panel after KDE logout and needs to...
Status: RESOLVED WORKSFORME
Alias: None
Product: plasmashell
Classification: Plasma
Component: System Monitor widgets (other bugs)
Version First Reported In: 5.27.2
Platform: Debian testing Other
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-11-28 10:03 UTC by local10
Modified: 2024-09-23 03:46 UTC (History)
4 users (show)

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


Attachments
System monitor widget config settings 1 (42.48 KB, image/png)
2022-11-28 10:03 UTC, local10
Details
System monitor widget config settings 2 (40.49 KB, image/png)
2022-11-28 10:04 UTC, local10
Details
System monitor widget popup menu when doing a RMB click (78.15 KB, image/jpeg)
2022-11-28 10:09 UTC, local10
Details
System monitor widget normal position and appearance (55.02 KB, image/png)
2022-11-28 10:11 UTC, local10
Details
Output after running 'plasmashell --replace &' (7.43 KB, text/plain)
2022-12-01 17:29 UTC, local10
Details
Corrected Output after running 'plasmashell --replace &' (10.17 KB, text/plain)
2022-12-20 09:39 UTC, local10
Details
Video showing the issue after logging out of KDE then logging back into KDE (1.69 MB, video/x-matroska)
2022-12-21 09:46 UTC, local10
Details

Note You need to log in before you can comment on or make changes to this bug.
Description local10 2022-11-28 10:03:58 UTC
Created attachment 154098 [details]
System monitor widget config settings 1

SUMMARY
System monitor widget disappears from the task bar panel after KDE logout and needs to be added to the task bar panel again to be shown properly

STEPS TO REPRODUCE (correction to the steps above)

1. Place the system monitor sensor widget on the panel and configure it to use the following text-only sensors: CPU Total Load, Free Memory Percentage, Free Memory, Used swap memory, see the enclosed pics
2. Log out of KDE, then log back into KDE
3. The system monitor widget disappears from the task bar panel and needs to be added to the panel again to be shown properly.


SOFTWARE/OS VERSIONS
Operating System: Debian 12 Bookworm GNU/Linux
KDE Plasma Version: 5.26.3  KDE Frameworks Version: 5.100.0  Qt Version: 5.15.6
Kernel Version: 6.0.0-4-amd64 (64-bit)
Graphics Platform: X11
Comment 1 local10 2022-11-28 10:04:52 UTC
Created attachment 154099 [details]
System monitor widget config settings 2
Comment 2 local10 2022-11-28 10:09:06 UTC
Created attachment 154100 [details]
System monitor widget popup menu when doing a RMB click
Comment 3 local10 2022-11-28 10:11:20 UTC
Created attachment 154101 [details]
System monitor widget normal position and appearance

This is how the system widget is supposed to look when it's working normally
Comment 4 local10 2022-11-28 10:15:30 UTC
Clarification to the "System monitor widget popup menu when doing a RMB click" image, see above:

While the system monitor widget (SMW) is not shown on the panel it appears that it's still there, just invisible. Placing a mount pointer over the space where the SMW is supposed to be and doing a RMB click produces the SMW's popup menu.
Comment 5 veggero 2022-12-01 14:48:30 UTC
Can't reproduce; I might have to ask you to get your hands a bit dirty in code to understand where this is coming from.

At the path `/usr/share/plasma/plasmoids/org.kde.panel/contents/ui/` you should find the file `LayoutManager.js`. At line 86, you should see `function save() {`.

May I ask you to add `console.log('--- TEST ---')` after that line, save, restart plasmashell with `plasmashell --replace &` in a console, add the widget as you were describing, and check if there's any (there should be) such debug line coming from AFTER you've added the widget and closed edit mode?

If so, is there any significant error message after that?

Extra points if you also add a `console.log(ids)` at the end of that `save()` function (line 96) and tell me what it outputs after you've added the widget.
Comment 6 veggero 2022-12-01 14:48:50 UTC
.
Comment 7 local10 2022-12-01 17:29:02 UTC
Created attachment 154202 [details]
Output after running 'plasmashell --replace &'

Please see the enclosed file. I added both `console.log('--- TEST ---')` and `console.log(ids)`.  This is the output after logging out of KDE, then logging back into KDE, then running 'plasmashell --replace &'.

Note that after running 'plasmashell --replace &' I can't add the system monitor widget (SMW) to the Task Bar panel because when I do "a RMB click on the Task Bar panel > Enter Edit Mode > Add Widgets...", KDE doesn't show the list of widgets to choose from as it normally would, it just exists the edit mode and that's it.
Comment 8 local10 2022-12-20 09:39:09 UTC
Created attachment 154709 [details]
Corrected Output after running 'plasmashell --replace &'

Was able to get the "plasmashell --replace &" output after adding the second system monitor widget to the task bar.

The previous issue with "plasmashell --replace &" testing, where KDE would exit the edit mode after clicking the "Add Widgets..." button without showing the list of widgets to choose from, was caused by my adding the "console.log(ids)" instruction at the very end of the save() function after updateMargins(). Moving it one line up resolved the issue.

Operating System: Debian 12 Bookworm GNU/Linux
KDE Plasma Version: 5.26.4  KDE Frameworks Version: 5.101.0  Qt Version: 5.15.6
Kernel Version: 6.0.0-6-amd64 (64-bit)
Graphics Platform: X11
Comment 9 local10 2022-12-21 09:46:55 UTC
Created attachment 154725 [details]
Video showing the issue after logging out of KDE then logging back into KDE
Comment 10 local10 2023-02-01 08:52:13 UTC
Still have this bug in:

Operating System: Debian 12 Bookworm GNU/Linux 
KDE Plasma Version: 5.26.90  KDE Frameworks Version: 5.102.0  Qt Version: 5.15.8
Kernel Version: 6.1.0-2-amd64 (64-bit)
Graphics Platform: X11

Pretty annoying having to add/remove the System monitor every time I log  into KDE. See the enclosed video (the last attachment) for how the bug looks like in action. If you need more info, please advise.
Comment 11 local10 2023-03-12 02:58:55 UTC
The issue is still present in:

Operating System: Debian GNU/Linux 12
KDE Plasma Version: 5.27.2  KDE Frameworks Version: 5.103.0  Qt Version: 5.15.8
Kernel Version: 6.1.0-5-amd64 (64-bit)
Graphics Platform: X11

See the video ( https://bugs.kde.org/attachment.cgi?id=154725 ) for how it works in real life.
Comment 12 Nate Graham 2024-08-23 02:43:51 UTC
Can you still reproduce this issue with Plasma 6.1.4 or newer? Thanks for checking!
Comment 13 local10 2024-08-24 05:11:19 UTC
(In reply to Nate Graham from comment #12)
> Can you still reproduce this issue with Plasma 6.1.4 or newer? 

I will try to when I upgrade to Plasma 6.x, which probably will not happen for me for a while. The issue is still present for me in:

Operating System: Debian GNU/Linux 12 Boorkworm
KDE Plasma Version: 5.27.5  KDE Frameworks Version: 5.103.0  Qt Version: 5.15.8
Kernel Version: 6.1.0-23-amd64 (64-bit)
Graphics Platform: X11
Comment 14 Bug Janitor Service 2024-09-08 03:46:54 UTC
๐Ÿ›๐Ÿงน โš ๏ธ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 15 Bug Janitor Service 2024-09-23 03:46:58 UTC
๐Ÿ›๐Ÿงน This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.