AwesomeTTS cause an error when used in a new note form

@lucw
After a few uses of AwesomeTTS within a new note window I get this error (when clicking on AwesomeTTS icon):

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.26 (70784154) Python 3.8.0 Qt 5.13.1 PyQt 5.14.1
Platform: Mac 10.15.5
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2020-07-11 12:47:36
Add-ons possibly involved: ⁨AwesomeTTS - Add speech to your flashcards, Frozen Fields, Anki IPA⁩

Caught exception:
Traceback (most recent call last):
File “aqt/webview.py”, line 34, in cmd
File “aqt/webview.py”, line 114, in _onCmd
File “aqt/webview.py”, line 518, in _onBridgeCmd
File “</Applications/Anki.app/Contents/MacOS/decorator.pyc:decorator-gen-8>”, line 2, in onBridgeCmd
File “anki/hooks.py”, line 638, in decorator_wrapper
File “anki/hooks.py”, line 635, in repl
File “/Users/mateusztylek/Library/Application Support/Anki2/addons21/799647424/main.py”, line 168, in on_bridge_cmd
_old(editor, command)
File “</Applications/Anki.app/Contents/MacOS/decorator.pyc:decorator-gen-6>”, line 2, in onBridgeCmd
File “anki/hooks.py”, line 638, in decorator_wrapper
File “anki/hooks.py”, line 635, in repl
File “/Users/mateusztylek/Library/Application Support/Anki2/addons21/516643804/main.py”, line 135, in onBridge
return _old(self, str)
File “aqt/editor.py”, line 408, in onBridgeCmd
File “/Users/mateusztylek/Library/Application Support/Anki2/addons21/1436550454/awesometts/gui/common.py”, line 126, in _show
self._instance.show()
File “/Users/mateusztylek/Library/Application Support/Anki2/addons21/1436550454/awesometts/gui/generator.py”, line 729, in show
super(EditorGenerator, self).show(*args, **kwargs)
File “/Users/mateusztylek/Library/Application Support/Anki2/addons21/1436550454/awesometts/gui/base.py”, line 404, in show
dropdown = self.findChild(QtWidgets.QComboBox, ‘service’)
RuntimeError: wrapped C/C++ object of type EditorGenerator has been deleted

I still can use AwesomeTTS from within the browser or I have to close a new note window and open it again to make AwesomeTTS working again.

It happens in both AwesomeTTS addons, unofficial and reactivated ones.

Can you try do disable Frozen Fields and see whether that fixes the issue ?

Unfortunately, I had the same error when AwesomeTTS was the only addon that I had.
I reported this issue to the developer of the unofficial version but to no avail. Since that time I don’t use ATTS from a new note form.

what was the error when AwesomeTTS was the only addon enabled ?

1 Like

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, repeating 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-on support site.
Debug info:
Anki 2.1.28 (7d8818f8) Python 3.8.0 Qt 5.15.0 PyQt 5.15.0
Platform: Windows 10
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2020-07-24 08:20:00

Caught exception:
Traceback (most recent call last):
File “aqt\webview.py”, line 35, in cmd
File “aqt\webview.py”, line 121, in _onCmd
File “aqt\webview.py”, line 536, in _onBridgeCmd
File “aqt\editor.py”, line 412, in onBridgeCmd
File “C:\Users\mtylek\AppData\Roaming\Anki2\addons21\1436550454\awesometts\gui\common.py”, line 121, in _show
self._instance = self._target.constructor(
File “C:\Users\mtylek\AppData\Roaming\Anki2\addons21\1436550454\awesometts\gui\generator.py”, line 670, in init
super(EditorGenerator, self).init(
File “C:\Users\mtylek\AppData\Roaming\Anki2\addons21\1436550454\awesometts\gui\base.py”, line 243, in init
super(ServiceDialog, self).init(*args, **kwargs)
File “C:\Users\mtylek\AppData\Roaming\Anki2\addons21\1436550454\awesometts\gui\base.py”, line 77, in init
super(Dialog, self).init(parent)
RuntimeError: wrapped C/C++ object of type Browser has been deleted

Thanks, i’ve linked this thread on this issue: https://github.com/AwesomeTTS/awesometts-anki-addon/issues/102 . i’ll have to take a look into what’s happening. Just curious, you don’t like adding sound using the batch generation feature ?

No, it is not the case. I use batch mode as much as I can. Sometimes I have to switch between different sources like Cambridge, Oxford or Oddcast and that is when I prefer to add the sound manually.

@lucw any progress here?

@mtylek planning on tackling this issue soon.

@mtylek I’m unable to reproduce this issue, would you be able to record a screen capture of this bug ? Without being able to reproduce, i’m struggling to see what may be wrong.

I’m not sure what can I show because when I open a new note window and add the first, second, third and sometimes more it works.
Usually, it stops working after three, four notes added in a row.
Maybe it is related to my custom note type which is based on cloze type?

What exactly can I provide to help you figure out what is going on here?

@mtylek I expect this issue should be fixed in v1.21, which was just released. please check.

1 Like

Seems to be working like a charm.
Thank you so much!!!

@mtylek thank you, please remember to leave a good review on the addon page if you haven’t done so already https://ankiweb.net/shared/info/1436550454