Anki Desktop on Mac refusing to quit

Every time I attempt to quit the app, I get this message:

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.40 (cf446733) Python 3.8.6 Qt 5.14.2 PyQt 5.14.2
Platform: Mac 10.16
Flags: frz=True ao=False sv=1
Add-ons, last update check: 2021-05-17 11:54:15

Caught exception:
Traceback (most recent call last):
File “aqt/”, line 1007, in closeEvent
File “aqt/”, line 444, in unloadProfileAndExit
File “aqt/”, line 421, in unloadProfile
File “aqt/”, line 530, in unloadCollection
File “aqt/”, line 797, in closeAllWindows
File “aqt/”, line 132, in closeAll
File “aqt/”, line 730, in closeWithCallback
File “aqt/”, line 508, in saveNow
File “aqt/”, line 617, in saveTags
File “anki/”, line 68, in flush
File “anki/”, line 364, in update_note
File “anki/”, line 256, in _run_command

I neither understand it nor know what to do


Did you try this?


If that doesn’t help, you may need to force close Anki. How to force an app to quit on your Mac – Apple Support.