Closed Bug 1659063 Opened 4 years ago Closed 3 years ago

Inconsistent rendering of svgs

Categories

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

79 Branch
defect

Tracking

()

VERIFIED FIXED
Tracking Status
firefox-esr68 --- unaffected
firefox-esr78 --- disabled
firefox79 --- wontfix
firefox80 --- wontfix
firefox81 --- wontfix
firefox82 --- wontfix
firefox83 --- wontfix
firefox84 --- wontfix
firefox85 --- wontfix
firefox86 --- verified

People

(Reporter: david.bachmann, Unassigned)

References

(Blocks 1 open bug, Regression)

Details

(Keywords: correctness, regression)

Attachments

(3 files)

Attached image MiniTestMitIcons.svg

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.125 Safari/537.36 Edg/84.0.522.59

Steps to reproduce:

Open the attached svg in Firefox on some specific devices. It represents a menu tree.

The image contains several <svg> tags that contain <image> tags. Removing these seems to elimitate the bug.

Actual results:

Only the text of the first node and the rectangle in the tree is shown, none of the lines are visible.

The devices I could test that consistently produced the issue are Intel NUC6i5SYB with Intel Iris 540 graphics running Windows 10. (We have multiple of those in our office)

Expected results:

All texts in the svg should be visible, along with all lines.

This also actually happens in Firefox, just not on all devices. My PC with an Intel i3-4170 with Intel HD 4400 graphics running windows 10 renders this svg just fine. So does Chrome on both devices.

Bugbug thinks this bug should belong to this component, but please revert this change in case of error.

Component: Untriaged → SVG
Product: Firefox → Core

Renders wrong with WebRender enabled, fine with WebRender disabled.

Status: UNCONFIRMED → NEW
Component: SVG → Graphics: WebRender
Ever confirmed: true

That seems to be a correct diagnosis. If I set "gfx.webrender.enabled" to true, I can reproduce the error. If I set "gfx.webrender.force-disabled" to true on the maschine that has the issue, the bug disappears.

The NUC thing seems to have been coincidental.

Thank you for the quick response :)

Thanks for the report!
mozregression --good 77 --bad 78 --pref gfx.webrender.all:true -a https://bug1659063.bmoattachments.org/attachment.cgi?id=9169981

7:28.10 INFO: Last good revision: e27a62f854b29efd5719040bb53227b65c3e954a
7:28.10 INFO: First bad revision: a86dcd6715c9e52fdd8e4a937b5e94ea2b9a5fcb
7:28.10 INFO: Pushlog:
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=e27a62f854b29efd5719040bb53227b65c3e954a&tochange=a86dcd6715c9e52fdd8e4a937b5e94ea2b9a5fcb

a86dcd6715c9e52fdd8e4a937b5e94ea2b9a5fcb Bert Peers — Bug 1555356 - Make images inside of SVGs active. r=aosmond

Has Regression Range: --- → yes
Has STR: --- → yes
OS: Unspecified → All
Regressed by: 1555356
Hardware: Unspecified → All

@Andrew: you were the reviewer of that change, could you take a look what needs to happen here?

Severity: -- → S3
Priority: -- → P3
Flags: needinfo?(aosmond)

bug 1684625 fixes this by preffing off the code path in bug 1555356. That fixes this bug and should prevent it returning as the reftests I've checked in should cover this case.

Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Depends on: 1684625
Flags: qe-verify+

I managed to reproduce this bug by using the steps from comment 0, on an affected Nightly build 81.0a1 (20200814094524).

The issue is verified as fixed on the latest Beta build 86.0b5, across platforms: Win 10 x64, macOS 10.14 and Ubuntu 18.04 x64.

Status: RESOLVED → VERIFIED
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: