Long pathname and filename cause 'File sizes mismatch' #8157

Closed
opened 2026-02-21 19:23:32 -05:00 by deekerman · 1 comment
Owner

Originally created by @adem4ik on GitHub (Dec 8, 2018).

qBittorrent version and Operating System

qB v4.1.4, Windows 10 x64

What is the problem

Precondition: appending .!qB for unfinished files is enabled

  1. Start download torrent with long pathnames and filenames for some files (i.e. E:\Movies\Hentai\Muttsuri_do_sukebe_tsuyu_gibo_shimai_no_honshitsu_minuite_sex_sanmai_[1280-720][rerip][Galan_rus_raw]_(2018)\RUS\Muttsuri_do_sukebe_tsuyu_gibo_shimai_no_honshitsu_minuite_sex_sanmai_01_[1280-720][rerip][Galan_rus_raw][C6DF5CA8].rus_DrWho3_&_Danjke.srt
  2. Wait for torrent to be fully downloaded

Result:

  • File keeps the name with .!qB extension
  • After a while torrent gets errored with log message like 'File sizes mismatch for torrent 'XYZ', pausing it.

What is the expected behavior

  • File is renamed to the normal name w/o .!qB
  • Torrent starts seeding after finishing downloading

Steps to reproduce

See above

Extra info(if any)

  • I can't drop example torrent file here, since it is private torrent, but I can send a link via e-mail if you need.

  • I've downloaded torrent content to E:/Movies/Hentai. Some content has been downloaded successfully, some has not - marked as OK/NOT OK. Here is a list of torrent content:

/Muttsuri_do_sukebe_tsuyu_gibo_shimai_no_honshitsu_minuite_sex_sanmai_[1280-720][rerip][Galan_rus_raw]_(2018)
+--Muttsuri_do_sukebe_tsuyu_gibo_shimai_no_honshitsu_minuite_sex_sanmai_01_[1280-720][rerip][Galan_rus_raw][C6DF5CA8].mkv (OK)
+--Muttsuri_do_sukebe_tsuyu_gibo_shimai_no_honshitsu_minuite_sex_sanmai_02_[1280-720][rerip][Galan_rus_raw][F3ED5D1F].mkv (OK)
+--CHI
     +--Muttsuri_do_sukebe_tsuyu_gibo_shimai_no_honshitsu_minuite_sex_sanmai_01_[1280-720][rerip][Galan_rus_raw][C6DF5CA8].chi_Haretahoo.sub.ass (NOT OK)
     +--Muttsuri_do_sukebe_tsuyu_gibo_shimai_no_honshitsu_minuite_sex_sanmai_01_[1280-720][rerip][Galan_rus_raw][C6DF5CA8].chi_Maho.sub.ass (NOT OK)
     +--Muttsuri_do_sukebe_tsuyu_gibo_shimai_no_honshitsu_minuite_sex_sanmai_02_[1280-720][rerip][Galan_rus_raw][F3ED5D1F].chi_Haretahoo.sub.ass (NOT OK)
     +--Muttsuri_do_sukebe_tsuyu_gibo_shimai_no_honshitsu_minuite_sex_sanmai_02_[1280-720][rerip][Galan_rus_raw][F3ED5D1F].chi_Maho.sub.ass (NOT OK)
+--ENG
     +--Muttsuri_do_sukebe_tsuyu_gibo_shimai_no_honshitsu_minuite_sex_sanmai_01_[1280-720][rerip][Galan_rus_raw][C6DF5CA8].eng_HH.ass (OK)
     +--Muttsuri_do_sukebe_tsuyu_gibo_shimai_no_honshitsu_minuite_sex_sanmai_01_[1280-720][rerip][Galan_rus_raw][C6DF5CA8].eng_SakuraCircle.ass (NOT OK)
     +--Muttsuri_do_sukebe_tsuyu_gibo_shimai_no_honshitsu_minuite_sex_sanmai_02_[1280-720][rerip][Galan_rus_raw][F3ED5D1F].eng_HH.ass (OK)
     +--Muttsuri_do_sukebe_tsuyu_gibo_shimai_no_honshitsu_minuite_sex_sanmai_02_[1280-720][rerip][Galan_rus_raw][F3ED5D1F].eng_SakuraCircle.ass (NOT OK)
+--RUS
     +--Muttsuri_do_sukebe_tsuyu_gibo_shimai_no_honshitsu_minuite_sex_sanmai_01_[1280-720][rerip][Galan_rus_raw][C6DF5CA8].rus_DrWho3_&_Danjke.srt (NOT OK)
     +--Muttsuri_do_sukebe_tsuyu_gibo_shimai_no_honshitsu_minuite_sex_sanmai_02_[1280-720][rerip][Galan_rus_raw][F3ED5D1F].rus_DrWho3_&_Danjke.srt (NOT OK)
+--screenlists
     +--Muttsuri_do_sukebe_01_[1280-720][rerip][Galan_rus_raw][C6DF5CA8].mkv_thumbs.jpg (OK)
     +--Muttsuri_do_sukebe_02_[1280-720][rerip][Galan_rus_raw][F3ED5D1F].mkv_thumbs.jpg (OK)

Starting in Windows 10, version 1607, MAX_PATH limitations have been removed from common Win32 file and directory functions.

  • Also I've checked HKLM\SYSTEM\CurrentControlSet\Control\FileSystem LongPathsEnabled value and it's enabled (true or 1).
Originally created by @adem4ik on GitHub (Dec 8, 2018). ### qBittorrent version and Operating System qB v4.1.4, Windows 10 x64 ### What is the problem **Precondition:** appending .!qB for unfinished files is enabled 1. Start download torrent with long pathnames and filenames for some files (i.e. `E:\Movies\Hentai\Muttsuri_do_sukebe_tsuyu_gibo_shimai_no_honshitsu_minuite_sex_sanmai_[1280-720][rerip][Galan_rus_raw]_(2018)\RUS\Muttsuri_do_sukebe_tsuyu_gibo_shimai_no_honshitsu_minuite_sex_sanmai_01_[1280-720][rerip][Galan_rus_raw][C6DF5CA8].rus_DrWho3_&_Danjke.srt` 2. Wait for torrent to be fully downloaded **Result:** - File keeps the name with .!qB extension - After a while torrent gets errored with log message like `'File sizes mismatch for torrent 'XYZ', pausing it.` ### What is the expected behavior - File is renamed to the normal name w/o .!qB - Torrent starts seeding after finishing downloading ### Steps to reproduce See above ### Extra info(if any) - I can't drop example torrent file here, since it is private torrent, but I can send a link via e-mail if you need. - I've downloaded torrent content to `E:/Movies/Hentai`. Some content has been downloaded successfully, some has not - marked as OK/NOT OK. Here is a list of torrent content: ``` /Muttsuri_do_sukebe_tsuyu_gibo_shimai_no_honshitsu_minuite_sex_sanmai_[1280-720][rerip][Galan_rus_raw]_(2018) +--Muttsuri_do_sukebe_tsuyu_gibo_shimai_no_honshitsu_minuite_sex_sanmai_01_[1280-720][rerip][Galan_rus_raw][C6DF5CA8].mkv (OK) +--Muttsuri_do_sukebe_tsuyu_gibo_shimai_no_honshitsu_minuite_sex_sanmai_02_[1280-720][rerip][Galan_rus_raw][F3ED5D1F].mkv (OK) +--CHI +--Muttsuri_do_sukebe_tsuyu_gibo_shimai_no_honshitsu_minuite_sex_sanmai_01_[1280-720][rerip][Galan_rus_raw][C6DF5CA8].chi_Haretahoo.sub.ass (NOT OK) +--Muttsuri_do_sukebe_tsuyu_gibo_shimai_no_honshitsu_minuite_sex_sanmai_01_[1280-720][rerip][Galan_rus_raw][C6DF5CA8].chi_Maho.sub.ass (NOT OK) +--Muttsuri_do_sukebe_tsuyu_gibo_shimai_no_honshitsu_minuite_sex_sanmai_02_[1280-720][rerip][Galan_rus_raw][F3ED5D1F].chi_Haretahoo.sub.ass (NOT OK) +--Muttsuri_do_sukebe_tsuyu_gibo_shimai_no_honshitsu_minuite_sex_sanmai_02_[1280-720][rerip][Galan_rus_raw][F3ED5D1F].chi_Maho.sub.ass (NOT OK) +--ENG +--Muttsuri_do_sukebe_tsuyu_gibo_shimai_no_honshitsu_minuite_sex_sanmai_01_[1280-720][rerip][Galan_rus_raw][C6DF5CA8].eng_HH.ass (OK) +--Muttsuri_do_sukebe_tsuyu_gibo_shimai_no_honshitsu_minuite_sex_sanmai_01_[1280-720][rerip][Galan_rus_raw][C6DF5CA8].eng_SakuraCircle.ass (NOT OK) +--Muttsuri_do_sukebe_tsuyu_gibo_shimai_no_honshitsu_minuite_sex_sanmai_02_[1280-720][rerip][Galan_rus_raw][F3ED5D1F].eng_HH.ass (OK) +--Muttsuri_do_sukebe_tsuyu_gibo_shimai_no_honshitsu_minuite_sex_sanmai_02_[1280-720][rerip][Galan_rus_raw][F3ED5D1F].eng_SakuraCircle.ass (NOT OK) +--RUS +--Muttsuri_do_sukebe_tsuyu_gibo_shimai_no_honshitsu_minuite_sex_sanmai_01_[1280-720][rerip][Galan_rus_raw][C6DF5CA8].rus_DrWho3_&_Danjke.srt (NOT OK) +--Muttsuri_do_sukebe_tsuyu_gibo_shimai_no_honshitsu_minuite_sex_sanmai_02_[1280-720][rerip][Galan_rus_raw][F3ED5D1F].rus_DrWho3_&_Danjke.srt (NOT OK) +--screenlists +--Muttsuri_do_sukebe_01_[1280-720][rerip][Galan_rus_raw][C6DF5CA8].mkv_thumbs.jpg (OK) +--Muttsuri_do_sukebe_02_[1280-720][rerip][Galan_rus_raw][F3ED5D1F].mkv_thumbs.jpg (OK) ``` - Also I think that issue might be exaplained as here - https://github.com/qbittorrent/qBittorrent/issues/8874#issuecomment-388567905 But the [link](https://docs.microsoft.com/ru-ru/windows/desktop/FileIO/naming-a-file) says: > Starting in Windows 10, version 1607, MAX_PATH limitations have been removed from common Win32 file and directory functions. - Also I've checked `HKLM\SYSTEM\CurrentControlSet\Control\FileSystem LongPathsEnabled` value and it's enabled (true or 1).
deekerman 2026-02-21 19:23:32 -05:00
Author
Owner

@adem4ik commented on GitHub (Dec 8, 2018):

I got it, it is just Windows' limitation, since those files can't be even renamed inside Explorer. So the only solution is too rename root folder to the shorter name, recheck the torrent and re-download unfinished files.

@adem4ik commented on GitHub (Dec 8, 2018): I got it, it is just Windows' limitation, since those files can't be even renamed inside Explorer. So the only solution is too rename root folder to the shorter name, recheck the torrent and re-download unfinished files.
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#8157
No description provided.