mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-03-02 22:57:32 -05:00
Refuses to quit when Windows attempts to shut down #12016
Labels
No labels
Accessibility
AppImage
Bounty
Build system
CI
Can't reproduce
Code cleanup
Confirmed bug
Confirmed bug
Core
Crash
Data loss
Discussion
Docker
Documentation
Duplicate
Feature
Feature request
Feature request
Feature request
Filters
Flatpak
GUI
Has workaround
I2P
Invalid
Libtorrent
Look and feel
Meta
NSIS
Network
Not an issue
OS: *BSD
OS: Linux
OS: Windows
OS: macOS
PPA
Performance
Project management
Proxy/VPN
Qt bugs
Qt6 compat
RSS
Search engine
Security
Temp folder
Themes
Translations
Triggers
Waiting diagnosis
Waiting info
Waiting upstream
Waiting web implementation
Watched folders
WebAPI
WebUI
autoCloseOldIssue
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/qBittorrent#12016
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @IRISHMAN04 on GitHub (Apr 11, 2021).
qBittorrent version and Operating System
qBittorrent v4.3.4.1 (64-bit)
Windows 10 Pro Update 20H2 10.0.19042
What is the problem
When I shutdown my computer, qBittorent stops it from shutting down with the message "Saving torrent progress". It stays on this window so long that Windows cancels the shutdown and locks itself.
What is the expected behavior
qBittorent quits and allows my computer to shut down.
Steps to reproduce
(I do not know if you need an actively seeding torrent or not for this to happen)
Extra info(if any)
This issue has appeared before in the issue tracker, #7519, #5097, for example, and although marked as fixed it still happens.
Here is the log from the entire day when this issue occurred.
This happens approximately every other night.
qbittorrent.log.txt
I don't have Qt creator, but if someone wants to send me a test build I'll happily test it out.
@FranciscoPombal commented on GitHub (Apr 26, 2021):
How many? It may be causing qBittorrent to spend a lot of time saving resume data. In any case, it certainly should not take all night, and anyway, I was under the impression that if programs hadn't successfully closed after some time when shutting down Windows would kill them.
@IRISHMAN04 commented on GitHub (Apr 30, 2021):
It was over 40, but they were all seeding so I assumed the progress wouldn't need to be saved. I'll remove them and see if that's a problem
@FranciscoPombal commented on GitHub (Apr 30, 2021):
I assume this means between 40-50. This is definitely not too many, and certainly not enough to "be causing qBittorrent to spend a lot of time saving resume data." like I speculated above. Maybe something like anti-virus is interfering?
@IRISHMAN04 commented on GitHub (May 7, 2021):
I took the number of torrents down to 11 and it still did it, even with my antivirus off.
@NateScarlet commented on GitHub (Dec 19, 2021):
I have also had this issue for a few months, and just found a way to ensure that it can be shut down without user interaction.
run this command:
@IRISHMAN04 commented on GitHub (Dec 19, 2021):
I'll have a look at that when I get home, thanks
@RedSnt commented on GitHub (May 26, 2022):
The fix, for me anyway, is a bit of a boring one. Disabling my network connection while shutting qbittorrent down makes it shut down instantly, so that's what I do. Huge bother to do so in Windows 10 of course when done manually, but I'm sure it can be automated using a script.
Anyway, seems to me that the problem is qbittorrent lingering, waiting for some network related job to finish, or otherwise I don't know why disabling the network makes it shut down instantly.
@RedSnt commented on GitHub (May 26, 2022):
A fix that seems to work for me, which is perhaps a bit convoluted is creating a batch script that runs on windows shutdown.
step 1)
Create a script like this:
Note: Worth doing a "netsh interface show interface" in a command prompt to get the interface name which might be different for your computer, and change that in the script.
Save it as "close_qbittorrent.bat" or something.
step 2)
Open GPEDIT.MSC (group policy editor) and add the script to:
Computer Configuration -> Windows Settings -> Scripts (Startup/Shutdown) -> Shutdown
Pretty self explanatory how to add the script once you're there.
I dunno, maybe overkill or a dumb solution, but it works for me.
@palur76 commented on GitHub (Oct 7, 2022):
I have the same problem with qBittorent v4.4.5 (64-bit) on Windows 10.0.19044.2075.
qBittorrent breaks Windows 10 shutdown process, because "Saving torrent progress".
@ItsIgnacioPortal commented on GitHub (Feb 11, 2023):
That registry key will automatically force-close the app if it doesn't close itself after the default timer is done (20 seconds). I think it's better to increase the shutdown waiting-time and let qbittorrent shutdown gracefully:
undo:
@xavier2k6 commented on GitHub (Sep 30, 2024):
Version is obsolete.
Thank you for your contribution, we are starting to close all old/stale/obsolete tickets.
Please update to latest qBittorrent 5.0.0 ATTOW.
If any issues are experienced, please open a new ticket.
@RedSnt commented on GitHub (Sep 30, 2024):
Doesn't matter anymore indeed. Switched to linux and turns out the QT6 build closes correctly, it was QT5 that was the problem all along.