Fatal error left != right for some cards

When reviewing some cards, specifically when pressing a button (e.g. hard/easy/etc.) I get the following fatal error from Anki:

Anki 23.12.1 (1a1d4d54) (src) (ao)
Python 3.11.8 Qt 6.6.3 PyQt 6.6.1
Platform: Linux-6.8.4-arch1-1-x86_64-with-glibc2.39

Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/aqt/taskman.py", line 142, in _on_closures_pending
  File "/usr/lib/python3.11/site-packages/aqt/taskman.py", line 86, in <lambda>
    lambda future: self.run_on_main(lambda: on_done(future))
  File "/usr/lib/python3.11/site-packages/aqt/taskman.py", line 106, in wrapped_done
  File "/usr/lib/python3.11/site-packages/aqt/dbcheck.py", line 41, in on_future_done
    ret, ok = fut.result()
  File "/usr/lib/python3.11/concurrent/futures/_base.py", line 449, in result
    return self.__get_result()
  File "/usr/lib/python3.11/concurrent/futures/_base.py", line 401, in __get_result
    raise self._exception
  File "/usr/lib/python3.11/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/lib/python3.11/site-packages/aqt/dbcheck.py", line 37, in do_check
    return mw.col.fix_integrity()
  File "/usr/lib/python3.11/site-packages/anki/collection.py", line 1063, in fix_integrity
    problems = list(self._backend.check_database())
  File "/usr/lib/python3.11/site-packages/anki/_backend_generated.py", line 205, in check_database
    raw_bytes = self._run_command(3, 6, message.SerializeToString())
  File "/usr/lib/python3.11/site-packages/anki/_backend.py", line 155, in _run_command
    return self._backend.command(service, method, input)
pyo3_runtime.PanicException: assertion `left != right` failed
  left: 0
 right: 0

Only some cards seem to be affected. When reviewing these cards with AnkiDroid, the issue does not occur.

Any help would be appreciated.

Does this happen with add-ons disabled?
Troubleshooting - Anki Manual

1 Like

It might also be Linux Distro Packages - Anki Manual

Ok, so I’ve tried running without add-ons for a few days and I’m still running into the same issue. I’m using anki-bin from the AUR.

Anki only supports the official build downloaded in GitHub

as for others packages maintainers such as AUR

You are welcome to continue using your distro’s version of Anki if you prefer, but if you run into any issues, you will need to report them to your distribution’s package maintainers.
See link above by Dae

1 Like

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