Summary: | ksgrd_network_helper hangs on system shutdown | ||
---|---|---|---|
Product: | [Applications] plasma-systemmonitor | Reporter: | Alex <kde.designer298> |
Component: | general | Assignee: | KSysGuard Developers <ksysguard-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | ahiemstra, nate, plasma-bugs-null |
Priority: | NOR | ||
Version First Reported In: | 6.4.3 | ||
Target Milestone: | --- | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/plasma/libksysguard/-/commit/f534a5b9d5f2beced22f747b72ca110e5917b117 | Version Fixed In: | 6.4.5 |
Sentry Crash Report: |
Description
Alex
2025-08-05 06:01:06 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/libksysguard/-/merge_requests/433 Git commit 53753cf29ffcbfb56ecbcabf361af23b469609e6 by Arjen Hiemstra. Committed on 09/08/2025 at 11:03. Pushed by ahiemstra into branch 'master'. processcore: Explicitly stop capturing packets on network helper terminate In some cases, we may end up in a situation where we're terminating with low or no network traffic. In such a case, we would block indefinitely since there was no mechanism to notify `Capture::nextPacket()` that we want to terminate. This changes things so that we explicitly call `stop()` when the main thread quits, which closes the pcap source and signals the wait condition in Capture that we should no longer wait. M +28 -8 processcore/plugins/network/helper/Capture.cpp M +2 -0 processcore/plugins/network/helper/Capture.h M +2 -0 processcore/plugins/network/helper/main.cpp https://invent.kde.org/plasma/libksysguard/-/commit/53753cf29ffcbfb56ecbcabf361af23b469609e6 Git commit f534a5b9d5f2beced22f747b72ca110e5917b117 by Arjen Hiemstra. Committed on 11/08/2025 at 08:24. Pushed by ahiemstra into branch 'Plasma/6.4'. processcore: Explicitly stop capturing packets on network helper terminate In some cases, we may end up in a situation where we're terminating with low or no network traffic. In such a case, we would block indefinitely since there was no mechanism to notify `Capture::nextPacket()` that we want to terminate. This changes things so that we explicitly call `stop()` when the main thread quits, which closes the pcap source and signals the wait condition in Capture that we should no longer wait. (cherry picked from commit 53753cf29ffcbfb56ecbcabf361af23b469609e6) Co-authored-by: Arjen Hiemstra <ahiemstra@heimr.nl> M +28 -8 processcore/plugins/network/helper/Capture.cpp M +2 -0 processcore/plugins/network/helper/Capture.h M +2 -0 processcore/plugins/network/helper/main.cpp https://invent.kde.org/plasma/libksysguard/-/commit/f534a5b9d5f2beced22f747b72ca110e5917b117 |