Fatal error occured, and Anki must close

Hi, I’m not sure how to fix this problem if anyone can help :confused:

A fatal error occurred, and Anki must close. Please report this message on the forums.
Anki 2.1.49 (dc80804a) Python 3.8.6 Qt 5.14.2 PyQt 5.14.2
Platform: Windows 10
Flags: frz=True ao=True sv=?
Add-ons, last update check: 2022-09-27 20:56:47

Caught exception:
Traceback (most recent call last):
File “aqt\taskman.py”, line 101, in on_closures_pending
File “aqt\taskman.py”, line 71, in
File "aqt\operations_init
.py", line 214, in wrapped_done
File “concurrent\futures_base.py”, line 432, in result
File “concurrent\futures_base.py”, line 388, in get_result
File “concurrent\futures\thread.py”, line 57, in run
File "aqt\operations_init
.py", line 199, in wrapped_op
File “aqt\editor.py”, line 544, in
File “anki\notes.py”, line 191, in fields_check
File “anki_backend\generated.py”, line 355, in note_fields_check
File "anki_backend_init
.py", line 126, in _run_command
pyo3_runtime.PanicException: called Result::unwrap() on an Err value: PoisonError { … }

If the issue is still occurring on the latest version with add-ons disabled, please try again with Anki 2.1.55 Beta and then paste the error you get.

Hi, the issue has still occurred with add-ons disabled. Here’s what the beta version says

A fatal error occurred, and Anki must close. Please report this message on the forums.
Anki 2.1.55 (6944210f) Python 3.9.7 Qt 6.3.2 PyQt 6.3.1
Platform: Windows-10-10.0.19044
Flags: frz=True ao=False sv=?
Add-ons, last update check: 2022-10-06 12:54:22

Caught exception:
Traceback (most recent call last):
File “aqt.taskman”, line 122, in _on_closures_pending
File “aqt.taskman”, line 71, in
File “aqt.taskman”, line 90, in wrapped_done
File “aqt.operations”, line 120, in wrapped_done
File “concurrent.futures._base”, line 438, in result
File “concurrent.futures._base”, line 390, in __get_result
File “concurrent.futures.thread”, line 52, in run
File “aqt.operations”, line 105, in wrapped_op
File “aqt.operations.note”, line 22, in
File “anki.collection”, line 516, in add_note
File “anki._backend.generated”, line 608, in add_note
File “anki._backend”, line 140, in _run_command
pyo3_runtime.PanicException: assertion failed: note.id.0 == 0

The only thing I can think of that might cause this is if you are double-clicking on the Add button, or pressing the Add shortcut combo twice in quick succession. Is it possible you’re doing that?