qBittorrent icon indicating copy to clipboard operation
qBittorrent copied to clipboard

UI Hangs but keep seeding files

Open hrgve opened this issue 3 years ago • 3 comments

qBittorrent & operating system versions

qBittorrent: 4.4.1 x64 Operating system: Windows 10 21H2/ Windows Feature Experience Pack 120.2212.4170.0

What is the problem?

With 1400+ torrents active after application start UI hangs and completely unresponsive, one core load stuck at 100%. Screenshot from Process Explorer. изображение After attaching with debugger seems like Network thread stucked in infinite loop in libtorrent::tracker_connection::fail_impl function. изображение

Steps to reproduce

  1. Start application.
  2. UI hangs.

Additional context

No response

Log(s) & preferences file(s)

Task manager screenshot (24 cpu E-core at 100%) изображение

hrgve avatar Feb 21 '22 15:02 hrgve

How long is this hang, or how long have you waited on it? Typically the client will take a few hours to become responsive for me with ~140k torrents when I first open it. Once the initial load is done it performs fine. image

oorzkws avatar Feb 22 '22 05:02 oorzkws

@hrgve Recently tracker handling has been optimized on master branch, you can check through these build https://github.com/qbittorrent/qBittorrent/actions/runs/1874347480 (download from artifacts section)

Too really see the performance bottleneck use the profiler, Alt + f2 in visual studio, select the qbittorrent running process, select the cpu usage and click start, wait and browse the qbittorrent window and the stop the profiler.

jagannatharjun avatar Feb 22 '22 15:02 jagannatharjun

Does qbittorrent run libtorrent::tracker_connection::fail_impl in the main thread? I would think that running it in the background would not hang the UI, only slow down the seeding.

netheril96 avatar Sep 17 '22 01:09 netheril96