Bug 463114 - System monitor sensor - Disk usage widget forgets sensors
Summary: System monitor sensor - Disk usage widget forgets sensors
Status: REOPENED
Alias: None
Product: ksystemstats
Classification: Frameworks and Libraries
Component: General (show other bugs)
Version: unspecified
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-12-16 13:03 UTC by Enmk
Modified: 2024-09-03 19:08 UTC (History)
5 users (show)

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


Attachments
Widget apperance configuration (47.79 KB, image/png)
2022-12-16 13:03 UTC, Enmk
Details
Widget sensors configuration (47.05 KB, image/png)
2022-12-16 13:04 UTC, Enmk
Details
Missing Disk Sensors (170.32 KB, image/jpeg)
2023-04-30 08:33 UTC, Schlaefer
Details
Missing sensors example 2024-08-31 (405.30 KB, image/jpeg)
2024-08-31 14:21 UTC, Schlaefer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Enmk 2022-12-16 13:03:00 UTC
Created attachment 154623 [details]
Widget apperance configuration

SUMMARY
***
I have multiple filesystems mounted (at startup), each filesystem is added as a (percentage used) horizontal bar to "System monitor sensor" widget to a desktop.
From time to time I notice that some of the bars disappear from the widget and I have to re-add those manually. Corresponding FSs seem to be working just fine, so the problem clearly is in the widget.

***


OBSERVED RESULT
Bars corresponding to some FS disappear from widget, usually leaving 3 of 5 bras

EXPECTED RESULT
Widget doesn't forget sensors

SOFTWARE/OS VERSIONS
Operating System: KDE neon 5.26
KDE Plasma Version: 5.26.4
KDE Frameworks Version: 5.101.0
Qt Version: 5.15.7
Kernel Version: 5.15.0-56-generic (64-bit)
Graphics Platform: X11
Processors: 12 × Intel® Core™ i7-8750H CPU @ 2.20GHz
Memory: 31.0 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 630
Manufacturer: Dell Inc.
Product Name: XPS 15 9570

ADDITIONAL INFORMATION
One note that all FS on my laptop are LUKS with an encryption:
```
$ cat /etc/fstab 
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a device; this may
# be used with UUID= as a more robust way to name devices that works even if
# disks are added and removed. See fstab(5).
#
# <file system>             <mount point>  <type>  <options>  <dump>  <pass>
UUID=56E5-5939                            /boot/efi      vfat    defaults,noatime 0 2
/dev/mapper/luks-<<UUID4>> /              ext4    defaults,noatime,discard 0 1
tmpfs                                     /tmp           tmpfs   defaults,noatime,mode=1777 0 0

/dev/mapper/luks-<<UUID1>>   /home/enmk                 ext4   discard                              0 0 
/dev/mapper/luks-<<UUID3>>   /home/enmk/work/altinity   ext4   discard                              0 0 
/dev/mapper/luks-<<UUID2>>   /home/enmk/work/pets       ext4   discard                              0 0 
UUID=<<UUID5>>               none                       swap   sw                                   0 0 
/dev/sda5                                               /mnt/ntfs                  ntfs   noatime,noauto,nodiratime,ro,users   0 0

$ cat /etc/crypttab 
# /etc/crypttab: mappings for encrypted partitions.
#
# Each mapped device will be created in /dev/mapper, so your /etc/fstab
# should use the /dev/mapper/<name> paths for encrypted devices.
#
# See crypttab(5) for the supported syntax.
#
# NOTE: You need not list your root (/) partition here, but it must be set up
#       beforehand by the initramfs (/etc/mkinitcpio.conf). The same applies
#       to encrypted swap, which should be set up with mkinitcpio-openswap
#       for resume support.
#
# <name>               <device>                         <password> <options>
luks-<<UUID4>> UUID=<<UUID4>>     /crypto_keyfile.bin luks,discard

# home folder
luks-<<UUID1>> UUID=<<UUID1>>     /etc/luks-keys/disk_secret_key luks,discard,tries=1
# pets disk
luks-<<UUID2>> UUID=<<UUID2>>     /etc/luks-keys/disk_secret_key luks,discard,tries=1
# altinity disk
luks-<<UUID3>> UUID=<<UUID3>>     /etc/luks-keys/disk_secret_key luks,discard,tries=1
```
Comment 1 Enmk 2022-12-16 13:04:10 UTC
Created attachment 154624 [details]
Widget sensors configuration
Comment 2 Enmk 2022-12-16 13:08:38 UTC
The issue happened many times throughout the year, usually once per week. System is updated regularly, and the issue appeared on previous Neon versions and survived (several) dist-upgrades.
Comment 3 Schlaefer 2023-04-30 08:33:39 UTC
Created attachment 158554 [details]
Missing Disk Sensors

This happens all the time in the System Monitor app here. I monitor four disks for Read/Write and Free/Used space. Usually at least one disk is missing, often two, sometimes three.

System Monitor noticing the missing sensors and offers a fix (but alas it's useless because you can't resize the dialog).
Comment 4 Thorolf E.R. Weißhuhn 2023-05-02 17:35:35 UTC
I have the same issue, and noted the following:

The forgotten sensors are for *partitions*, while the sensors that were set up were labeled as *disks*.

E.g., for LUKS encrypted partitions: When adding sensors, one is offered "Encrypted Drive" or "Internal Drive (dm-0)". After adding the sensors, SM displays their values as expected. When later sensors are forgotten, the UUIDs of the missing sensors are those of the encrypted *partitions*.

This may be related to 
https://bugs.kde.org/show_bug.cgi?id=427874
Comment 5 Nate Graham 2024-08-20 12:48:57 UTC
Sorry we didn't have time to investigate this until now. Upon testing it, I can't reproduce the issue in git master, which will soon before Plasma 6.2. Are you able to reproduce the issue yourself in Plasma 6.1.4 or later?
Comment 6 Thorolf E.R. Weißhuhn 2024-08-20 15:35:57 UTC
I have not seen this for a while. Since KDE6? Don't remember, sorry.
Comment 7 Nate Graham 2024-08-20 17:24:59 UTC
OK great, then let's call it fixed!
Comment 8 Schlaefer 2024-08-31 14:19:24 UTC
I made sure that my panels was fully populated when this issue was closed as "possibly fixed" on 2024-08-20. 

Today the panels were half empty again.

Btrfs on luks and always mounted on boot via cryptab/fstab. 

Operating System: CachyOS Linux 
KDE Plasma Version: 6.1.4
KDE Frameworks Version: 6.5.0
Qt Version: 6.7.2
Kernel Version: 6.10.7-2-cachyos-lto (64-bit)
Graphics Platform: Wayland
Processors: 12 × 11th Gen Intel® Core™ i5-11400 @ 2.60GHz
Memory: 31,2 GiB of RAM
Graphics Processor: Mesa Intel® Arc
Manufacturer: Gigabyte Technology Co., Ltd.
Product Name: B560M AORUS PRO AX
Comment 9 Schlaefer 2024-08-31 14:21:11 UTC
Created attachment 173168 [details]
Missing sensors example 2024-08-31
Comment 10 Enmk 2024-09-03 19:08:08 UTC
Happened on my system again, just a moment ago, same machine but upgraded OS.
```
Operating System: KDE neon 6.0
KDE Plasma Version: 6.1.4
KDE Frameworks Version: 6.5.0
Qt Version: 6.7.2
Kernel Version: 6.8.0-40-generic (64-bit)
Graphics Platform: X11
Processors: 12 × Intel® Core™ i7-8750H CPU @ 2.20GHz
Memory: 31.0 GiB of RAM
Graphics Processor: NVIDIA GeForce GTX 1050 Ti with Max-Q Design/PCIe/SSE2
Manufacturer: Dell Inc.
Product Name: XPS 15 9570
```