Fatal Error enabeling FSRS

After enabeling FSRS

A fatal error occurred, and Anki must close. Please report this message on the forums.
Anki 23.10 (51a10f09) Python 3.9.15 Qt 6.5.3 PyQt 6.5.3
Platform: macOS-13.5.1-arm64-arm-64bit
Flags: frz=True ao=True sv=?
Add-ons, last update check: 2023-12-04 14:02:11
Add-ons possibly involved: ⁨AMBOSS add-on, AnkiHub, The KING of Study Timers⁩

Error in sys.excepthook:
Traceback (most recent call last):
File “/Users//Library/Application Support/Anki2/addons21/1322529746/gui/errors.py”, line 201, in excepthook
_maybe_report_exception_and_show_feedback_dialog(exception=val)
File “/Users//Library/Application Support/Anki2/addons21/1322529746/gui/errors.py”, line 215, in _maybe_report_exception_and_show_feedback_dialog
sentry_event_id = report_exception_and_upload_logs(exception=exception)
File “/Users//Library/Application Support/Anki2/addons21/1322529746/gui/errors.py”, line 88, in report_exception_and_upload_logs
sentry_id = _report_exception(
File “/Users//Library/Application Support/Anki2/addons21/1322529746/gui/errors.py”, line 437, in _report_exception
scope.set_context(“ankihub base files”, _ankihub_base_path_context_dict())
File “/Users//Library/Application Support/Anki2/addons21/1322529746/gui/errors.py”, line 498, in _ankihub_base_path_context_dict
“Is ankihub database attached to anki database?”: is_ankihub_db_attached_to_anki_db(),
File “/Users//Library/Application Support/Anki2/addons21/1322529746/db/db.py”, line 80, in is_ankihub_db_attached_to_anki_db
name for _, name, _ in aqt.mw.col.db.all(“PRAGMA database_list”)
File “anki.dbproxy”, line 71, in all
File “anki.dbproxy”, line 65, in _query
File “anki._backend”, line 96, in db_query
File “anki._backend”, line 115, in _db_command
pyo3_runtime.PanicException: called Result::unwrap() on an Err value: PoisonError { … }

Original exception was:
Traceback (most recent call last):
File “aqt.webview”, line 46, in cmd
File “aqt.webview”, line 153, in _onCmd
File “aqt.webview”, line 666, in _onBridgeCmd
File “decorator”, line 232, in fun
File “anki.hooks”, line 89, in decorator_wrapper
File “anki.hooks”, line 86, in repl
File “/Users//Library/Application Support/Anki2/addons21/907028815/init.py”, line 623, in myLinkHandler
return _old(self, url)
File “aqt.toolbar”, line 411, in _linkHandler
File “aqt.toolbar”, line 435, in _syncLinkHandler
File “aqt.main”, line 1039, in on_sync_button_clicked
File “decorator”, line 232, in fun
File “anki.hooks”, line 89, in decorator_wrapper
File “anki.hooks”, line 86, in repl
File “/Users//Library/Application Support/Anki2/addons21/1322529746/gui/auto_sync.py”, line 80, in _on_ankiweb_sync
_maybe_sync_with_ankihub(on_done=sync_with_ankiweb)
File “/Users//Library/Application Support/Anki2/addons21/1322529746/gui/auto_sync.py”, line 91, in _maybe_sync_with_ankihub
on_done(future_with_result(None))
File “/Users//Library/Application Support/Anki2/addons21/1322529746/gui/auto_sync.py”, line 72, in sync_with_ankiweb
_old(*args, **kwargs)
File “decorator”, line 232, in fun
File “anki.hooks”, line 89, in decorator_wrapper
File “anki.hooks”, line 86, in repl
File “/Users//Library/Application Support/Anki2/addons21/1322529746/gui/threading_utils.py”, line 26, in wrapper
return func(*args, **kwargs)
File “/Users//Library/Application Support/Anki2/addons21/1322529746/gui/auto_sync.py”, line 60, in _rate_limited
_old(*args, **kwargs)
File “decorator”, line 232, in fun
File “anki.hooks”, line 89, in decorator_wrapper
File “anki.hooks”, line 84, in repl
File “aqt.main”, line 1055, in _sync_collection_and_media
File “_aqt.hooks”, line 5065, in call
File “/Users//Library/Application Support/Anki2/addons21/0amboss_addon/anki/hooks.py”, line 37, in call
callback()
File “/Users//Library/Application Support/Anki2/addons21/0amboss_addon/mobile/controller.py”, line 113, in maybe_update_templates_on_sync
self.update_templates(interactive=False)
File “/Users//Library/Application Support/Anki2/addons21/0amboss_addon/mobile/controller.py”, line 151, in update_templates
modification_type, result = self._perform_template_updates()
File “/Users//Library/Application Support/Anki2/addons21/0amboss_addon/mobile/controller.py”, line 217, in _perform_template_updates
self._snippet_manager.insert_snippet(data=addon_data),
File “/Users//Library/Application Support/Anki2/addons21/0amboss_addon/mobile/snippet.py”, line 57, in insert_snippet
return self._notetypes_processor.process_all_notetypes_with(
File “/Users//Library/Application Support/Anki2/addons21/0amboss_addon/mobile/notetypes.py”, line 62, in process_all_notetypes_with
for notetype in notetype_service.get_all_notetypes():
File “/Users//Library/Application Support/Anki2/addons21/0amboss_addon/anki/collection.py”, line 115, in get_all_notetypes
return [cast(NotetypeDict, d) for d in self.model_manager.all()]
File “anki.models”, line 171, in all
File “anki.models”, line 120, in all_names_and_ids
File “anki._backend_generated”, line 1101, in get_notetype_names
File “anki._backend”, line 152, in _run_command
pyo3_runtime.PanicException: called Result::unwrap() on an Err value: PoisonError { … }

1 Like

Please see Troubleshooting - Anki Manual

disabled ankihub and amboss add ons and then got the following error the next attempt:

A fatal error occurred, and Anki must close. Please report this message on the forums.
Anki 23.10 (51a10f09) Python 3.9.15 Qt 6.5.3 PyQt 6.5.3
Platform: macOS-13.5.1-arm64-arm-64bit
Flags: frz=True ao=True sv=?
Add-ons, last update check: 2023-12-04 18:07:39

Caught exception:
Traceback (most recent call last):
File “aqt.progress”, line 118, in handler
File “aqt.taskman”, line 126, in
File “aqt.operations”, line 122, in wrapped_done
File “concurrent.futures._base”, line 439, in result
File “concurrent.futures._base”, line 391, in __get_result
File “concurrent.futures.thread”, line 58, in run
File “aqt.operations”, line 107, in wrapped_op
File “aqt.operations.deck”, line 88, in
File “anki.decks”, line 297, in update_deck_configs
File “anki._backend_generated”, line 1557, in update_deck_configs_raw
File “anki._backend”, line 152, in _run_command
pyo3_runtime.PanicException: called Option::unwrap() on a None value

Can you reproduce it in the latest version?

updated from 23.10 to 23.10.1 and it now works, thanks

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