Bug 500384

Summary: Closing System monitor logs error messages to the journal: Helper process terminated abnormally: "The process doesn't have permission to open the capture source"
Product: [Applications] plasma-systemmonitor Reporter: hbr <nepnep>
Component: generalAssignee: KSysGuard Developers <ksysguard-bugs>
Status: RESOLVED FIXED    
Severity: minor CC: ahiemstra, nate, plasma-bugs-null
Priority: NOR    
Version First Reported In: 6.3.1   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In: 6.4.0
Sentry Crash Report:
Attachments: System Monitor config files

Description hbr 2025-02-19 08:45:45 UTC
Created attachment 178573 [details]
System Monitor config files

SUMMARY

As per https://bugs.kde.org/show_bug.cgi?id=500235 I was asked to create one bug report per related error message.

plasma-systemmonitor[30600]: QProcess: Destroyed while process ("/usr/lib/ksysguard/ksgrd_network_helper") is still running.

plasma-systemmonitor[30600]: org.kde.ksysguard.plugin.network: Helper process terminated abnormally: ""

STEPS TO REPRODUCE
1. Open / close System Monitor
2. Check the journal

OBSERVED RESULT
The above error messages appear in the journal.

EXPECTED RESULT
No error happens / error messages get logged.

SOFTWARE/OS VERSIONS
Operating System: EndeavourOS 
KDE Plasma Version: 6.3.1
KDE Frameworks Version: 6.11.0
Qt Version: 6.8.2
Kernel Version: 6.13.2-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 7800X3D 8-Core Processor
Memory: 30,9 GiB of RAM
Graphics Processor: AMD Radeon RX 7900 XTX
Manufacturer: ASRock
Product Name: X670E Steel Legend
Comment 1 Nate Graham 2025-02-19 20:26:00 UTC
I see a slightly more detailed message on my system while checking this out:

org.kde.ksysguard.plugin.network: Helper process terminated abnormally: "The process doesn't have permission to open the capture source"
Comment 2 Bug Janitor Service 2025-02-20 10:55:56 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/libksysguard/-/merge_requests/397
Comment 3 Arjen Hiemstra 2025-03-12 16:01:45 UTC
Git commit 35fa15a5cf618776764e786242a67d73b8e3b33b by Arjen Hiemstra.
Committed on 12/03/2025 at 15:55.
Pushed by ahiemstra into branch 'master'.

processcore: Ensure we properly terminate the network helper process on quit

Otherwise we'll get a warning from QProcess

M  +8    -0    processcore/plugins/network/network.cpp
M  +1    -0    processcore/plugins/network/network.h

https://invent.kde.org/plasma/libksysguard/-/commit/35fa15a5cf618776764e786242a67d73b8e3b33b