Recently, after switching back to the app, when I tap on a card to show the answer, Anki has started showing an error like “the card doesn’t exist”. (My phone is in Japanese, so the actual error is “カードががありません”.) I can work around the error by restarting the app or shaking my phone to undo, but when I do this, I sometimes lose a few cards of progress. I’ve tried restarting the app, checking the database, and restarting my phone.
Let me know if you need any more information to debug this issue.
I found カードがありません。 in the translation database – does that seem right? [actions-no-current-card / mobile/templates/actions.ftl] In English that string is “No current card” – but I’m not sure that clears much up.
I want to make sure I understand. Can you clarify what you mean by switching back?
It doesn’t seem like this could be caused by the card templates then. Does this happen for just one note type or several/all note types?
Are any of these type-your-answer notes/cards – especially ones that rely on an add-on on Anki Desktop?
The only other suggestions I see have to do with switching to the v3 scheduler, but since the v2 scheduler is no longer supported (I assume that happened in AnkiMobile along with the other apps), as long as you’re using the current version of AnkiMobile, you’ve already done that.
The obvious work-around for now is to exit your study session, to the deck/menu screen, before leaving the app. We’ll see if @dae has anything else he’d like to know.
I’ve only observed this when I tap on a card to reveal the answer. I don’t use auto advance or voice recording/replay. I’ll try to figure out how to reproduce it.
Ah, sorry, I missed above that you were tapping before the error occurred. What happens if you return to the deck list and then go back into the deck - does the error still occur? Is a day passing before switching back to the app, or does this error start happening even when you used the app earlier the same day as well?
I’m doing this using a Shortcut, but I’m guessing that any method of opening an Anki link would work.
To answer your questions, if I return to the deck list and reopen the deck, the error stops happening. The error can happen at any time during the day, even after I’ve answered some cards.