I seem to be getting this error often, at least once a week.
Debug info:
Anki 2.1.49 (dc80804a) Python 3.8.6 Qt 5.14.2 PyQt 5.14.2
Platform: Mac 10.16
Flags: frz=True ao=True sv=3
Add-ons, last update check: 2022-12-04 19:48:47
Add-ons possibly involved: AMBOSS add-on, Image Occlusion Enhanced for Anki 21 alpha
Caught exception:
Traceback (most recent call last):
File “aqt/webview.py”, line 541, in handler
File “aqt/reviewer.py”, line 704, in _onTypedAnswer
File “decorator.py”, line 232, in fun
File “anki/hooks.py”, line 89, in decorator_wrapper
File “anki/hooks.py”, line 86, in repl
File “/Users/homefoldername/Library/Application Support/Anki2/addons21/1374772155/main.py”, line 233, in onShowAnswer
return _old(self)
File “aqt/reviewer.py”, line 386, in _showAnswer
File “aqt/hooks_gen.py”, line 3107, in call
File “/Users/homefoldername/Library/Application Support/Anki2/addons21/0amboss_addon/reviewer.py”, line 288, in _on_card_updated
for card_id in self._schedule_service.get_upcoming_card_ids():
File “/Users/homefoldername/Library/Application Support/Anki2/addons21/0amboss_addon/reviewer.py”, line 187, in get_upcoming_card_ids
card_ids = card_fetcher(scheduler=scheduler) # type: ignore[arg-type]
File “/Users/homefoldername/Library/Application Support/Anki2/addons21/0amboss_addon/reviewer.py”, line 231, in _get_upcoming_card_ids_v3
queued_cards = scheduler.get_queued_cards(fetch_limit=self._fetch_limit)
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