Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't connect when Corsair K95 RGB Platinum is enabled #57

Closed
diademiemi opened this issue Mar 19, 2022 · 3 comments
Closed

Can't connect when Corsair K95 RGB Platinum is enabled #57

diademiemi opened this issue Mar 19, 2022 · 3 comments

Comments

@diademiemi
Copy link

I'm using this to test connection:

from openrgb import OpenRGBClient

cli = OpenRGBClient('192.168.100.1', 6742, 'Client')

This works fine most of the time, and interacting with the client works too.
However when I connect my Corsair K95 RGB Platinum keyboard I get the following error:

Traceback (most recent call last):
  File "/home/diademiemi/Downloads/test.py", line 7, in <module>
    cli = OpenRGBClient('192.168.100.1', 6742, 'Client')
  File "/home/diademiemi/.local/lib/python3.10/site-packages/openrgb/orgb.py", line 337, in __init__
    self.update()
  File "/home/diademiemi/.local/lib/python3.10/site-packages/openrgb/orgb.py", line 502, in update
    self.comms.requestDeviceNum()
  File "/home/diademiemi/.local/lib/python3.10/site-packages/openrgb/network.py", line 188, in requestDeviceNum
    self.read()
  File "/home/diademiemi/.local/lib/python3.10/site-packages/openrgb/network.py", line 116, in read
    self.callback(device_id, packet_type, buff[0])
  File "/home/diademiemi/.local/lib/python3.10/site-packages/openrgb/orgb.py", line 348, in _callback
    self.comms.requestDeviceData(x)
  File "/home/diademiemi/.local/lib/python3.10/site-packages/openrgb/network.py", line 181, in requestDeviceData
    self.read()
  File "/home/diademiemi/.local/lib/python3.10/site-packages/openrgb/network.py", line 137, in read
    self.callback(device_id, packet_type, utils.ControllerData.unpack(data, self._protocol_version))
  File "/home/diademiemi/.local/lib/python3.10/site-packages/openrgb/utils.py", line 557, in unpack
    leds = parse_list(LEDData, data, version)
  File "/home/diademiemi/.local/lib/python3.10/site-packages/openrgb/utils.py", line 143, in parse_list
    things.append(kind.unpack(data, version, x))  # type: ignore
  File "/home/diademiemi/.local/lib/python3.10/site-packages/openrgb/utils.py", line 223, in unpack
    name = parse_string(data)
  File "/home/diademiemi/.local/lib/python3.10/site-packages/openrgb/utils.py", line 118, in parse_string
    return parse_var(f'{length}s', data).decode().rstrip('\x00')
  File "/home/diademiemi/.local/lib/python3.10/site-packages/openrgb/utils.py", line 103, in parse_var
    d.append(int(next(data)))
StopIteration

When I disable the keyboard in the OpenRGB config, the script starts working again. But once I enable it and reload devices, the script stops working.
Does anyone know of a solution to this or is this a known bug? This is also affecting https://github.com/koying/openrgb_ha and makes Home Assistant error on connecting.

@jath03
Copy link
Owner

jath03 commented Jul 27, 2022

What version of OpenRGB are you using? Because if it's older than 0.7, this is probably another #33.

@diademiemi
Copy link
Author

Might have been 0.6. I don't use this keyboard anymore but I'll grab it when I have time to test out if it's resolved on 0.7

@jath03
Copy link
Owner

jath03 commented Nov 10, 2022

Stale

@jath03 jath03 closed this as not planned Won't fix, can't repro, duplicate, stale Nov 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants