Closed rafaelcdepaula closed 2 years ago
Thanks for the detailed report @rafaelcdepaula, it's much appreciated. I haven't had any luck reproducing this yet, but it seems like it could be an upstream issue with Anki.
@dae do you have any idea what could be causing this? Looking through the code of all three schedulers, I can't think of any scenario that would cause the active_decks
prop to not be accessible. The only other reference to this I found is from back around 2.1.45's release: https://forums.ankiweb.net/t/anki-2-1-45-alpha/10061/26?u=glutanimate
@rafaelcdepaula I've pushed a workaround that should hopefully address this for now. Would you mind giving the latest development build a try and letting me know if it works for you?
Quick heads-up: I've updated the link to the build as the previous one wasn't built correctly.
Not sure what's going on there.
@rafaelcdepaula I've pushed a workaround that should hopefully address this for now. Would you mind giving the latest development build a try and letting me know if it works for you?
@glutanimate I've tested a few times and it seems to work perfectly. Thank you for your help.
@dae thanks for taking a look! I'm really puzzled by this one as well, thus the pre-emptive workaround as it seemed easier than trying to understand what's going on. Will still see if I can dig further into this.
@rafaelcdepaula cheers for giving it a try! Glad to hear the workaround works. If you have time, just a couple more questions to perhaps get closer to drilling down to the underlying cause:
Thanks again
(merged the workaround for now, but would ideally still like to get to the bottom of this)
@glutanimate:
When you had this issue, how frequently would the error message pop up? Was it a once-in-a-blue-moon type occurrence or would it reliably appear multiple times per session?
Now I know how to reproduce the steps to get the error (at least for me): Obs.: I have 2 profiles in Anki, one to study, and other for tests (cards templates, add-ons, etc.)
Just noticed it stops showing the reviews for all decks.
Looking at the Anki debug info, I do see that you also had other add-ons active (at the time). None of them really seem like they could be factoring into this (and installing them locally I was not able to reproduce the problem either), but I assume you did try to disable them and were still experiencing the same problem?
Yes, even when all the other add-ons are disabled the error still shows up.
@rafaelcdepaula thanks for investigating this further, that was super helpful! I think I've got a fairly good (though not 100%) grasp of what could be going on here now. Tracking the likely proper fix in #159.
Problem description
Sometimes, choosing a deck to study shows an error on the screen. It doesn't happen all the times.
Checklist
Information about your Anki set-up
Error message (if any)