JoystickGremlin icon indicating copy to clipboard operation
JoystickGremlin copied to clipboard

Uncaught Exception: With specific device

Open Oinosseus opened this issue 1 year ago • 5 comments

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.

JG1 JG2

The device is a Ascher Racing steering wheel (B16M-USB). Maybe it has a µBBI interface from Leo Bodnar inside.

Oinosseus avatar Mar 19 '23 21:03 Oinosseus

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.

WhiteMagic avatar Mar 20 '23 08:03 WhiteMagic

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?

Oinosseus avatar Mar 20 '23 17:03 Oinosseus

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.

akors avatar Aug 08 '24 11:08 akors