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

qBittorrent process doesn't exit when the window is closed #11052

Open
yurivict opened this issue Aug 10, 2019 · 6 comments

Comments

@yurivict
Copy link
Contributor

commented Aug 10, 2019

On FreeBSD 12 I run qbittorrent-4.1.7 in jail.

It works fine, but in the end it doesn't exit when the window is closed.

It is mostly in select and uwait state:

load: 1.07  cmd: qbittorrent 6853 [biowr] 54.21r 1.83u 0.86s 0% 102612k
load: 1.07  cmd: qbittorrent 6853 [select] 58.34r 1.83u 0.86s 0% 102612k
load: 0.98  cmd: qbittorrent 6853 [select] 59.87r 1.83u 0.86s 0% 102612k
load: 0.98  cmd: qbittorrent 6853 [uwait] 60.27r 1.83u 0.86s 0% 102612k
load: 0.98  cmd: qbittorrent 6853 [uwait] 61.55r 1.83u 0.86s 0% 102612k
load: 0.98  cmd: qbittorrent 6853 [uwait] 61.99r 1.83u 0.86s 0% 102612k
load: 0.98  cmd: qbittorrent 6853 [uwait] 62.39r 1.83u 0.86s 0% 102612k
load: 0.98  cmd: qbittorrent 6853 [uwait] 62.71r 1.83u 0.86s 0% 102612k
load: 0.98  cmd: qbittorrent 6853 [uwait] 62.96r 1.83u 0.86s 0% 102612k
load: 0.94  cmd: qbittorrent 6853 [uwait] 101.55r 1.85u 0.86s 0% 100584k
load: 0.95  cmd: qbittorrent 6853 [uwait] 106.21r 1.85u 0.86s 0% 100584k
load: 0.95  cmd: qbittorrent 6853 [uwait] 107.19r 1.85u 0.86s 0% 100584k
@Piccirello

This comment has been minimized.

Copy link
Contributor

commented Aug 11, 2019

What command/mechanism do you use to start qBittorrent in your environment? Are you running qBittorrent with a GUI or headless?

it doesn't exit when the window is closed.

What window are you referring to exactly? The qBittorrent window or a terminal window?

@yurivict

This comment has been minimized.

Copy link
Contributor Author

commented Aug 11, 2019

What command/mechanism do you use to start qBittorrent in your environment? Are you running qBittorrent with a GUI or headless?

The qbittorrent command, it is run with UI.

What window are you referring to exactly? The qBittorrent window or a terminal window?

qBittorrent window.

When the window is closed the process doesn't exit.

@Pikminiman

This comment has been minimized.

Copy link

commented Aug 12, 2019

This has been a persistent issue with qBittorrent for me for years. It's easily my favorite torrent client, but qBittorrent has singlehandedly made me change my habits to force-shutdown my desktop because otherwise qBittorrent will always indefinitely stall my shutdown, perpetually "Saving torrent progress."

I'm on Windows, using qBittorrent v4.1.7 (64-bit) with the GUI, set to autostart with Windows.

My client is set to minimize to the tray even when I click the 'X' button on the client window, so I'm aware that in my case the process should not end upon closing the GUI. The issue is that the process continues running even after I "Exit" qBittorrent via right-clicking the tray icon. If I want to restart the program after exiting this way, then I must first end the qbittorrent.exe process manually in Task Manager.

I assume this is the reason qBittorrent indefinitely stalls my computer shutting down. qBittorrent, I imagine, receives the same exit command from the OS upon shutdown that it does from the "Exit" button in the tray icon right-click menu, but the process keeps running anyway, perpetually "Saving torrent progress" even though I never lose torrent progress when shutting down with the -force argument.

This has been true for me on all of the qBittorrent clients I've had installed on many different desktops and laptops running Windows 8.1 and 10, even with qBittorrent running on unmodified, stock settings.

@yurivict

This comment has been minimized.

Copy link
Contributor Author

commented Aug 12, 2019

On FreeBSD I only observe this when qBittorrent runs out of a container, and not during regular run on a desktop system.

@floppyD

This comment has been minimized.

Copy link

commented Aug 23, 2019

Windows 7 here, qBittorrent is leaving a zombie process when I try to exit. I just can't kill it, only if I restart the PC. And of course when I try to run another instance of the program, it doesn't work.

@yurivict

This comment has been minimized.

Copy link
Contributor Author

commented Aug 24, 2019

Based on other people's input this seems to be a major flaw in qBittorrent.

On FreeBSD it only hangs when run out of a container (jail), and not when run normally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants
You can’t perform that action at this time.