New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 604146 link

Starred by 24 users

Issue metadata

Status: Fixed
Owner:
Closed: May 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 1
Type: Bug-Regression



Sign in to add a comment

REGRESSION: Chrome PDF Viewer Can't view second and beyond page of pdf

Project Member Reported by scottmg@chromium.org, Apr 16 2016

Issue description

Version 52.0.2710.0 canary (64-bit) 

Win10

http://www.questrade.com/docs/default-source/downloads/faqs_tax.pdf

I get only the first page, and then a vertical ellipsis that doesn't seem to do anything.

Works OK on Stable Version 49.0.2623.112 m.
 
pdf-view.png
339 KB View Download

Comment 1 by wfh@chromium.org, Apr 16 2016

Cc: wfh@chromium.org
Works fine for me on 52.0.2710.0 canary (64-bit) on Windows 10. Try resetting your chrome://flags to make sure you don't have anything unsupported enabled?

Can you also paste your chrome://version "Variations" data?
Tried turning off all about:flags (was just a few MD-related ones), but no change.

Variations
16e0dd70-3f4a17df
b3888d8d-52a0c8a0
da89714-4ad60575
6345b824-3f4a17df
7c1bc906-f55a7974
c4455df5-abb3ea59
a5cb8590-3f4a17df
f049a919-3f4a17df
f1aba312-4ef7a373
775ebbd7-3f4a17df
31362330-3f4a17df
f15c1c09-ca7d8d80
9ffc5535-301ba80c
dd4da2fc-3f4a17df
fd02e767-ca7d8d80
93731dca-3f4a17df
9e5c75f1-f5d7252d
2c3080ba-3f4a17df
64cbdfc2-ca7d8d80
7ea1191-82bd42b5
f79cb77b-3f4a17df
23a898eb-ca7d8d80
4ea303a6-f23d1dea
d5b671a5-3f4a17df
4117e878-23622c9b
7aa46da5-4995b330
9736de91-3f4a17df
535ce4f1-55992af7
ad6d27cc-c6d02f41
ca314179-ca7d8d80
69bf80fa-f23d1dea
a35118-3d47f4f4
867c4c68-3d47f4f4
5e3f6590-ca7d8d80
12a73824-3f4a17df
d747916f-d747916f
6844d8aa-669a04e0
3ac60855-486e2a9c
f296190c-5192b0cf
4442aae2-6e3b1976
ed1d377-e1cc0f14
75f0f0a0-a5822863
e2b18481-6e597ede
e7e71889-e1cc0f14
b39ea213-d1372334
46567c16-3d47f4f4
b0dc61a1-ca7d8d80

Comment 3 by wfh@chromium.org, Apr 18 2016

Owner: thestig@chromium.org
Status: Assigned (was: Unconfirmed)
hmm I was able to repro this in the end, on a different machine.

With that, I was able to bisect to:

You are probably looking for a change made after 372412 (known good), but no later than 372427 (first known bad).
CHANGELOG URL:
  https://chromium.googlesource.com/chromium/src/+log/64cd59d..ba874b5?pretty=fuller

the only PDF-ish CL is https://codereview.chromium.org/1636413003 which doesn't make sense as that's quite an old CL, and I can't repro on stable 50.0.2661.75. Strange.

Comment 4 by wfh@chromium.org, Apr 18 2016

oh yes actually I can repro on stable if I maximize the window so it's larger than the page, before loading the PDF file.
It works fine if I --force-device-scale-factor=2 or 3.

It doesn't work with --force-device-scale-factor=1.

It also seems fine on my Mac at 2710 or 2711 which is a laptop and dsf=2.

Something to do with how much visible area there is compared to the size of the first page I think.
I can't repro with 52.0.2709.0 Canary via RDP. I tried maximizing my window and adding --force-device-scale-factor=1 but no luck. Is this my excuse for upgrading to a high DPI monitor? ;)
It only repros for me at a particular height or above. It also only repros with certain files for some reason -- it doesn't repro if I just save a page as PDF and open that.

In my case it occurs when window.innerHeight is 1155px or above, regardless of window width. The div#sizer is hard-coded at 1164px if that means anything.

There are three vertical dots below the page which are part of the plugin itself.

50.0.2661.75 and 52.0.2714.0 on Windows.
I'm also having this issue on 51.0.2704.19 dev-m (64-bit) on Windows 8.1 and 51.0.2700.0 dev (64-bit) on OSX 10.10.5. I can view all the pages if the window is smaller than the page size when I open/refresh the page.

Comment 9 by wfh@chromium.org, Apr 23 2016

Labels: -Pri-2 M-51 Pri-1
Cc: sa...@chromium.org raymes@chromium.org
Any idea if this regressed?

The sizer element height calculation is from r342584.

Comment 11 by wfh@chromium.org, Apr 23 2016

I bisected in #3
Labels: OS-Linux OS-Mac
Whoops, missed that. I can repro on Linux if I just run a local VNC server at a very high resolution.
Cc: -raymes@chromium.org -sa...@chromium.org
And it is indeed r372415 that caused this, so I'll try to figure it out. I guess with the VNC server repro, I don't have an excuse to get myself a new monitor.
So we switched to FPDFAvail_GetDocument() for successfully loaded documents that are linearized, which solved another bug, but for this document, FPDF_GetPageSizeByIndex() is failing early on for pages 2-4. Thus their sizes are 0x0, and they show up as those funny squares.
Cc: thestig@chromium.org pinkerton@chromium.org
 Issue 608019  has been merged into this issue.
I have no way to check if it's the same bug or not, but this PDF http://academique.epfl.ch/calendrier_academique/EPFL-Academic-Calendar.pdf has the same problem.

Interestingly, if I rotate the page I can scroll normally. If I rotate it 4 times (i.e. 360 degrees), I can still scroll normally.
Another file that triggers this issue is http://www.vldb.org/conf/2001/P541.pdf if that helps you find the cause. Chrome stable 50.0.2661.94 (64-bit) on Debian unstable.
Project Member

Comment 18 by bugdroid1@chromium.org, May 2 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/21699f821ea44f1d34adc94cc0f8abbfb22c1525

commit 21699f821ea44f1d34adc94cc0f8abbfb22c1525
Author: thestig <thestig@chromium.org>
Date: Mon May 02 18:48:30 2016

Get the correct page size for linearized PDFs.

BUG= 604146 

Review-Url: https://codereview.chromium.org/1939693002
Cr-Commit-Position: refs/heads/master@{#391011}

[modify] https://crrev.com/21699f821ea44f1d34adc94cc0f8abbfb22c1525/pdf/pdfium/pdfium_engine.cc

Status: Started (was: Assigned)
Let's see if the fix works on Canary before merging to M51.
52.0.2723.0 (current Canary) and newer should have the fix. Please give it a try and see if linearized PDFs are displaying properly again.
Yeah, lg for me.
Project Member

Comment 22 by bugdroid1@chromium.org, May 3 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/3fc57cf9f244272e6ab32b2db080fbcf4349d95d

commit 3fc57cf9f244272e6ab32b2db080fbcf4349d95d
Author: weili <weili@chromium.org>
Date: Tue May 03 20:24:19 2016

Revert of Get the correct page size for linearized PDFs. (patchset #1 id:1 of https://codereview.chromium.org/1939693002/ )

Reason for revert:
Speculative revert due to high crash volume in  Chromium.

Original issue's description:
> Get the correct page size for linearized PDFs.
>
> BUG= 604146 
>
> Committed: https://crrev.com/21699f821ea44f1d34adc94cc0f8abbfb22c1525
> Cr-Commit-Position: refs/heads/master@{#391011}

TBR=spelchat@chromium.org,thestig@chromium.org
# Not skipping CQ checks because original CL landed more than 1 days ago.
BUG= 604146 ,608698

Review-Url: https://codereview.chromium.org/1942253003
Cr-Commit-Position: refs/heads/master@{#391342}

[modify] https://crrev.com/3fc57cf9f244272e6ab32b2db080fbcf4349d95d/pdf/pdfium/pdfium_engine.cc

lg for me on canary as well.
Reverted to fix issues 608778
Project Member

Comment 25 by bugdroid1@chromium.org, May 3 2016

Labels: merge-merged-2723
The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/2aeafdc83d22cd63fe89ddbce7fbc90bd537b9e1

commit 2aeafdc83d22cd63fe89ddbce7fbc90bd537b9e1
Author: Vitaly Buka <vitalybuka@chromium.org>
Date: Tue May 03 21:40:31 2016

Merge: Revert of Get the correct page size for linearized PDFs. (patchset #1 id:1 of https://codereview.chromium.org/1939693002/ )

Reason for revert:
Speculative revert due to high crash volume in  Chromium.

BUG=608778

Original issue's description:
> Get the correct page size for linearized PDFs.
>
> BUG= 604146 
>
> Committed: https://crrev.com/21699f821ea44f1d34adc94cc0f8abbfb22c1525
> Cr-Commit-Position: refs/heads/master@{#391011}

TBR=spelchat@chromium.org,thestig@chromium.org
BUG= 604146 ,608698

Review-Url: https://codereview.chromium.org/1942253003
Cr-Commit-Position: refs/heads/master@{#391342}
(cherry picked from commit 3fc57cf9f244272e6ab32b2db080fbcf4349d95d)

Review URL: https://codereview.chromium.org/1950693002 .

Cr-Commit-Position: refs/branch-heads/2723@{#2}
Cr-Branched-From: 5e216d9b62275101c30f4a5cb2174bb68970ef3c-refs/heads/master@{#391139}

[modify] https://crrev.com/2aeafdc83d22cd63fe89ddbce7fbc90bd537b9e1/pdf/pdfium/pdfium_engine.cc

 Issue 609322  has been merged into this issue.
Labels: ReleaseBlock-Stable
A friendly reminder that M51 Stable is launching soon! Your bug is labelled as Stable ReleaseBlock, pls make sure to land the fix and get it merged into the release branch by May 17. All changes MUST be merged into the release branch by 5pm on May 20 to make into the desktop Stable final build cut. Thanks!
Labels: Needs-Feedback
vitalybuka@ : Could you please providing the repro steps to verify from Test Engg team if at all there is specific steps to follow.

Unable to reproduce the issue with or witout "--force-device-scale-factor=1" on 52.0.2730.0.
On OS X, I can repro this on 52.0.2730.0 following these steps:

1) Make the browser window tall (1575px tall on my machine).
2) Open https://www.csimfunds.com/public/file/P-6970550/SLS37226_38_Fundamental_Index.pdf
3) Pages after the first page are tiny blobs
Project Member

Comment 31 by bugdroid1@chromium.org, May 12 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/8ad3c81f1ec4e67a71b17f7d97165c68a3c87d46

commit 8ad3c81f1ec4e67a71b17f7d97165c68a3c87d46
Author: thestig <thestig@chromium.org>
Date: Thu May 12 01:11:49 2016

Get the correct page size for linearized PDFs.

This is a reland of r391011, which was reverted because the new code
path hit a PDFium bug.

BUG= 604146 

Review-Url: https://codereview.chromium.org/1975463002
Cr-Commit-Position: refs/heads/master@{#393128}

[modify] https://crrev.com/8ad3c81f1ec4e67a71b17f7d97165c68a3c87d46/pdf/pdfium/pdfium_engine.cc

Hopefully the fix sticks this time. It will be in 52.0.2734.0 and newer.
 Issue 609119  has been merged into this issue.
 Issue 607574  has been merged into this issue.
Labels: Merge-Request-51
I've gotten positive feedback on Canary from multiple sources, so requesting a merge to M51:

- Need to merge to PDFium's M51 branch:
https://pdfium.googlesource.com/pdfium/+/35c2100a5f6a466635bf99b4e7117d23aeb54d2c
- Then roll DEPS for PDFium in Chromium's M51 branch
- And merge https://chromium.googlesource.com/chromium/src.git/+/8ad3c81f1ec4e67a71b17f7d97165c68a3c87d46

Comment 36 by tin...@google.com, May 13 2016

Labels: -Merge-Request-51 Merge-Approved-51 Hotlist-Merge-Approved
Your change meets the bar and is auto-approved for M51 (branch: 2704)
Works for me on 52.0.2735.0. Thanks!
Labels: -Needs-Feedback
Oh you people and your fancy monitors.
Project Member

Comment 39 by bugdroid1@chromium.org, May 13 2016

Labels: -merge-approved-51 merge-merged-2704
The following revision refers to this bug:
  http://goto.ext.google.com/viewvc/chrome-internal?view=rev&revision=87843

------------------------------------------------------------------
r87843 | thestig@google.com | 2016-05-13T21:51:15.126242Z

-----------------------------------------------------------------
Project Member

Comment 40 by bugdroid1@chromium.org, May 13 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/51ea00a747d4bee74bfeb0e52116274f617649c9

commit 51ea00a747d4bee74bfeb0e52116274f617649c9
Author: Lei Zhang <thestig@chromium.org>
Date: Fri May 13 21:55:40 2016

Merge to M51: Get the correct page size for linearized PDFs.

This is a reland of r391011, which was reverted because the new code
path hit a PDFium bug.

BUG= 604146 

Review-Url: https://codereview.chromium.org/1975463002
Cr-Commit-Position: refs/heads/master@{#393128}
(cherry picked from commit 8ad3c81f1ec4e67a71b17f7d97165c68a3c87d46)

Review URL: https://codereview.chromium.org/1974833006 .

Cr-Commit-Position: refs/branch-heads/2704@{#546}
Cr-Branched-From: 6e53600def8f60d8c632fadc70d7c1939ccea347-refs/heads/master@{#386251}

[modify] https://crrev.com/51ea00a747d4bee74bfeb0e52116274f617649c9/pdf/pdfium/pdfium_engine.cc

Status: Fixed (was: Started)
Labels: TE-Verified-51.0.2704.54 TE-Verified-M51
Tested the issue on Windows 7, 10, Mac 10.11.5, Ubuntu 14.04 using 51.0.2704.54. Able to see all pages of PDF of comment #0, comment #30 without any font tiny blobs.
Please find attached screencast.

Marking it as TE-Verified.
604146.mp4
4.5 MB Download

Comment 43 by dhw@chromium.org, May 19 2016

 Issue 609936  has been merged into this issue.

Comment 44 by dhw@chromium.org, May 19 2016

 Issue 613308  has been merged into this issue.

Comment 45 by dhw@chromium.org, May 19 2016

Labels: -Type-Bug Type-Bug-Regression
Summary: REGRESSION: Chrome PDF Viewer Can't view second and beyond page of pdf (was: Can't view second and beyond page of pdf)
Cc: tkonch...@chromium.org
 Issue 613937  has been merged into this issue.

Sign in to add a comment