This repository has been archived by the owner on Mar 24, 2024. It is now read-only.
Opening a PDF takes more than 30 minutes and causes high CPU usage #357
Labels
bug
Something isn't working
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
![PDFViewerBug1](https://user-images.githubusercontent.com/2487505/218531127-f3a1bcc8-7f27-44b4-bbbe-ecfbb124bb3a.PNG)
![PDFViewerBug2](https://user-images.githubusercontent.com/2487505/218531154-b859618f-74c3-4600-87df-0480f8dcb5c1.PNG)
Environment
The text was updated successfully, but these errors were encountered: