Fatal error when adding cards

Happened while I was adding a card. (2.1.47)

A fatal error occurred, and Anki must close. Please report this message on the forums.
Anki 2.1.47 (dc156f34) 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: 2021-09-17 16:17:36

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 537, 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 { … }

Was there no previous error? A PoisonError generally indicates a previous error occurred.

Yes, there was. But I couldn’t copy it because the fatal error window stayed on top of it, not allowing me to do anything unless I closed Anki.

Knowing the original error would help :slight_smile: If you can’t drag the other window to the side, running Anki from a console should also reveal the original error in the console.