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

GUI not appearing #470

Open EconomicSacks opened 1 year ago

EconomicSacks commented 1 year ago

I've used Joystick Gremlin for over a year, and just recently, the GUI to change settings is not appearing. Clicking the icon on the taskbar does not bring it up and using ALT+TAB shows that is it just white image Even tabbing over to it does not show it, I've closed and reopened it and reinstalled it to no avail.

WhiteMagic commented 1 year ago

This is not something I've ever run across, so I'm kind of at a loss of what's going on there. Can you see if the system.log file in %userprofile%/Joystick Gremlin contains anything useful?

EconomicSacks commented 1 year ago

I do not see a system.log file in that folder

AaronBlau commented 1 year ago

I've just come across the same problem. Here's my system.log

system.log

I'll add that I've tried to fix the problem so far by restarting my system and also by re-installing Joystick Gremlin. The white GUI is still present.

image

WhiteMagic commented 1 year ago

From the log file there is nothing wrong going on and the UI stuff seems happy. I haven't seen this behavior before either which is odd. By your wording this sounds like everything was working and then it stopped. Do you remember what you have done just before this started happening? Also one thing to try make Gremlin not load the current profile by editing the config.json file which lives in the same folder as the system.log file. The entry is called last_profile or similar. You can also rename the config.json file as a quick test, but doing so will reset all options, at least until you change the name again.

AaronBlau commented 1 year ago

I'm not sure what exactly fixed it, but deleting the config.json file seems to have revived the UI. From there, I was able to reload the profile I was using before and everything works as normal.

AaronBlau commented 1 year ago

Ok, I was able to save a copy of the cofig.json with the broken UI and have pinpointed the problem to the window_location. My laptop is 1920x1080, running two 1440p monitors. The current, working window_location is [2039, 62], and the broken window_location is [2589, 1323]. My best guess at present is that the UI doesn't fully load properly if the window_location and _size don't allow it to fit fully on a user's screen space, however that's defined in windows.

AaronBlau commented 1 year ago

I played around with the window_size and window_location a bit so that when joystick gremlin is started, half of the window is below the top of my screen and half is above it. In the new taskbar/alt+tab view of the window is image

It appears as though the shift+windows+up shortcut does bring the window back onto the screen. I remember this not working when I originally posted to this issue, but that could also have been my error, not sure.

WhiteMagic commented 1 year ago

Sounds like something within QT getting confused with screen coordinates. Given R14 will be using a new version of QT with a different interface to things it likely won't cause this exact same kind of problem, but only time will tell.