Bug 424040

Summary: Some sensors are labeled "Dummy" or they are replaced with other ones when a removable device is connected/disconnected to/from a usb port
Product: [Plasma] plasmashell Reporter: Patrick Silva <bugseforuns>
Component: System Monitor widgetsAssignee: Marco Martin <notmart>
Status: RESOLVED FIXED    
Severity: normal CC: nate, plasma-bugs-null
Priority: NOR    
Version First Reported In: 5.19.1   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: "Dummy" sensors after the step 5
Several sensors were replaced after the step 6
Sensors working as expected
screen recording

Description Patrick Silva 2020-07-09 20:31:52 UTC
Created attachment 130006 [details]
"Dummy" sensors after the step 5

STEPS TO REPRODUCE
1. add "system monitor sensor" widget to desktop
2. open the settings of "system monitor sensor" widget and add disk usage sensors in "Sensors Details" section
3. connect a removable device to usb port (I used a usb stick formatted with ntfs file system)
4. reboot
5. when Plasma session is already loaded, disconnected the removable device from de usb port (Now several sensors are labeled "Dummy")
6. reconnected the removable device to usb port (now several sensors are temporarily replaced with other ones. All sensors work as expected after reboot).

OBSERVED RESULT
compare the attached screenshots please.

EXPECTED RESULT
all sensors should always be correctly labeled, none sensor should be replaced.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.19.3
KDE Frameworks Version: 5.71.0
Qt Version: 5.15.0
Comment 1 Patrick Silva 2020-07-09 20:33:42 UTC
Created attachment 130007 [details]
Several sensors were replaced after the step 6
Comment 2 Patrick Silva 2020-07-09 20:36:26 UTC
Created attachment 130008 [details]
Sensors working as expected

On my system, the usb device is not automatically mounted on boot nor when connected if this info matters.
Comment 3 Patrick Silva 2020-07-19 20:12:10 UTC
Created attachment 130260 [details]
screen recording

I also can reproduce unmounting an ISO image with Dolphin plugin.
Watch the attached screen recording please.

SOFTWARE/OS VERSIONS
Dolphin 20.07.80
Operating System: Arch Linux
KDE Plasma Version: 5.19.3
KDE Frameworks Version: 5.72.0
Qt Version: 5.15.0
Comment 4 Patrick Silva 2020-10-17 12:57:21 UTC
cannot reproduce.

Operating System: Arch Linux
KDE Plasma Version: 5.20.0
KDE Frameworks Version: 5.75.0
Qt Version: 5.15.1