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

Cannot add a download without a populated file list #7768

Closed
drew2a opened this issue Dec 11, 2023 · 7 comments
Closed

Cannot add a download without a populated file list #7768

drew2a opened this issue Dec 11, 2023 · 7 comments

Comments

@drew2a
Copy link
Contributor

drew2a commented Dec 11, 2023

Describe the bug

Downloads do not appear on the Downloads page after clicking the "download" button.

To Reproduce

  1. Run Tribler
  2. Search for "ubuntu"
  3. Press the download icon for a torrent with 0 or just a few seeders
  4. Quickly hit the "Download" button before the file list has a chance to populate
  5. Go to the Downloads Page

Expected behavior
I expect this download on the Downloads Page, but it is empty.
image

image

Desktop (please complete the following information):

  • OS: macOS
  • Tribler's version: main a25df64ad67e263fe84f65a0faa4753737bf914b
  • Python: 3.9.6
@qstokkink
Copy link
Contributor

qstokkink commented Dec 11, 2023

Cannot reproduce on Ubuntu 20.04.6 LTS/Python 3.8.10/main (a25df64ad67e263fe84f65a0faa4753737bf914b).

@drew2a
Copy link
Contributor Author

drew2a commented Dec 11, 2023

Update: If you wait until the file list appears and then press "Download", it works. If you press download immediately after the dialog shows, then the download is not added.

Aside from that, if you have one download and you stop Tribler and restart it, you will see:
image

I think these are two different bugs. I'll do a little investigation and update the issue.

@drew2a
Copy link
Contributor Author

drew2a commented Dec 11, 2023

I guess it is easier to reproduce the bug if you choose a torrent with just a few seeders.

@drew2a
Copy link
Contributor Author

drew2a commented Dec 11, 2023

Somewhy the new download went to this execution path:

[tribler-core PID:91107] 2023-12-11 12:58:40,060 - INFO - DownloadManager(549) - Start download from URI: magnet:?xt=urn:btih:b22ec09e5c45ad737f18010228c24f7acee4d3a6&dn=Ubuntu 16.10
[tribler-core PID:91107] 2023-12-11 12:58:40,060 - INFO - DownloadManager(557) - Magnet scheme detected
[tribler-core PID:91107] 2023-12-11 12:58:40,061 - INFO - DownloadManager(559) - Name: Ubuntu 16.10. Infohash: b'\xb2.\xc0\x9e\\E\xads\x7f\x18\x01\x02(\xc2Oz\xce\xe4\xd3\xa6'
[tribler-core PID:91107] 2023-12-11 12:58:40,061 - INFO - DownloadManager(566) - Metainfo not found in cache
[tribler-core PID:91107] 2023-12-11 12:58:40,062 - INFO - DownloadManager(577) - Starting download: filename: None, torrent def: <tribler.core.components.libtorrent.torrentdef.TorrentDefNoMetainfo object at 0x122605880>
[tribler-core PID:91107] 2023-12-11 12:58:40,062 - INFO - DownloadManager(595) - Infohash: b'\xb2.\xc0\x9e\\E\xads\x7f\x18\x01\x02(\xc2Oz\xce\xe4\xd3\xa6'. Download: Download <name: 'metainfo request' hops: 1 checkpoint_disabled: 1>
[tribler-core PID:91107] 2023-12-11 12:58:40,062 - INFO - DownloadManager(598) - Download exists and metainfo is not requested.

and ended up on this return:

The additional logging added here: #7769

@drew2a drew2a changed the title Downloads Page is broken Cannot add a download without a populated file list Dec 11, 2023
@qstokkink
Copy link
Contributor

I reproduced this yesterday. After clicking back and forth between the "All" and "Downloading" tabs, the download would appear. This may be a refresh issue.

@drew2a
Copy link
Contributor Author

drew2a commented Jan 2, 2024

This behavior was introduced in

I've tested it with the following commits:

Related to (has a common root cause):

@kozlovsky
Copy link
Contributor

Fixed in #7939

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants