Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RuntimeError: invalid torrent handle used #6915

Closed
sentry-for-tribler bot opened this issue May 27, 2022 · 4 comments · Fixed by #7783
Closed

RuntimeError: invalid torrent handle used #6915

sentry-for-tribler bot opened this issue May 27, 2022 · 4 comments · Fixed by #7783
Assignees

Comments

@sentry-for-tribler
Copy link

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
Copy link
Author

Sentry issue: TRIBLER-G1

@xoriole
Copy link
Contributor

xoriole commented May 11, 2023

Fixed by #7415

@xoriole xoriole closed this as completed May 11, 2023
@kozlovsky kozlovsky changed the title [7.11] RuntimeError: invalid torrent handle used RuntimeError: invalid torrent handle used Sep 18, 2023
@kozlovsky
Copy link
Contributor

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 kozlovsky reopened this Sep 18, 2023
@drew2a drew2a modified the milestones: 7.13.0, 7.13.1 Oct 9, 2023
@qstokkink
Copy link
Contributor

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

@drew2a drew2a assigned drew2a and unassigned xoriole Dec 14, 2023
@drew2a drew2a modified the milestones: 7.13.1, 7.14.0 Dec 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

4 participants