Crash with KeyError: 'mainWindowState'

Hello! My Anki crashed. Tried to follow the instructions on the troubleshooting page of the manual, and tried Googling the symptoms as well, to no avail. Already tried restarting Anki without the add ons (pressing shift), restarting my system (MacBook Pro 16 on Apple Silicon, running macOS Ventura 13.2.1), reinstalling Anki to the latest version (2.1.61 qt6). Have not tried Check Database, but can’t the Tools option is not on the menu bar (because the menu bar isn’t loading). Any help?

Enclosing the copy-pasted info from the error prompt below:

Anki 2.1.61 (0c1eaf4c) Python 3.9.15 Qt 6.3.2 PyQt 6.3.1

Platform: macOS-13.2.1-arm64-arm-64bit

Flags: frz=True ao=False sv=3

Add-ons, last update check: 2023-04-11 07:25:22

Caught exception:

Traceback (most recent call last):

File “aqt.progress”, line 118, in handler

File “aqt.main”, line 217, in on_window_init

File “aqt.main”, line 316, in setupProfile

File “aqt.main”, line 479, in loadProfile

KeyError: ‘mainWindowState’

Try renaming prefs21.db to something else, then starting Anki again.

https://docs.ankiweb.net/files.html#file-locations

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