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

--- Comment #4 from Fabian Vogt <fab...@ritter-vogt.de> ---
FWICT, the issue is that m_temperatureProperty and the other members are never
initialized, so the check for nullptr in LinuxAmdGpu::makeSensors also fails.

Does it work with the following change?

diff --git a/plugins/gpu/GpuDevice.h b/plugins/gpu/GpuDevice.h
index 18ddedc..1450d9f 100644
--- a/plugins/gpu/GpuDevice.h
+++ b/plugins/gpu/GpuDevice.h
@@ -28,7 +28,7 @@ protected:
     KSysGuard::SensorProperty *m_usageProperty;
     KSysGuard::SensorProperty *m_totalVramProperty;
     KSysGuard::SensorProperty *m_usedVramProperty;
-    KSysGuard::SensorProperty *m_temperatureProperty;
+    KSysGuard::SensorProperty *m_temperatureProperty = nullptr;
     KSysGuard::SensorProperty *m_coreFrequencyProperty;
     KSysGuard::SensorProperty *m_memoryFrequencyProperty;
 };

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

Reply via email to