qbittorrent / qBittorrent

qBittorrent BitTorrent client
https://www.qbittorrent.org
Other
26.08k stars 3.84k forks source link

"mising files": possible bug on latest qBittorrent (stable v4.6.5 and v5.0.0beta1) #20984

Open clngr opened 3 weeks ago

clngr commented 3 weeks ago

qBittorrent & operating system versions

qBittorrent: 4.6.5 x64 and 5.0.0 beta 1 Operating system: Windows 10 Ent 22H2

What is the problem?

Missing files error creating a torrent using the folders on this file:

https://mega.nz/file/L0ZwhALD#xlCrydl6mvMC1msm05770k62wVQG0QWdkYAmQyEpjhw

Steps to reproduce

No response

Additional context

No response

Log(s) & preferences file(s)

qbittorrent.log

stalkerok commented 3 weeks ago

The file was modified by you or some program without your knowledge, so you are getting this error (W) 2024-06-22T11:08:43 - Failed to restore torrent. Files were probably moved or storage isn't accessible. Torrent: "Music". Reason: "Music fast resume rejected. file_stat(C:\Users\junior\Downloads\Music\Compilation\Various - Night9 Promo\Hip On Ice – Bend Me, Shape Me Don't Let Go (Ice Dance Mix) 1991.mp3): mismatching file size" This is indirectly evidenced by the error when deleting the torrent (W) 2024-06-20T09:44:47 - Removed torrent but failed to delete its content and/or partfile. Torrent: "Music". Error: "The directory is not empty"

clngr commented 3 weeks ago

I've tried already to create a new torrent from other path and it still happens, even with the files having another root folder. Those files are not being accessed by other applications.

clngr commented 3 weeks ago

It was possible to reproduce on another system. Log and screenshots attached.

(At first it shows contents as 100% but still missing files (?!). After closing and opening qBittorrent again, it shows specific files as incomplete)

qbittorrent.log 2024-06-23_17h13_46 2024-06-23_17h15_07

stalkerok commented 3 weeks ago

You may have something wrong with the name of this file, notice the few spaces, try renaming it.

clngr commented 3 weeks ago

Happening with 2 sequential files? Even so, seems like a bug, as the files plays with no issues.

stalkerok commented 3 weeks ago

You may have this issue, it's not a bug.

clngr commented 3 weeks ago

So it's a libtorrent issue, correct? Is this going to change?

HanabishiRecca commented 3 weeks ago

No, it's not an issue, file names are sanitized intentionally.