Anki crashes on iPhone when a video plays on the back of a card

Like the topic name suggests, when I’m trying to review cards on my iPhone (which is stuck on iOS 16.7.8), it works fine until I try to review a video card then it just immediately crashes and I’m unable to advance to the next card until I delete the video on the card or start reviewing on my iPad (iOS 17.5.1) which has no issues with the app crashing when a video plays. I’ve tried restarting Anki, checking the database, and restarting my phone but nothing I’ve done has worked. Is there any fix to this or is there a way to disable videos on one device?

(1) Are your devices both using the same version of AnkiMobile?

(2) You say that Anki “crashes” but then you also say that you’re “unable to advance” and that you can fix it by deleting the video – both of which suggest that the app is still running. Can you explain more specifically what happens?

(3) Have you run a Check Media?

(4) Are all the crashing cards made from the same note type? Have you tried any other note types in your collection that have video? (Or tried adding a video to another note type?)

(5) Do cards from that note type crash if you put the video on the front instead? (I know that’s not a solution, but you were very specific about the videos being on the back, so it’s worth eliminating it.)

(6) What is the filetype of the videos on the crashing cards? Have you tried playing any other types of video that you have in your collection?

(7) I’m not ignoring this question, but let’s put a pin in it until we figure out what might be going on.

Hi Danika, thanks for the response.

  1. Both devices are on the newest version of AnkiMobile.

  2. Anki functions completely normally until I try to review a card with a video attached to it. When I do try to review a video card, the app closes suddenly and I cannot review the cards behind that one until I either remove the video from the card or do any action that moves the card somewhere else (eg. suspending).

  3. I’ve ran a check media and deleted the unused media that I found by doing that but it did not help with the app crashing.

  4. I have been using the default basic note for all of my cards. It seems to crash regardless of note type on Cloze cards and the other variations of basic cards other than the Basic (type in answer) note type which doesn’t show a video on the back (I’m not sure if this is intentional since I don’t use this card type) but still crashes when the video is on the front.

  5. I’m not sure why I didn’t test before if putting a video on the front of a card crashes the app or not but it crashes regardless whether or not the video is on the front or back. The only difference being that you have to show the back of the card by clicking in order to crash the app.

  6. All of the videos are in [sound:trim.(a lot of letters and numbers here).MOV] format which I got from adding the videos from Photos. The only other video file that I could test was .mp4 but that one still crashed the app.

Please let me know if I need to elaborate on anything else.

Thank you so much for trying those things – it really narrowed the issue!

If it’s happening for *.mov and *.mp4, and happening on all cards/templates/notes – it seems like it must be the player that’s doing it. As far as I know, AnkiMobile uses iOS’s own media player – which might mean there’s nothing Anki can do on its own to fix it. We’ll see what @dae says when he has a chance to look at this one.

I’m afraid this is likely an iOS bug. I can’t reproduce it on the latest iOS, so Apple probably resolved this in a past iOS update. Switching your phone on silent will disable the autoplaying of videos (and audio).

I think dae’s suggestion – switching to silent – is probably the easiest solution to this.

A fix has been included in 24.08. It will be rolling out over the next week, and you should be able to visit the app store page to download it now.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.