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

[7.11.0] ValueError: invalid literal for int() with base 2: b' @\xda7R\x02\x00\x00 #6875

Closed
sentry-for-tribler bot opened this issue Apr 19, 2022 · 2 comments · Fixed by #6897
Closed
Assignees
Milestone

Comments

@sentry-for-tribler
Copy link

Sentry Issue: TRIBLER-EV

tribler_gui.utilities.CreationTraceback: , 
  File "run_tribler.py", line 128, in <module>, 
  File "tribler_gui\utilities.py", line 372, in trackback_wrapper, 
  File "tribler_gui\core_manager.py", line 102, in on_request_error, 
  File "tribler_gui\core_manager.py", line 182, in start_tribler_core, 
The above exception was the direct cause of the following exception:, 
Traceback (most recent call last):, 
  File "tribler_gui\utilities.py", line 375, in trackback_wrapper, 
  File "tribler_gui\utilities.py", line 372, in trackback_wrapper, 
  File "tribler_gui\core_manager.py", line 92, in on_core_finished, 
tribler_gui.exceptions.CoreCrashedError: The Tribler core has unexpectedly finished with exit code -1073740940 and status: 1!, 
ERROR:tribler_core.components.restapi.rest.rest_manager:invalid literal for int() with base 2: b' @\xda7R\x02\x00\x00', 
Traceback (most recent call last):, 
  File "tribler_core\components\restapi\rest\rest_manager.py", line 59, in error_middleware, 
  File "aiohttp\web_middlewares.py", line 117, in impl, 
  File "tribler_core\components\libtorrent\restapi\downloads_endpoint.py", line 328, in get_downloads, 
  File "tribler_core\components\libtorrent\utils\torrent_utils.py", line 21, in invoke_func, 
  File "tribler_core\components\libtorrent\download_manager\download.py", line 231, in get_pieces_base64, 
ValueError: invalid literal for int() with base 2: b' @\xda7R\x02\x00\x00', 
(Timestamp: 1650111142423, traceback timestamp: 1650085769684), 
ERROR:tribler_core.components.restapi.rest.rest_manager:invalid literal for int() with base 2: b' @\xda7R\x02\x00\x00', 
Traceback (most recent call last):, 
  File "tribler_core\components\restapi\rest\rest_manager.py", line 59, in error_middleware, 
  File "aiohttp\web_middlewares.py", line 117, in impl, 
  File "tribler_core\components\libtorrent\restapi\downloads_endpoint.py", line 328, in get_downloads, 
  File "tribler_core\components\libtorrent\utils\torrent_utils.py", line 21, in invoke_func, 
  File "tribler_core\components\libtorrent\download_manager\download.py", line 231, in get_pieces_base64, 
ValueError: invalid literal for int() with base 2: b' @\xda7R\x02\x00\x00'
@drew2a
Copy link
Contributor

drew2a commented May 12, 2022

The rough reproduction of this bug is the following:

def test_issue()
    binary = b' @\xda7R\x02\x00\x00'
    i = int2byte(int(binary.ljust(8, b'0'), 2))

@drew2a drew2a self-assigned this May 13, 2022
@drew2a drew2a added this to the 7.13.0 June milestone May 13, 2022
drew2a added a commit to drew2a/tribler that referenced this issue May 13, 2022
@sentry-for-tribler
Copy link
Author

Sentry issue: TRIBLER-RM

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.

1 participant