Bug 492241

Summary: The battery icon in the notification area occasionally disappears
Product: [Unmaintained] Powerdevil Reporter: Zk Wang <wang.zk>
Component: generalAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: me, natalie_clarius, nate
Priority: NOR    
Version First Reported In: 5.27.11   
Target Milestone: ---   
Platform: Debian unstable   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 6.0.0
Sentry Crash Report:

Description Zk Wang 2024-08-27 01:40:02 UTC
SUMMARY

The battery icon in the notification area occasionally disappears. When this happens, I found the following logs reported by `journalctl`.

```
8月 27 09:33:59 wzk-matebook plasmashell[6333]: file:///usr/share/plasma/plasmoids/org.kde.plasma.battery/contents/ui/CompactRepresentation.qml:61:17: Unable to assign [undefined] to int
8月 27 09:33:58 wzk-matebook plasmashell[6333]: file:///usr/share/plasma/plasmoids/org.kde.plasma.battery/contents/ui/CompactRepresentation.qml:61:17: Unable to assign [undefined] to int
8月 27 09:33:35 wzk-matebook plasmashell[6333]: file:///usr/share/plasma/plasmoids/org.kde.plasma.battery/contents/ui/CompactRepresentation.qml:61:17: Unable to assign [undefined] to int
8月 27 09:33:05 wzk-matebook plasmashell[6333]: file:///usr/share/pla
```

This bug disappears after rebooting, but it will appear again in some cases.


STEPS TO REPRODUCE
1.  Enter the plasma workspace.
2.  Check the battery icon in the notification area.
3. 

OBSERVED RESULT

The battery icon is missing. Reboot the system and the battery icon appears.


EXPECTED RESULT

The battery icon should always appear in the notification area.


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
KDE Plasma Version: 5.27.11
KDE Frameworks Version: 5.115.0
Qt Version: 5.15.13
Kernel Version: 6.10.6-amd64 (64 bit)
Display: X11

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2024-08-27 19:54:13 UTC
This is fixed in Plasma 6.