mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-03-02 22:57:32 -05:00
Monster sized parts file, as large as the total torrent content #6724
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#6724
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 @mzso on GitHub (Jan 6, 2018).
qBittorrent version and Operating System
4.0.3
What is the problem
I was wondering where is all the space going. Then I realized parts files were created that are ridiculously huge even though all the space was already allocated to the files.
It seems like yet another bug related to checking files that were previously unselected. Because I did exactly that. I also moved some unfinished torrents between drives because I kept running out of space not knowing why.
What is the expected behavior
Not wasting space pointlessly
Two of these are not like the others:

@mzso commented on GitHub (Jan 6, 2018):
#8070 also came up again for several files, downloading just stops before files are finished. Example:

@thalieht commented on GitHub (Jan 6, 2018):
Check the piece size for each torrent. Combine that with the logical assumption that you deselect several files in these torrents, whose pieces are not adjacent to each other, ergo must download more cross-file pieces.
This info is in the General tab.
EDIT: Never mind i just saw the giga size files. Something must indeed be wrong.
@mzso commented on GitHub (Apr 1, 2018):
@arvidn
Hi!
Do you think it might be a libtorrent issue. Not sure if QB can even touch anything partfile related, if I'm not mistaken low level stuff like this is mostly libtorrent's realm.
There are other rather serious issues that popped up related to files (being moved (de)selected): #7966, #8070
@arvidn commented on GitHub (Apr 1, 2018):
Those large partfiles, are they larger than the total size of the torrent?
Do they approximately represent the size of the files that were de-selected?
The file format is pretty simple, the first two fields (4 bytes each) is the total number of pieces and the piece size of the torrent. This is followed by an array of num-pieces slots (also 4 bytes), each indicating which piece is stored in the respective slot. 0xffffffff indicates the slot is empty (and shouldn't be allocated on disk).
So, for the large part files, I wonder if some file keeps getting downloaded into the partfile even though it should have priority zero. @mzso any chance you could
hexdump -Cthe first few hundred bytes of one of the files?@mzso commented on GitHub (Apr 1, 2018):
@arvidn commented on 2018. ápr. 1. 23:42 CEST:
No they weren't
I googled the hashcodes and they both seems to have been somewhat smaller. The size for both is 12.87GB.
I don't have them anymore. I should have thought about notifying you when I encountered this, but it didn't occur to me at the time.
All I can say right now that only started with some files from both torrents then I started runinng out of space (some torrents might have stopped downloading because of this, though not changing to an errored state, of which I'm sure of). So I set some of their location to a different drive, including these two I think, but the space wasn't getting freed up that's when I noticed this huge part files. (Part files are not moved from the initial location with the content files)
Maybe if I'll have lots of time sometime I'll try to recreate this but I don't think it'd be an easy task with files being checked progressively, disk space running out and moving between drives. (In who knows what order)
On a side note:
Is the .unwanted folder still appearing (#7966) a normal thing with the 4.0 QB line (and the libtorrent version it uses). It can be quite bothersome and eclectic with several empty folders with also empty .unwanted folders in them.
@FranciscoPombal commented on GitHub (Sep 14, 2020):
@mzso can you reproduce this in a recent
masterbuild with libtorrent >= 1.2.10? The.unwantedfolder feature has been removed since this was originally posted...If you need Windows builds, use one of these: https://github.com/FranciscoPombal/qBittorrent/actions (version:
1c87073990+ libtorrent >= 1.2.10)@mzso commented on GitHub (Sep 15, 2020):
Well, I couldn't really recreate it even then. I haven't noticed it happening again.
@FranciscoPombal commented on GitHub (Sep 15, 2020):
Alright, closing then.