nguyenquyhy / Flight-Tracker-StreamDeck

A Stream Deck plugin to interact with Microsoft Flight Simulation
https://flightsim.to/file/3178/flight-tracker-streamdeck-plugin
GNU General Public License v3.0
366 stars 67 forks source link

Stream Deck Unresponsive Problem #252

Closed tmbailey70 closed 2 years ago

tmbailey70 commented 3 years ago

Every time I try to create or edit Flight Tracker buttons when MSFS2020 is running the Stream Deck application becomes unresponsive and must be restarted.

The only way I can use the Flight Tracker plugin to create or edit buttons is if the simulator isn't running, which makes things difficult in having to continually quit and restart to check functionality.

If a button has been created prior to the simulator starting everything works ok.

Appreciate any help.

nguyenquyhy commented 3 years ago

This is strange. Can you please share the log files in %appdata%\Elgato\StreamDeck\Plugins\tech.flighttracker.streamdeck.sdPlugin (normally named like flightstreamdeck20210601.log)

tmbailey70 commented 3 years ago

Log files attached. MSFS2020 is most recent version. Stream Deck version is 4.9.4.13228. Computer is clean install with windows 10 fully updated.

Logs removed

nguyenquyhy commented 3 years ago

The log files are very weird. They are almost empty and with a strange file name format. Do you have any logs on the day you have all those hangs?

tmbailey70 commented 3 years ago

Have found the issue through a lot of testing and searching the web. The problem exists when using the Stream Deck application and the Flight Tracker plugin on a 2nd monitor.

If using on primary monitor there is no problem and everything works fine.

Drag to second monitor and application goes to 'not responding' when trying to create /edit buttons etc.

This doesn't appear to be an issue with plugins not associated with MSFS2020. The same problem occurs when using the Lorby AxisAndOhs plugin.

nguyenquyhy commented 3 years ago

Are you using monitors with G-Sync/Free Sync? I am also using 2 monitors but I have never noticed that. I'll do some more testing.

tmbailey70 commented 3 years ago

Primary monitor is G-Sync. 2nd monitor isn't.

nguyenquyhy commented 3 years ago

That's even more strange since I have the exact same setup and I still can't reproduce it. Did you find anything on the Internet describing the cause or something related?

tmbailey70 commented 3 years ago

Found this which is what made me test it.

https://www.reddit.com/r/ElgatoGaming/comments/eag586/streamdeck_software_not_responding_when_adding/

Found these logs. Not sure if they help.

StreamDeck0.log StreamDeck2.log StreamDeck3.log StreamDeck4.log StreamDeck5.log StreamDeck6.log StreamDeck7.log StreamDeck8.log tech.flighttracker.streamdeck0.log

craigusus commented 2 years ago

Any luck on this? I'm getting the same issue. Every since SU5, StreamDeck just becomes unresponsive or takes a few seconds to respond. Remove the plugin and it's back to normal, reinstall the plugin and back to unresponsive.

thestonefox commented 2 years ago

I can confirm I have the same issue where if I try and edit a flightdeck button on a secondary monitor then streamdeck becomes unresponsive and needs force quitting from task manager.

If I drag the stream deck profile editor window to my primary monitor then it works fine.

I've also noticed this same issue in the Ryzen Master software, where it will crash if it is opened on a secondary monitor.

craigusus commented 2 years ago

I have a triple monitor setup. When in Windows I have the screens set to 3-1-2 (Left - Middle - Right). Screen 1 being my Primary screen. On boot, the bios loading shows on screen 2 (Right).

image

I have tried opening the StreamDeck software on all screens, with the same effect. Delayed or no response.

craigusus commented 2 years ago

@tmbailey70 @thestonefox, Just out of interest is your StreamDeck plugged direct into your PC or via a USB hub?

thestonefox commented 2 years ago

@tmbailey70 @thestonefox, Just out of interest is your StreamDeck plugged direct into your PC or via a USB hub?

Mine is plugged directly into the PC

craigusus commented 2 years ago

@tmbailey70 @thestonefox, Just out of interest is your StreamDeck plugged direct into your PC or via a USB hub?

Mine is plugged directly into the PC

Great thanks. It seems to have reared its head again for me in SU7. I'm just doing some tests with the StreamDeck plugged directly into a USB 2.0 port on the front of my PC (opposed to a powered USB 3.0 hub). Seems stable so far... 🤞🏻

craigusus commented 2 years ago

So I've purchased a PCI-E to USB 3.0 card and plugged my StreamDeck directly into that. I've had no slow/unresponsive issues since.

noblackthunder commented 2 years ago

Howdy ! i see this closed as "notAbug" Sadly i think what Craigusus did is not working for us others that have the issue. I pluged mine directly into my pc too .. and not matter if the sim runs or not .. each time i click now a button the elgato software just stops responding ( hard locked up) i had a look at the loog files but it does not seem to log anything if interrest.. The buttons i managed to setup work fine ( as long as i dont make the stream deck software to lock up)

i can replicated it prett easily ... sadly its also a bit random. the only thing for sure is that when it happens i have to uninstall the plugin and reinstall it to make it work for a short while. Even restarting my pc is not solving the issue

nguyenquyhy commented 2 years ago

This is really strange. The plugin doesn't save any data, so restarting Stream Deck app (or your PC) should be exactly the same as reinstall.

Also, I was suspecting that the issue maybe because the plugin sends data too frequently for certain USB cable, but if this happens even without the sim running, it shouldn't be the case. When the sim is not running the plugin doesn't send any image to the Stream Deck other than an initial blank one.

noblackthunder commented 2 years ago

image image

all i did ( while the sim was off ) was click on the generic toggle button APU/O ( the last one) and as you can see stream deck instantly crashes .. So i cant even configure buttons .. the only way for me to solve this is to reinstall the plugin after delelitng it .. sadly thats all i know how to cause it :-/

nguyenquyhy commented 2 years ago

After the stream deck crashes, what happens when you open it again?

noblackthunder commented 2 years ago

I get back to the normal window .. all buttons work but if i try to edit any of the buttons or add any the stream deck software crases again .. this only happens if i try to edit a button

noblackthunder commented 2 years ago

image as an example.. i draged this button to the stream deck .. the stream deck crashed .. if i click it again to try to edit it the streamdeck software crashes again

noblackthunder commented 2 years ago

https://www.reddit.com/r/ElgatoGaming/comments/f6z5tq/stream_deck_crashes_whenever_i_try_to_add/

ok maybe ignore my request .. maybe it is a 3rd party issue ... i will have to test this .. could be stream deck software issue with nvidia drivers ? LOL