qbittorrent / qBittorrent

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

5.0.0 qBittorrent Vesion locking up when re-checking or moving files #21420

Open widowshyper opened 1 week ago

widowshyper commented 1 week ago

qBittorrent & operating system versions

qBittorrent: 5.0.0 OS: Windows Server 2022 build: 20348.2700 (10.0.20348)

What is the problem?

Program locking up whenever files need to be re-checked or moved. Sometimes it comes back but this has only been an issue since this morning when I updated to the newest 5.0.0 release.

Steps to reproduce

1: Re-locate a file or re-check a file 2: program will lock up

Additional context

No response

Log(s) & preferences file(s)

No response

Pentaphon commented 1 week ago

Program locking up whenever files need to be re-checked or moved.

Can't reproduce on Windows 11. qBit is totally responsive when I do this on 5.0.0.

comminux commented 1 week ago

@widowshyper are you using the regular or lt20 version?

In my case Windows 11 OS was hanging and it was only possible to control mouse cursor. After switching from lt20 to regular qBT v5.0.0 everything became normal.

widowshyper commented 1 week ago

@widowshyper are you using the regular or lt20 version?

In my case Windows 11 OS was hanging and it was only possible to control the cursor. After switching from lt20 to regular qBT v5.0.0 everything became normal.

I installed the non LTO version of 5.0.0. After posting the bug report I reinstalled the 5.0.0 update and the crashes became less hard crashes and more extreme hanging before returning to normal.

Aesthermortis commented 1 week ago

I confirm that this is true. It happens to me when I download a 50GB file. At the time of performing the recheck, the interface freezes for 10 seconds. I can hear the hard drive reading like crazy. LT20 version

HanabishiRecca commented 1 week ago

I am currently pushing a fix (#21300) for LT20 problems. If someone wants to help with testing, do the following:

  1. Download the build artifact, unpack and run it.
  2. Go into Settings > Advanced and set Disk IO type (requires restart) to Simple pread/pwrite, then restart the client.
  3. Check if issue still reproduces.
comminux commented 1 week ago

@HanabishiRecca

After switching from LT20 to the regular version, now only the qBittorrent window freezes, not the entire OS.

I used the build from the artifact, switched the necessary option and restarted the client, but the problem with the program window freezing was not solved.

If necessary, I am ready to perform additional actions to provide more service information.

Windows 11 version: 10.0.22631.4249

P. S. I noticed that according to the task manager there is no load on the HDD (F label).

image

HanabishiRecca commented 1 week ago

This change is supposed to make 2.x on par with 1.x. So I guess it is successful in that regard.

As for GUI freezes, could you monitor CPU, RAM and disk usage during the checking process? Also provide values of the following options: Asynchronous I/O threads, Hashing threads, File pool size.

HanabishiRecca commented 1 week ago

P. S. I noticed that according to the task manager there is no load on the HDD (F label).

Hmm, are you sure it is during the checking process? I would expect at least some activity from the disk when reading the files.

comminux commented 1 week ago

In this section I only changed the physical memory (RAM) usage limit to 1024 MiB and Disc IO type

image

It seems to me that the program window freezing is a different problem than the one discussed in this issue.

Just in case, I will limit the number of active torrent downloads and uploads to avoid such problems.

HanabishiRecca commented 1 week ago

Try increasing the Hashing threads value. To something like 4-8.

glassez commented 1 week ago

Try increasing the Hashing threads value. To something like 4-8.

Do you believe separate IO threads affect GUI freezing? It is likely that there is some related action being performed in the main thread. Or, if it cannot be confirmed by someone else, there may be some performance issues in the Issue author's system.

HanabishiRecca commented 6 days ago

Do you believe separate IO threads affect GUI freezing?

I thought something like contention could be an issue. It is strange that CPU and disk activity are so low on the screenshot. But no, not really.

It is likely that there is some related action being performed in the main thread.

Do we have some thread locks there?

stalkerok commented 5 days ago

Sometimes it feels like users are just using modified or broken OS.