Page 3 of 4

Re: Gimx application Crashes

Posted: Mon Jan 08, 2018 2:35 pm
by Matlo
Thanks! I'll build another beta with another fix attempt.

Do you have an unusual amount of devices attached to your computer?

The 64-bit drivers are included as the version can be installed on both 32-bit and 64-bit Windows versions.

Re: Gimx application Crashes

Posted: Mon Jan 08, 2018 2:59 pm
by redion1992
That would certainly be the case. It's a computer that does a LOT of different things. I used USBDeview to produce a list of all 52 that are registered. 45 of them are currently listed as connected. Then there's four without drivers, and another eight USB hubs, hitting 64.

Re: Gimx application Crashes

Posted: Mon Jan 08, 2018 11:17 pm
by Matlo
I made another beta version. Same link: https://gimx.fr/download/7a29b9ead9b069 ... 0-i386.exe

Please test it!

Re: Gimx application Crashes

Posted: Tue Jan 09, 2018 10:21 am
by redion1992
Just tested it, and it works great! Started up fine. Thanks for your help on working this through!

Re: Gimx application Crashes

Posted: Tue Jan 09, 2018 12:51 pm
by Matlo
Thanks for your help on fixing this issue!

This was the last blocking issue for GIMX 7 :)
I'll release it in the following weeks.

Re: Gimx application Crashes

Posted: Tue Jan 09, 2018 2:43 pm
by redion1992
Good to hear! I'm guessing the code was just barfing at the amount of devices I have connected regularly? Apart from having a steering wheel, there's an extra USB monitor, multiple Arduinos running serial outputs to displays, external hard drives, multiple gamepads and receivers... And that's not a full list. If that's the case, no wonder it worked on the laptop with only three USB ports!

I can't necessarily test it yet, but I need to move to the network-based operation mode in the near future. Hopefully that's also going to work. (Moving the steering wheel onto its own rig, away from the PS - the computer running the racing rig is the one that was having issues, which is why I needed to work on fixing it.)

For reference, this also appears to have been the issue #495 on GitHub, based on the logs. I see it's already closed, but best to note for future cross-referencing.

Re: Gimx application Crashes

Posted: Wed Jan 10, 2018 2:32 pm
by Matlo
Yes, the sum of all your devices - every device you can see in the device manager - exceeds 256.
There was a static array with 256 elements and I did not bother checking for overflows, which is a big mistake.
I replaced it with a dynamic array, which should work with any device count.

The user that reported #495 is still having issues with mouse buttons not being detected in gimx-config.
Could you please check the behavior on your setup?

Re: Gimx application Crashes

Posted: Thu Jan 11, 2018 8:22 am
by redion1992
OK, that makes sense. I can see how it would be an issue on my setup :P

Just tested gimx-config, and it seemed to auto-detect any clicks on the mouse buttons fine. It doesn't pick up any axis movements unless I select axis mode, which is probably as written. First thought to check was the "Multiple mice and keyboards" mode, if I have that enabled it picks up all the clicking as being on a single identifiable mouse. I just tried it with "Window events" enabled, and it seemed to throw similar errors to what you're describing. Basically, the invisible "window" spawned by "Auto-config" in "Window events" mode isn't taking focus properly, and thus the interface appears to hang until it gets an input - which doesn't happen until the "window" is activated.

Re: Gimx application Crashes

Posted: Thu Jan 11, 2018 10:14 am
by Matlo
Thanks. I'll check if I can reproduce and fix this.

Re: Gimx application Crashes

Posted: Thu Jan 11, 2018 1:57 pm
by flyelfrick
Hi Matlo

I received my GIMX adapter today, and has crash issue with 6.11 on my PC.
I tested with your latest beta release (download from this topic), although application is not crashed, but i can't assign any devices with GIMX.
When press check button, it always show device not exist. How can I fix this problem?

MY PC:
Windows 10 64-bit with latest security patch.
OSW + HE pedals.

Code: Select all

global option -l with value `debug.log'
GIMX 7.0 i386
Windows 10 (or later) x64
Kernel version: 10.0 (16299)
using default refresh period: 11.25ms
mouse 0 has name 'Razer BlackWidow Ultimate' and virtual id 0
mouse 1 has name 'HID-compliant mouse' and virtual id 0
mouse 2 has name 'Logitech HID-compliant Unifying Mouse' and virtual id 0
mouse 3 has name 'HID-compliant mouse' and virtual id 1
mouse 4 has name 'HID-compliant mouse' and virtual id 2
mouse 5 has name 'Fanatec Wheel Virtual Mouse' and virtual id 0
keyboard 0 has name 'Logitech HID-compliant Unifying keyboard' and virtual id 0
keyboard 1 has name 'HID Keyboard Device' and virtual id 0
keyboard 2 has name 'Fanatec Wheel Virtual Keyboard' and virtual id 0
keyboard 3 has name 'Razer BlackWidow Ultimate' and virtual id 0
keyboard 4 has name 'HID Keyboard Device' and virtual id 1
keyboard 5 has name 'HID Keyboard Device' and virtual id 2
joystick 0 has name 'OSR 26 Buttons' and virtual id 0
joystick 1 has name 'FANATEC ClubSport USB Adapter (shifter mode)' and virtual id 0
joystick 2 has name 'BU0836-LC Interface' and virtual id 0
joystick 3 has name 'HE Sim Pedals' and virtual id 0
joystick 4 has name 'SimuCUBE' and virtual id 0
joystick 5 has name 'PS4 Controller' and virtual id 0
Warning: joystick not found: OSW 8 0
Warning: can't open macro directory C:\Users\flyelfrick\AppData\Roaming//gimx//macros/
Timer resolution: min=156250 max=5000 current=5007
Exiting
rounding timer period to 11015
src/sdl/sdlinput.c:756 sdl_peep_events: SDL_PeepEvents failed with error: The event system has been shut down

Code: Select all

global option -l with value `log.txt'
global option -c with value `OSW_G29.xml'
controller #1: option -p with value `COM5'
now reading arguments for controller #2
grab flag is unset
status flag is set
subpos flag is set
force_updates flag is set
GIMX 7.0 i386
Windows 10 (or later) x64
Kernel version: 10.0 (16299)
../gimxcommon/src/windows/async.c:320 async_read_timeout: ReadFile failed: timeout expired.
Error: failed to read packet header from the GIMX adapter
../gimxcommon/src/windows/async.c:320 async_read_timeout: ReadFile failed: timeout expired.
Error: failed to read packet header from the GIMX adapter
../gimxcommon/src/windows/async.c:320 async_read_timeout: ReadFile failed: timeout expired.
Error: failed to read packet header from the GIMX adapter
../gimxcommon/src/windows/async.c:320 async_read_timeout: ReadFile failed: timeout expired.
Error: failed to read packet header from the GIMX adapter
../gimxcommon/src/windows/async.c:320 async_read_timeout: ReadFile failed: timeout expired.
Error: failed to read packet header from the GIMX adapter
../gimxcommon/src/windows/async.c:320 async_read_timeout: ReadFile failed: timeout expired.
Error: failed to read packet header from the GIMX adapter
../gimxcommon/src/windows/async.c:320 async_read_timeout: ReadFile failed: timeout expired.
Error: failed to read packet header from the GIMX adapter
../gimxcommon/src/windows/async.c:320 async_read_timeout: ReadFile failed: timeout expired.
Error: failed to read packet header from the GIMX adapter
../gimxcommon/src/windows/async.c:320 async_read_timeout: ReadFile failed: timeout expired.
Error: failed to read packet header from the GIMX adapter
../gimxcommon/src/windows/async.c:320 async_read_timeout: ReadFile failed: timeout expired.
Error: failed to read packet header from the GIMX adapter
Rick