fonol / anki-search-inside-add-card

An add-on providing full-text-search and PDF reading functionality to Anki's Add card dialog
https://ankiweb.net/shared/info/1781298089
GNU Affero General Public License v3.0
178 stars 24 forks source link

Frequent crashing when clozing #361

Open TEST987987123 opened 1 year ago

TEST987987123 commented 1 year ago

Describe the bug Anki crashes rather frequently when clozing some text or changing the cloze number of some clozed text. To Reproduce Steps to reproduce the behavior:

  1. Open the window to add a new card with
  2. Write some text using a card type that allows for clozing
  3. Cloze some text. If it hasn't crashed already, try changing or just selecting clozed texts' cloze numbers

Expected behavior I expect Anki not to crash. It doesn't happen with SIAC disabled.

log The last few lines before it crashed:

on_load_note > right_side_html()
JS info /_addons/1781298089/web/dist/siac.min.js:25 [SIAC] cacheFields(): .editing-area not found, retrying in 30ms.
JS info /_addons/1781298089/web/dist/siac.min.js:25 [SIAC] cacheFields(): .editing-area not found, retrying in 30ms.
JS info :14 [SIAC] right_side_html(): wrapping fields.
[SIAC] setup_ui_after_index_built()
1781298089/src/output.py:1075:night_mode() is deprecated: use theme_manager.night_mode
JS info /_addons/1781298089/web/dist/siac.min.js:29 [SIAC] Mathjax typeset fn not found.
JS error /_anki/legacyPageData?id=140678217922112:2 Uncaught SyntaxError: Unexpected token '<'
zsh: trace trap  anki

Environment (please complete the following information):

n30s4m commented 1 year ago

Terrible. Me too.