mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-03-02 22:57:32 -05:00
qBittorent still not shutting down properly #7661
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#7661
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 @RCarlsonMD on GitHub (Aug 24, 2018).
Please provide the following information
qBittorrent version and Operating System
Any version of QB since 4.xxxx, Windows 10 latest updates
If on linux, libtorrent and Qt version
(type here)
What is the problem
QB GUI closes but leaves a process running indefinitely. Problem duplicated on many Win 10 desktops and notebooks.
When trying to restart QB, the GUI won't start a second time without rebooting.
This has been going on a long time with QB.
Even if it's a Libtorrent bug, it STILL needs to be fixed. Just closing the topic is not any sort of solution.
What is the expected behavior
Clean exit and restart.
Steps to reproduce
(type here)
Extra info(if any)
(type here)
@WhosAsking commented on GitHub (Aug 25, 2018):
I've noted a number of these complaints in the past, and based on my personal experience, I think one of the most likely causes is a torrent gone bad. If it's possible, obtain fresh downloads of all your active torrents, then delete them from qBittorrent (you can save the local data), then add them back in using the torrent files. If you preserved the local data, the torrent should check itself then resume where it left off.
Does this problem persist even with NO torrents?
@RoadTrain commented on GitHub (Aug 26, 2018):
After update to 4.1.2.99~201808180832, it doesn't shut down cleanly on Linux Mint 18.
libtorrent 1.1.9+git20180812
@TheOne320 commented on GitHub (Sep 21, 2018):
I have the exact same problem. It bugs me a lot. Someone suggested deleting the whole torrent list. I have >400 Torrents running and do not want to all add them all back afterwards. Will this ever be fixed? I can provide as much information as needed.
Windows Pro x64 1803 with qBittorrent 4.1.3 x64
GUI closes but it stays open in Task Manager. No CPU usage.
@thalieht commented on GitHub (Sep 21, 2018):
If you are willing, you can do what says here https://github.com/qbittorrent/qBittorrent/issues/5097#issuecomment-208048460 and post the output in that issue which is watched by the devs.
Duplicate of #5097
@TheOne320 commented on GitHub (Sep 21, 2018):
Ok I did that.
@jrmain commented on GitHub (Oct 17, 2018):
Just started using qBittorrent, running it on Windows 8.1 64 bit. If I start qBittorrent, then close it without doing anything, the qbittorrent.exe process stops running. If I use qBittorrent to download something, once it's done and I close qBittorrent, the qbittorrent.exe process continues to run.
I often start qBittorrent by opening a .magnet or .torrent file from some other application, such as Firefox or DuckieTV, which may be part of the problem. I'll try starting it directly to see if that helps.
Note that I also have several stopped torrents permanently in my torrent list, which I use for testing; these are unlikely to be the problem, because qBittorrent closes fine with those torrents in the list as long as I haven't done any actual downloading.
@Tri125 commented on GitHub (Nov 13, 2018):
I'm running a freshly installed and up to date windows 7 64 machine.
I can independently confirm what jrmain observed.
Just like RCarlsonMD I also observed that the issue started to happen in the 4.x.x branch. I reported the issue back in February 2018 in #8157.
@jrmain commented on GitHub (Nov 14, 2018):
I've tried disabling all the options related to the notification area but it didn't help.
@Tri125 commented on GitHub (Mar 11, 2019):
I've been banned from their subreddit for trying to talk about the issue. I was told that "It works on my machine so you're making things up" (paraphrasing a bit). That's a very unprofessional attitude to have in regard to software development as a whole. Ignoring a bug for an entire year is something but silencing users trying to bring attention to the issue is crossing a line. I expected better.
If the devs aren't running the subreddit, then they should be aware that the guys that do are damaging their brand.
@jrmain commented on GitHub (Mar 12, 2019):
For what it's worth, yesterday I posted about the problem in that subreddit as well. No responses as yet.
@pleg commented on GitHub (Mar 17, 2019):
here is a workaround for this problem. go into the device manager and disable the network interface used for internet. check the task manager for memory usage of qBittorrent: if memory usage does not change the program is hanging. if memory usage changes qBittorrent is saving progress and shutting down. after qBittorrent has vanished from task manager you can enable network again, and safely shut down.
@Poldraunic-zz commented on GitHub (Jan 12, 2020):
When is this issue going to be addressed? Now qBittorrent prevent even my system (Windows 10) from shutting down. Sometimes, I have try to shutdown system up to 3 times for which I have no patience at all.
@pleg commented on GitHub (Jan 26, 2020):
@Poldraunic have you tried my workaround to disable the network interface? this fixes it for me. but just for me? if you try this and it closes cleanly, and you report back here, it could help finding the problem!
it seems to me the bug is a deadlock somewhere in the network stack, and the way the connection queue is architected. its probably a complex one that is hard to reproduce.
@Poldraunic-zz commented on GitHub (Jan 27, 2020):
@pleg
Yes, I have tried it and it indeed works, but I don't consider this a viable solution, just an annoying workaround.
I don't think this is a hard issue to reproduce: it happens to me about 8 out of 10 times. Getting to underlying issue, however, might be tricky.
Now that I think about it, I have couple torrents with unreachable trackers. Perhaps issue lies somewhere there? For example, program received shutdown signal and starts announcing last bits of information to trackers. Some of them, however, are down and it gets stuck because of it. @pleg, do you have any torrents with unreachable trackers?
@pleg commented on GitHub (Jan 27, 2020):
@Poldraunic
i mean its hard to reproduce for the devs. they need to debug it.
yes, i have a lot of torrents with unreachable trackers.
it could be, that it tries to announce to trackers that it is no longer seeding.
maybe 200 torrents having a bad tracker address plus the retry/timeout limit creates the issue.
it will wait forever on a nonexisting tracker to respond.
@RoadTrain commented on GitHub (Jan 27, 2020):
In cases like this it's usually a good idea to take an application dump right when it's deadlocked.
You can see which threads are waiting and for what exactly (you might need debug symbols though).
Of course if a developer is willing to take a look. And dumps can contain sensitive information, so it's better not to post them in public.
For me this issue stopped reproducing a long time ago so I can't really help.
@xavier2k6 commented on GitHub (Jan 28, 2020):
@ All
Can ye please provide a little more details?
qBittorrent version and Operating System (especially build) e.g. Windows 10 Pro x64 Build 18363.592 (November Update 1909)
Under advanced options
disk cache?
asyncronous i/o threads?
enable OS cache->checked/unchecked?
regarding systems:
amount of ram installed?
spin hard drive or ssd?
@Poldraunic-zz commented on GitHub (Jan 28, 2020):
Software:
Hardware:
@xavier2k6 commented on GitHub (Jan 28, 2020):
@Poldraunic please update qbittorrent to latest 4.1 branch (4.1.9.1) or actual latest 4.2 branch
qBittorrent changelog
4.2.x
ATTENTION: This release uses the libtorrent 1.2.x series. It saves fastresumes a bit differently than the 1.1.x series, which are used so far in the previous versions. If you run it and then downgrade to a previous qBittorrent version then your torrents will probably start rechecking.
4.2.1
ATTENTION: There's a slight change in the way network interfaces are configured. If you have a specific network interface/local address set in the Advanced Settings, go and make sure that your settings have stayed the same. The extra setting for Listen on IPv6 address has been removed.
@FranciscoPombal commented on GitHub (Jan 28, 2020):
To all users in this thread: perform a clean install of qbittorrent.
This means:
BT_backupfolder in %AppData% (this is what contains the data about your added torrents)BT_backupfolder and see if the shutdown problem still happens. If the problem appears at this stage, we now know the issue must be with a specific torrent/tracker.@Tri125 The qBittorrent subreddit is not official. If you keep saying this issue happens to you but fail to provide steps to reproduce it, or maybe stacktraces, etc, expect people to assume there is a problem with your setup, not with qBittorrent. The ban was probably due to the fact that qBittorrent is sometimes subject to FUD campaigns (stalled meme, etc), and a user providing no useful data becomes indistinguishable from a troll, thus the mods must have decided to err on the side of caution.
Nobody is ignoring anything. There is nothing to be ignored since no actionable data has been provided. At this point what is known is that there might be a problem with network interfaces on Windows. Until it is proven that the problem is on qBittorrent's side, nothing can be done. It could just be the case that some users have bad network drivers on Windows, a boost bug, a libtorrent bug, etc. Nobody is out to get you and this is not a big conspiracy being silenced.
Yeah. I also expected better from certain users. That they can for once provide a quality issue report about these sorts of problems, with dumps/stacktraces with symbols, proper profiling data, etc, just like contributors/devs have asked for numerous times instead of complaining about how "x bug has existed for y years!!!". But alas, here we are.
@Poldraunic-zz commented on GitHub (Feb 16, 2020):
Updated to a latest version a couple of weeks ago and so far it seem to have resolved shutdown issue.
@FranciscoPombal commented on GitHub (Feb 19, 2020):
Closing as duplicate of https://github.com/qbittorrent/qBittorrent/issues/5097