JoystickGremlin
JoystickGremlin copied to clipboard
Uncaught Exception: With specific device
Hello, I got a similar error message like in #308 . But I decided to create a new ticket, because my issue is device related. When I connect a certain device, then JG does fail to start. When I disconnect the device, JG does start normal. This issue is 100% reproducible.
The device is a Ascher Racing steering wheel (B16M-USB). Maybe it has a µBBI interface from Leo Bodnar inside.
I would assume that it is the "µ" character that causes the problem, which is what #301 is referring to. If you can rename the device, that should work around the problem.
I found a working procedure on StackOverflow
It worked to change the registry key value at HKEY_CURRENT_USER\System\CurrentControlSet\Control\MediaProperties\PrivateProperties\Joystick\OEM\*\OEMName
@WhiteMagic: Thank you for this great software. Can I donate you a beer somehow?
Same error as #455 and it can be fixed like this:
https://github.com/WhiteMagic/JoystickGremlin/blob/54cf26ac7b3b8f3d4c3807e5af3f7ebb36be9125/dill/init.py#L357
- self.name = data.name.decode("utf-8")
+ self.name = data.name.decode("utf-8", errors="ignore")
Thanks for @Oinosseus for the workaround, that works too without the need to rebuild Joystick Gremlin.