Bug 508964 - Reorders queue several times per second if "Decrease priority of torrents which are stalled for more than" is enabled
Summary: Reorders queue several times per second if "Decrease priority of torrents whi...
Status: REPORTED
Alias: None
Product: ktorrent
Classification: Applications
Component: general (other bugs)
Version First Reported In: 25.08.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Joris Guisson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-08-31 09:59 UTC by Linus Kardell
Modified: 2025-09-23 14:06 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Linus Kardell 2025-08-31 09:59:40 UTC
SUMMARY
When "decrease priority of torrents which are stalled for more than" is enabled, the order of the torrents in the queue is changed several times per second.

It also seems like the priority is reversed, as now the lowest priority torrents are running while the highest priority torrents (at position 1 etc) are not running, which could be the cause of this.

STEPS TO REPRODUCE
1. Have a bunch of stalled torrents
2. Enable "Decrease priority of torrents which are stalled for more than" in the queue settings
3. Look at the queue pane at the bottom

OBSERVED RESULT
Several times per second, the torrents are reordered in the queue. This also severely decreases the responsiveness of the UI

EXPECTED RESULT
The torrents are not automatically reordered as frequently.

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20250820
KDE Plasma Version: 6.4.4
KDE Frameworks Version: 6.17.0
Qt Version: 6.9.1
Kernel Version: 6.16.1-1-default (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 5800X 8-Core Processor
Memory: 64 Gibyte of RAM (62.7 Gibyte usable)
Graphics Processor: NVIDIA GeForce RTX 2080 Ti
Manufacturer: ASUS
Comment 1 Nicolás 2025-09-11 23:26:18 UTC
Still in 25.08.1 - just tested.
Comment 2 joeytwiddle 2025-09-13 08:11:35 UTC
(In reply to Nicolás from comment #1)
> Still in 25.08.1 - just tested.

Still in 25.11.70 (which I asked my Manjaro to build from ktorrent-git package).
Comment 3 Mark Anderson 2025-09-23 14:06:51 UTC
I have also encountered this. For some reason, torrents which are changed from "Queued" to "Running" do not have their "Time Stalled" reset to zero. This can be observed when managing torrents manually and is probably what causes automatic management to continuously re-order the queue.