"On download done" actions are premature (exit, shutdown, etc). #12396

Open
opened 2026-02-21 22:41:30 -05:00 by deekerman · 1 comment
Owner

Originally created by @solidus0079 on GitHub (Sep 6, 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

qBittorrent info and operating system(s)

  • qBittorrent version: 4.3.8 (64-bit)
  • Operating system(s) where the issue occurs: Windows 10 (10.0.1xxxx)

If on Linux, libtorrent-rasterbar and Qt versions

  • Qt: (type here)
  • libtorrent-rasterbar: (type here)

What is the problem

Actions set to occur after torrents are done downloading occur too soon. Eg: if set to "exit qBitorrent" or shutdown the system upon completion of downloads, it might occur while one or more of the downloaded files are still being moved to another drive or checked for errors if that option is enabled in Advanced. It is easily reproducible by downloading two files at the same time, and setting the completed files to be moved to a network resource. When the first file is done moving, it will initiate the shutdown timer while the 2nd file is still moving.

Detailed steps to reproduce the problem

  1. have downloads set to save to a slower drive, either a network resource or something that is not overly fast for file transfers
  2. have "incomplete torrents" working folder set to a local temp drive (better than excessive network traffic that would be caused)
  3. set "On Downloads Done" to "Exit qBittorrent", "Shutdown System", or anything other than "Disabled"
  4. download more than one torrent, ping some that will complete around the same time (within the 15 second countdown timer)
  5. the program will exit or shutdown the system after the first file is done, interrupting the file transfer of others that have been initiated after the first completed

What is the expected behavior

The program should exit after all files have been completed, and not just the first file. The program should not exit or shutdown the system during other torrents' post-download file operations.

Extra info (if any)

(type here)

Attachments

(I) 2021-09-06T14:44:41 - UPnP/NAT-PMP: Port mapping successful, message: successfully mapped port using UPnP. external port: TCP/xxxxx
(I) 2021-09-06T14:44:41 - UPnP/NAT-PMP: Port mapping successful, message: successfully mapped port using UPnP. external port: UDP/xxxxx
(N) 2021-09-06T14:44:41 - 'ubuntu-21.04-live-server-amd64.iso' restored.
(N) 2021-09-06T14:44:41 - 'ubuntu-20.04.3-live-server-amd64.iso' restored.
(I) 2021-09-06T14:44:44 - Detected external IP: xxx.xxx.xxx.xxx
(N) 2021-09-06T14:45:41 - Enqueued to move "ubuntu-21.04-live-server-amd64.iso" from "D:\Temp" to "M:\Temp".
(N) 2021-09-06T14:45:41 - Moving "ubuntu-21.04-live-server-amd64.iso" to "M:\Temp"...
(N) 2021-09-06T14:46:01 - Enqueued to move "ubuntu-20.04.3-live-server-amd64.iso" from "D:\Temp" to "M:\Temp".
(N) 2021-09-06T14:46:51 - 'ubuntu-21.04-live-server-amd64.iso' reached the maximum seeding time you set. Paused.
(N) 2021-09-06T14:46:55 - "ubuntu-21.04-live-server-amd64.iso" is successfully moved to "M:\Temp".
(N) 2021-09-06T14:46:55 - Moving "ubuntu-20.04.3-live-server-amd64.iso" to "M:\Temp"...
(N) 2021-09-06T14:47:01 - 'ubuntu-20.04.3-live-server-amd64.iso' reached the maximum seeding time you set. Paused.
(I) 2021-09-06T14:47:10 - UPnP / NAT-PMP support [OFF]

Originally created by @solidus0079 on GitHub (Sep 6, 2021). # Bug report <!-- ############################################################################### WARNING! IGNORING THE INSTRUCTIONS IN THIS TEMPLATE WILL RESULT IN THE ISSUE BEING CLOSED AS INCOMPLETE/INVALID ############################################################################### --> ## Checklist <!-- ################################## IMPORTANT ################################## As you read and fulfill each of the following requirements below, put an "x" between the square brackets to mark each task as done, like so: [x] --> - [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 <!-- ################################## IMPORTANT ################################## Delete each "(type here)" indicator and type your text in their place in the subsections below. You MUST fill in ALL subsections marked with "(type here)" with the appropriate information. Please make sure the description is worded well enough to be understood. Provide steps to reproduce the issue, any additional relevant information, suggested solution (if applicable) and as much context and examples as possible. For more information consult the Contributing Guidelines at https://github.com/qbittorrent/qBittorrent/blob/master/CONTRIBUTING.md. Do not forget about the mandatory attachments! Use the Preview tab before posting to make sure your report looks like it is formatted properly. You don't need to delete these comments, they won't show up in the final post. --> ### qBittorrent info and operating system(s) <!-- IMPORTANT: if you did not get the qBittorrent installer from the links in the official website or if you did not install it from the PPA, please mention that after the version --> - qBittorrent version: 4.3.8 (64-bit) - Operating system(s) where the issue occurs: Windows 10 (10.0.1xxxx) ### If on Linux, `libtorrent-rasterbar` and `Qt` versions - Qt: (type here) - libtorrent-rasterbar: (type here) ### What is the problem Actions set to occur after torrents are done downloading occur too soon. Eg: if set to "exit qBitorrent" or shutdown the system upon completion of downloads, it might occur while one or more of the downloaded files are still being moved to another drive or checked for errors if that option is enabled in Advanced. It is easily reproducible by downloading two files at the same time, and setting the completed files to be moved to a network resource. When the first file is done moving, it will initiate the shutdown timer while the 2nd file is still moving. ### Detailed steps to reproduce the problem 1. have downloads set to save to a slower drive, either a network resource or something that is not overly fast for file transfers 2. have "incomplete torrents" working folder set to a local temp drive (better than excessive network traffic that would be caused) 3. set "On Downloads Done" to "Exit qBittorrent", "Shutdown System", or anything other than "Disabled" 4. download more than one torrent, ping some that will complete around the same time (within the 15 second countdown timer) 5. the program will exit or shutdown the system after the first file is done, interrupting the file transfer of others that have been initiated after the first completed ### What is the expected behavior The program should exit after *all* files have been completed, and not just the first file. The program should not exit or shutdown the system during other torrents' post-download file operations. ### Extra info (if any) (type here) ## Attachments (I) 2021-09-06T14:44:41 - UPnP/NAT-PMP: Port mapping successful, message: successfully mapped port using UPnP. external port: TCP/xxxxx (I) 2021-09-06T14:44:41 - UPnP/NAT-PMP: Port mapping successful, message: successfully mapped port using UPnP. external port: UDP/xxxxx (N) 2021-09-06T14:44:41 - 'ubuntu-21.04-live-server-amd64.iso' restored. (N) 2021-09-06T14:44:41 - 'ubuntu-20.04.3-live-server-amd64.iso' restored. (I) 2021-09-06T14:44:44 - Detected external IP: xxx.xxx.xxx.xxx (N) 2021-09-06T14:45:41 - Enqueued to move "ubuntu-21.04-live-server-amd64.iso" from "D:\Temp\" to "M:\Temp". (N) 2021-09-06T14:45:41 - Moving "ubuntu-21.04-live-server-amd64.iso" to "M:\Temp"... (N) 2021-09-06T14:46:01 - Enqueued to move "ubuntu-20.04.3-live-server-amd64.iso" from "D:\Temp\" to "M:\Temp". (N) 2021-09-06T14:46:51 - 'ubuntu-21.04-live-server-amd64.iso' reached the maximum seeding time you set. Paused. (N) 2021-09-06T14:46:55 - "ubuntu-21.04-live-server-amd64.iso" is successfully moved to "M:\Temp". (N) 2021-09-06T14:46:55 - Moving "ubuntu-20.04.3-live-server-amd64.iso" to "M:\Temp"... (N) 2021-09-06T14:47:01 - 'ubuntu-20.04.3-live-server-amd64.iso' reached the maximum seeding time you set. Paused. (I) 2021-09-06T14:47:10 - UPnP / NAT-PMP support [OFF] <!-- paste file contents here (or attach the files if they are big), do NOT link to external sites -->
Author
Owner

@FranciscoPombal commented on GitHub (Oct 18, 2021):

@glassez ping, you might want to look into this (related to torrent move operations).

@FranciscoPombal commented on GitHub (Oct 18, 2021): @glassez ping, you might want to look into this (related to torrent move operations).
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#12396
No description provided.