Ryochan7 / DS4Windows

Like those other ds4tools, but sexier
https://ryochan7.github.io/ds4windows-site/
GNU General Public License v3.0
6.98k stars 808 forks source link

DS4Windows causing multiple apps to hang #2896

Closed Ann1kaB closed 10 months ago

Ann1kaB commented 1 year ago

DS4Windows is causing apps using WGI to hang when attempting to close them, also cant kill them in task manager or with wmic and taskkill.

To Reproduce Steps to reproduce the behavior:

  1. Open app that uses WGI
  2. close app
  3. go to task manager and the process will still be there
  4. try to end task and it will give an "access denied" error.
  5. open terminal and try to use taskkill /im /f process or wmic and the process cannot be found.

Expected behavior The app using WGI closes successfully and will not appear in task manager.

Images & Logs image image image ds4windows_log.txt

Desktop (please complete the following information):

Additional context I used Visual Studio to figure out what went wrong with the process looking at a memory dump.

Ryochan7 commented 10 months ago

Not sure if related but that looks like a real problem with pcsx2 more than anything else. Been a while since I actively worked with Qt but I have run across that QTimer problem in the past. I cannot remember what I have done to ensure the timer is stopped from the proper thread.

Also, it looks like controller hiding is not enabled so both the physical and virtual controllers are opened. Not enough to work off of to narrow down the issue. Doubt it has anything to do directly with DS4Windows itself. Might not even be an issue with ViGEmBus either based on the QTimer problem.

No matter what, nothing can be done about it at this point. Might as well close the issue.