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?

2 Likes

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>

2 Likes

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.

2 Likes

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

2 Likes

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