Bug report on Anki Linux - Taskman/backend error

I am using Anki on Linux, and it threw an error, asking me to report it. Therefore, here is the bug report.

Also, I want to thank you for the work you’re doing. Anki is such an amazing tool !

Anki 25.02.4 (a5c33ad0) (src) (ao)
Python 3.12.10 Qt 6.9.0 PyQt 6.9.0
Platform: Linux-6.14.6-300.fc42.x86_64-x86_64-with-glibc2.40

Traceback (most recent call last):
  File "/app/lib/python3.12/site-packages/aqt/taskman.py", line 144, in _on_closures_pending
    closure()
  File "/app/lib/python3.12/site-packages/aqt/taskman.py", line 88, in <lambda>
    lambda future: self.run_on_main(lambda: on_done(future))
                                            ^^^^^^^^^^^^^^^
  File "/app/lib/python3.12/site-packages/aqt/taskman.py", line 108, in wrapped_done
    on_done(fut)
  File "/app/lib/python3.12/site-packages/aqt/operations/__init__.py", line 123, in wrapped_done
    future.result()
  File "/usr/lib/python3.12/concurrent/futures/_base.py", line 449, in result
    return self.__get_result()
           ^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/concurrent/futures/_base.py", line 401, in __get_result
    raise self._exception
  File "/usr/lib/python3.12/concurrent/futures/thread.py", line 59, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/lib/python3.12/site-packages/aqt/operations/__init__.py", line 108, in wrapped_op
    return self._op(mw.col)
           ^^^^^^^^^^^^^^^^
  File "/app/lib/python3.12/site-packages/aqt/operations/note.py", line 22, in <lambda>
    return CollectionOp(parent, lambda col: col.add_note(note, target_deck_id))
                                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/lib/python3.12/site-packages/anki/collection.py", line 534, in add_note
    out = self._backend.add_note(note=note._to_backend_note(), deck_id=deck_id)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/lib/python3.12/site-packages/anki/_backend_generated.py", line 1290, in add_note
    raw_bytes = self._run_command(23, 1, message.SerializeToString())
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/lib/python3.12/site-packages/anki/_backend.py", line 161, in _run_command
    return self._backend.command(service, method, input)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
pyo3_runtime.PanicException: assertion `left == right` failed
  left: 1747557686168
 right: 0

Have you tried the steps in Troubleshooting - Anki Manual?

Also: What did you do to trigger the error? What are your steps to reproduce?

Yes, I closed Anki and then opened it up again, and everything looks fine now.

However, the modal was asking to report it, so I created an account on this forum and shared the report message (the last step from the Troubleshooting Manual).

To answer @Anon_0000, the error occurred while I was creating an Anki card (a markdown and katex card). I created some new cards since, and I didn’t had any other issue again.

2 Likes

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