WhiteMagic / JoystickGremlin

A tool for configuring and managing joystick devices.
http://whitemagic.github.io/JoystickGremlin/
GNU General Public License v3.0
313 stars 45 forks source link

Uncaught Exception: With specific device #482

Open Oinosseus opened 1 year ago

Oinosseus commented 1 year ago

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.

WhiteMagic commented 1 year ago

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.

Oinosseus commented 1 year ago

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?

akors commented 2 weeks ago

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.