Closed soliviantar closed 2 months ago
Are you able to reproduce this consistently?
@Gustaf-C yes, this happens every time. But I think it might be an interefetence with another addon though.
Seems to be caused by anki-morphs addon (which crashes on startup since the last update). Disabling it prevents this error from happening.
I took a glance at this earlier. The way the addon is setting up the menus right now isn't great. My guess is the anki-morphs addon you mentioned was being loaded before the chinese support addon and when it crashed during the profile_did_open
hook, the chinese support addon didn't get to run it's hook to do some setup. This resulted in the menu for chinese support not being initialized and so cleanup was failing in the profile_will_close
hook.
While an easy fix for this is possible (add the offending code to a try block) that would also cause a silent failure where the chinese support menu wouldn't appear without any apparent reason. At least now we do get an indication that something is wrong. Since the issue is caused by another addon crashing, and not an actual conflict, I think I'll let this be for now.
We should probably add it to the todo list to change how the menus are set up, injecting our own property onto the mw
object is a surefire way to have something go wrong, and a brief glance at some other addons tells me this way is a little dated.
When I next have time I can make an issue for it so we can keep track of what needs to be done.
Closing this since the problem is due to another addon. A potential fix is tracked in #78.
When closing Anki, there's an error message and Anki won't close. After closing the error window, the user can close Anki normally. (Haven't tested on 23.10)
Error message: