Skip to content

Partial downloads misbehave with libtorrent 2.0 POSIX-compliant mode #20351

Description

@HanabishiRecca

qBittorrent & operating system versions

qBittorrent v4.6.3
OS: Arch Linux
Qt: 6.6.1
Libtorrent: 2.0.9

What is the problem?

Partial downloads has weird behavior with libtorrent 2.0 POSIX-compliant mode.
Edit: this is because POSIX storage do not restore file priorities arvidn/libtorrent#7593

Steps to reproduce

  1. Set Disk IO type to POSIX-compliant.
  2. Add a torrent with many files, keep all files selected for now, but do not start the torrent (i.e. uncheck the Start torrent option).
  3. Go into the Content tab and uncheck some arbitrary files to make the task partial.
  4. Start the download. Unwanted parts will be saved into .parts file.
  5. Wait until the download is 100% completed.
  6. Exit the client.
  7. Start the client again.

You will see Missing Files error on that task as it wants actual file parts to be present instead of the .parts file now.

You can also force recheck it and see that the progress is not 100% anymore. Because after the client restart that task has switched into the different mode for some reason.

Additional context

I found this bug because you can't uncheck files while adding a torrent in WebUI. So you add full torrent first (paused) and only then uncheck the files.

Log(s) & preferences file(s)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions