Describe the bug
When a PDF is opened in the viewer, it will take more than 30 minutes for the PDF to appear during which anki.exe is using 90% CPU. I say "more than" because I closed Anki after 30 minutes as it clearly wasn't working. During this time the there will be a small dialog box that has a blue expanding circle animation and the text "Loading PDF" or "Initializing Reader". It spends the most time on Initializing Reader.
I tried another PDF with fewer pages and that one took 37 seconds before it appeared successfully. I'm not sure if the time taken has something to do with the number of pages or not. I have PDFs to read that are books and therefore are between 200 to 600 pages each.
I've attached both PDFs that I used so you can try to reproduce the issue.
Using the Qt5 version of Anki 2.1.57 does not have the problem. PDFs open within about three seconds.
When using Qt6, Anki 2.1.54 works and the PDFs open within a few seconds. Newer versions of Anki Qt6 fail with the behavior described in the bug report.
Describe the bug When a PDF is opened in the viewer, it will take more than 30 minutes for the PDF to appear during which anki.exe is using 90% CPU. I say "more than" because I closed Anki after 30 minutes as it clearly wasn't working. During this time the there will be a small dialog box that has a blue expanding circle animation and the text "Loading PDF" or "Initializing Reader". It spends the most time on Initializing Reader.
I tried another PDF with fewer pages and that one took 37 seconds before it appeared successfully. I'm not sure if the time taken has something to do with the number of pages or not. I have PDFs to read that are books and therefore are between 200 to 600 pages each.
I've attached both PDFs that I used so you can try to reproduce the issue.
To Reproduce Steps to reproduce the behavior:
Expected behavior I expected to see the PDF appear within a few seconds or less without excessive CPU usage.
Screenshots
Environment