qbittorrent search bug search process always gets aborted when results approach 10K or more #16640

Open
opened 2026-02-22 03:18:05 -05:00 by deekerman · 5 comments
Owner

Originally created by @aciduser on GitHub (Feb 26, 2025).

qBittorrent & operating system versions

qBittorrent: all previous versions affected up to latest 5.0.4
OS: Windows 11 Home

What is the problem?

This is not new bug, but this happened always before. I was waiting until this gets fixed, but with every qBT update the issue persists, so I decided to submit a bug issue.

When search for torrents results approach 10K results (could be slightly less or slightly more depending on torrent type) the search operation always gets aborted instead of reaching green state which means complete.
This means many search results get truncated and not listed in results.
This most likely is related to a fixed memory buffer that is allocated for search results.
There are no configuration options to tweak any settings for Search functionality except search plugins, which is strange.
People need to be able find not limited to 10K search results, but 50k and more if their system can handle.

Steps to reproduce

  1. Type a common word which can produce 10K or more results, such as "music", "dance", "comedy".
  2. Wait for search to get aborted. This never gets green and complete.

Additional context

Image

Log(s) & preferences file(s)

qbittorrent.log

Originally created by @aciduser on GitHub (Feb 26, 2025). ### qBittorrent & operating system versions qBittorrent: all previous versions affected up to latest 5.0.4 OS: Windows 11 Home ### What is the problem? This is not new bug, but this happened always before. I was waiting until this gets fixed, but with every qBT update the issue persists, so I decided to submit a bug issue. When search for torrents results approach 10K results (could be slightly less or slightly more depending on torrent type) the search operation always gets aborted instead of reaching green state which means complete. This means many search results get truncated and not listed in results. This most likely is related to a fixed memory buffer that is allocated for search results. There are no configuration options to tweak any settings for Search functionality except search plugins, which is strange. People need to be able find not limited to 10K search results, but 50k and more if their system can handle. ### Steps to reproduce 1. Type a common word which can produce 10K or more results, such as "music", "dance", "comedy". 2. Wait for search to get aborted. This never gets green and complete. ### Additional context <img width="953" alt="Image" src="https://github.com/user-attachments/assets/b5a68733-7cee-42ef-8dcb-365967f5b88c" /> ### Log(s) & preferences file(s) [qbittorrent.log](https://github.com/user-attachments/files/18995928/qbittorrent.log)
Author
Owner

@xavier2k6 commented on GitHub (Mar 6, 2025):

@aciduser Are all plugins up to date? (official/unofficial)

@xavier2k6 commented on GitHub (Mar 6, 2025): @aciduser Are all plugins up to date? (official/unofficial)
Author
Owner

@aciduser commented on GitHub (Mar 11, 2025):

@aciduser Are all plugins up to date? (official/unofficial)

Yes, of course. Just updated them a week ago.
This happens for queries which return near 10k results or more.
I never had over 10k results in green (completed) state.
I tried with all enabled plugins or several enabled plugins 3-5.
I have a lot of RAM memory, but its possible some kind of limited buffer in search functionality. If I type search query as for example "music" or "song", etc, it always gets red in the end and shows as "terminated".

@aciduser commented on GitHub (Mar 11, 2025): > [@aciduser](https://github.com/aciduser) Are all plugins up to date? (official/unofficial) Yes, of course. Just updated them a week ago. This happens for queries which return near 10k results or more. I never had over 10k results in green (completed) state. I tried with all enabled plugins or several enabled plugins 3-5. I have a lot of RAM memory, but its possible some kind of limited buffer in search functionality. If I type search query as for example "music" or "song", etc, it always gets red in the end and shows as "terminated".
Author
Owner

@aciduser commented on GitHub (Mar 13, 2025):

@aciduser Are all plugins up to date? (official/unofficial)

Yes, of course. Just updated them a week ago. This happens for queries which return near 10k results or more. I never had over 10k results in green (completed) state. I tried with all enabled plugins or several enabled plugins 3-5. I have a lot of RAM memory, but its possible some kind of limited buffer in search functionality. If I type search query as for example "music" or "song", etc, it always gets red in the end and shows as "terminated".

If I type search query more specific and results supposed to be not exceeding 10k for music torrents and 7-8k results for movie torrents, then my search queries result in green status and show as Completed.

The problem with terminating search results is that sometimes search query can't be more specific, because for example I need to find all works related to performer's name or part of movie name because torrent names are slightly different and this produces a lot of output. When this happens, search query unfortunately gets terminated when approaching search buffer limits regardless of how much RAM is available on PC.

The only workaround possible is to do separate searches per single tracker at a time.
I will do some more tests if this problem happens also when searching with only one enabled plugin and will report results here.

@aciduser commented on GitHub (Mar 13, 2025): > > [@aciduser](https://github.com/aciduser) Are all plugins up to date? (official/unofficial) > > Yes, of course. Just updated them a week ago. This happens for queries which return near 10k results or more. I never had over 10k results in green (completed) state. I tried with all enabled plugins or several enabled plugins 3-5. I have a lot of RAM memory, but its possible some kind of limited buffer in search functionality. If I type search query as for example "music" or "song", etc, it always gets red in the end and shows as "terminated". If I type search query more specific and results supposed to be not exceeding 10k for music torrents and 7-8k results for movie torrents, then my search queries result in green status and show as Completed. The problem with terminating search results is that sometimes search query can't be more specific, because for example I need to find all works related to performer's name or part of movie name because torrent names are slightly different and this produces a lot of output. When this happens, search query unfortunately gets terminated when approaching search buffer limits regardless of how much RAM is available on PC. The only workaround possible is to do separate searches per single tracker at a time. I will do some more tests if this problem happens also when searching with only one enabled plugin and will report results here.
Author
Owner

@glassez commented on GitHub (Apr 9, 2025):

@Chocobo1, have you something to comment about it?

@glassez commented on GitHub (Apr 9, 2025): @Chocobo1, have you something to comment about it?
Author
Owner

@xavier2k6 commented on GitHub (Oct 11, 2025):

@aciduser Can you test latest master development build & provide logs?

@xavier2k6 commented on GitHub (Oct 11, 2025): @aciduser Can you test latest `master` development build & provide logs?
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#16640
No description provided.