qbittorrent / qBittorrent

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

5.0.1 win - torrent gone every time i start #21825

Open scomnoob opened 1 week ago

scomnoob commented 1 week ago

qBittorrent & operating system versions

Qt: 6.7.3 Libtorrent: 2.0.11.0 Boost: 1.86.0 OpenSSL: 3.4.0 zlib: 1.3.1 Edition Windows 11 Pro Version 23H2 Installed on ‎11/‎7/‎2024 OS build 22631.4391 Experience Windows Feature Experience Pack 1000.22700.1047.0

What is the problem?

1 torrent gone every time i start program how can i help to debug?

Steps to reproduce

No response

Additional context

No response

Log(s) & preferences file(s)

(C) 2024-11-12T18:35:09 - Failed to resume torrent. Torrent: "223158cdf9e887d4880bae84aedbabbe69f6e427". Reason: "File size exceeds limit. File: "C:/Users/strto/AppData/Local/qBittorrent/BT_backup/223158cdf9e887d4880bae84aedbabbe69f6e427.fastresume". File size: 501970422. Size limit: 104857600"

https://disk.yandex.ru/d/DJAHq02KYhiKtQ that file

HanabishiRecca commented 1 week ago

File size: 501970422. Size limit: 104857600"

https://disk.yandex.ru/d/DJAHq02KYhiKtQ that file

Almost 500M resume file? That's insane. Share the torrent file itself.

scomnoob commented 1 week ago

https://disk.yandex.ru/d/OMDC_DuIEU0Y2w

HanabishiRecca commented 1 week ago

Hmm, I don't see any problems after adding it into the client. And generated .fastresume file is only ~53M in size for me.

scomnoob commented 1 week ago

Hmm, I don't see any problems after adding it into the client. And generated .fastresume file is only ~53M in size for me.

maybe i can ... reset... something ?

if its ok for you - i think its not a bug...maybe...

also torrent was created in 5.0.1

glassez commented 1 week ago

Is it v2/hybrid torrent?

HanabishiRecca commented 1 week ago

maybe i can ... reset... something ?

Well, did you try just deleting the .fastresume file and adding the torrent to the client again?

Is it v2/hybrid torrent?

Yes.

glassez commented 1 week ago

Is it v2/hybrid torrent?

Yes.

So it's not an indicator to look at its .fastresume file size immediately after adding it. As you download, "merkle tree" hashes also accumulate there, so if the torrent contains a large amount of data, then the .fastresume file size will be proportionally large over time.

HanabishiRecca commented 1 week ago

So, it's simply too big? 100 MiB is a hardcoded limit afaik.

HanabishiRecca commented 1 week ago

Nvm, I see from the code that the .fastresume file size limit is inherited from the same option as the .torrent file size limit.

https://github.com/qbittorrent/qBittorrent/blob/92daca1fefdf9a4ea8a4e9c80f63f0f96a7668d0/src/base/bittorrent/bencoderesumedatastorage.cpp#L148-L152


@scomnoob, go to Settings > Advanced, find .torrent file size limit option and set it to something like 1000 I guess.

glassez commented 1 week ago

So, it's simply too big?

Yes. This can be seen in the log message.

scomnoob commented 1 week ago

So, it's simply too big?

Yes. This can be seen in the log message.

thanks and i was looking for 'fastresume' setting... :)

HanabishiRecca commented 1 week ago

Yes. This can be seen in the log message.

I see the log message. I just didn't know that both limits are controlled by the same option.

glassez commented 1 week ago

I see from the code that the .fastresume file size limit is inherited from the same option as the .torrent file size limit.

Yes. This is a problem, as ".torrent" and ".fastresume" files have the "usual size" of a different magnitude.

HanabishiRecca commented 1 week ago

Yeah, the torrent file itself is small ~1.8 MiB. We could:

  1. Just add a static multiplier for fastresume files. E.g.

    const auto resumeDataReadResult = Utils::IO::readFile(fastresumePath, torrentSizeLimit * 100);
  2. Split them into two separate options.

scomnoob commented 1 week ago

change in settings solves the problem thanks

stalkerok commented 1 week ago

Duplicate of