Crash with error KeyError: 'mainWindowState'

Hi everyone, I was setting up Anki when my laptop turned off and when I tried to restart the app it presented me with the following Error message:

An error occurred. Please use Tools > Check Database to see if that fixes the problem.

Anki 2.1.61 (0c1eaf4c) Python 3.9.15 Qt 6.3.2 PyQt 6.3.1
Platform: macOS-11.2.2-x86_64-i386-64bit
Flags: frz=True ao=False sv=2
Add-ons, last update check: 2023-04-25 15:34:53

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’

I have tried redownloading the app but seen no change. I cannot see the Tools tab so I cannot Check Database. Would love some guidance on this. Thanks!

Try Anki → Preferences → Reset Window Sizes

This didn’t work unfortunately. Thank you for your help regardless.

Not sure about macOS, but on Windows you can open the Tools menu by pressing Alt+T

This didn’t work either. Every time I try to open, the error pops up

Resolved- I had to delete anki as well as all supporting files, which I did not do the first time.

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