When I leave Anki sitting in the background it seems that over time it’s memory usages goes up. Right now It was 1,17G. Restarting it brings it to reasonable ~250M but over time it grows again.
I’m on macOS Sequoia and latest Anki:
Version <U+2068>24.06.3 (d678e393)<U+2069>
Python 3.9.18 Qt 6.6.2 PyQt 6.6.1
There is Bug - Memory Leak (MacOS) which is now closed (argh, why the auto close?! ) and from the quick test memory usage with software rendered is lower though seems to be climbing as well. However biggest jumps I noticed were during sync, which should be affected by the renderer?
Yes unfortunately, my issue was auto-closed because of no responses. You can try as a quick fix to change the video driver to software (That’s what fixed it for me, but remember to restart the app!). Also 1.17 GB doesn’t seem to be that high to me, my Anki can get to 4-5 GB if I keep it open for a couple days.
You can also check out the anki docs troubleshooting page (can’t post links for some reason)
Same issue here. I have no plugins. Video driver is metal (default).
Anki 24.06.3 (d678e393)
Python 3.9.18 Qt 6.6.2 PyQt 6.6.1
Platform: macOS-15.0.1-arm64-arm-64bit
I have the same problem over here. Anki annihilates my RAM by the end of the day. I have to keep restarting Anki every now and then. I don’t know if this is a performance issue or is it due to my card count (I have 70k plus cards).
You’re using Windows. Do you have some reason to think what you’re seeing is related to this MacOS issue?
[I appreciate your thoroughness, but feel free to cut out (or tuck into a Details block) the 100 inactive add-ons from you post above. You might also consider deleting them from your Anki install as well. (Before you ask, I don’t know of any particular issues that could be caused by having 100 inactive add-ons.)]
You’re using Windows. Do you have some reason to think what you’re seeing is related to this MacOS issue?
This is not just a MacOS issue, I am experiencing this as well in Windows. The RAM usage is enormous. For now, I have changed to Software as Video Driver and deleted the inactive addons. I will see in a couple of hours how Anki performs. Right now it has a 455 MB RAM usage over 1+ hours of usage, which is a sign of improvement.
Is thre something like “heapdump” akin to what Java has so it would be possible which objects are allocated and what allocated them? (and/or any sort of profiler)
EDIT: It looks like memory spike happens mostly after synchronisation…
Just tagging onto this a bit, in the event that it’s helpful:
I usually see a bit of a memory leak in Anki over time but have just gotten into the habit of restarting it on occasion and it has never much been the bother.
Today, though, I ran into something that seemed notable. I was scrolling through a new deck, previewing cards via the previewer from the browser. Upon scrolling for a bit I noticed the image rendering slowing down a bit and, just on a hunch, looked at the memory consumption of Anki:
Wayyy above normal. Was not like that before I started scrolling (was about 1.5 GB) and as soon as I closed the browser went down to about 2.5 GB.
Not sure if it’s useful to any of you kind souls much smarter than I in the ways of Anki but it stood out as being potentially odd so I thought I’d share.
Your screenshot that included the QtWebEngineProcess reminds me of an issue that has come up before – certain windows leaving their Qt process running even after they are closed. No single one takes that much memory, but they build up. Try to think about how many times you open Browse, Add, Edit Current, Stats, etc. in a day – or even in an hour!
I have not found it to be an issue in native Anki windows (anymore), but I’ve seen it happen in several add-ons (yes, even high-quality, reputable ones).
Preview isn’t one that stays open, but it does take another little bite of memory each time it renders a new card.
I am having the same issue. The RAM goes up to 11.5 gigs once I’m in the card browser. I tried changing the video driver to Software, but the issue persists. I can’t really use the browser, and Anki inevitably crashes in about 45 minutes, and this is impacting my studies. Any help would be greatly appreciated!