https://bugs.kde.org/show_bug.cgi?id=493093

            Bug ID: 493093
           Summary: cpu plugin causes hang/crash when starting
                    plasma-ksystemstats daemon
    Classification: Frameworks and Libraries
           Product: ksystemstats
           Version: unspecified
          Platform: Compiled Sources
                OS: Linux
            Status: REPORTED
          Severity: crash
          Priority: NOR
         Component: General
          Assignee: plasma-b...@kde.org
          Reporter: jhanm...@ca.rr.com
                CC: ahiems...@heimr.nl
  Target Milestone: ---

SUMMARY

The ksystemstats daemon will not start on my Rock-5b system. It is running the
Armbian vendor kernel version 6.1.75. The very latest version. I am running Qt
6.7.2 with the latest build of the Plasma 6 tips.

By process of elimination I determined that if I prevent loading of the cpu
plugin (by renaming it to .no instead of .so) the daemon will load and operate
correctly albeit without cpu stats present. There is no output message in
either the systemd journal or the system log (dmesg) so I can't currently offer
more information on what may be going wrong. I'm going to try to look at the
plugin code to see if I can spot anything.

Of course if I can provide any more information you need only request it.

STEPS TO REPRODUCE
1. Build ksystemstats
2. Try to start with systemctl --user start plasma-ksystemstats
3. Timeout after a few minutes but no messages other than the timeout
indication.

OBSERVED RESULT

× plasma-ksystemstats.service - Track hardware statistics
     Loaded: loaded (/usr/lib/systemd/user/plasma-ksystemstats.service; static)
     Active: failed (Result: timeout) since Fri 2024-09-13 19:39:10 PDT; 24s
ago
    Process: 203993 ExecStart=/usr/bin/ksystemstats (code=killed, signal=TERM)
   Main PID: 203993 (code=killed, signal=TERM)
        CPU: 1min 29.889s

Sep 13 19:37:40 rock-5b-3 systemd[2189]: Starting plasma-ksystemstats.service -
Track hardware statistics...
Sep 13 19:37:40 rock-5b-3 ksystemstats[203993]: Loaded plugin
"ksystemstats_plugin_osinfo" from file
"/usr/lib/aarch64-linux-gnu/qt6/plugins/ksystemstats/ksystemstats_plugin_osin>
Sep 13 19:37:40 rock-5b-3 ksystemstats[203993]: Loaded plugin
"ksystemstats_plugin_network" from file
"/usr/lib/aarch64-linux-gnu/qt6/plugins/ksystemstats/ksystemstats_plugin_net>
Sep 13 19:37:40 rock-5b-3 ksystemstats[203993]: Loaded plugin
"ksystemstats_plugin_power" from file
"/usr/lib/aarch64-linux-gnu/qt6/plugins/ksystemstats/ksystemstats_plugin_power>
Sep 13 19:37:40 rock-5b-3 ksystemstats[203993]: Loaded plugin
"ksystemstats_plugin_disk" from file
"/usr/lib/aarch64-linux-gnu/qt6/plugins/ksystemstats/ksystemstats_plugin_disk.s>
Sep 13 19:39:10 rock-5b-3 systemd[2189]: plasma-ksystemstats.service: start
operation timed out. Terminating.
Sep 13 19:39:10 rock-5b-3 systemd[2189]: plasma-ksystemstats.service: Failed
with result 'timeout'.
Sep 13 19:39:10 rock-5b-3 systemd[2189]: Failed to start
plasma-ksystemstats.service - Track hardware statistics.

EXPECTED RESULT

● plasma-ksystemstats.service - Track hardware statistics
     Loaded: loaded (/usr/lib/systemd/user/plasma-ksystemstats.service; static)
     Active: active (running) since Fri 2024-09-13 20:01:15 PDT; 28min ago
   Main PID: 205716 (ksystemstats)
      Tasks: 2 (limit: 18826)
     Memory: 5.8M (peak: 6.6M)
        CPU: 4.578s
     CGroup:
/user.slice/user-1000.slice/user@1000.service/background.slice/plasma-ksystemstats.service
             └─205716 /usr/bin/ksystemstats

Sep 13 20:01:15 rock-5b-3 ksystemstats[205716]: Loaded plugin
"ksystemstats_plugin_memory" from file
"/usr/lib/aarch64-linux-gnu/qt6/plugins/ksystemstats/ksystemstats_plugin_memo>
Sep 13 20:01:15 rock-5b-3 ksystemstats[205716]: Loaded plugin
"ksystemstats_plugin_disk" from file
"/usr/lib/aarch64-linux-gnu/qt6/plugins/ksystemstats/ksystemstats_plugin_disk.s>
Sep 13 20:01:15 rock-5b-3 ksystemstats[205716]: Loaded plugin
"ksystemstats_plugin_lmsensors" from file
"/usr/lib/aarch64-linux-gnu/qt6/plugins/ksystemstats/ksystemstats_plugin_l>
Sep 13 20:01:15 rock-5b-3 ksystemstats[205716]: Found unsupported GPU:
/sys/devices/platform/display-subsystem/drm/card0
Sep 13 20:01:15 rock-5b-3 ksystemstats[205716]: Found unsupported GPU:
/sys/devices/platform/fb000000.gpu-panthor/drm/card2
Sep 13 20:01:15 rock-5b-3 ksystemstats[205716]: Found unsupported GPU:
/sys/devices/platform/fdab0000.npu/drm/card1
Sep 13 20:01:15 rock-5b-3 ksystemstats[205716]: Loaded plugin
"ksystemstats_plugin_gpu" from file
"/usr/lib/aarch64-linux-gnu/qt6/plugins/ksystemstats/ksystemstats_plugin_gpu.so"
Sep 13 20:01:15 rock-5b-3 ksystemstats[205716]: Loaded plugin
"ksystemstats_plugin_power" from file
"/usr/lib/aarch64-linux-gnu/qt6/plugins/ksystemstats/ksystemstats_plugin_power>
Sep 13 20:01:15 rock-5b-3 ksystemstats[205716]: Loaded plugin
"ksystemstats_plugin_pressure" from file
"/usr/lib/aarch64-linux-gnu/qt6/plugins/ksystemstats/ksystemstats_plugin_pr>
Sep 13 20:01:15 rock-5b-3 systemd[2189]: Started plasma-ksystemstats.service -
Track hardware statistics.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma:  Kernel 6.1.75
KDE Plasma Version:  6.2 Beta
KDE Frameworks Version:  6.7.0
Qt Version: 6.7.2

ADDITIONAL INFORMATION

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to