Anki becomes unresponsive when viewing notes containing certain html in browse window

It seems notes containing table html tags inside paragraph html tags cause Anki to become partially unresponsive when viewed in the browse window.

OS: Windows 10
Anki Version: Version ⁨23.12.1 (1a1d4d54)⁩
Python 3.9.15 Qt 6.6.1 PyQt 6.6.1

Steps to reproduce.

  1. Create new profile
  2. Add Basic card with placeholder values to Default deck
  3. Add Basic card with html <p><table></table></p> to Default deck.
  4. Navigate to note in Browse window

At this point, the right side of the browse window stops responding while the left side is still responsive. The browse window and the main anki window ignore attempts to close them and the only way to close anki is to kill the process with the task manager. Task manager also shows a large amount of CPU usage from a QtWebEngineProcess.

Is this an issue with more recent versions as well? Is this also an issue with a complete table syntax?

Yes, it is still an issue as of Version ⁨24.06.3 (d678e393)⁩
Python 3.9.18 Qt 6.6.2 PyQt 6.6.1.

It is also an issue with complete table syntax, I was trying to make the reproduction example as simple as possible.

A simple example should still be realistic. And it is most helpful if you can find the line between what works and what doesn’t.

  • Does it need to be an otherwise-empty profile? [Because I can’t reproduce it in my main profile on 24.06.02.]
  • Does it need to be in the Default deck? [Because I can’t reproduce it in a standard deck.]
  • Does it need to be table tags inside paragraph tags?
  • Have you tried it with add-ons disabled (Troubleshooting Checklist #2)?

Please also post your full version info – paste everything you get from clicking Help > About > Copy debug info.

Please also post your full version info – paste everything you get from clicking Help > About > Copy debug info.

Anki 24.06.3 (d678e393)
Python 3.9.18 Qt 6.6.2 PyQt 6.6.1
Platform: Windows-10-10.0.19045

Does it need to be an otherwise-empty profile?

No, any profile seems to work

Does it need to be in the Default deck?

No, any deck seems to work

Does it need to be table tags inside paragraph tags?

Yes, That appears to be the core of the issue.

Have you tried it with add-ons disabled.

Yes

One possibility for failing to reproduce is the add note window sanitizing the html and replacing <p><table></table></p> with <p></p><table></table><p></p>

I appreciate you clarifying those things.

I copied your exact text, pasted it in the HTML view of the field, and had no issues. Perhaps someone else will be able to reproduce it.

Version

Anki 24.06.2 (33a92379) (ao)
Python 3.9.18 Qt 6.6.2 PyQt 6.6.1
Platform: Windows-10-10.0.22621

===Add-ons (active)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
Anki Simulator [‘817108664’, 2023-11-06T09:26, ‘None’, ‘’]
AnkiWebView Inspector [‘31746032’, 2023-06-27T12:26, ‘None’, ‘’]
Basic Printing Support [‘1025789669’, 2023-10-18T19:57, ‘None’, ‘’]
FSRS Helper Postpone Advance Load Balance Easy Days Disperse Siblings [‘759844606’, 2024-07-09T05:54, ‘None’, mod]
HyperTTS - Add speech to your flashcards [‘111623432’, 2024-09-13T22:50, ‘None’, mod]
Image Occlusion Enhanced [‘1374772155’, 2022-04-09T00:15, ‘None’, ‘’]
Inline media [‘683715045’, 2022-07-24T16:24, ‘None’, mod]
Remove card history [‘2089200096’, 2023-10-18T20:15, ‘None’, ‘’]
Review Heatmap [‘1771074083’, 2022-06-29T18:43, ‘None’, ‘’]

===IDs of active AnkiWeb add-ons===
1025789669 111623432 1374772155 1771074083 2089200096 31746032 683715045 759844606 817108664

===Add-ons (inactive)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
AJT Card Management [‘1021636467’, 2024-03-15T18:51, ‘None’, mod]
Advanced Browser [‘874215009’, 2023-10-21T07:34, ‘None’, ‘’]
Audio Playback Controls [‘312734862’, 2023-04-22T16:25, ‘None’, ‘’]
Enhance main window [‘877182321’, 2023-10-22T13:28, ‘None’, mod]
Highlight Search Results in the Browser [‘225180905’, 2023-10-21T12:17, ‘None’, ‘’]
History Visualizer [‘1545338943’, 2024-07-08T14:18, ‘None’, ‘’]
Japanese Support [‘3918629684’, 2023-10-18T20:13, ‘None’, ‘’]
Note Size - sort notes by size and see collection size [‘1188705668’, 2024-08-10T09:44, ‘v2.2.0’, mod]
Simple Forvo Audio Downloader [‘560814150’, 2024-07-27T17:38, ‘None’, mod]
Straight Reward [‘957961234’, 2023-11-01T07:11, ‘None’, ‘’]

I’ve uploaded an minimal .apkg deck that reproduces the issue for me here

https://file.io/mIhK5JhluFiA

and the original deck from where I first encountered the issue here

https://file.io/8IfgxsKIH6Xx

If these don’t work I’m not sure how else to reproduce the issue.

Thanks, I could reproduce the problem using the file you provided, and I’ve added it to the existing ticket tracking this.

hello, need some help on similar lines. have imported only one deck, around 20 mb, everytime i click browse, the browse window opens, it lets me select a few questions, there preview is displayed, and then everything freezes. cannot edit, cannot exit anki, no preview, the entire browse window freezes. have tried disabling all addons, resetting window size option back to default, installing the latest anki version, and troubleshooting guidelines down to each step, but everything has been in vain. was fortunate to stumble on this post and with kind assistance from @Danika_Dakika , able to post this query here. if a way out was figured, i would really appreciate some help on this front. thanks in advance :slight_smile:

adding the ‘copy debug info’ below:

Anki 26.05 (e64c6b1a) Python 3.13.13 Qt 6.11.0 PyQt 6.11.0 Platform: Windows-10-10.0.19045-SP0

Original post: Reddit - Please wait for verification

Did the old version 25.09 work for you?
I’m asking because I’m using 25.09 myself, but with the new version, I’m having all sorts of issues, including losing the display and so on (but this isn’t constant, it’s impossible to predict; it might work for a while and then reappear). When I created another user on the system, the new version worked fine, but then, when I installed it for all users, everything stopped working. I went to another computer with Windows 10 and installed Anki and Deck One, and everything works fine. I don’t think the problem is with the video card drivers, since the issue spread during installation and affected all users on the system. I’m thinking there might be some glitches with the Python versions, or the registry entries need to be completely cleaned up. I don’t have time to dig deeper; maybe I’ll find the problem, or maybe I’ll just reinstall the entire system and start over :slight_smile:

From user: Platform: Windows-10-10.0.19045-SP0 :rofl:

What do you mean by the preview? The note editor as Danika guessed in reddit? Or the actual preview when you press the preview button?

Because the actual preview of the cards is unresponsive for me, too, when I scroll trough my cards to view them. It’s always a different card and intermittent and happened even before the update to 26.05 (I’m on linux).

i had this thought in my mind, esp. when i ran into a python error while re-installing anki recently. i had to clear the previous set up files for the script to generate a new one and then i was good to go. but now that you mention this, i think this should be thoroughly looked into. when i ran into the freeze bug, i searched for solutions and found posts mostly pertaining to earlier versions of anki, the single digit ones, not like the ones we are using like 26.05 and hence assumed that this issue might have been taken care of long back.

hi, thanks for pointing that out. its definitely the note editor i was talking about when i used the word ‘preview’, not something that pops up on clicking the ‘preview’ button. (you click browse, the window pops in, then you see a few columns; on the far left, its the tags, then in the middle we have the card list, and on the far right, its the editor i guess, the edit boxes) but again, when the browse window freeze sets in, even clicking the ‘preview’ button doesn’t work among everything else.

it would really help to have a definitive solution for this bug. kindly request the @admins to help :slight_smile:

Can you share the deck so we can confirm what’s causing this?