migaku-official / migaku-browser-extension-issue-tracker

An issue tracker for bugs and other issues related to the Migaku browser extension.
2 stars 0 forks source link

"Generate syntax" button in Anki times out, crashes, with latest browser extension #24

Closed saxoncameron closed 2 years ago

saxoncameron commented 2 years ago

Description

When attempting to press the "Generate Syntax" 文 button in Anki's card browser or card edit window on an "Expression" field, it hangs for a few seconds then says "Request timed out". image

Error report

I'm not getting this same error report any more, just the timeout dialog, but the first time I came across this issue, Anki crashed and gave me this error report:

Error 
An error occurred. Please start Anki while holding down the shift key, which will temporarily disable the add-ons you have installed. 
If the issue only occurs when add-ons are enabled, please use the Tools>Add-ons menu item to disable some add-ons and restart Anki, repeat until you discover the add-on that is causing the problem. 
When you've discovered the add-on that is causing the problem, please report the issue on the add-ons section of our support site. 
Debug info:
Anki 2.1.49 (dc80804a) Python 3.8.6 Qt 5.14.2 PyQt 5.14.2
Platform: Mac 10.16
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2022-02-11 14:30:51
Add-ons possibly involved: ⁨Migaku Anki Extension⁩

Caught exception:
Traceback (most recent call last):
  File "aqt/taskman.py", line 101, in _on_closures_pending
  File "/Users/saxoncameron/Library/Application Support/Anki2/addons21/Migaku Anki Extension/migaku_connection/__init__.py", line 106, in <lambda>
    lambda: func(*args, **kwargs)
  File "/Users/saxoncameron/Library/Application Support/Anki2/addons21/Migaku Anki Extension/editor.py", line 55, in <lambda>
    on_error = lambda msg: util.show_critical(msg, parent=editor.parentWindow),
  File "/Users/saxoncameron/Library/Application Support/Anki2/addons21/Migaku Anki Extension/util.py", line 64, in show_critical
    return show_msg_box(text, title, parent, QMessageBox.Critical)
  File "/Users/saxoncameron/Library/Application Support/Anki2/addons21/Migaku Anki Extension/util.py", line 76, in show_msg_box
    mb = QMessageBox(parent)
RuntimeError: wrapped C/C++ object of type EditCurrent has been deleted

Screenshots

Pasted_Image_11_2_2022__2_51_pm

Versions

saxoncameron commented 2 years ago

Not sure if this helps, but here's the above Anki card in question

[Uploading Anki card.apkg.zip…]()

saxoncameron commented 2 years ago

Can confirm this issue persists with Anki addon v0.1.0-alpha.13 as well.

LucasMIA commented 2 years ago

Has been fixed.