question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error message every time my computer wakes up from sleep

See original GitHub issue

I get the error message “An unexpected error has occured and has been added to the log file.” every single time my system wakes up from sleep. I think it has always thrown this error, exept it did’t use to open the FanControl window and show the error message. Previously (a few versions ago) it would just show the error message the next time I opened the FanControl Window. But now it will maximise the window and show eh error message, see the attached screenshot.

image

This is what is logged in the lof file: 14/9/2022 18:31:11: Unhandled exception in FanControl v1.0.0.0 14/9/2022 18:31:11: System.Exception: HWInfo sensors were changed during operation at FanControl.HWInfo.HWInfoPlugin.Update() in C:\projects\fancontrol-hwinfo\HWInfoPlugin.cs:line 60 at FanControl.Domain.BackendProviders.Plugin.PluginBackendProvider.Update() at System.Collections.Generic.List1.ForEach(Action1 action) at FanControl.Domain.ComputerAccessLayer.Update() at FanControl.Domain.ApplicationClock.DoActions() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 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 catchHandler)

I’m using the HWiNFO plugin. After closing the error message all will work just fine, that is until the next time my computer goes to sleep and wakes up again. At that point, it will throw exactly the same error.

Please consider implementing some sort of “wake up from sleep” handling that will prevent this error situation.

Alternatively, a workaround could be to just throw the error in the log file, and NOT maximize the FanControl window and show an additional error message box.

A compromise could be the have a configurable option, either to show the error message as it’s currently doing or to silently log the error message instead.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:52 (38 by maintainers)

github_iconTop GitHub Comments

1reaction
ItsMeAubeycommented, Sep 24, 2022

I think we can call this done and close it! No errors for me.

1reaction
chjohanscommented, Sep 23, 2022

@Rem0o Perfect, makes this even more robust, thanks for all your effort with this!!!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error Waking from Sleep
The computer turns on from a hibernate file so nothing is lost, there is no memory error, ... Every time I wake the...
Read more >
How to Stop Your Windows PC From Randomly Waking Up ...
Head to Sleep > Allow Wake Timers and change both Battery and Plugged In to Disabled. You'll want to repeat this process for...
Read more >
Windows 10 My PC Keeps Waking up from Sleep on Its Own ...
There could be multiple reasons why your Windows computer turn itself on and wakes up from sleep, standby or even when its shutdown....
Read more >
Every time I put my Windows 10 computer on sleep then try ...
Right-click on it, choose Properties, and open the Power Management tab. Uncheck the Allow This Device to Wake the Computer option, and you...
Read more >
BSOD when waking up from sleep
Try right clicking the internet icon on taskbar and going to open network and sharing center. click on the change adapter settings on...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found