tribler icon indicating copy to clipboard operation
tribler copied to clipboard

[7.11] RuntimeError: invalid torrent handle used

Open sentry-for-tribler[bot] opened this issue 2 years ago • 1 comments

Sentry Issue: TRIBLER-FW

RuntimeError: invalid torrent handle used
  File "asyncio\events.py", line 81, in _run
  File "tribler_core\components\libtorrent\utils\torrent_utils.py", line 39, in done_cb
  File "tribler_core\components\libtorrent\download_manager\download.py", line 723, in force_dht_announce

sentry-for-tribler[bot] avatar May 27 '22 08:05 sentry-for-tribler[bot]

Sentry issue: TRIBLER-G1

sentry-for-tribler[bot] avatar May 27 '22 08:05 sentry-for-tribler[bot]

Fixed by https://github.com/Tribler/tribler/pull/7415

xoriole avatar May 11 '23 13:05 xoriole

Here:

    @require_handle
    def force_dht_announce(self):
        self.handle.force_dht_announce()

The bug appears again in 7.13.0. Can it be a race condition when the @require_handle decorator successfully checks that the handle is valid, but then the handle becomes invalid a moment after?

https://sentry.tribler.org/organizations/tribler/issues/2149/

kozlovsky avatar Sep 18 '23 05:09 kozlovsky

This seems very similar to #6454 (addressed in #7678).

qstokkink avatar Nov 08 '23 15:11 qstokkink