QL-Win / QuickLook

Bring macOS “Quick Look” feature to Windows
http://pooi.moe/QuickLook/
GNU General Public License v3.0
17.33k stars 1.09k forks source link

pdf rendering fails on single page pdf #711

Open ashokleyland opened 4 years ago

ashokleyland commented 4 years ago

Describe the bug Sometimes (very often, enough to open a new issue), pdf rendering is stuck to a blurry state. To solve the problem, you have to change the size of the preview and then the renders is making it good. Strangely, this happens only on single page pdf. Any multi-pages pdf are doing good. Sometimes, if you scroll down to another pdf and go back, render is happening as expected, sometimes not and the file is stuck. You can notice that on a single page pdf, rendering is slower than on multi-pages, which is weird.

To Reproduce

  1. preview "pdf single.pdf"
  2. if bad render, try resize the window to make it happen
  3. preview "pdf multi.pdf" > always good

Expected behavior As fast and clean preview on single page pdf than on multi-pages ones.

Desktop (please complete the following information):

Attached files See attached pdf files to test : pdf single.pdf pdf multi.pdf

and the png to see bad rendering : pdf single bad render

xupefei commented 4 years ago

Fixed! Please try https://ci.appveyor.com/project/xupefei/quicklook/builds/34806273/artifacts and report back.

ashokleyland commented 4 years ago

Almost ! Now rendering is doing ok almost everytime but not always. It's random but sometimes it stays blurry (only on single pages pdf), you move and back and forth to another file and it comes back...

xupefei commented 4 years ago

Might be related to the render delay. I'll look into it in the next weekend.