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

Issue 630964 link

Starred by 2 users

Issue metadata

Status: Duplicate
Merged: issue 424291
Owner:
Last visit > 30 days ago
Closed: Sep 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Bug

Blocked on:
issue 424291



Sign in to add a comment

Canvas does not display some lines

Reported by dhiru0...@gmail.com, Jul 25 2016

Issue description

Chrome Version       : 52.0.2743.82
URLs (if applicable) : https://mozilla.github.io/pdf.js/web/viewer.html
Other browsers tested:
  Add OK or FAIL, along with the version, after other browsers where you
have tested this issue:
     Safari:
    Firefox:45.0.1: OK
         IE:11 OK

What steps will reproduce the problem?
(1) Open https://mozilla.github.io/pdf.js/web/viewer.html
(2) Click on Open File button to open new PDF to view.
(3) Open the attachment file “Chrome_Vector.pdf”
(4) The table border is not displayed. This issue occurs only in google chrome 

What is the expected result?


What happens instead?


Please provide any additional information below. Attach a screenshot if
possible.

 
Issue Description.docx
145 KB Download
Chrome_Vector.pdf
38.7 KB Download

Comment 1 by ajha@chromium.org, Jul 26 2016

Cc: ajha@chromium.org
Components: Internals>Plugins>PDF
Labels: -Pri-3 M-54 Pri-2
Status: Untriaged (was: Unconfirmed)
Able to reproduce the issue on the latest canary(54.0.2807.1/ 54.0.2808.0) on Windows-7, Mac OS 10.11.5 and Linux Ubuntu 14.04.

This is non-regression issue seen from older chrome version: 30.0.1549.0. Marking this as 'Untriaged' for more inputs on this. 

Comment 2 by dhiru0...@gmail.com, Jul 28 2016

Hi,

This is very urgent for us. Please let us know if any more info is required from our side.

Please let us know a time-line when we can expect a resolution of this ?
Components: -Internals>Plugins>PDF
This looks like it's using pdf.js, not the built in PDF viewer in chrome. So, it's possible it's a pdf.js bug and should be filed against them.

Removing the Plugins>PDF label.
The same URL and same file works perfectly in other browsers like Microsoft IE, Mozilla Firefox.

Please help us to resolve the issue.
Components: Blink>HTML
Cc: e...@chromium.org
Components: -Blink>HTML Blink>Layout Blink>Paint
This might be a fractional units thing. If you zoom and unzoom the image on Linux in 52.0.2743.116 (Official Build) (64-bit), you'll see different borders paint.

Looking at the DIVs in the page, they have fractional widths and positions. (Like on my display "PRODUCT CODE : TM" is 180.078 w * 17 h and at t: 223.862, r: 647.125, b: 1106.140, l: 124.806. It doesn't have a top border.)

This is *probably* paint, but maybe layout just for FYI.

I don't think this is HTML; I think the DIVs are just DIVs.
Components: -Blink>Paint -Blink>Layout Blink>Canvas
Summary: Canvas does not display some lines (was: The table borders are not visible)
This is a canvas bug. The entire visible page content is painted into a canvas. 

The text nodes are not even rendering anything visible - you can hide them and the page stays the same. (They probably exist to enable selection).

If you zoom the page in the browser the image is constant. As dominicc says, if you zoom in the app you get very different results at each zoom level.

Comment 8 by junov@chromium.org, Aug 19 2016

Owner: junov@chromium.org
Status: Assigned (was: Untriaged)

Comment 9 by junov@chromium.org, Aug 19 2016

I am finding this very hard to investigate without a reduced test case.  I have been trying to produce a reduced test, but I am having no success. Perhaps someone with more insight into pdf.js internals could help?

@dhiru0123: Could you help with this?  I would like a small self-contained test that draws just one line that the illustrated the bug.  This could be a small html file or a jsfiddle, or something like that.

@junov, we tried reducing the case, since it comes for table content, we reproduced it with a document containing just one table row. PFA the document and try to debug the case with it.
Output.pdf
16.2 KB Download

Comment 11 by junov@chromium.org, Aug 25 2016

That does not help me much since it still depends on pdf.js to reproduce the problem. What I am looking for is a small self-contained test.

We have plenty of tests that draw thin lines in using 2D canvas and they all pass.  There is something particular about how pdf.js operates that triggers this bug.  I spent a whole day trying to figure out what it could be to no avail. Someone who understands the rendering internals of pdf.js should be able to helps with this. What I am looking for is a tiny snippet of just a few lines of JavaScript that demonstrates the bug.
I'm also trying to coordinate with people from PDF.js if they can help us in this. This bug is also registered in PDF.js bug database.

https://github.com/mozilla/pdf.js/issues/7551

Comment 13 by junov@chromium.org, Sep 12 2016

Owner: zakerinasab@chromium.org

Comment 14 Deleted

Comment 15 Deleted

Blockedon: 424291
This bug depends on  crbug.com/424291 . The lines that disappear have doAA = false.
Mergedinto: 424291
Status: Duplicate (was: Assigned)

Sign in to add a comment