qBittorrent icon indicating copy to clipboard operation
qBittorrent copied to clipboard

Negative peers values in GUI

Open covako opened this issue 5 years ago • 17 comments
trafficstars

Please provide the following information

qBittorrent version and Operating System

4 3 0 1 , x64 win10 1809 10.0.17763

If on linux, libtorrent-rasterbar and Qt version

(type here)

What is the problem

Negative peers values

What is the expected behavior

I dont know, just add (and remove with files) torrent several times, because QBT wont scrap leechers and seeds from torrent - trackers URL

Steps to reproduce

1.add torrent, a 2. after 30 secs or less remove it from qbt with files from disk 3. repeat several times^

Extra info(if any)

(type here)

covako avatar Nov 02 '20 20:11 covako

screenshot:

MJUvQUk

~https://i.imgur.com/MJUvQUk.png~

covako avatar Nov 02 '20 20:11 covako

@covako did you mean peers with negative values & not seeds as your screenshot shows peers?

xavier2k6 avatar Nov 06 '20 08:11 xavier2k6

@covako did you mean peers with negative values & not seeds as your screenshot shows peers?

sorry, typo. I mean peers ofc

covako avatar Nov 07 '20 00:11 covako

same problem. when i delete tracker in private torrent, peers counter changes to negative value and downloading is stopped. this has never happened in previous versions

pekatron9000 avatar Nov 09 '20 00:11 pekatron9000

@covako the torrents you've encountered with this problem are private or there is at least one public?

thalieht avatar Nov 09 '20 10:11 thalieht

Same issue here with private torrents on qBittorrent client, version 4.3.0.1, running on GNU/Linux CentOS 7.8.2003 (docker container).

mblazic avatar Nov 09 '20 18:11 mblazic

@covako the torrents you've encountered with this problem are private or there is at least one public?

Yes, its bug for a private torrent. Just tested

covako avatar Nov 11 '20 00:11 covako

It seems to only affect private torrents so i suspect it's because of the new libtorrent's clear_peers we introduced in 4.3.0 for private torrents. https://github.com/qbittorrent/qBittorrent/blob/61770ad69edea4a59d1597a4081a36532f16de15/src/base/bittorrent/torrenthandleimpl.cpp#L376-L377

https://github.com/qbittorrent/qBittorrent/blob/61770ad69edea4a59d1597a4081a36532f16de15/src/base/bittorrent/torrenthandleimpl.cpp#L915-L918

Looks like list_seeds > list_peers at some point. ~~I don't know if qBt or libtorrent is supposed to clear them from fastresume.~~ @glassez @Chocobo1 any thoughts?

thalieht avatar Nov 11 '20 11:11 thalieht

It seems to only affect private torrents so i suspect it's because of the new libtorrent's clear_peers we introduced in 4.3.0 for private torrents.

https://github.com/qbittorrent/qBittorrent/blob/61770ad69edea4a59d1597a4081a36532f16de15/src/base/bittorrent/torrenthandleimpl.cpp#L376-L377

https://github.com/qbittorrent/qBittorrent/blob/61770ad69edea4a59d1597a4081a36532f16de15/src/base/bittorrent/torrenthandleimpl.cpp#L915-L918

Looks like list_seeds > list_peers at some point. ...

@arvidn Does the above sounds like a bug in libtorrent?

Chocobo1 avatar Nov 12 '20 10:11 Chocobo1

@arvidn is this still an issue?

Ryrynz avatar Mar 17 '21 22:03 Ryrynz

This still occurs for me in Qbit 4.3.8 running in Docker on a NAS. If I pause the torrent and change the tracker, say from http to https or vice versa upon starting the torrent again I get a negative number of peers.

Dorno avatar Sep 04 '21 23:09 Dorno

Could not reproduce it on 4.4.3.1. Is anyone still able to reproduce?

ghost avatar Jul 24 '22 06:07 ghost

4.4.3.1, win10, private torrent, negative peers just appeared for me, I haven't seen this before. I've deleted the same non-responding tracker from all my running torrents, but only one of them shows Peers 0(-1).

unregd avatar Aug 16 '22 00:08 unregd

@unregd Can you reproduce with qBittorrent 4.5.4 (libtorrent 1.2.x/libtorrent 2.0.x) versions?

xavier2k6 avatar Aug 03 '23 13:08 xavier2k6

I haven't noticed it since that one particular occurence. Even that was completely random. Only one of many torrents using the same, one tracker showed it.

unregd avatar Aug 03 '23 14:08 unregd

Is this ticket still relevant ?

luzpaz avatar Aug 14 '24 13:08 luzpaz

@xavier2k6 should we close ?

luzpaz avatar Aug 19 '24 11:08 luzpaz

Closing ticket

luzpaz avatar Apr 04 '25 14:04 luzpaz