mortii / anki-morphs

A MorphMan fork rebuilt from the ground up with a focus on simplicity, performance, and a codebase with minimal technical debt.
https://mortii.github.io/anki-morphs/
Mozilla Public License 2.0
48 stars 6 forks source link

Anki freezes when AnkiMorphs updates #164

Closed knoebelja closed 4 months ago

knoebelja commented 4 months ago

Describe the bug Whenever I get an update notification in Anki for AnkiMorphs, AnkiMorphs tries to update seen morphs automatically and runs forever.

To Reproduce Steps to reproduce the behavior:

  1. Open Anki when an automated update is prompted to be installed.

Expected behavior Anki doesn't freeze or try to update seen morphs.

Screenshots image

Desktop (please complete the following information):

Additional context This happened during the last update. Killing the app and restarting it worked before, but now it's a repeated behavior.

knoebelja commented 4 months ago

The only way around it that I found was launching Anki with my wifi turned off. Then updating the add-on manually.

mortii commented 4 months ago

@knoebelja oh wow, that's horrible. I'm not sure I can repeatedly test this, which makes it extra bad.

Based solely off of your description it seems like there occurs a deadlock when both the 'update seen morphs' and the 'update add-ons' dialogs are open at the same time.

Some info about the 'update seen morphs' thing:

AnkiMorphs updates seen morphs when the profile is first loaded and after a card review is undone (Ctrl+Z). It goes through all the cards that have been studied earlier that day and determines which morphs have been seen. The more cards that have been studied, the longer this process takes, so this bug you are experiencing might be more likely if you have already used Anki previously that day.

Something you can do to potentially mitigate this:

  1. Turn off wifi
  2. Open Anki and let the 'update seen morphs' process finish
  3. Turn on wifi
  4. Run the updater by going to Tools -> Add-ons -> Check for updates

EDIT: I just realized that might be the exact method you described here:

The only way around it that I found was launching Anki with my wifi turned off. Then updating the add-on manually.

If that doesn't work then this bug might be unrelated to the 'update seen morphs' process.


I'll look more into how I can solve this problem tomorrow.

Sorry this happened to you!

knoebelja commented 4 months ago

Added context, I do my reviews on the mobile app. Not from the desktop, so that might have an impact too.

mortii commented 4 months ago

@knoebelja did these steps work?

  1. Turn off wifi
  2. Open Anki and let the 'update seen morphs' process finish
  3. Turn on wifi
  4. Run the updater by going to Tools -> Add-ons -> Check for updates
mortii commented 4 months ago

@knoebelja hopefully it is fixed after you update to v1.2.6.

If it doesn't fix the problem, then just write a new comment in this issue and I'll reopen it.

Thanks for the feedback!

github-actions[bot] commented 4 months ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.