qBittorrent takes a long time to close #12260

Closed
opened 2026-02-21 22:31:29 -05:00 by deekerman · 2 comments
Owner

Originally created by @tuxayo on GitHub (Jul 8, 2021).

Bug report

Checklist

  • I have read the issue reporting section in the contributing guidelines, so I know how to submit a good bug report with the required information
  • I have verified that the issue is not fixed and is reproducible in the latest version
  • (optional but recommended) I have verified that the issue is not fixed and is reproducible in the latest CI build
  • I have checked the frequent/common issues list and searched the issue tracker for similar bug reports (including closed ones) to avoid posting a duplicate
  • This report is not a support request or question, both of which are better suited for either the discussions section, forum, or subreddit. The wiki did not contain a suitable solution either
  • I have pasted/attached the settings file and relevant log(s) in the Attachments section at the bottom of the report. Mandatory: the settings file and at least the most recent log. See this wiki page if you're not sure where to find them.

Description

It's a follow up of #5097 I finally got to reproduce a long closure case with asio-debugging enabled.

qBittorrent info and operating system(s)

  • qBittorrent version: 4.3.6 (stable from official arch package)
  • Operating system(s) where the issue occurs: EndeavourOS (Arch Linux based)

If on Linux, libtorrent-rasterbar and Qt versions

  • Qt: 5.15.2
  • libtorrent-rasterbar: 1.2.x git @33a10d5a7

Detailed steps to reproduce the problem

  1. run qbittorrent in the terminal
  2. wait for UI to appear
  3. ctrl-q to close qBittorrent
  4. check the terminal to see that qBittorrent takes several minutes to close.

What is the expected behavior

Closing in less than 10sec. Not sure if that's a reasonable expectation but a too long time hinders closing and restarting QBT when needing to wait it to close for a too long time.

Extra info (if any)

Source based package for libtorrent:
https://aur.archlinux.org/packages/libtorrent-rasterbar-1_2-git/

With the addition of this build flag -DCMAKE_CXX_FLAGS=-DTORRENT_ASIO_DEBUGGING

About the logs. QBT spends by far most of the time in the last "Waiting to shut down EXPECTS NO MORE ASYNC OPS"

The Waiting to shut down number can range from 2 to 23 after a few tries.

The measured timed ranges from 2:30 to 3 min

Attachments

terminal logs

In ~/.local/share/data/qBittorrent/ the only new log line when ordering QBT to close is (I) 2021-07-08T19:19:36 - UPnP / NAT-PMP support [OFF]

Originally created by @tuxayo on GitHub (Jul 8, 2021). # Bug report ## Checklist - [X] I have read the **issue reporting section** in the [contributing guidelines](https://github.com/qbittorrent/qBittorrent/blob/master/CONTRIBUTING.md), so I know how to submit a good bug report with the required information - [X] I have verified that the **issue is not fixed and is reproducible** in the **[latest version](https://www.qbittorrent.org/download.php)** - [ ] (optional but recommended) I have verified that the **issue is not fixed and is reproducible** in the **[latest CI build](https://github.com/qbittorrent/qBittorrent/actions/workflows/ci.yaml?query=branch%3Amaster+event%3Apush)** - [X] I have **checked the [frequent/common issues list](https://github.com/qbittorrent/qBittorrent/projects/2)** and **searched** the issue tracker for similar bug reports (including closed ones) **to avoid posting a duplicate** - [X] This report is **not a support request or question**, both of which are better suited for either the [discussions section](https://github.com/qbittorrent/qBittorrent/discussions), [forum](https://qbforums.shiki.hu/), or [subreddit](https://www.reddit.com/r/qBittorrent/). The [wiki](https://github.com/qbittorrent/qBittorrent/wiki) did not contain a suitable solution either - [X] I have **pasted/attached the settings file and relevant log(s)** in the **Attachments** section at the bottom of the report. Mandatory: the settings file and at least the most recent log. See [this wiki page](https://github.com/qbittorrent/qBittorrent/wiki/Frequently-Asked-Questions#Where_does_qBittorrent_save_its_settings) if you're not sure where to find them. ## Description It's a follow up of #5097 I finally got to reproduce a long closure case with asio-debugging enabled. ### qBittorrent info and operating system(s) - qBittorrent version: 4.3.6 (stable from official arch package) - Operating system(s) where the issue occurs: EndeavourOS (Arch Linux based) ### If on Linux, `libtorrent-rasterbar` and `Qt` versions - Qt: 5.15.2 - libtorrent-rasterbar: 1.2.x git @33a10d5a7 ### Detailed steps to reproduce the problem 1. run qbittorrent in the terminal 2. wait for UI to appear 3. ctrl-q to close qBittorrent 4. check the terminal to see that qBittorrent takes several minutes to close. ### What is the expected behavior Closing in less than 10sec. Not sure if that's a reasonable expectation but a too long time hinders closing and restarting QBT when needing to wait it to close for a too long time. ### Extra info (if any) Source based package for libtorrent: https://aur.archlinux.org/packages/libtorrent-rasterbar-1_2-git/ With the addition of this build flag `-DCMAKE_CXX_FLAGS=-DTORRENT_ASIO_DEBUGGING` About the logs. QBT spends by far most of the time in the last "Waiting to shut down EXPECTS NO MORE ASYNC OPS" The Waiting to shut down number can range from 2 to 23 after a few tries. The measured timed ranges from 2:30 to 3 min ## Attachments [terminal logs](https://github.com/qbittorrent/qBittorrent/files/6786154/qbittorrent.log.txt) In `~/.local/share/data/qBittorrent/` the only new log line when ordering QBT to close is `(I) 2021-07-08T19:19:36 - UPnP / NAT-PMP support [OFF]`
deekerman 2026-02-21 22:31:29 -05:00
Author
Owner

@FranciscoPombal commented on GitHub (Jul 9, 2021):

@arvidn ping.

@FranciscoPombal commented on GitHub (Jul 9, 2021): @arvidn ping.
Author
Owner

@xavier2k6 commented on GitHub (Sep 30, 2024):

qBittorrent version: 4.3.6

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.

@xavier2k6 commented on GitHub (Sep 30, 2024): >qBittorrent version: 4.3.6 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.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/qBittorrent#12260
No description provided.