ankidroid / Anki-Android

AnkiDroid: Anki flashcards on Android. Your secret trick to achieve superhuman information retention.
GNU General Public License v3.0
8.67k stars 2.24k forks source link

[BUG]: Parasitic Media Elements Cause Latency Issues #14349

Closed SarahSzabo closed 11 months ago

SarahSzabo commented 1 year ago

Checked for duplicates?

What are the steps to reproduce this bug?

Sync, downloads 30k+ images Check Media, 30K+ images not used in cards Delete unused media Sync Downloades 30k+ images...

Expected behaviour

Doesn't take forever , doesn't download 30k+ unused images lol

Actual behaviour

Does download 30k+ images

Debug info

AnkiDroid Info:
AnkiDroid Version = 2.16.4 (67fd45a351c44c46c844aa35a402b98a2a487f68)
Android Version = 10
ProductFlavor = play
Manufacturer = samsung
Model = SM-N960U
Hardware = qcom
Webview User Agent = Mozilla/5.0 (Linux; Android 10; SM-N960U Build/QP1A.190711.020; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/116.0.0.0 Mobile Safari/537.36
ACRA UUID = ed3c3138-93a4-4c69-a467-80b94e82f152
New schema = false
Scheduler = std2
Crash Reports Enabled = true
DatabaseV2 Enabled = true

Linux Desktop info (primary computer):

    Anki 2.1.65 (aa9a734f) Python 3.9.15 Qt 6.5.0 PyQt 6.5.0
    Platform: Linux-6.4.9-1-MANJARO-x86_64-with-glibc2.38
    Flags: frz=True ao=True sv=3
    Add-ons, last update check: 2023-08-28 18:53:54

    ===Add-ons (active)===
    (add-on provided name [Add-on folder, installed at, version, is config changed])
    Advanced Browser ['874215009', 2023-07-01T15:55, 'None', '']
    Advanced Review Bottom Bar ['1136455830', 2023-07-20T09:52, 'None', '']
    Anki Killstreaks ['579111794', 2021-12-15T10:20, 'None', '']
    Anki Simulator ['817108664', 2021-08-07T15:24, 'None', '']
    AnkiConnect ['2055492159', 2023-04-11T13:20, 'None', '']
    Browser TableEditor side-by-side horizontal split ['831846358', 2022-01-25T17:11, 'None', '']
    Clickable Tags v20 original ['380714095', 2022-01-30T17:58, 'None', '']
    Colorful Tags  Hierarchical Tags ['594329229', 2022-09-15T11:06, 'None', '']
    Custom Background Image and Gear Icon ['1210908941', 2023-04-18T21:19, 'None', mod]
    Enhance main window ['877182321', 2023-01-16T02:50, 'None', '']
    Image Occlusion Enhanced for Anki 21 ['1374772155', 2022-04-09T03:15, 'None', '']
    Japanese Support ['3918629684', 2022-03-13T23:32, 'None', '']
    Leaderboard ['41708974', 2023-01-15T05:53, 'None', mod]
    More Overview Stats 21 ['738807903', 2021-07-30T15:13, 'None', '']
    Progress Graphs and Stats for Learned and Matured Cards ['266436365', 2020-03-29T02:26, 'None', '']
    Quizlet to Anki 21 Importer with audio support ['1362209126', 2023-06-18T09:31, 'None', '']
    Remaining time for Anki 21 ['1508357010', 2020-12-13T09:14, '20.12.13i151', '']
    Review Heatmap ['1771074083', 2022-06-29T21:43, 'None', '']

    ===IDs of active AnkiWeb add-ons===
    1136455830 1210908941 1362209126 1374772155 1508357010 1771074083 2055492159 266436365 380714095 3918629684 41708974 579111794 594329229 738807903 817108664 831846358 874215009 877182321

    ===Add-ons (inactive)===
    (add-on provided name [Add-on folder, installed at, version, is config changed])

(Optional) Anything else you want to share?

The media truely appears to be unused.

If the media is deleted, at least on the decks I study on a daily basis, the media doesn't appear to be from those decks (the media is just fine and appears on the cards).

I ran check media on both desktop (linux) and Ankidroid
Images of what happens: https://imgur.com/a/6KqXJoc

Research

welcome[bot] commented 1 year ago

Hello! 👋 Thanks for logging this issue. Please remember we are all volunteers here, so some patience may be required before we can get to the issue. Also remember that the fastest way to get resolution on an issue is to propose a change directly, https://github.com/ankidroid/Anki-Android/wiki/Contributing

github-actions[bot] commented 11 months ago

Hello 👋, this issue has been opened for more than 3 months with no activity on it. If the issue is still here, please keep in mind that we need community support and help to fix it! Just comment something like still searching for solutions and if you found one, please open a pull request! You have 7 days until this gets closed automatically

david-allison commented 11 months ago

If this isn't fixed in the new backend & 2.17, this will need to be fixed in Anki Desktop

Closing as an upstream issue, if this is AnkiDriod specific (our behaviour differing from Anki Desktop), please let us know