Before the error happened, I was…
[Replace this text.]
Error message (don't change this)
Anki 25.07.5 (7172b2d2) (ao)
Python 3.13.5 Qt 6.9.1 PyQt 6.9.1
Platform: macOS-26.1-arm64-arm-64bit-Mach-O
Traceback (most recent call last):
File "/Users/kmyles-24/Library/Application Support/Anki2/addons21/1322529746/lib/peewee.py", line 3322, in execute_sql
cursor.execute(sql, params or ())
~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
sqlite3.DatabaseError: database disk image is malformed
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/kmyles-24/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/aqt/main.py", line 288, in on_focus_changed
gui_hooks.focus_did_change(new, old)
~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
File "/Users/kmyles-24/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/_aqt/hooks.py", line 3496, in __call__
hook(new, old)
~~~~^^^^^^^^^^
File "/Users/kmyles-24/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/aqt/main.py", line 881, in on_focus_did_change
self.reviewer.refresh_if_needed()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/Users/kmyles-24/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/aqt/reviewer.py", line 204, in refresh_if_needed
self.nextCard()
~~~~~~~~~~~~~^^
File "/Users/kmyles-24/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/aqt/reviewer.py", line 262, in nextCard
self._showQuestion()
~~~~~~~~~~~~~~~~~~^^
File "/Users/kmyles-24/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/aqt/reviewer.py", line 405, in _showQuestion
gui_hooks.reviewer_did_show_question(c)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^
File "/Users/kmyles-24/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/_aqt/hooks.py", line 4293, in __call__
hook(card)
~~~~^^^^^^
File "/Users/kmyles-24/Library/Application Support/Anki2/addons21/1322529746/gui/reviewer.py", line 377, in _add_or_refresh_view_note_button
ankihub_nid = ankihub_db.ankihub_nid_for_anki_nid(card.nid)
File "/Users/kmyles-24/Library/Application Support/Anki2/addons21/1322529746/db/db.py", line 364, in ankihub_nid_for_anki_nid
.scalar()
~~~~~~^^
File "/Users/kmyles-24/Library/Application Support/Anki2/addons21/1322529746/lib/peewee.py", line 2036, in inner
return method(self, database, *args, **kwargs)
File "/Users/kmyles-24/Library/Application Support/Anki2/addons21/1322529746/lib/peewee.py", line 2301, in scalar
row = self.tuples().peek(database)
File "/Users/kmyles-24/Library/Application Support/Anki2/addons21/1322529746/lib/peewee.py", line 2036, in inner
return method(self, database, *args, **kwargs)
File "/Users/kmyles-24/Library/Application Support/Anki2/addons21/1322529746/lib/peewee.py", line 2286, in peek
rows = self.execute(database)[:n]
~~~~~~~~~~~~^^^^^^^^^^
File "/Users/kmyles-24/Library/Application Support/Anki2/addons21/1322529746/lib/peewee.py", line 2036, in inner
return method(self, database, *args, **kwargs)
File "/Users/kmyles-24/Library/Application Support/Anki2/addons21/1322529746/lib/peewee.py", line 2107, in execute
return self._execute(database)
~~~~~~~~~~~~~^^^^^^^^^^
File "/Users/kmyles-24/Library/Application Support/Anki2/addons21/1322529746/lib/peewee.py", line 2280, in _execute
cursor = database.execute(self)
File "/Users/kmyles-24/Library/Application Support/Anki2/addons21/1322529746/lib/peewee.py", line 3330, in execute
return self.execute_sql(sql, params)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
File "/Users/kmyles-24/Library/Application Support/Anki2/addons21/1322529746/lib/peewee.py", line 3320, in execute_sql
with __exception_wrapper__:
^^^^^^^^^^^^^^^^^^^^^
File "/Users/kmyles-24/Library/Application Support/Anki2/addons21/1322529746/lib/peewee.py", line 3088, in __exit__
reraise(new_type, new_type(exc_value, *exc_args), traceback)
~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/kmyles-24/Library/Application Support/Anki2/addons21/1322529746/lib/peewee.py", line 196, in reraise
raise value.with_traceback(tb)
File "/Users/kmyles-24/Library/Application Support/Anki2/addons21/1322529746/lib/peewee.py", line 3322, in execute_sql
cursor.execute(sql, params or ())
~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
peewee.DatabaseError: database disk image is malformed