Fatal error cause Anki desktop crash

Shortly after adding new cards to an existing deck Anki crashed and shut down. Below is an error message I received. I restarted the software and checked the database and all seems well. Synced my desktop with 2 mobile devices with no problems. Any suggestions on how I can prevent this from happening in the future would be greatly appreciated.

A fatal error occurred, and Anki must close. Please report this message on the forums.
Anki 2.1.52 (ab1c2395) Python 3.9.7 Qt 5.15.2 PyQt 5.15.5
Platform: Windows 10
Flags: frz=True ao=False sv=?
Add-ons, last update check: 2022-06-10 22:53:19

Caught exception:
Traceback (most recent call last):
File “aqt.taskman”, line 122, in _on_closures_pending
File “aqt.taskman”, line 71, in
File “aqt.operations”, line 255, 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 239, in wrapped_op
File “aqt.editor”, line 574, in
File “anki.notes”, line 195, in fields_check
File “anki._backend.generated”, line 674, in note_fields_check
File “anki._backend”, line 140, in _run_command
pyo3_runtime.PanicException: called Result::unwrap() on an Err value: PoisonError { … }

Caught exception:
Traceback (most recent call last):
File “aqt.taskman”, line 122, in _on_closures_pending
File “aqt.taskman”, line 71, in
File “aqt.operations”, line 255, 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 239, in wrapped_op
File “aqt.editor”, line 574, in
File “anki.notes”, line 195, in fields_check
File “anki._backend.generated”, line 674, in note_fields_check
File “anki._backend”, line 140, in _run_command
pyo3_runtime.PanicException: called Result::unwrap() on an Err value: PoisonError { … }

These are the kind of errors that are not supposed to happen, because they stem from a bug (or at least, a bad error handling) in Anki. I don’t think there is much you can do besides waiting for that bug to be patched.

This error is telling us that a previous error occurred. If you find it happens again, please see if you can capture the first error message that appears, and not any ones that pop up after that.

Will do. Thanks for responding.

Got it. Thanks for responding