LAB02-Research / HASS.Agent

Windows-based client for Home Assistant. Provides notifications, quick actions, commands, sensors and more.
https://hassagent.lab02-research.org
MIT License
1.47k stars 65 forks source link

Bug: HASS Agent crashing when try add GPU Load or Temperature sensors #388

Open BenjyP1235 opened 5 months ago

BenjyP1235 commented 5 months ago

Describe the bug My HASS Agent crashes whenever I try to add either the GPU Load or GPU Temperature sensors, weirdly it is fine with the CPU Load & Clock sensors so I assume it has something to do with GPU drivers, I have an AMD RX 7900 XTX.

To Reproduce Steps to reproduce the behaviour: Click add sensor and select either GPU sensor then when hit "Store & Activate Sensors"

Expected behavior The sensor to be added and the agent to remain open

Misc info (please complete the following information):

Please check what's applicable (multiple answers possible):

Logs Nothing in logs, just quits as if the process were killed and then starts normally on the next boot.

naxey commented 5 months ago

This is a duplicate of my problem #386 For reference, I'm using an RX480

BenjyP1235 commented 5 months ago

This is a duplicate of my problem #386 For reference, I'm using an RX480

Just saw your issue update specifying which sensors made it crash, mine works fine with lastactive and lastboot or any combination discluding the GPU monitoring, assuming its AMD driver conflicts then.

mrmees commented 5 months ago

Having the same problem as you. 6800XT can't add GPU load or temperature without crashing the app. Nothing shown in HASS agent logs, but the following are in the Event Viewer:

Application: HASS.Agent.exe CoreCLR Version: 6.0.2623.60508 .NET Version: 6.0.26 Description: The process was terminated due to an internal error in the .NET Runtime at IP 00007FFFD6CF3C89 (00007FFFD6B20000) with exit code c0000005.

Faulting application name: HASS.Agent.exe, version: 2022.14.0.0, time stamp: 0x63558578 Faulting module name: coreclr.dll, version: 6.0.2623.60508, time stamp: 0x656f6ab2 Exception code: 0xc0000005 Fault offset: 0x00000000001d3c89 Faulting process id: 0x1f24 Faulting application start time: 0x01da56ac2b7ad6b0 Faulting application path: C:\Users\matth\AppData\Roaming\LAB02 Research\HASS.Agent\HASS.Agent.exe Faulting module path: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.26\coreclr.dll Report Id: 266d03dc-afcd-46f2-9df4-73b02a63a2c9 Faulting package full name: Faulting package-relative application ID:

Both OpenHardwareManager and Libre are able to display the information without issue.

Maxklos commented 4 months ago

Got the same problems with Windows 10 Pro 22H2 , same agent version. for me it was just GPU-Temp & Load. I have a AMD R9 480

Frusciantism commented 4 months ago

same problem, with windows 11 and nvidia gtx 1080

stnokott commented 4 months ago

Same issue on my end.

Nothing in the logs, even with extended logging activated.

Expand for Event Viewer details ```xml 1000 0 2 100 0 0x8000000000000000 921 Application REDACTED HASS.Agent.exe 2022.14.0.0 63558578 coreclr.dll 6.0.322.12309 6216cac2 c0000005 00000000001cd70f 0x36c0 0x1da63101e4f8e34 C:\Users\REDACTED\AppData\Roaming\LAB02 Research\HASS.Agent\HASS.Agent.exe C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.3\coreclr.dll 9e551b18-4f77-4983-b0d4-f30b42d539b3 ```
aalencia commented 4 months ago

I can confirm this is still an issue as well.

JLSBeth commented 3 months ago

This is also happening to me with both GPU sensors.

info-path commented 1 week ago

Confirm that adding the GPU Load sensor will cause the application to crash (RTX 4080)

benj0145 commented 1 week ago

Likewise in Windows 11 and using a RX 6800. Tried GPU Load and Temp