Error when trying to choose deck in new anki

so i opened anki today and it didnt work

then i opened it again and got these:

Error
An error occurred. Please use Tools > Check Database to see if that fixes the problem.
If problems persist, please report the problem on our support site. Please copy and paste the information below into your report.
Anki 2.1.45 (355e66e8) Python 3.8.6 Qt 5.14.2 PyQt 5.14.2
Platform: Windows 10
Flags: frz=True ao=False sv=2
Add-ons, last update check: 2021-07-30 19:57:26

Caught exception:
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.NotFoundError

I pressed Close. Then this popped up:

Error
An error occurred. Please use Tools > Check Database to see if that fixes the problem.
If problems persist, please report the problem on our support site. Please copy and paste the information below into your report.
Anki 2.1.45 (355e66e8) Python 3.8.6 Qt 5.14.2 PyQt 5.14.2
Platform: Windows 10
Flags: frz=True ao=False sv=2
Add-ons, last update check: 2021-07-30 19:57:26

Caught exception:
Traceback (most recent call last):
  File "aqt\main.py", line 208, in on_focus_changed
  File "aqt\hooks_gen.py", line 2495, in __call__
  File "aqt\main.py", line 749, in on_focus_did_change
  File "aqt\reviewer.py", line 160, in refresh_if_needed
  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.NotFoundError

I checked database and got this:

Error
An error occurred. Please use Tools > Check Database to see if that fixes the problem.
If problems persist, please report the problem on our support site. Please copy and paste the information below into your report.
Anki 2.1.45 (355e66e8) Python 3.8.6 Qt 5.14.2 PyQt 5.14.2
Platform: Windows 10
Flags: frz=True ao=False sv=2
Add-ons, last update check: 2021-07-30 19:57:26

Caught exception:
Traceback (most recent call last):
  File "aqt\customstudy.py", line 40, in <lambda>
  File "aqt\customstudy.py", line 65, in onRadioChange
  File "anki\scheduler\v3.py", line 242, in totalNewForCurrentDeck
  File "anki\dbproxy.py", line 81, in scalar
  File "anki\dbproxy.py", line 60, in _query
  File "anki\_backend\__init__.py", line 78, in db_query
  File "anki\_backend\__init__.py", line 101, in _db_command
anki.errors.DBError: DbError { info: "SqliteFailure(Error { code: Unknown, extended_code: 1 }, Some(\"no such table: active_decks\"))", kind: Other }

Now anki doesnt let me click on a deck to study . . .

i have no addons. and i havent played with settings but Ive chosen V3 scheduler yday

I can’t seem to reproduce any of those errors. If you get any of them again after the DB check and restarting Anki, could you please let me know the steps I should take that trigger an error?

  1. open anki
  2. create a filtered deck
  3. delete the filtered deck
  4. press s
  5. you will get error 1
  6. click close
  7. press s
  8. you will get error 2

Now I started getting this

Caught exception:
Traceback (most recent call last):
  File "aqt\main.py", line 1053, in onStudyKey
  File "aqt\main.py", line 672, in moveToState
  File "aqt\main.py", line 694, in _reviewState
  File "aqt\reviewer.py", line 140, in show
  File "aqt\reviewer.py", line 160, in refresh_if_needed
  File "aqt\reviewer.py", line 202, in nextCard
  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 66, in refresh
  File "aqt\overview.py", line 269, in _renderBottom
  File "anki\scheduler\base.py", line 67, in haveBuried
  File "anki\scheduler\base.py", line 58, in congratulations_info
  File "anki\_backend\generated.py", line 91, in congrats_info
  File "anki\_backend\__init__.py", line 131, in _run_command
anki.errors.NotFoundError

i think it happens because after you delete the filtered deck, there is no deck selected.

if i click on a deck with my mouse, then this error doesnt happen

btw dae, thank you for your work

Thanks, fix coming.

guess it is supposed to be fixed in .46?

if so, i can still reproduce the error on this version

I cannot reproduce it using the steps above - are you sure you tested on 2.1.46 and not 2.1.45? Is it possible the steps you’re taking are slightly different? When I press s after deleting a deck, the congratulations screen shows.

yeppp. have a look

think you need to check the V3 scheduler. otherwise you wont get the error

Thanks, that’s it - fix coming in next update.