V3 bug. Card modified without updating queue

got these errors after undoing a review.

no addons. latest ver.

V3 enabled

i tried to press good, and kept getting these:

Caught exception:
Traceback (most recent call last):
  File "aqt\taskman.py", line 101, in _on_closures_pending
  File "aqt\taskman.py", line 71, in <lambda>
  File "aqt\taskman.py", line 90, in wrapped_done
  File "aqt\operations\__init__.py", line 112, in wrapped_done
  File "aqt\reviewer.py", line 417, in after_answer
  File "aqt\reviewer.py", line 432, in _after_answering
  File "aqt\reviewer.py", line 199, in nextCard
  File "aqt\reviewer.py", line 233, in _get_next_v3_card
  File "anki\scheduler\v3.py", line 49, in get_queued_cards
  File "anki\_backend\generated.py", line 44, in get_queued_cards
  File "anki\_backend\__init__.py", line 131, in _run_command
anki.errors.InvalidInput: Invalid input: ⁨bug: card modified without updating queue⁩
Caught exception:
Traceback (most recent call last):
  File "aqt\webview.py", line 538, in handler
  File "aqt\reviewer.py", line 495, in _onAnswerButton
  File "aqt\reviewer.py", line 425, in _answerCard
  File "anki\scheduler\v3.py", line 160, in answerCard
AttributeError: 'NoneType' object has no attribute 'id'

i left to the deck menu, and tried to do reps again but got this:

Traceback (most recent call last):
  File "aqt\main.py", line 1055, in onStudyKey
  File "aqt\main.py", line 672, in moveToState
  File "aqt\main.py", line 691, in _overviewState
  File "aqt\overview.py", line 60, in show
  File "aqt\overview.py", line 65, in refresh
  File "aqt\overview.py", line 184, in _renderPage
  File "anki\scheduler\v3.py", line 114, in _is_finished
  File "anki\scheduler\v3.py", line 49, in get_queued_cards
  File "anki\_backend\generated.py", line 44, in get_queued_cards
  File "anki\_backend\__init__.py", line 131, in _run_command
anki.errors.InvalidInput: Invalid input: ⁨bug: card modified without updating queue⁩

Switching to a different deck should work around the issue in the short term. If you figure out the steps required to reproduce it, please let me know.

found it. make sure you have V3 switched:

  1. click on a deck to study
  2. review 3 cards
  3. Ctrl+P
  4. change the show play button on cards with audio setting. it doesnt matter if it’s on or off, just click it.
  5. close preferences
  6. review ONE more cards
  7. Ctrl+Z
  8. Ctrl+Z
  9. Ctrl+Z
  10. spam Ctrl+shift+Z at least 3 times and you will get the errors
  11. try to press Show answer button and you will get another error
  12. press E and you will get another error
  13. try to flag the card and you will get another error
  14. try to bury/suspend/mark the card/note and you will get another error
  15. try to replay the audio and you will get another error
  16. go to deck menu and press S, and you will get another error

i think that’s all of the error. but if you do some more code testing or something, you will probs find some more.

hope it helped

Great, thanks for that. I’ve fixed the issue triggered by opening the preferences screen. If you find any other cases where this happens when you haven’t used the preferences screen, please let me know.

I hit this error while reviewing a filtered deck. I’ve not figured the exact steps to reproduce it yet.

cqg also reported the issue here: Anki 2.1.50 Beta - #145 by cqg

Please let me know if the next beta doesn’t address it.