Anki 2.1.49 Fatal error when opening a familiar deck

Any idea what I need to do?
I tried

Fix invalid card IDs

restarted Anki, but it is as if it didn’t apply any changes. When typing added:1 in the browse window it doesn;t show anything.
I run through console, will post what it wrote in the comments.

This only shows up only when I press browse on the Polish deck that has approx 20 subdecks and 8300 cards. Must be my biggest deck.

When this fatal error occurs, I close it and then open as if nothing happened. Everyhing is synched perfectly and stuff.
I don’t get this error when I actually study this deck. I study it every day and I can also add extra new cards for a day with no problem.
I studied this deck with no problems for approx 700 cards. 700 ouf of 8300. Did a lot of browsing and shuffling and now this.

  • Add-ons:
    1 CrowdAnki
    2 Heatmap
    +other two

I also have a looot of decks now. Maybe 100. Not many cards in them, but at least 10 of the decks have 100 cards.

I didn’t try to reinstall add-ons, should I try?

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-03-28 14:01:00

Caught exception:
Traceback (most recent call last):
  File "aqt\progress.py", line 54, in handler
  File "aqt\utils.py", line 965, in <lambda>
  File "aqt\browser\browser.py", line 429, in onRowChanged
  File "aqt\browser\table\table.py", line 83, in get_current_card
  File "aqt\browser\table\model.py", line 179, in get_card
  File "aqt\browser\table\state.py", line 142, in get_card
  File "anki\collection.py", line 317, in get_card
  File "anki\cards.py", line 59, in __init__
  File "anki\cards.py", line 67, in load
  File "anki\_backend\generated.py", line 930, in get_card
  File "anki\_backend\__init__.py", line 126, in _run_command
pyo3_runtime.PanicException: called `Result::unwrap()` on an `Err` value: PoisonError { .. }

Caught exception:
Traceback (most recent call last):
  File "aqt\taskman.py", line 101, in _on_closures_pending
  File "aqt\taskman.py", line 71, in <lambda>
  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\browser\sidebar\tree.py", line 187, in <lambda>
  File "aqt\browser\sidebar\tree.py", line 476, in _root_tree
  File "aqt\browser\sidebar\tree.py", line 482, in _build_stage
  File "aqt\browser\sidebar\tree.py", line 531, in _saved_searches_tree
  File "aqt\browser\sidebar\tree.py", line 1098, in _get_saved_searches
  File "anki\collection.py", line 728, in get_config
  File "anki\config.py", line 42, in get_immutable
  File "anki\_backend\generated.py", line 519, in get_config_json
  File "anki\_backend\__init__.py", line 126, in _run_command
pyo3_runtime.PanicException: called `Result::unwrap()` on an `Err` value: PoisonError { .. }

Traceback (most recent call last):
  File "aqt\browser\table\model.py", line 75, in _fetch_row_from_backend
  File "anki\collection.py", line 691, in browser_row_for_id
  File "anki\_backend\generated.py", line 792, in browser_row_for_id
  File "anki\_backend\__init__.py", line 126, in _run_command
pyo3_runtime.PanicException: called `Result::unwrap()` on an `Err` value: PoisonError { .. }

this is what console gives me
“Forkert parameter” means “wrong parameter”

thread '<unnamed>' panicked at 'SystemTimeToFileTime failed with: Forkert parameter. (os error 87)', external/raze__chrono__0_4_19/src\sys\windows.rs:117:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Traceback (most recent call last):
  File "aqt\browser\table\model.py", line 75, in _fetch_row_from_backend
  File "anki\collection.py", line 691, in browser_row_for_id
  File "anki\_backend\generated.py", line 792, in browser_row_for_id
  File "anki\_backend\__init__.py", line 126, in _run_command
pyo3_runtime.PanicException: SystemTimeToFileTime failed with: Forkert parameter. (os error 87)
thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: PoisonError { .. }', rslib/src\backend\mod.rs:168:18
thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: PoisonError { .. }', rslib/src\backend\mod.rs:168:18
thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: PoisonError { .. }', rslib/src\backend\mod.rs:168:18
Caught exception:
Traceback (most recent call last):
  File "aqt\progress.py", line 54, in handler
  File "aqt\utils.py", line 965, in <lambda>
  File "aqt\browser\browser.py", line 429, in onRowChanged
  File "aqt\browser\table\table.py", line 83, in get_current_card
  File "aqt\browser\table\model.py", line 179, in get_card
  File "aqt\browser\table\state.py", line 142, in get_card
  File "anki\collection.py", line 317, in get_card
  File "anki\cards.py", line 59, in __init__
  File "anki\cards.py", line 67, in load
  File "anki\_backend\generated.py", line 930, in get_card
  File "anki\_backend\__init__.py", line 126, in _run_command
pyo3_runtime.PanicException: called `Result::unwrap()` on an `Err` value: PoisonError { .. }

Caught exception:
Traceback (most recent call last):
  File "aqt\taskman.py", line 101, in _on_closures_pending
  File "aqt\taskman.py", line 71, in <lambda>
  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\browser\sidebar\tree.py", line 187, in <lambda>
  File "aqt\browser\sidebar\tree.py", line 476, in _root_tree
  File "aqt\browser\sidebar\tree.py", line 482, in _build_stage
  File "aqt\browser\sidebar\tree.py", line 531, in _saved_searches_tree
  File "aqt\browser\sidebar\tree.py", line 1098, in _get_saved_searches
  File "anki\collection.py", line 728, in get_config
  File "anki\config.py", line 42, in get_immutable
  File "anki\_backend\generated.py", line 519, in get_config_json
  File "anki\_backend\__init__.py", line 126, in _run_command
pyo3_runtime.PanicException: called `Result::unwrap()` on an `Err` value: PoisonError { .. }

thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: PoisonError { .. }', rslib/src\backend\mod.rs:168:18
Traceback (most recent call last):
  File "aqt\browser\table\model.py", line 75, in _fetch_row_from_backend
  File "anki\collection.py", line 691, in browser_row_for_id
  File "anki\_backend\generated.py", line 792, in browser_row_for_id
  File "anki\_backend\__init__.py", line 126, in _run_command
pyo3_runtime.PanicException: called `Result::unwrap()` on an `Err` value: PoisonError { .. }
thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: PoisonError { .. }', rslib/src\backend\mod.rs:168:18

You have notes in that deck with creation times 50,000 years in the future. A third-party add-on or tool is likely to blame for this - if you know which, please let them know so they can fix the issue.

You should be able to resolve it with the following in the debug console:

from anki.utils import intTime
mw.col.db.execute("update notes set mod = ? where mod > ?", intTime(), intTime())
mw.col.modSchema(False)

https://docs.ankiweb.net/misc.html#debug-console

1 Like

It worked great, thanks so much! May some tasty meals find way on your plate

  • Add-ons

The add-ons installed:

  1. Heatmap - 1722241614
  2. Postpone card - 1152543397
  3. JSON export&import. Edit history. Collaborate on deck creation. - 1788670778 - two reviews as “crashes”
  4. +Fix ID
  • Regarding “3.”
    • I believe I downloaded for this collaborative deck: “raagaception-12STD-CBSE-deck”
      I only took some cards out of it, but it does have enormous amount of cards.
      Raagaception deck also has different schedulling for the cards, where they changed some settings.
  • Can there be too many cards?

I don’t know the system, but I will note I did download two 5000 words decks before that Raagaception deck.
I also have 65000 cards in total
My last “new card” is number “#1 665 256”. I guess I will google through if it is bad or fine. I just need to reschedule it

It’s not a problem with the number of cards you have. Something wrote dates in the wrong format - #3 could well be it, or maybe a previous shared deck import.