Closed Bug 1907760 Opened 1 year ago Closed 1 year ago

PDF Viewer has completely broken graphics on Linux

Categories

(Core :: Graphics: Canvas2D, defect, P3)

Firefox 127
defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: tessarakt, Assigned: lsalzman)

References

Details

Attachments

(2 files)

Attach (recommended) or Link to PDF file here: https://noyb.eu/sites/default/files/2024-07/noyb_Cookie_Report_2024.pdf

Steps to reproduce the problem:

  1. Just open the link (or any other PDF)

What is the expected behavior? (add screenshot)

PDF is displayed like in other PDF viewers.

What went wrong? (add screenshot)

Display is completely broken. Also, parts of the tab that was shown before are visible.

This seems to indicate wrong handling of accelerated graphics.

I'm seeing this on two different Linux installations on different laptops, both with Nvidia graphics (with all kinds of PDF files).

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

For more information, please visit BugBot documentation.

Flags: needinfo?(cdenizet)

It's very likely a dup of bug 1907828.
:tessarakt, could you try to check if setting a pref as in if https://bugzilla.mozilla.org/show_bug.cgi?id=1907828#c12 could "fix" your issue ?

Component: PDF Viewer → Graphics: Canvas2D
Flags: needinfo?(cdenizet)
Product: Firefox → Core
Severity: -- → S2
Priority: -- → P2
See Also: → 1907828

Sounds very plausible. (Un)fortunately, I don't seem to be able to easily reproduce any more. If I see it again, I will try the pref.

Funnily, I recently had a problem with apostrophe (a Markdown editor with preview) which uses a Webkit webview, and I had to use WEBKIT_DISABLE_DMABUF_RENDERER=1

So apparently some Nvidia driver issues lately.

Jens, could you please capture the output of your about:support to a file and attach it here?

Flags: needinfo?(blog)

I had it again on my work PC. Worked by setting gfx.canvas.accelerated to false - just by reloading the tab, no restart of Firefox required.

(In reply to Bob Hood [:bhood] from comment #5)

Jens, could you please capture the output of your about:support to a file and attach it here?

Will do that from my work PC. On my private PC, I can no longer reproduce.

Flags: needinfo?(blog)

(In reply to Jens Müller (:tessarakt) from comment #7)

(In reply to Bob Hood [:bhood] from comment #5)

Jens, could you please capture the output of your about:support to a file and attach it here?

Will do that from my work PC. On my private PC, I can no longer reproduce.

Actually, I could with the noyb PDF I mentioned initially.

Attached file about-support.json
Assignee: nobody → lsalzman

Jens, could you please retest this and see if the behavior persists?

Flags: needinfo?(blog)

(In reply to Bob Hood [:bhood] from comment #10)

Jens, could you please retest this and see if the behavior persists?

Tried with Firefox 130.0.1 on Linux with the same PDF, looks fine.

Flags: needinfo?(blog)

User seems to be running software canvas, not accelerated, and also no dmabuf. At the moment unsure what would cause this behavior.

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

User seems to be running software canvas, not accelerated, and also no dmabuf. At the moment unsure what would cause this behavior.

I might have saved the about:support data after setting gfx.canvas.accelerated to false.

It doesn't seem like we have seen significant numbers of corroborating reports that would indicate this is a widespread problem, and we still don't have a good explanation here for why it is happening. Moving this to P3.

Priority: P2 → P3

Actually, Jens, can you make sure the gfx.canvas.accelerated pref is set to true, not false and retest this on your Nvidia hardware with a recent Firefox? There is a chance this was a dup of bug 1907828 like Calixte suggests.

If it works, please consider closing this bug as a WORKSFORME.

Flags: needinfo?(blog)

Works on 135.0.1 (64-Bit) on two different machines (Linux Mint and Ubuntu).

Flags: needinfo?(blog)
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → WORKSFORME

PDF display now looked fine with gfx.canvas.accelerated=true. But preview of pictures I'm about to send in WhatsApp Web is still broken.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: