Gimx application Crashes

Need help? Ask here and someone will help
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: Gimx application Crashes

Post 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.
GIMX creator
redion1992
Posts: 26
Joined: Wed Dec 13, 2017 3:19 pm

Re: Gimx application Crashes

Post 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.
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: Gimx application Crashes

Post by Matlo »

I made another beta version. Same link: https://gimx.fr/download/7a29b9ead9b069 ... 0-i386.exe

Please test it!
GIMX creator
redion1992
Posts: 26
Joined: Wed Dec 13, 2017 3:19 pm

Re: Gimx application Crashes

Post by redion1992 »

Just tested it, and it works great! Started up fine. Thanks for your help on working this through!
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: Gimx application Crashes

Post 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.
GIMX creator
redion1992
Posts: 26
Joined: Wed Dec 13, 2017 3:19 pm

Re: Gimx application Crashes

Post 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.
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: Gimx application Crashes

Post 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?
GIMX creator
redion1992
Posts: 26
Joined: Wed Dec 13, 2017 3:19 pm

Re: Gimx application Crashes

Post 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.
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: Gimx application Crashes

Post by Matlo »

Thanks. I'll check if I can reproduce and fix this.
GIMX creator
flyelfrick
Posts: 11
Joined: Thu Jan 11, 2018 1:51 pm

Re: Gimx application Crashes

Post 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
| Windows 10 64 bit / PS4 Pro | OSW with SimuCube beta firmware | HE Pro Pedals + Hand brake | Fanatec SQ Shifter |
Post Reply