EvanMulawski / FanControl.CorsairLink

The unofficial CorsairLink plugin for Fan Control. Adds support for Corsair controllers, liquid coolers, and power supplies. An alternative to iCUE.
143 stars 10 forks source link

System.TimeoutException Error #112

Closed ewilliams8 closed 10 months ago

ewilliams8 commented 11 months ago

Hi,

Are you able to help with this error?

_2023-10-14T11:58:08.0167339Z [ERR] CORSAIR iCUE Commander CORE (d30c10905ecb3abaf8ae36f55091005f): An error occurred refreshing device 'CORSAIR iCUE Commander CORE (d30c10905ecb3abaf8ae36f55091005f)' (\?\hid#vid_1b1c&pid_0c1c&mi_00#9&2d2dbcd9&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030})

Type: System.TimeoutException Message: Operation timed out. Source: HidSharp Stack Trace: at HidSharp.Platform.Windows.NativeMethods.OverlappedOperation(IntPtr ioHandle, IntPtr eventHandle, Int32 eventTimeout, IntPtr closeEventHandle, Boolean overlapResult, NativeOverlapped* overlapped, UInt32& bytesTransferred) at HidSharp.Platform.Windows.WinHidStream.Read(Byte[] buffer, Int32 offset, Int32 count) at CorsairLink.Devices.CommanderCoreDevice.SendCommand(ReadOnlySpan1 command, ReadOnlySpan1 data, ReadOnlySpan1 waitForDataType) at CorsairLink.Devices.CommanderCoreDevice.ReadFromEndpoint(ReadOnlySpan1 endpoint, ReadOnlySpan`1 dataType) at CorsairLink.Devices.CommanderCoreDevice.RefreshImpl(Boolean initialize) at FanControl.CorsairLink.CorsairLinkPlugin.Refresh()_

CorsairLink.log

EvanMulawski commented 11 months ago

This looks like a similar issue to #107, specifically an issue with the USB controller the device is connected to. Ensure your BIOS is up-to-date and try using a different USB header on your motherboard.

ewilliams8 commented 11 months ago

Thanks for the suggestion, I'll try a different header.

I believe my BIOS is up to date but will check that too.

ewilliams8 commented 11 months ago

Sadly updating BIOS and changing to a new header hasn't helped and I'm still getting the error.

EvanMulawski commented 11 months ago

Does the device work with SignalRGB or the attached build of OpenRGB?

OpenRGB_Windows_64_6c8da3a0.zip

ewilliams8 commented 11 months ago

Yep, I can control it with that version of OpenRGB.

EvanMulawski commented 11 months ago

@ewilliams8 Please try the attached build and post the CorsairLink.log file after testing.

FanControl.CorsairLink-Issue112-v20231015r001.zip

ewilliams8 commented 11 months ago

Thanks for you help with this.

Latest log here - New build installed this morning (17-10-23):

CorsairLink.2.log

EvanMulawski commented 11 months ago

@ewilliams8 It looks like it functions correctly for 9 minutes and then the errors start. Is that correct?

ewilliams8 commented 11 months ago

It looks like about 14 minutes yesterday, but was only 2 mins this morning:

2023-10-18T09:15:42.4372578Z [INF] Plugin: Version: 1.4.1 2023-10-18T09:15:42.5063172Z [INF] HID Device Manager: Found 2 Corsair HID device(s) name=CORSAIR iCUE Commander CORE, devicePath=\?\hid#vid_1b1c&pid_0c1c&mi_00#9&2d2dbcd9&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030} name=CORSAIR iCUE Commander CORE, devicePath=\?\hid#vid_1b1c&pid_0c1c&mi_01#9&156a3094&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}

2023-10-18T09:15:42.5243328Z [INF] HID Device Manager: Found 1 supported Corsair HID device(s) name=CORSAIR iCUE Commander CORE, devicePath=\?\hid#vid_1b1c&pid_0c1c&mi_00#9&2d2dbcd9&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}

2023-10-18T09:15:42.5378442Z [WRN] Device Enumeration: Failed to enumerate SiUsbXpress devices. This can be ignored if no devices require this driver. 2023-10-18T09:15:42.7605459Z [INF] Device Initialization: \?\hid#vid_1b1c&pid_0c1c&mi_00#9&2d2dbcd9&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030} 2023-10-18T09:15:42.7650497Z [INF] CORSAIR iCUE Commander CORE (d30c10905ecb3abaf8ae36f55091005f): Firmware Version: 2.11.221 2023-10-18T09:15:42.7655501Z [INF] CORSAIR iCUE Commander CORE (d30c10905ecb3abaf8ae36f55091005f): Sensor: CorsairLink/\?\hid#vid_1b1c&pid_0c1c&mi_00#9&2d2dbcd9&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}/SpeedSensor/0 2023-10-18T09:15:42.7655501Z [INF] CORSAIR iCUE Commander CORE (d30c10905ecb3abaf8ae36f55091005f): Sensor: CorsairLink/\?\hid#vid_1b1c&pid_0c1c&mi_00#9&2d2dbcd9&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}/SpeedSensor/1 2023-10-18T09:15:42.7655501Z [INF] CORSAIR iCUE Commander CORE (d30c10905ecb3abaf8ae36f55091005f): Sensor: CorsairLink/\?\hid#vid_1b1c&pid_0c1c&mi_00#9&2d2dbcd9&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}/SpeedSensor/2 2023-10-18T09:15:42.7655501Z [INF] CORSAIR iCUE Commander CORE (d30c10905ecb3abaf8ae36f55091005f): Sensor: CorsairLink/\?\hid#vid_1b1c&pid_0c1c&mi_00#9&2d2dbcd9&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}/SpeedSensor/3 2023-10-18T09:15:42.7655501Z [INF] CORSAIR iCUE Commander CORE (d30c10905ecb3abaf8ae36f55091005f): Sensor: CorsairLink/\?\hid#vid_1b1c&pid_0c1c&mi_00#9&2d2dbcd9&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}/SpeedSensor/4 2023-10-18T09:15:42.7655501Z [INF] CORSAIR iCUE Commander CORE (d30c10905ecb3abaf8ae36f55091005f): Sensor: CorsairLink/\?\hid#vid_1b1c&pid_0c1c&mi_00#9&2d2dbcd9&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}/SpeedSensor/5 2023-10-18T09:15:42.7655501Z [INF] CORSAIR iCUE Commander CORE (d30c10905ecb3abaf8ae36f55091005f): Sensor: CorsairLink/\?\hid#vid_1b1c&pid_0c1c&mi_00#9&2d2dbcd9&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}/SpeedSensor/6 2023-10-18T09:15:42.7665510Z [INF] CORSAIR iCUE Commander CORE (d30c10905ecb3abaf8ae36f55091005f): Sensor: CorsairLink/\?\hid#vid_1b1c&pid_0c1c&mi_00#9&2d2dbcd9&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}/TemperatureSensor/0 2023-10-18T09:15:42.7665510Z [INF] CORSAIR iCUE Commander CORE (d30c10905ecb3abaf8ae36f55091005f): Sensor: CorsairLink/\?\hid#vid_1b1c&pid_0c1c&mi_00#9&2d2dbcd9&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}/TemperatureSensor/1 2023-10-18T09:15:42.7670517Z [INF] CORSAIR iCUE Commander CORE (d30c10905ecb3abaf8ae36f55091005f): Controller: CorsairLink/\?\hid#vid_1b1c&pid_0c1c&mi_00#9&2d2dbcd9&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}/SpeedController/0 2023-10-18T09:15:42.7670517Z [INF] CORSAIR iCUE Commander CORE (d30c10905ecb3abaf8ae36f55091005f): Controller: CorsairLink/\?\hid#vid_1b1c&pid_0c1c&mi_00#9&2d2dbcd9&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}/SpeedController/1 2023-10-18T09:15:42.7670517Z [INF] CORSAIR iCUE Commander CORE (d30c10905ecb3abaf8ae36f55091005f): Controller: CorsairLink/\?\hid#vid_1b1c&pid_0c1c&mi_00#9&2d2dbcd9&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}/SpeedController/2 2023-10-18T09:15:42.7670517Z [INF] CORSAIR iCUE Commander CORE (d30c10905ecb3abaf8ae36f55091005f): Controller: CorsairLink/\?\hid#vid_1b1c&pid_0c1c&mi_00#9&2d2dbcd9&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}/SpeedController/3 2023-10-18T09:15:42.7670517Z [INF] CORSAIR iCUE Commander CORE (d30c10905ecb3abaf8ae36f55091005f): Controller: CorsairLink/\?\hid#vid_1b1c&pid_0c1c&mi_00#9&2d2dbcd9&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}/SpeedController/4 2023-10-18T09:15:42.7670517Z [INF] CORSAIR iCUE Commander CORE (d30c10905ecb3abaf8ae36f55091005f): Controller: CorsairLink/\?\hid#vid_1b1c&pid_0c1c&mi_00#9&2d2dbcd9&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}/SpeedController/5 2023-10-18T09:15:42.7670517Z [INF] CORSAIR iCUE Commander CORE (d30c10905ecb3abaf8ae36f55091005f): Controller: CorsairLink/\?\hid#vid_1b1c&pid_0c1c&mi_00#9&2d2dbcd9&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}/SpeedController/6 2023-10-18T09:17:20.5075885Z [ERR] CORSAIR iCUE Commander CORE (d30c10905ecb3abaf8ae36f55091005f): An error occurred refreshing device 'CORSAIR iCUE Commander CORE (d30c10905ecb3abaf8ae36f55091005f)' (\?\hid#vid_1b1c&pid_0c1c&mi_00#9&2d2dbcd9&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030})

CorsairLink.3.log

EvanMulawski commented 11 months ago

Not sure what the issue is. Since I've only received one report of this occurring, I'm inclined to believe it's an issue specific to your system. Any other software running that might be communicating with the device?

ewilliams8 commented 11 months ago

I agree, I’m thinking of replacing the AIO

The only other software which potentially conflicts is OpenRGB.

EvanMulawski commented 10 months ago

@ewilliams8 Please try v1.4.2 and the build of OpenRGB linked in https://github.com/EvanMulawski/FanControl.CorsairLink/issues/101#issuecomment-1806536056

ewilliams8 commented 10 months ago

Thank you for this.

Unfortunately, I've replaced my AIO with an NZXT cooler, so I won't be able to test this right now. I still have the Corsair AIO, so may be able to test on another rig in the future.

jflevesque commented 10 months ago

Sorry for reopening this issue, but I've been having the same issue as of today (that I noticed anyway). This is a brand new system that I've put up on Saturday, installed the plugin in FanControl yesterday and noticed the issue this morning when waking the computer. I've tried rebooting the computer, thinking something didn't happen properly when waking, but still getting the error continuously. These are the logs when FanControl boots:

2023-12-04T14:36:41.2835824Z [INF] Plugin: Version: 1.4.3
2023-12-04T14:36:41.3354996Z [INF] HID Device Manager: Found 5 Corsair HID device(s)
  name=Hid Interface, devicePath=\\?\hid#vid_1b1c&pid_0a51&mi_03&col01#b&1b0a5998&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
  name=Hid Interface, devicePath=\\?\hid#vid_1b1c&pid_0a51&mi_03&col02#b&1b0a5998&0&0001#{4d1e55b2-f16f-11cf-88cb-001111000030}
  name=Hid Interface, devicePath=\\?\hid#vid_1b1c&pid_0a51&mi_03&col03#b&1b0a5998&0&0002#{4d1e55b2-f16f-11cf-88cb-001111000030}
  name=H150iELITE, devicePath=\\?\hid#vid_1b1c&pid_0c37#9&33b5a7ad&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
  name=CORSAIR Lighting Node CORE, devicePath=\\?\hid#vid_1b1c&pid_0c1a#9&1353aae7&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}

2023-12-04T14:36:41.3490256Z [INF] HID Device Manager: Found 1 supported Corsair HID device(s)
  name=H150iELITE, devicePath=\\?\hid#vid_1b1c&pid_0c37#9&33b5a7ad&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}

2023-12-04T14:36:41.3555413Z [WRN] Device Enumeration: Failed to enumerate SiUsbXpress devices. This can be ignored if no devices require this driver.
2023-12-04T14:36:41.3605414Z [INF] Device Initialization: \\?\hid#vid_1b1c&pid_0c37#9&33b5a7ad&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
2023-12-04T14:36:42.6915662Z [ERR] H150iELITE (DB24A21026AA8DD876BFC87183CD0E00): An error occurred refreshing device 'H150iELITE (DB24A21026AA8DD876BFC87183CD0E00)' (\\?\hid#vid_1b1c&pid_0c37#9&33b5a7ad&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030})

Type: CorsairLink.CorsairLinkDeviceException
Message: Communication failure.
Source: FanControl.CorsairLink
Stack Trace:
   at CorsairLink.Devices.HydroPlatinumDevice.SendCommand(Byte command, ReadOnlySpan`1 data)
   at CorsairLink.Devices.HydroPlatinumDevice.ReadState()
   at CorsairLink.Devices.HydroPlatinumDevice.Refresh()
   at FanControl.CorsairLink.CorsairLinkPlugin.Refresh()
Data:
    writeBuffer: 003F10FF00FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF04
    readBuffer: 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
Inner Exception:
    Type: System.ObjectDisposedException
    Message: Closed.
    Source: HidSharp
    Stack Trace:
   at HidSharp.Platform.Windows.NativeMethods.OverlappedOperation(IntPtr ioHandle, IntPtr eventHandle, Int32 eventTimeout, IntPtr closeEventHandle, Boolean overlapResult, NativeOverlapped* overlapped, UInt32& bytesTransferred)
   at HidSharp.Platform.Windows.WinHidStream.Read(Byte[] buffer, Int32 offset, Int32 count)
   at CorsairLink.Devices.HydroPlatinumDevice.WriteAndRead(Byte[] writeBuffer, Byte[] readBuffer)
   at CorsairLink.Devices.HydroPlatinumDevice.SendCommand(Byte command, ReadOnlySpan`1 data)

Is there anything I can do to help troubleshoot this issue?

jflevesque commented 10 months ago

I just did some troubleshooting and maybe this could help. By default, I have iCue disabled on startup, same for the Corsair Service, since this causes issue with Fan Control. I've manually restart the Corsair Service, started iCue, waited until all devices were discovered, shutdown iCue, stop the Corsair Service, relaunch FanControl and my sensors were once again being discovered.

EvanMulawski commented 10 months ago

@jflevesque Moved to #127