ankidroid / ankidroid/Anki-Android

Deleting unused media crashes with `Cross-device link (os error 18)`

Offen
#19,134 9 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
2.22 Keep Open Needs Triage upstream-issue
Vorherrschende Sprache
Kotlin
Sterne
11.8k
Forks
2.9k
Ø Merge
2 T. 3 Std.
Gemergte PRs (30 T.)
167

Beschreibung

> [!NOTE]
> * Upstream issue: https://github.com/ankitects/anki/issues/4288

### Checked for duplicates?

- [x] This issue is not a duplicate

### Does it also happen in the desktop version?

- [x] This bug does not occur in the latest version of Anki Desktop

### What are the steps to reproduce this bug?

I deleted some older decks.

Then I checked media —> tried to delete unised media —> app crashes

### Expected behaviour

App crashes

Unused media should be deleted. I deleted them from Anki desktop & Ankimobile. Now I cannot sync my media collection between AnkiDroid and them due to discrepancies in media? (It returns os error 18)

### Debug info

```text
AnkiDroid Version = 2.22.3 (4f2ec681da36b8307a865f05192498b8425adf0f)
Backend Version = 0.1.60-anki25.07.5 (25.07.5 7172b2d26684c7ef9d10e249bd43dc5bf73ae00c)
Android Version = 14 (SDK 34)
ProductFlavor = play
Device Info = samsung | samsung | a34x | a34xdxx | SM-A346E | mt6877
Webview User Agent = Mozilla/5.0 (Linux; Android 14; SM-A346E Build/UP1A.231005.007; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/139.0.7258.94 Mobile Safari/537.36
ACRA UUID = 388b9168-8be2-4273-9b53-47f9d630c95d
FSRS = 4.1.1 (Enabled: true)
Crash Reports Enabled = true
```

### (Optional) Anything else you want to share?

_No response_

### Research

- [x] I have checked the [manual](https://ankidroid.org/docs/manual.html) and the [FAQ](https://github.com/ankidroid/Anki-Android/wiki/FAQ) and could not find a solution to my issue
- [ ] (Optional) I have confirmed the issue is not resolved in the latest alpha release ([instructions](https://docs.ankidroid.org/manual.html#betaTesting))

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.