krmanik / Sentence-Adder-Anki-Addon

Add sentences to Anki editor window in one click
GNU Affero General Public License v3.0
14 stars 6 forks source link

Not finding a sentence in the database during batch adding crashes Anki #22

Open soliviantar opened 11 months ago

soliviantar commented 11 months ago

EDIT: On further review, it looks the add-on freezes Anki whenever it doesn't find the word or expression in the database (but only for batch adding, manual adding gives an error instead: "Create database or change language options"). Batch adding for simple words that have sentences in my tatoeba database works. However, when looking up something without a sentence in the database it freezes and I have to force close Anki.

____ (original post) I can add sentences by highlighting and clicking the addon button. But whenever I try to batch add Anki becomes non-responsive.

If I select just one or a few cards it just freezes until I have to force close Anki. If I select all my notes from the deck (~1500), it says "Processing" and there is a progress bar. At some point it disappears, but when I try to close the Sentence Adder window, Anki hangs and I have to force close. No sentences are added.

I am using:
Anki 2.1.65 (aa9a734f) Python 3.9.15 Qt 6.4.3 PyQt 6.4.0 Platform: Windows-10-10.0.22621 Flags: frz=True ao=True sv=3

krmanik commented 10 months ago

Next version of the addons will have fixes.