cfculhane / AnkiOCR

Anki Addon to create searchable text from images in notes, using Tesseract OCR
MIT License
17 stars 5 forks source link

AnkiOCR crashes on "new_field" output option #37

Open hienstorfer opened 1 year ago

hienstorfer commented 1 year ago

Hello Chris, Anki OCR is working for me as long as I use "tooltip" option as output location. When I am switching to "new_field", Anki is crashing. Is there a solution? regards, Philipp

================= configuration { "batch_size": 5, "languages": [ "rus" ], "num_threads": 2, "override_tesseract_exec": false, "overwrite_existing": true, "tesseract_exec_path": "", "tesseract_install_valid": true, "text_output_location": "new_field", "use_batching": true, "use_multithreading": true }

============================ A fatal error occurred, and Anki must close. Please report this message on the forums. Anki 2.1.57 (6b7d372c) Python 3.9.15 Qt 6.4.2 PyQt 6.4.0 Platform: Windows-10-10.0.19045 Flags: frz=True ao=True sv=? Add-ons, last update check: 2023-02-14 21:51:13

Caught exception: Traceback (most recent call last): File "aqt.progress", line 118, in handler File "aqt.utils", line 1188, in File "aqt.browser.browser", line 542, in on_all_or_selected_rows_changed File "aqt.browser.table.table", line 103, in get_single_selected_card File "aqt.browser.table.model", line 222, in get_card File "aqt.browser.table.state", line 148, in get_card File "anki.collection", line 462, in get_card File "anki.cards", line 60, in init File "anki.cards", line 68, in load File "anki._backend_generated", line 1844, in get_card File "anki._backend", line 150, in _run_command pyo3_runtime.PanicException: called Result::unwrap() on an Err value: PoisonError { .. }

miahen commented 1 year ago

having the same issue.

A fatal error occurred, and Anki must close. Please report this message on the forums. Anki 2.1.58 (ab8b1465) Python 3.9.15 Qt 6.4.2 PyQt 6.4.0 Platform: Windows-10-10.0.22621 Flags: frz=True ao=True sv=? Add-ons, last update check: 2023-02-20 13:47:17

Caught exception: Traceback (most recent call last): File "aqt.progress", line 118, in handler File "aqt.utils", line 1188, in File "aqt.browser.browser", line 545, in on_all_or_selected_rows_changed File "aqt.browser.table.table", line 103, in get_single_selected_card File "aqt.browser.table.model", line 222, in get_card File "aqt.browser.table.state", line 148, in get_card File "anki.collection", line 463, in get_card File "anki.cards", line 60, in init File "anki.cards", line 68, in load File "anki._backend_generated", line 1866, in get_card File "anki._backend", line 150, in _run_command pyo3_runtime.PanicException: called Result::unwrap() on an Err value: PoisonError { .. }