WhiteMagic / JoystickGremlin

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

Experiencing delays and "not responding" #194

Open oskargargas opened 5 years ago

oskargargas commented 5 years ago

Hello,

I'm using R.12 after recent upgrade from R.10 (after few months of not flying). I see delays in forwarding input from hardware through gremlin to vjoy (and then to DCS). From time to time Gremlin hangs with "not responding" notice.

How can I check, log and diagnose if it's something with my system or something in Gremlin?

Windows 10 x64, neweest vJoy (installed yesterday), Intel, nVidia, 16GB of RAM, don't know if anything of this matters. ;)

Regards Oskar

WhiteMagic commented 5 years ago

This definitely sounds like something is going wrong, as nothing Gremlin does really is computationally expensive. You can find a log in %userprofile%/Joystick Gremlin/system.log

One possible source could be that vJoy is "losing" the devices every now and then which might show up in the log. Another possible issue is windows having fun with devices. I every now and then have an issue where joy.cpl will take ages to open which is due to windows wanting to treat a device as a stick when it's not and timing out or something. So if you have issues like that that occur in the middle of Gremlin being active that could cause issues.

Are you using any obscure hardware that could possibly be read badly by Gremlin and thus create stalls?

oskargargas commented 5 years ago

Thanks for the info.

I don't think I have any obscure hardware attached. I use TM Warthog Joystic + Throttle, MFG Crosswind pedals, Saitek TQC, Switch Panel and Multi Panel (those I'm using with DCS Flight Panels).

I didn't see anything strange in the log. Besides "WARNING Identifier for non existent device created" related to TM Cougar Throttle (+ TUSBA R2) which I don't use right now. I commented this out from the config file.

In addition I cleaned up my system a bit. Uninstalled Visual Studio, IIS, MS SQL as I don't use it on this machine anymore. I also uninstalled Windows Driver Kit which I looked into some time ago because of HidGuardian. I also cleaned and reinstall HidGuardian as described here: https://github.com/WhiteMagic/JoystickGremlin/issues/191

For now everything looks ok. I'll test for few days and I'll let know if problem occurs again.

oskargargas commented 5 years ago

Or... few minutes. It just happened again.

The only thing I see in log is "INFO Found regex match in for ..." related with profile switching basend on current application. So I turned this option off as I don't use it. We'll see.

Also, from time to time, I have problem with Tempo mapped button. But I don't think it's related. When it happens I see error message ERROR Uncaught exception: Traceback (most recent call last): File "gremlin\event_handler.py", line 481, in process_event File "gremlin\execution_graph.py", line 76, in __call__ File "gremlin\execution_graph.py", line 172, in process_event File "container_plugins\tempo\__init__.py", line 257, in process_event self.timer.cancel() AttributeError: 'NoneType' object has no attribute 'cancel' And both buttons from tempo activate (when should only one, short press). Profile restart helps for that.

WhiteMagic commented 5 years ago

By the sound of things it's not an issue with vJoy devices being lost, or at least not severe enough for log entries. One thing you could try to see if this is something related to one of your devices is to unplug one at a time or plug them in one after the other and see when the issue starts again. Though that only makes sense to try if the issue happens quite quickly.

The tempo container issue should not cause this, though with timers and threads it's not always easy to say if they do crazy things. I'll take a look at that error anyway.