Skip to content

UI not responsive - Infinite error loop #2796

@ochompsky

Description

@ochompsky

This isn't so much a bug as much as enhancement I think. If there is an unexpected error like this, the error loops infinitely:

10/20/2024 7:14:23 PM: LogUnhandledException - System.Exception: Get fan RPM speed Error: CTL_RESULT_ERROR_DEVICE_LOST
at Extensions.ThrowIfError(ctl_result_t result, String context)
at FanControl.IntelCtlLibraryPlugin.DeviceFan.GetSpeedRpm() in C:\projects\fancontrol-intelctllibrary\DeviceFan.cs:line 50
at FanControl.IntelCtlLibraryPlugin.DeviceFanPluginSensor.Update() in C:\projects\fancontrol-intelctllibrary\DeviceFanPluginSensor.cs:line 24
at FanControl.Domain.BackendProviders.Plugin.PluginBackendProvider.Update()
at FanControl.Domain.ComputerAccessLayer.Update()
at FanControl.Domain.ApplicationClock.DoActions()
--- End of stack trace from previous location ---
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate

I realize this particular error is because of the unreliable arc plugin and is more a symptom instead of the root cause. I saw a related issue at #2105

But in general, is it possible to make the UI not become completely unstable and fill up the logs when this happens? The error just infinitely loops and you can't click or do anything.

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