Anki slows down with use

If I use Anki (mainly creating and editing notes) for a long period of time (2-3 hours), it slows down. Specifically, while typing, there is a noticeable lag between pressing the keys and the text appearing on the screen. When this happens, the other apps are still working fine. So, I suspect that the fault lies in Anki. If I restart Anki, the issue disappears.

Version ⁨24.04.2 (a1fa865b)⁩
Python 3.9.18 Qt 6.6.2 PyQt 6.6.1

I’m sure you’ve already tried running without add-ons, right?

Since you mention creating and editing notes, it reminds me that I was looking at the QtWebEngineProcess [for reasons …] the other day, and I found that some add-ons don’t close their background processes when you close their windows. If feels like those could accumulate and slow Anki down as you’re working for a few hours.

1 Like

Well, I should have done it. But, I skipped that because testing this required a lot of time (the issue is reproduced only after working for hours). Secondly, I thought that if I post this issue here, other people might share their experiences which might make finding the root cause easier.

I found that some add-ons don’t close their background processes when you close their windows

Is there some specific search term that I can use to go to the relevant code in the add-on repo to see if they have this problem? For example, searching for QtWebEngineProcess didn’t return any results for the add-ons I tried.

Out of the add-ons I have, I think BetterSearch or Spell Checker might be relevant, just because they are active almost the whole time I use Anki.
(By “active”, I mean that they have some useful task to perform at that time.)

I don’t know where to send you in the repo, I’ve just watching it happening in Windows task manager.

I don’t think that this is the cause of my problem because these processes are using too little resources. (To clarify, the screenshot is taken when Anki is running slow.)

By the way, I think that my problem is the same as that mentioned in Bug: Anki freezes when using spacebar in card editor (ankiweb.net). But, I have the issue even in the latest beta.

1 Like

Just saw your post here and wanted to mention that after some time using the beta, the issue started to reappear (I also made a post about that in “my” topic) So they do indeed seem to be the same (or very similar) issue. But for me, it’s just the space, no other keys, strangely.

But for me, it’s just the space, no other keys, strangely.

For me, the spacebar has the most noticeable delay. But, the other keys also sometimes show a delay of a fraction of a second.

Oh, I always thought a slight delay when typing was due to my laptop not being very fast and so I didn’t really pay it that much attention. But could also be it’s Anki and not the laptop after all.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.