Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Render issue when scrolling PDFs with large JPEGs #11878

Closed
johnhok opened this issue May 6, 2020 · 1 comment · Fixed by #11912
Closed

Render issue when scrolling PDFs with large JPEGs #11878

johnhok opened this issue May 6, 2020 · 1 comment · Fixed by #11912

Comments

@johnhok
Copy link

johnhok commented May 6, 2020

Attach (recommended) or Link to PDF file here:
jpeg-scroll-issue.pdf

Configuration:

  • Web browser and its version: Chrome 81.0.4044.138 (Official Build) (64-bit)
  • Operating system and its version: macOS 10.15.4 (19E287)
  • PDF.js version: commit d822578 of this repo

Steps to reproduce the problem:

  1. Open attached PDF
  2. Scroll down to the middle of document
  3. Observe page rendering

What is the expected behavior?
When scrolling, the subsequent pages should render relatively quickly.

What went wrong?
The page is blank for awhile before the pages render.

Additional Details

I believe that after this commit:
62a9c26

The PDF attached starts to exhibit the described behaviour. When I revert that specific commit and test again, the render of the image is almost instantaneous.

I noticed that with the changes in the above commit, the chrome dev tools profiler shows an uptick of this routine that seems to be consuming the worker when scrolling in the document.

Screen Shot 2020-05-06 at 10 20 33 AM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants