WhiteMagic / JoystickGremlin

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

Uncaught exception error in joystick handler when running Brunner CLS2Sim software and joystick connected #544

Open dukman83 opened 4 days ago

dukman83 commented 4 days ago

Dear @WhiteMagic,

I am hoping to get some advice on the issue I consistently get when running JG with Brunner's CLS2Sim software. Every time I run the two together, I get an Uncaught exception, causing JG to crash.

Please see the below Log Viewer excerpt showing three instances of JG that resulted in various exceptions associated with using the joystick. According to the log, they all appear to be related to the joystick event handler, but I haven't been able to determine what specific action triggers them. If I do I will post an update. In the meantime, it may be worth adding that this only seems to occur with the two software running AND the joystick connected. It may also be worth mentioning that I am not mapping any keys for the joystick in JG. As the CLS software is required to run my joystick, disabling is not a feasible option.

Please let me know if there is any additional information I could provide to help identify and rectify the issue.

Many thanks in advance!

Log Viewer Excerpt

> 2024-06-24 18:59:48 DEBUG -------------------------------------------------------------------------------- > 2024-06-24 18:59:48 DEBUG 2024-06-24 18:59 > 2024-06-24 18:59:48 DEBUG Starting Joystick Gremlin R13.3 > 2024-06-24 18:59:48 DEBUG -------------------------------------------------------------------------------- > 2024-06-24 18:59:49 INFO Initializing joystick devices > 2024-06-24 18:59:49 DEBUG 6 joysticks detected > 2024-06-24 18:59:49 DEBUG Added: name=3Dconnexion KMJ Emulator guid={A0D96180-F8C5-11ED-8005-444553540000} > 2024-06-24 18:59:49 DEBUG Added: name=LEFT VPC Throttle MT-50CM guid={6BD1FBA0-B82F-11EC-8004-444553540000} > 2024-06-24 18:59:49 DEBUG Added: name=vJoy Device guid={E8147F10-2373-11EA-8005-444553540000} > 2024-06-24 18:59:49 DEBUG Added: name=T-Pendular-Rudder guid={D1258220-237A-11EA-800A-444553540000} > 2024-06-24 18:59:49 DEBUG Added: name=SpaceMouse Enterprise guid={54D7A310-F8C4-11ED-8001-444553540000} > 2024-06-24 18:59:49 DEBUG Added: name=Controller (Xbox One For Windows) guid={1989E550-29AD-11EA-8001-444553540000} > 2024-06-24 18:59:49 DEBUG vJoy guid={E8147F10-2373-11EA-8005-444553540000}: (8, 128, 1) > 2024-06-24 18:59:49 DEBUG vjoy id 1: (8, 128, 1) - MATCH > 2024-06-24 18:59:49 INFO Checking vJoy installation > 2024-06-24 18:59:49 INFO Initializing plugins > 2024-06-24 18:59:49 DEBUG Loaded: cycle-modes > 2024-06-24 18:59:49 ERROR Uncaught exception: > Traceback (most recent call last): > File "_ctypes/callbacks.c", line 234, in 'calling callback function' > File "gremlin\event_handler.py", line 234, in _joystick_event_handler > KeyError: 4 > > 2024-06-24 18:59:49 DEBUG Loaded: description > 2024-06-24 18:59:49 DEBUG Loaded: macro > 2024-06-24 18:59:49 DEBUG Loaded: map-to-keyboard > 2024-06-24 18:59:49 DEBUG Loaded: map-to-mouse > 2024-06-24 18:59:49 DEBUG Loaded: noop > 2024-06-24 18:59:49 DEBUG Loaded: pause > 2024-06-24 18:59:50 DEBUG Loaded: play-sound > 2024-06-24 18:59:50 DEBUG Loaded: previous-mode > 2024-06-24 18:59:50 DEBUG Loaded: remap > 2024-06-24 18:59:50 DEBUG Loaded: response-curve > 2024-06-24 18:59:50 DEBUG Loaded: resume > 2024-06-24 18:59:50 DEBUG Loaded: split-axis > 2024-06-24 18:59:50 DEBUG Loaded: switch-mode > 2024-06-24 18:59:50 DEBUG Loaded: temporary-mode-switch > 2024-06-24 18:59:50 DEBUG Loaded: text-to-speech > 2024-06-24 18:59:50 DEBUG Loaded: toggle-pause > 2024-06-24 18:59:50 DEBUG Loaded: basic > 2024-06-24 18:59:50 DEBUG Loaded: chain > 2024-06-24 18:59:50 DEBUG Loaded: double_tap > 2024-06-24 18:59:50 DEBUG Loaded: hat_buttons > 2024-06-24 18:59:50 DEBUG Loaded: smart_toggle > 2024-06-24 18:59:50 DEBUG Loaded: tempo > 2024-06-24 18:59:53 INFO Gremlin UI created > 2024-06-24 18:59:53 INFO Gremlin UI launching > 2024-06-24 19:00:26 DEBUG -------------------------------------------------------------------------------- > 2024-06-24 19:00:26 DEBUG 2024-06-24 19:00 > 2024-06-24 19:00:26 DEBUG Starting Joystick Gremlin R13.3 > 2024-06-24 19:00:26 DEBUG -------------------------------------------------------------------------------- > 2024-06-24 19:00:27 INFO Initializing joystick devices > 2024-06-24 19:00:27 DEBUG 6 joysticks detected > 2024-06-24 19:00:27 DEBUG Added: name=3Dconnexion KMJ Emulator guid={A0D96180-F8C5-11ED-8005-444553540000} > 2024-06-24 19:00:27 DEBUG Added: name=LEFT VPC Throttle MT-50CM guid={6BD1FBA0-B82F-11EC-8004-444553540000} > 2024-06-24 19:00:27 DEBUG Added: name=vJoy Device guid={E8147F10-2373-11EA-8005-444553540000} > 2024-06-24 19:00:27 DEBUG Added: name=T-Pendular-Rudder guid={D1258220-237A-11EA-800A-444553540000} > 2024-06-24 19:00:27 DEBUG Added: name=SpaceMouse Enterprise guid={54D7A310-F8C4-11ED-8001-444553540000} > 2024-06-24 19:00:27 DEBUG Added: name=Controller (Xbox One For Windows) guid={1989E550-29AD-11EA-8001-444553540000} > 2024-06-24 19:00:27 DEBUG vJoy guid={E8147F10-2373-11EA-8005-444553540000}: (8, 128, 1) > 2024-06-24 19:00:27 DEBUG vjoy id 1: (8, 128, 1) - MATCH > 2024-06-24 19:00:27 INFO Checking vJoy installation > 2024-06-24 19:00:27 INFO Initializing plugins > 2024-06-24 19:00:27 DEBUG Loaded: cycle-modes > 2024-06-24 19:00:27 DEBUG Loaded: description > 2024-06-24 19:00:27 DEBUG Loaded: macro > 2024-06-24 19:00:27 DEBUG Loaded: map-to-keyboard > 2024-06-24 19:00:27 DEBUG Loaded: map-to-mouse > 2024-06-24 19:00:27 DEBUG Loaded: noop > 2024-06-24 19:00:27 DEBUG Loaded: pause > 2024-06-24 19:00:27 DEBUG Loaded: play-sound > 2024-06-24 19:00:27 DEBUG Loaded: previous-mode > 2024-06-24 19:00:27 DEBUG Loaded: remap > 2024-06-24 19:00:27 DEBUG Loaded: response-curve > 2024-06-24 19:00:27 DEBUG Loaded: resume > 2024-06-24 19:00:27 DEBUG Loaded: split-axis > 2024-06-24 19:00:27 DEBUG Loaded: switch-mode > 2024-06-24 19:00:27 DEBUG Loaded: temporary-mode-switch > 2024-06-24 19:00:27 DEBUG Loaded: text-to-speech > 2024-06-24 19:00:27 DEBUG Loaded: toggle-pause > 2024-06-24 19:00:27 DEBUG Loaded: basic > 2024-06-24 19:00:27 DEBUG Loaded: chain > 2024-06-24 19:00:27 DEBUG Loaded: double_tap > 2024-06-24 19:00:27 DEBUG Loaded: hat_buttons > 2024-06-24 19:00:27 DEBUG Loaded: smart_toggle > 2024-06-24 19:00:27 DEBUG Loaded: tempo > 2024-06-24 19:00:28 INFO Gremlin UI created > 2024-06-24 19:00:28 INFO Gremlin UI launching > 2024-06-24 21:14:38 ERROR No translation for key 0xb3 available > 2024-06-24 21:38:16 INFO Gremlin UI terminated > 2024-06-24 21:38:16 INFO Terminating Gremlin > 2024-06-24 21:38:16 ERROR Uncaught exception: > Traceback (most recent call last): > File "_ctypes/callbacks.c", line 234, in 'calling callback function' > File "gremlin\event_handler.py", line 227, in _joystick_event_handler > AttributeError: 'EventListener' does not have a signal with the signature joystick_event(PyQt_PyObject) > > 2024-06-25 19:25:34 DEBUG -------------------------------------------------------------------------------- > 2024-06-25 19:25:34 DEBUG 2024-06-25 19:25 > 2024-06-25 19:25:34 DEBUG Starting Joystick Gremlin R13.3 > 2024-06-25 19:25:34 DEBUG -------------------------------------------------------------------------------- > 2024-06-25 19:25:36 INFO Initializing joystick devices > 2024-06-25 19:25:36 DEBUG 6 joysticks detected > 2024-06-25 19:25:36 DEBUG Added: name=3Dconnexion KMJ Emulator guid={A0D96180-F8C5-11ED-8005-444553540000} > 2024-06-25 19:25:36 DEBUG Added: name=LEFT VPC Throttle MT-50CM guid={6BD1FBA0-B82F-11EC-8004-444553540000} > 2024-06-25 19:25:36 DEBUG Added: name=vJoy Device guid={E8147F10-2373-11EA-8005-444553540000} > 2024-06-25 19:25:36 DEBUG Added: name=T-Pendular-Rudder guid={D1258220-237A-11EA-800A-444553540000} > 2024-06-25 19:25:36 DEBUG Added: name=SpaceMouse Enterprise guid={54D7A310-F8C4-11ED-8001-444553540000} > 2024-06-25 19:25:36 DEBUG Added: name=Controller (Xbox One For Windows) guid={1989E550-29AD-11EA-8001-444553540000} > 2024-06-25 19:25:36 DEBUG vJoy guid={E8147F10-2373-11EA-8005-444553540000}: (8, 128, 1) > 2024-06-25 19:25:36 DEBUG vjoy id 1: (8, 128, 1) - MATCH > 2024-06-25 19:25:36 INFO Checking vJoy installation > 2024-06-25 19:25:36 INFO Initializing plugins > 2024-06-25 19:25:36 DEBUG Loaded: cycle-modes > 2024-06-25 19:25:36 DEBUG Loaded: description > 2024-06-25 19:25:36 DEBUG Loaded: macro > 2024-06-25 19:25:36 DEBUG Loaded: map-to-keyboard > 2024-06-25 19:25:36 DEBUG Loaded: map-to-mouse > 2024-06-25 19:25:36 DEBUG Loaded: noop > 2024-06-25 19:25:36 DEBUG Loaded: pause > 2024-06-25 19:25:36 DEBUG Loaded: play-sound > 2024-06-25 19:25:36 DEBUG Loaded: previous-mode > 2024-06-25 19:25:36 DEBUG Loaded: remap > 2024-06-25 19:25:36 DEBUG Loaded: response-curve > 2024-06-25 19:25:36 DEBUG Loaded: resume > 2024-06-25 19:25:36 DEBUG Loaded: split-axis > 2024-06-25 19:25:36 DEBUG Loaded: switch-mode > 2024-06-25 19:25:36 DEBUG Loaded: temporary-mode-switch > 2024-06-25 19:25:37 DEBUG Loaded: text-to-speech > 2024-06-25 19:25:37 DEBUG Loaded: toggle-pause > 2024-06-25 19:25:37 DEBUG Loaded: basic > 2024-06-25 19:25:37 DEBUG Loaded: chain > 2024-06-25 19:25:37 DEBUG Loaded: double_tap > 2024-06-25 19:25:37 DEBUG Loaded: hat_buttons > 2024-06-25 19:25:37 DEBUG Loaded: smart_toggle > 2024-06-25 19:25:37 DEBUG Loaded: tempo > 2024-06-25 19:25:38 INFO Gremlin UI created > 2024-06-25 19:25:38 INFO Gremlin UI launching > 2024-06-25 19:31:59 ERROR No translation for key 0xb3 available > 2024-06-25 20:24:08 INFO Gremlin UI terminated > 2024-06-25 20:24:08 INFO Terminating Gremlin > 2024-06-25 20:24:09 ERROR Uncaught exception: > Traceback (most recent call last): > File "_ctypes/callbacks.c", line 234, in 'calling callback function' > File "gremlin\event_handler.py", line 220, in _joystick_event_handler > AttributeError: 'EventListener' does not have a signal with the signature joystick_event(PyQt_PyObject)

WhiteMagic commented 2 days ago

The first error instance would appear to be caused by your config assuming that your vJoy device has 4 hats, despite only having 1. The two other errors are the same: Something is attempting to emit an invalid event but it's not clear what the reasons is for that.

It seems that you are running r13.3 maybe try running r13.3_debug as that has very specific input handling related fixes.