You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I noticed that the application crashed after turning off the controller. Sadly I have nothing more than the event viewer entry:
Application: XB1ControllerBatteryIndicator.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: SharpDX.SharpDXException
at SharpDX.Result.CheckError()
at SharpDX.XInput.Controller.GetBatteryInformation(SharpDX.XInput.BatteryDeviceType)
at XB1ControllerBatteryIndicator.SystemTrayViewModel.RefreshControllerState()
at System.Threading.ThreadHelper.ThreadStart_Context(System.Object)
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
at System.Threading.ThreadHelper.ThreadStart()
The text was updated successfully, but these errors were encountered:
Hey, is it constantly happening or did it only happen once?
Just tried it myself and it didn't crash when I turned my controller off, just returned to "no controller detected". So it could have been a rare edge case where it tried to read the battery state right as the controller disconnects.
It happened only once but I wanted to let you know. It could be like you said, that I turned off the controller right at the right moment. If needed, I can make you a pull request with just a try ... catch when you call GetBatteryInformation.
I don't think, looking at the code, that anything more could be done.
Hi, I noticed that the application crashed after turning off the controller. Sadly I have nothing more than the event viewer entry:
The text was updated successfully, but these errors were encountered: