nova2.py search keeps running at 100% cpu #16986

Open
opened 2026-02-22 03:35:19 -05:00 by deekerman · 2 comments
Owner

Originally created by @milahu on GitHub (Jun 26, 2025).

qBittorrent & operating system versions

qBittorrent v5.1.0 (64-bit)
Libtorrent: 2.0.11.0
OS: Linux

What is the problem?

in rare cases, nova2.py keeps running at 100% cpu

example: searching for "nirvana"

$ ps -AF|grep 276523
user      276523  245192 99  9689 22264   8 20:30 ?        02:09:38 /nix/store/sd81bvmch7njdpwx3lkjslixcbj5mivz-python3-3.13.4/bin/python3 -I /home/user/.local/share/qBittorrent/nova3/nova2.py one337x,btdig,eztv,magnetdl,uindex,snowfl,thepiratebay,solidtorrents all nirvana

probably there is a bug in one of my search engines (nova3.zip)
which causes nova2.py to hang forever ("deadloop")

continue #21389

Steps to reproduce

add many search engines, send many search queries...

Additional context

workaround: https://github.com/milahu/qbittorrent-nova-killer

Log(s) & preferences file(s)

rm -rf .local/share/qBittorrent/nova3/engines/__pycache__/
rm -rf .local/share/qBittorrent/nova3/__pycache__/
rm .local/share/qBittorrent/nova3/engines/*.ico
zip -r nova3.zip .local/share/qBittorrent/nova3/

nova3.zip

Originally created by @milahu on GitHub (Jun 26, 2025). ### qBittorrent & operating system versions qBittorrent v5.1.0 (64-bit) Libtorrent: 2.0.11.0 OS: Linux ### What is the problem? in rare cases, nova2.py keeps running at 100% cpu example: searching for "nirvana" ``` $ ps -AF|grep 276523 user 276523 245192 99 9689 22264 8 20:30 ? 02:09:38 /nix/store/sd81bvmch7njdpwx3lkjslixcbj5mivz-python3-3.13.4/bin/python3 -I /home/user/.local/share/qBittorrent/nova3/nova2.py one337x,btdig,eztv,magnetdl,uindex,snowfl,thepiratebay,solidtorrents all nirvana ``` probably there is a bug in one of my search engines (nova3.zip) which causes nova2.py to hang forever ("deadloop") continue #21389 ### Steps to reproduce add many search engines, send many search queries... ### Additional context workaround: https://github.com/milahu/qbittorrent-nova-killer ### Log(s) & preferences file(s) ``` rm -rf .local/share/qBittorrent/nova3/engines/__pycache__/ rm -rf .local/share/qBittorrent/nova3/__pycache__/ rm .local/share/qBittorrent/nova3/engines/*.ico zip -r nova3.zip .local/share/qBittorrent/nova3/ ``` [nova3.zip](https://github.com/user-attachments/files/20933776/nova3.zip)
Author
Owner

@xavier2k6 commented on GitHub (Jun 26, 2025):

some of your engines are outdated.

@xavier2k6 commented on GitHub (Jun 26, 2025): some of your engines are outdated.
Author
Owner

@milahu commented on GitHub (Jun 26, 2025):

maybe, but qBittorrent should kill the nova2.py process
if it keeps running too long (60 seconds?) after yielding the last result

maybe qBittorrent can also monitor the cpu usage of the nova2.py process
and kill it if its using 100% cpu for too long (60 seconds?)

@milahu commented on GitHub (Jun 26, 2025): maybe, but qBittorrent should kill the nova2.py process if it keeps running too long (60 seconds?) after yielding the last result maybe qBittorrent can also monitor the cpu usage of the nova2.py process and kill it if its using 100% cpu for too long (60 seconds?)
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#16986
No description provided.