Skip to content

[Critical Bug] FanControl crashes completely on Nvidia driver restart #3928

@gashtal

Description

@gashtal

Latest version of FanControl V260 crashes completely if Nvidia's driver is restarted. If a hardware or software issues causes the driver to hang, the driver can restart automatically as a recovery mechanism, which then crashes FanControl. This can turn into a very critical situation if the user is also controlling GPU fan speeds using FanControl, which will stop working after driver restart, and can result in GPU overheating if the driver hangs and restarts while playing a game.

Steps to reproduce:

Crash log in Event Viewer:

Application: FanControl.EXE
CoreCLR Version: 10.0.125.57005
.NET Version: 10.0.1
Description: The process was terminated due to an unhandled exception.
Stack:
   at LibreHardwareMonitor.Interop.NvidiaML.NvmlDeviceGetPowerUsage(NvmlDevice)
   at LibreHardwareMonitor.Hardware.Gpu.NvidiaGpu.Update()
   at LibreHardwareMonitor.Hardware.Hardware.Accept(LibreHardwareMonitor.Hardware.IVisitor)
   at FanControl.Domain.BackendProviders.LHM.LHMBackendProvider.Update()
   at FanControl.Domain.ComputerAccessLayer.Update()
   at FanControl.Domain.ApplicationClock.DoActions()
   at System.Timers.Timer.MyTimerCallback(System.Object)
   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
   at System.Threading.TimerQueue.FireNextTimers()
   at System.Threading.ThreadPoolWorkQueue.Dispatch()
   at System.Threading.PortableThreadPool+WorkerThread.WorkerThreadStart()
   at System.Threading.Thread.StartCallback()
Faulting application name: FanControl.EXE, version: 260.0.0.0, time stamp: 0x69760000
Faulting module name: coreclr.dll, version: 10.0.125.57005, time stamp: 0x691ddc6e
Exception code: 0xc0000005
Fault offset: 0x0000000000367c3a
Faulting process id: 0x309C
Faulting application start time: 0x1DCA7A5995BC968
Faulting application path: C:\Program Files (x86)\FanControl\FanControl.EXE
Faulting module path: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\10.0.1\coreclr.dll
Report Id: 7eb2a6e4-ceba-4b17-b354-3f87f2d46321
Faulting package full name: 
Faulting package-relative application ID: 

This crash is not recorded in FanControl's log.txt at all.

OS: Windows 11 25H2
GPU: Nvidia RTX 5090

P.S. I was previously using Nvidia's plugin and FanControl did not crash during driver restarts back then, but generated an error about the plugin, and stopped monitoring GPU temps. I am not sure if this crash started after I switched to the LHM plugin, or something has changed in FanControl itself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions