qbittorrent / qBittorrent

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

qBittorrent brought to it's knees when viewing Content of a massive torrent #15752

Open PythonCoderAS opened 2 years ago

PythonCoderAS commented 2 years ago

qBittorrent & operating system versions

qBittorrent: 4.3.9 Operating system: MacOS Big Sur 11.6

What is the problem?

When viewing a torrent with an absurd amount of files (over 30k files) in the "Content" tab, the entire program hangs and won't respond until manually killed. It also uses up all of my computer's CPU.

Steps to reproduce

  1. Try to download a big torrent, such as magnet:?xt=urn:btih:a1f2fd7860bc43dc01a76c08863e9651c1554ede&dn=catmanga_20211111&tr=http%3a%2f%2fnyaa.tracker.wf%3a7777%2fannounce&tr=udp%3a%2f%2ftracker.openbittorrent.com%3a6969
  2. Open the "Content" tab

Additional context

When the full torrent completed, my filesystem reported 37k files.

Log(s) & preferences file(s)

No response

thalieht commented 2 years ago

Can't reproduce in Win 10. Only a slight half a second freeze when selecting the torrent in the list or a bigger lag when grabbing the scroll bar and going all the way to the end of the list, while it's fully expanded. After it's loaded into memory (~20 MB), no more lags.

PythonCoderAS commented 2 years ago

Can't reproduce in Win 10. Only a slight half a second freeze when selecting the torrent in the list or a bigger lag when grabbing the scroll bar and going all the way to the end of the list, while it's fully expanded. After it's loaded into memory (~20 MB), no more lags.

Let me be more specific, I'm talking about the part where you can view all files in the torrent. I also tried with a copy of qbittorrent-nox running on Linux and that also froze my web browser.

PythonCoderAS commented 2 years ago

It was able to bring down qbittorrent-nox (see video attached) https://user-images.githubusercontent.com/13932583/142348128-9697e126-5526-46a9-8708-2e6f3d0caf52.mov

xavier2k6 commented 2 years ago

froze my web browser

Just looked at the video & some information that was left out from OP was the fact it's the WebUI interface & not normal/general qBittorrent GUI being used, also....save path seems to be to a fileserver. (may be irrelevant)

Chrome up-to-date?

PythonCoderAS commented 2 years ago

The fileserver is not a network attached one but actually one composed of linking multiple SSDs into a LVM, it is not important for the issue. I can also probably reproduce this on my Mac if I start from a blank slate, since it seems like once the torrent is complete I no longer run into the bug. I'll try this weekend if I'm free.

thalieht commented 2 years ago

When viewing a torrent with an absurd amount of files (over 30k files) in the "Content" tab, the entire program hangs and won't respond until manually killed.

I can reproduce, it lags the WebUI but it doesn't freeze forever, there are some intermittent breaks from the freeze. Also it's not "the entire program" it's just the WebUI page.

PythonCoderAS commented 2 years ago

I am also able to find an issue with MacOS though, although it may not be the Content tab necessarily.

https://user-images.githubusercontent.com/13932583/142706556-8e3762b4-f819-48e1-bad9-8c01c17f4dae.mov

glassez commented 2 years ago

Just looked at the video & some information that was left out from OP was the fact it's the WebUI interface & not normal/general qBittorrent GUI being used

IMO, we should add such field (GUI/WebUI) in Issue template.

xavier2k6 commented 2 years ago

IMO, we should add such field (GUI/WebUI) in Issue template.

Do you want it as a statement or it's own field??

glassez commented 2 years ago

IMO, we should add such field (GUI/WebUI) in Issue template.

Do you want it as a statement or it's own field??

No matter. The main thing is that this information should be provided (mandatory).

xavier2k6 commented 1 year ago

Note to self: May have been addressed by PR #19255. ~(need to test)~ Tested & nope still a problem.