Ok, here is a video split screen of both my phone and my desktop, these are the only devices I own that run Anki. There is no other machine I have ever installed Anki on. I’ve also run this test after syncing both devices and then shutting the phone off. The result is the same.
Even after signing out and ensuring both devices are synced, the issue still happens (the clocks on both machines are synced):
Okay, but how about trying the steps I described above. In particular, forcing a one-way sync in which you select Upload.
Although I guess you could delete the media files the ordinary way, within Anki, instead of the way I described it via the filesystem, as long as you verify that behind the scenes, the filesystem directory does get emptied out of the files in question.
Based on your video, AnkiDroid does seem to be a bystander while all this is happening. Just for reference, is it a recent version?
Ankidroid is the most recent version from the play store, but even with the phone shut down (it was closed during the syncing), it should not be able to effect anything.
In the beginning of this, I did try to just delete the entire media folder, but that didn’t help.
Okay I’m out of ideas. Hopefully when dae watches the video he will figure out if it fully follows his suggestions.
Just to eliminate possibilities, what about that 1 missing file? Can you download it from somewhere, or instead edit the card(s) that use it, to not use it? Just in case its absence is triggering some glitch?
If you’re getting the same result whether you sign out or not though, why introduce that as an additional variable against dae’s advice?
Are you sure you have ~30K other files? Your screenshots have captured “Checked” at certain moments as 85K+ and 202K+. (Or am I mistaken and that is related to filesize, not count?)
Ideas
[Idea 0: Are you using the new backend on AnkiDroid (Settings > Advanced)? Despite the warning message, it’s very stable on 2.16.5. Don’t know if that will help, but it will eliminate another variable. (Enabling the v3 scheduler there will also ensure your scheduler matches between platforms, and eliminate another variable, but seems less likely to help.)]
Idea 1: Have you tried using Check Media on AnkiDroid to delete the files – either instead of or in addition to a Check on AnkiDesktop? Admittedly, there’s some overhead to deleting 27K files if the non-success case is they have to be re-downloaded again – but just trying to think of creative ways to get you out of this loop.
Idea 2: Have you tried doing everything that’s been suggested, all in one go (for instance, you seemed to have your add-ons enabled in the video)? Tracking it step-by-step is also more likely to point to exactly where the problem is.
Stay signed-in and internet-connected on both devices
Turn off auto-sync on both devices – to keep everything under your control
Restart Desktop without add-ons
Check Database on both devices
Get all three collections in sync (which takes 3 syncs to be certain – Desktop/Droid/Desktop, or vice versa)