Ankdroid crashes when using some filtered decks, problem occurs across Ankidroid, Anki Desktop, and Ankiweb.

227 views
Skip to first unread message

robbie...@gmail.com

unread,
Jan 2, 2016, 7:00:30 PM1/2/16
to AnkiDroid
I'm experiencing a problem I've not had before in several years of using Anki and Ankidroid. It seems to be a database issue, but I am tempted to think it has something to do with cards I have added since the recent Material Design-style update. 

I have one main deck (with contents of just over 5000 cards but with very little media) and right now have four filtered decks for groups of vocabulary. One one filtered deck in particular that I recently created, and on another that has existed for a while, I repeatedly get an "Ankidroid has encountered a problem" error, either when first opening, or after one or two cards, after which the app restarts. It doesn't seem to occur on the same card each time.

This occurred on my phone, and once I synced this with a tablet (for the first time since the update), it started happening there too. Neither phone nor app reported errors after checking database. After syncing the Anki app on my computer (for the first time in a while), this stopped working during the same filtered deck, and reported an error when checking the database. My collection on ankiweb was also not accessible by now, and I figured it was corrupted.

Having restored my phone from a backup, and resynced the others, things were working fine. But the filtered deck error has returned. I've also reproduced the error on the tablet and ankidesktop, which produces this error:

An error occurred. It may have been caused by a harmless bug,

or your deck may have a problem.

To confirm it's not a problem with your deck, please run Tools > Check Database.

If that doesn't fix the problem, please copy the following

into a bug report:

Traceback (most recent call last):

File "aqt/webview.pyc", line 21, in link

File "aqt/reviewer.pyc", line 322, in _linkHandler

File "aqt/reviewer.pyc", line 270, in _answerCard

File "aqt/reviewer.pyc", line 104, in nextCard

File "aqt/reviewer.pyc", line 207, in _showQuestion

File "aqt/reviewer.pyc", line 224, in autoplay

KeyError: 'autoplay'


Every other time I 'check database' on Anki Desktop, I get this error:

An error occurred. It may have been caused by a harmless bug,

or your deck may have a problem.

To confirm it's not a problem with your deck, please run Tools > Check Database.

If that doesn't fix the problem, please copy the following

into a bug report:

Traceback (most recent call last):

File "aqt/webview.pyc", line 157, in _loadFinished

File "aqt/reviewer.pyc", line 181, in <lambda>

File "aqt/reviewer.pyc", line 207, in _showQuestion

File "aqt/reviewer.pyc", line 224, in autoplay

KeyError: 'autoplay'

Traceback (most recent call last):

File "aqt/main.pyc", line 921, in onCheckDB

File "aqt/main.pyc", line 436, in reset

File "aqt/main.pyc", line 388, in moveToState

File "aqt/main.pyc", line 416, in _reviewState

File "aqt/reviewer.pyc", line 53, in show

File "aqt/reviewer.pyc", line 102, in nextCard

File "aqt/reviewer.pyc", line 186, in _initWeb

File "aqt/reviewer.pyc", line 596, in _bottomHTML

File "anki/cards.pyc", line 170, in timeTaken

File "anki/cards.pyc", line 161, in timeLimit

KeyError: 'maxTaken'


Rather distressingly, I realize now that Anki on my phone was only set to store 8 backups, and none of these now extend to before I updated ankidroid last, since it has been taking such regular backups.

Any help would be much appreciated as Ankidroid is a total lifeline for me in practicing and storing vocabulary.


Phone debug info:
AnkiDroid Version = 2.5.4
Android Version = 4.1.2
ACRA UUID = 2870f9ca-9a61-4f42-a379-bb5827a7bb24

Tablet debug info:
AnkiDroid Version = 2.5.4
Android Version = 5.1
ACRA UUID = 754ae940-d6a8-4c0f-a3f6-02d80e6b3551

Tim

unread,
Jan 3, 2016, 1:45:03 AM1/3/16
to AnkiDroid
From the desktop stack trace it seems to be a problem with missing option for 'autoplay'; you could try deleting the option group that's causing the problems and running check database again.

calv...@gmail.com

unread,
Jan 8, 2016, 9:39:21 PM1/8/16
to AnkiDroid
I'm having exactly the same problem

dmitriy.f...@gmail.com

unread,
Sep 25, 2017, 4:15:38 AM9/25/17
to AnkiDroid
It seems I have the same problem. I do not use AnkiDroid often, but have encountered this bug many times in desktop Anki.
Tim, your advice is not clear. Can you explain?
I haven't changed plugins for long time but since several days I have got an error message. Now I get it every several minutes on various cards. After I close the message, rating buttons stop working. Anki and/or computer restart helps but only for a few minutes. I have Windows 8.1, Anki 2.0.47 and many plugins. The same problem was with older version 2.0.36. Check database, Check media, Empty cards do not help. I would have disabled all plugins but it seems impossible. I don't want to delete all of them.
Here is bug report on Windows:

Traceback (most recent call last):
  File "aqt\webview.py", line 21, in link
  File "aqt\reviewer.py", line 323, in _linkHandler
  File "aqt\reviewer.py", line 271, in _answerCard
  File "aqt\reviewer.py", line 105, in nextCard
  File "aqt\reviewer.py", line 208, in _showQuestion
  File "aqt\reviewer.py", line 225, in autoplay
KeyError: 'autoplay'

After I check database, bug report looks like this:

Traceback (most recent call last):
  File "aqt\webview.py", line 157, in _loadFinished
  File "aqt\reviewer.py", line 182, in <lambda>
  File "aqt\reviewer.py", line 208, in _showQuestion
  File "aqt\reviewer.py", line 225, in autoplay

KeyError: 'autoplay'
Traceback (most recent call last):
  File "aqt\main.py", line 921, in onCheckDB
  File "aqt\main.py", line 436, in reset
  File "aqt\main.py", line 388, in moveToState
  File "aqt\main.py", line 416, in _reviewState
  File "anki\hooks.py", line 55, in repl
  File "aqt\reviewer.py", line 54, in show
  File "aqt\reviewer.py", line 103, in nextCard
  File "aqt\reviewer.py", line 187, in _initWeb
  File "aqt\reviewer.py", line 599, in _bottomHTML
  File "anki\cards.py", line 170, in timeTaken
  File "anki\cards.py", line 161, in timeLimit
KeyError: 'maxTaken'

Timothy Rae

unread,
Sep 27, 2017, 1:31:58 AM9/27/17
to AnkiDroid
You have a corrupt option group, which is missing the value for 'autoplay'. Check the manual if you're unclear what an option group is, or please be more specific if there was something else unclear about my explanation.

dmitriy.f...@gmail.com

unread,
Oct 1, 2017, 3:54:39 AM10/1/17
to AnkiDroid
In my case it seems to be a problem with an add-on in Windows Anki. After I started Anki without add-ons (by holding Shift when starting), the bug did not occur, so I deleted some of the add-ons.
Reply all
Reply to author
Forward
0 new messages