Excessive memory use and crash - creating custom study on macOS

I am experiencing a reproducible issue when attempting to create a custom study session using tags or card states.

When selecting either option, Anki becomes unresponsive and its memory consumption begins increasing continuously. Memory usage can exceed 20-30 GB, making the application unusable.

The issue persists in safe mode without addons. The issue does not take place on the windows desktop client using the same deck (anking deck which has several thousand cards.

Environment

  • Operating system: macOS 27.0.1

  • Hardware: 13-inch MacBook Pro (M1, Apple Silicon) 16 GB of RAM

  • Anki version: Version ⁨26.09.4 (c06370ff)⁩
    Python 3.13.17 Qt 6.11.2 Chromium 140

Steps to Reproduce

  1. Launch Anki.

  2. Navigate to the custom study session creation interface.

  3. Attempt to create a custom study session using the tag selection option.

  4. Observe application responsiveness and memory consumption.

Expected Behavior

Anki should open a window where included and excluded tags are selectable. Memory usage should not increase to the observed degree.

Actual Behavior

  • Anki becomes unresponsive during the creation process.

  • Memory consumption continuously increases.

  • Memory usage can exceed 20-30 GB (12GB memory + 16 GB of swap).

  • The application remains frozen until force-quit.

Troubleshooting Already Performed

The issue persists under the following conditions:

  1. Safe Mode: Reproduces with all add-ons disabled.

  2. Software rendering: Switching to software rendering does not resolve the issue.

  3. OpenGL rendering: Switching to OpenGL rendering does not resolve the issue.

No luck reproducing it yet. Some questions:

  • Do you have a large number of tags? Can you reproduce this in a fresh profile with only a few tags and does that reduce memory consumption and lag?
  • When did this start to happen? Can you test with 26.08.1?

I, too, am unable to reproduce the reported behavior. Anki 26.09.4, macOS Golden Gate 27.2.1, M1 Mac mini. Pressing the “Choose Tags” button results in the tag-choosing dialog appearing as expected, and the dialog correctly allows tags to be chosen and a Custom Study Session deck to be created.

However, I was using a minimal test deck, with only 1 available Tag. I, too, am interested in knowing how many existing Tags there are in the OP’s problem deck.

Yes, the deck has a lot of tags (likely hundreds, though I am unsure how to check). The deck has around 36,000 cards.

On a smaller deck with fewer tags, this issue doesn’t happen and the behavior is as expected.

The issue has been present for the past few version of anki, but I’ve been side stepping it by creating custom study decks on my PC instance of anki and then syncing.

Are you using all the tags in your collection? Have you run Tools > Check Database [or Notes > Clear Unused Tags] lately, on that specific device, to clean things up?

This used to happen to me a lot, I remember especially when I had 10+ custom studies already made then continued creating more, how many custom studies do you have when you do this and then it freezes?

I am having an issue when attempting to create a custom study deck in Anki. I am using a premade deck (Anking Step Deck) downloaded from the internet. There are several tags that I unsuspend as it aligns with my coursework. I am avoiding deleting unused tags and unused media because I will eventually need to rely on those in the future when I cover the material. I have looked at other forums but haven’t found a resolution.

When I try to create a custom deck, this is the pop up that comes up:

I have attempted to:

Install/reinstall anki but issue persists.

Change video driver to software but issue persists

Removed excess addons but issue persists (38 GB of usage went down to 30 GB in picture, and 36.83 GB when I tried again).

Deleted all custom study session (only one) but issue persists.

What you’re reporting looks similar to this, so I merged your post here. See above for the advice given so far.

“Unused” tags are tags that aren’t applied to any note in your collection. Similarly “unused” media isn’t attached to any note in your collection. Those are leftover from things you imported and have now deleted – or they are things you used to use, but removed from your notes.

Unless you’re planning to use them when you add new notes in the future, you don’t need to keep them around. Anything that is applied/attached to an existing note, even one you haven’t studied yet, won’t be removed.

You should try everything on the Troubleshooting Checklist – including the things you don’t think are relevant. Start with #2 safe mode, to eliminate the influence of all add-ons, not just “excess” ones. Even if an add-on is important to you, that doesn’t mean it isn’t causing you problems.

When you run #4 Check Database, it will also take care of those unused tags.

When you get to #6 video drivers, make sure you follow the directions there and try every option.

See also: