[macOS Apple M1] QtWebEngineProcess hangs at 100–133% CPU (~600–900 MB RAM) in Browse / Preview on Anki 26.09.4

Environment:

  • Anki version: 26.09.4 (PyQt6 / Qt6 WebEngine)
  • OS: macOS 27.2.1 (Build 26B131), Apple M1 (arm64)

Description:
When using the Browse window and Previewer (especially while switching or previewing Cloze cards with AnKingOverhaul templates), a QtWebEngineProcess --type=renderer child process repeatedly locks up at 100–133% CPU and ~600–911 MB RAM. Once stuck, the Browse editor/Preview pane stops updating and the Browse window cannot be closed via Cmd+W or the red close button until the stuck QtWebEngineProcess is killed (main Anki process remains at ~1–5% CPU).

Troubleshooting already performed:

  1. Tested both default GPU (Metal) video driver and software (gldriver6 = software) — the hang still occurs in both modes.
  2. Disabled visual/search add-ons (sentinel_dark_ui, BetterSearch, Review Heatmap, Progress Bar, Countdown, Filtered Deck From Tag) — the hang still recurred after ~20 minutes of browsing/previewing.
  3. sample on the stuck QtWebEngineProcess shows the main thread spinning tightly between V8 JIT JS frames and QtWebEngineCore DOM/layout calls.

Expected behavior:
Browse and Previewer should remain responsive without QtWebEngineProcess entering an infinite CPU/memory loop.

I tried but was not able to reproduce the behavior using regular Image Occlusion cloze cards. With the Preview window open, I rapidly switched between 4 Image Occlusion cards in the Browse window. While actively switching, in Activity Monitor I did see increased CPU usage by QtWebEngineProcess up to 110%, but that value immediately dropped when I stopped switching cards. And, I never saw any adverse behavior.

During this testing, I saw some sort of memory leak-type behavior in Activity Monitor, with Anki memory usage increasing to 5.02 GB and QtWebEngineProcess increaseing to 1.21 GB. However, after closing the Browse window, the values dropped down to 240.5 MB and 24.2 MB.

Anki 26.09.4, macOS Golden Gate 27.2.1, 2020 M1 Mac mini.


Please first try disabling all add-ons to see if the behavior still occurs. It might be that the issue is specific to an add-on and not a general Anki issue.

Please also try all the other standard Troubleshooting Steps to see if any of them might help.