Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adb.exe stays resident on QZ exit (Windows) #1951

Closed
victorypoint opened this issue Jan 4, 2024 · 10 comments · Fixed by #1953
Closed

Adb.exe stays resident on QZ exit (Windows) #1951

victorypoint opened this issue Jan 4, 2024 · 10 comments · Fixed by #1953
Assignees
Labels
bug Something isn't working

Comments

@victorypoint
Copy link
Contributor

I've been experiencing no auto-incline sometimes when I leave my Zwift/QZ PC on during the day and then turn on the treadmill after several hours to start a Zwift session. I narrowed it down to the ADB.exe process staying in memory on PC. If I kill it, auto-incline works.

I confirmed.. single ADB.exe stays resident on QZ exit - both via quit from menu and x on window bar.

This works to kill adb.exe process..
cmd /c wmic process where name='adb.exe' delete

@cagnulein
Copy link
Owner

@victorypoint thanks for the feedback, could you check this build? https://github.com/cagnulein/qdomyos-zwift/actions/runs/7420467774

@victorypoint
Copy link
Contributor Author

@cagnulein, I tested windows-binary.zip and windows-msvc2019-ai-server-binary.zip builds. In each case, adb.exe was not killed when exiting QZ by hitting window x close or Quit from menu.

windows-binary-debug-Fri_Jan_5_11_20_46_2024.log
windows-msvc2019-ai-server-binary1-debug-Fri_Jan_5_11_15_42_2024.log
windows-msvc2019-ai-server-binary2-debug-Fri_Jan_5_11_16_49_2024.log
windows-msvc2019-ai-server-binary3-debug-Fri_Jan_5_11_17_53_2024.log

@cagnulein
Copy link
Owner

thanks @victorypoint i added some debug log in the terminate function
let's see if i can understand which is the issue
https://github.com/cagnulein/qdomyos-zwift/actions/runs/7423599840

unfortunately i don't have a windows build to try :(

@cagnulein
Copy link
Owner

@victorypoint
Copy link
Contributor Author

@cagnulein
Copy link
Owner

ok so QT thinks to did everything right

Fri Jan 5 13:13:31 2024 1704474811139 Debug: nordictrackifitadbtreadmill.cpp void nordictrackifitadbtreadmill::stopLogcatAdbThread() stopLogcatAdbThread()
Fri Jan 5 13:13:31 2024 1704474811141 Debug: nordictrackifitadbtreadmill.cpp void nordictrackifitadbtreadmill::stopLogcatAdbThread() stopLogcatAdbThread() quit
Fri Jan 5 13:13:31 2024 1704474811143 Debug: nordictrackifitadbtreadmill.cpp void nordictrackifitadbtreadmill::stopLogcatAdbThread() stopLogcatAdbThread() terminate
Fri Jan 5 13:13:31 2024 1704474811146 Debug: nordictrackifitadbtreadmill.cpp void nordictrackifitadbtreadmill::stopLogcatAdbThread() stopLogcatAdbThread() wait

Let's try to add this command at the end so

cmd /c wmic process where name='adb.exe' delete

@victorypoint
Copy link
Contributor Author

@cagnulein, I forgot to mention the QZ terminal window stayed open indefinitely after QZ quit - so seemed to hang.

@cagnulein
Copy link
Owner

done https://github.com/cagnulein/qdomyos-zwift/actions/runs/7424793324

mmm..that's interesting..I should check what could cause this. let's try this build to see if it was ADB or something else

@victorypoint
Copy link
Contributor Author

@cagnulein, you nailed it. Adb.exe is killed on exit and no more terminal window hang issue. Nicely done! 👍🎉🥳

@cagnulein
Copy link
Owner

cagnulein commented Jan 5, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants