gawindx / WinNUT-Client

This is a NUT windows client for monitoring your ups hooked up to your favorite linux server.
GNU General Public License v3.0
395 stars 70 forks source link

Error when shutting down #77

Open ghost opened 3 years ago

ghost commented 3 years ago

When the app want's to shutdown an exception is raised and the computer does not shut down:

WinNUT Bug Report Os Version : 6.2.9200.0 WinNUT Version : 2.1.7740.35837

WinNUT Parameters : { "Delay": 5000, "AutoReconnect": true, "MinInputVoltage": 210, "MaxInputVoltage": 240, "FrequencySupply": 0, "MinInputFrequency": 45, "MaxInputFrequency": 55, "MinOutputVoltage": 210, "MaxOutputVoltage": 240, "MinUPSLoad": 0, "MaxUPSLoad": 100, "MinBattVoltage": 10, "MaxBattVoltage": 14, "MinimizeToTray": true, "MinimizeOnStart": true, "CloseToTray": true, "StartWithWindows": true, "UseLogFile": true, "Log Level": 3, "ShutdownLimitBatteryCharge": 30, "ShutdownLimitUPSRemainTime": 120, "ImmediateStopAction": true, "Follow_FSD": true, "TypeOfStop": 2, "DelayToShutdown": 15, "AllowExtendedShutdownDelay": false, "ExtendedShutdownDelay": 15, "VerifyUpdate": true, "VerifyUpdateAtStart": true, "DelayBetweenEachVerification": 0, "StableOrDevBranch": 0, "LastDateVerification": "" }

Error Message : Exception type: System.ArgumentException Exception message: TimeSpan does not accept floating point Not-a-Number values. Exception stack trace: at System.TimeSpan.Interval(Double value, Int32 scale) at WinNUT_Client.WinNUT.Update_UPS_Data() at WinNUT_Client.WinNUT.Retrieve_UPS_Datas(Object sender, EventArgs e) at System.Windows.Forms.Timer.OnTick(EventArgs e) at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Last Events : 24-3-2021 11:49:25 Pid: 1376 UPS_Device : Enter GetUPSVar 24-3-2021 11:49:25 Pid: 1376 UPS_Device : Process Result With ups.load : VAR ups ups.load "32" 24-3-2021 11:49:25 Pid: 1376 UPS_Device : Enter GetUPSVar 24-3-2021 11:49:25 Pid: 1376 UPS_Device : Process Result With ups.status : VAR ups ups.status "FSD OL" 24-3-2021 11:49:25 Pid: 1376 UPS_Device : Enter GetUPSVar 24-3-2021 11:49:25 Pid: 1376 UPS_Device : Apply Fallback Value when retrieving ups.realpower.nominal 24-3-2021 11:49:25 Pid: 1376 UPS_Device : Enter GetUPSVar 24-3-2021 11:49:25 Pid: 1376 UPS_Device : Apply Fallback Value when retrieving ups.power.nominal 24-3-2021 11:49:25 Pid: 1376 UPS_Device : Enter GetUPSVar 24-3-2021 11:49:25 Pid: 1376 UPS_Device : Apply Fallback Value when retrieving ups.current.nominal 24-3-2021 11:49:25 Pid: 1376 UPS_Device : Stop condition imposed by the NUT server 24-3-2021 11:49:25 Pid: 1376 String : New Log to CB_Current Log : Stop condition imposed by the NUT server 24-3-2021 11:49:25 Pid: 1376 UPS_Device : UPS is On Line 24-3-2021 11:49:30 Pid: 1376 UPS_Device : Enter Retrieve_UPS_Datas 24-3-2021 11:49:30 Pid: 1376 UPS_Device : Enter Retrieve_UPS_Data 24-3-2021 11:49:30 Pid: 1376 UPS_Device : Enter GetUPSVar 24-3-2021 11:49:30 Pid: 1376 UPS_Device : Apply Fallback Value when retrieving ups.mfr 24-3-2021 11:49:30 Pid: 1376 UPS_Device : Enter GetUPSVar 24-3-2021 11:49:30 Pid: 1376 UPS_Device : Apply Fallback Value when retrieving ups.model 24-3-2021 11:49:30 Pid: 1376 UPS_Device : Enter GetUPSVar 24-3-2021 11:49:30 Pid: 1376 UPS_Device : Apply Fallback Value when retrieving ups.serial 24-3-2021 11:49:30 Pid: 1376 UPS_Device : Enter GetUPSVar 24-3-2021 11:49:30 Pid: 1376 UPS_Device : Apply Fallback Value when retrieving ups.firmware 24-3-2021 11:49:30 Pid: 1376 UPS_Device : Enter GetUPSVar 24-3-2021 11:49:30 Pid: 1376 UPS_Device : Apply Fallback Value when retrieving battery.charge 24-3-2021 11:49:30 Pid: 1376 UPS_Device : Enter GetUPSVar 24-3-2021 11:49:30 Pid: 1376 UPS_Device : Process Result With battery.voltage : VAR ups battery.voltage "11.50" 24-3-2021 11:49:30 Pid: 1376 UPS_Device : Enter GetUPSVar 24-3-2021 11:49:30 Pid: 1376 UPS_Device : Apply Fallback Value when retrieving battery.runtime 24-3-2021 11:49:30 Pid: 1376 UPS_Device : Enter GetUPSVar 24-3-2021 11:49:30 Pid: 1376 UPS_Device : Apply Fallback Value when retrieving output.frequency 24-3-2021 11:49:30 Pid: 1376 UPS_Device : Enter GetUPSVar 24-3-2021 11:49:30 Pid: 1376 UPS_Device : Process Result With input.frequency : VAR ups input.frequency "0.0" 24-3-2021 11:49:30 Pid: 1376 UPS_Device : Enter GetUPSVar 24-3-2021 11:49:30 Pid: 1376 UPS_Device : Process Result With input.voltage : VAR ups input.voltage "8.2" 24-3-2021 11:49:30 Pid: 1376 UPS_Device : Enter GetUPSVar 24-3-2021 11:49:30 Pid: 1376 UPS_Device : Process Result With output.voltage : VAR ups output.voltage "231.0" 24-3-2021 11:49:30 Pid: 1376 UPS_Device : Enter GetUPSVar 24-3-2021 11:49:30 Pid: 1376 UPS_Device : Process Result With ups.load : VAR ups ups.load "32" 24-3-2021 11:49:30 Pid: 1376 UPS_Device : Enter GetUPSVar 24-3-2021 11:49:30 Pid: 1376 UPS_Device : Process Result With ups.status : VAR ups ups.status "FSD OL" 24-3-2021 11:49:30 Pid: 1376 UPS_Device : Enter GetUPSVar 24-3-2021 11:49:30 Pid: 1376 UPS_Device : Apply Fallback Value when retrieving ups.realpower.nominal 24-3-2021 11:49:30 Pid: 1376 UPS_Device : Enter GetUPSVar 24-3-2021 11:49:30 Pid: 1376 UPS_Device : Apply Fallback Value when retrieving ups.power.nominal 24-3-2021 11:49:30 Pid: 1376 UPS_Device : Enter GetUPSVar 24-3-2021 11:49:30 Pid: 1376 UPS_Device : Apply Fallback Value when retrieving ups.current.nominal 24-3-2021 11:49:30 Pid: 1376 UPS_Device : Stop condition imposed by the NUT server 24-3-2021 11:49:30 Pid: 1376 String : New Log to CB_Current Log : Stop condition imposed by the NUT server 24-3-2021 11:49:30 Pid: 1376 UPS_Device : UPS is On Line