Closed Bug 1901789 Opened 1 year ago Closed 3 months ago

Many files pdf can not be see correctly with hardware acceleration enabled

Categories

(Core :: Graphics: Canvas2D, defect)

Firefox 126
x86_64
Linux
defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: uateruain, Unassigned, NeedInfo)

References

Details

Attachments

(2 files)

Attach (recommended) or Link to PDF file here:
https://www.conservatoria.it/data/download/date_meccanizzazione_conservatoria.pdf

Steps to reproduce the problem:

  1. take a look in that link
  2. the page can be read at all

What is the expected behavior? (add screenshot)

What went wrong? (add screenshot)

OS: Unspecified → Linux
Hardware: Unspecified → x86_64
Summary: Many files pdf can be see correctly → Many files pdf can not be see correctly

Do you have other PDFs that you can't see? Can you attach a screenshot?

It's working on Windows.

Flags: needinfo?(uateruain)

Thanks for your answer, the problem happens only with Firefox in Linux Mint 126.0.1 (64 bit).
I can't take a screenshot, because when I try to do it the screen become completely black in the area where is the document

Flags: needinfo?(uateruain)

Is it better if in about:config you set the option gfx.canvas.accelerated to false and then reload your pdf ?

I tested with Fedora 39 under X/Wayland and in both cases it works perfectly whatever the gfx.canvas.accelerated is.

(In reply to Calixte Denizet (:calixte) from comment #3)

Is it better if in about:config you set the option gfx.canvas.accelerated to false and then reload your pdf ?

Well, the solution you proposed seems to work well. I'll wait to do more tests with other files, but for now it's fine.

Many thanks

Depends on: 1902012

We'll disable accelerated canvas for the pdf reader soon. That said I don't think this bug is related to pdf.js.

Component: PDF Viewer → Graphics: Canvas2D
Product: Firefox → Core

I'm also kinda thinking the same.
It's a super duper long stretch.. But could you try to enable webgl.gl_khr_no_error?

It seems bananas, but after I took care of bug 1899780 I somehow stopped to have this problem too.

Summary: Many files pdf can not be see correctly → Many files pdf can not be see correctly with hardware acceleration enabled
Status: UNCONFIRMED → NEW
Ever confirmed: true

(In reply to uateruain from comment #5)

(In reply to Calixte Denizet (:calixte) from comment #3)

Is it better if in about:config you set the option gfx.canvas.accelerated to false and then reload your pdf ?

Well, the solution you proposed seems to work well. I'll wait to do more tests with other files, but for now it's fine.

Many thanks

Well, thanks, your advice till now is working!

The severity field is not set for this bug.
:lsalzman, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(lsalzman)

I am unable to replicate this on my Linux configuration as well. uateruain, can you please post your "about:support" information (with acceleration enabled while you do so) so we can look at your graphics configuration and see if there is something unique there causing this?

Flags: needinfo?(lsalzman) → needinfo?(uateruain)
Severity: -- → S3

(In reply to Lee Salzman [:lsalzman] from comment #10)

I am unable to replicate this on my Linux configuration as well. uateruain, can you please post your "about:support" information (with acceleration enabled while you do so) so we can look at your graphics configuration and see if there is something unique there causing this?

@Salzman, where can I post all informations collected from "about:support"?

Flags: needinfo?(uateruain)
Flags: needinfo?(lsalzman)
Attachment #9411054 - Attachment description: Hereby information from abou:support → Hereby information from about:support
Flags: needinfo?(lsalzman)

(In reply to mirh from comment #7)

I'm also kinda thinking the same.
It's a super duper long stretch.. But could you try to enable webgl.gl_khr_no_error?

It seems bananas, but after I took care of bug 1899780 I somehow stopped to have this problem too.

Enabling webgl.gl_khr_no_error didn't affect the symptoms for me. (Disabling gfx.canvas.accelerated does.)

Did you restart the browser though?
I was also pretty skeptical of the connection, but I kinda confirmed it in bug 1906370

Attached image bad-pdf-rendering.jpg

Attachment shows how this PDF was rendered on the machine of a coworker of a relative, running Ubuntu. This is the closest bug I could find so I'm posting this here for informative purposes. Coworker was forced to fallback to Chrome for PDFs (especially from arxiv.org). Setting gfx.canvas.accelerated to false fixed it. I'll report about webgl.gl_khr_no_error if they have the time to try it.

Having gfx.canvas.accelerated set to true and webgl.gl_khr_no_error to true also fixes the issue for the coworker mentioned in comment 15.

(In reply to Yannis Juglaret [:yannis] from comment #16)

Having gfx.canvas.accelerated set to true and webgl.gl_khr_no_error to true also fixes the issue for the coworker mentioned in comment 15.

I wonder if it fixes this case in particular or if it is helping with most of the problems we have seen with HW acceleration.

Another coworker of the same relative had exactly the same issue and same behavior wrt prefs. They use the same model of (laptop) computer with the same graphics card on the same version of Ubuntu. I'll have access to one of the laptops soon so I'll be able to post their about:support. Let me know if you want me to do other things with the laptop.

(In reply to Marco Castelluccio [:marco] from comment #17)

(In reply to Yannis Juglaret [:yannis] from comment #16)

Having gfx.canvas.accelerated set to true and webgl.gl_khr_no_error to true also fixes the issue for the coworker mentioned in comment 15.

I wonder if it fixes this case in particular or if it is helping with most of the problems we have seen with HW acceleration.

Yeah, like.. I was really left perplexed in bug 1902012.
As a matter of fact also, a guy in the linked pdf.js issue seems to still be experiencing problems even in FF129 with the disabling included.

Can any of you still reproduce this with latest Nightly?

Flags: needinfo?(yjuglaret)
Flags: needinfo?(uateruain)
Flags: needinfo?(mirh)
Flags: needinfo?(jonathan)

(we don't have access to this laptop anymore, sorry)

Flags: needinfo?(yjuglaret)

I just tried on 147 (where I found gl_khr_no_error to have been unset?) and the linked pdfs seemed fine.
Idk if it could be a firefox improvement, a nvidia driver fix, or whatever.

Flags: needinfo?(mirh)

I'll close this as WORKFORME. We can reopen if people see this again.

Status: NEW → RESOLVED
Closed: 3 months ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: