Closed Bug 1683753 Opened 3 years ago Closed 3 years ago

macOS: Some article title text is intermittently rendered with parts shifted to the wrong position

Categories

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

Desktop
All
defect

Tracking

()

VERIFIED FIXED
86 Branch
Tracking Status
firefox-esr78 --- unaffected
firefox84 --- unaffected
firefox85 --- unaffected
firefox86 + verified

People

(Reporter: cpeterson, Assigned: nical, NeedInfo)

References

(Blocks 2 open bugs, Regression, )

Details

(Keywords: correctness, regression)

Attachments

(6 files)

Attached image screenshot.png

See the attached screenshot of https://godotengine.org/article/new-showcase-for-projects-made-with-godot

I first noticed this bug on 2020-12-20 and I've seen it about three times since then. The problem only seems to affected large text, like the H1 text of the article title ("Announcing the new showcase for projects made with Godot") on https://godotengine.org/article/new-showcase-for-projects-made-with-godot .

I suspect this is a SW-WR bug. I had to take this screenshot using the macOS screenshot tool because Firefox's screenshot tool rendered the text correctly.

I have my default page zoom at 110%, which might be related. When I see the bug, if I reduce the page zoom to 100%, then text is rendered correctly, IIRC. But I also think I've seen the bug when reloading an affected page at page zoom 100%.

So far I haven't been able to repro this on Debian Testing.

OS: Unspecified → macOS
Hardware: Unspecified → Desktop

(In reply to Darkspirit from comment #1)

So far I haven't been able to repro this on Debian Testing.

I saw this bug on macOS with gfx.webrender.software = true. I'll try testing Windows.

I just tried testing Windows. My about:support says WebRender (Software D3D11). I wasn't able to reproduce the bug. However, the bug is intermittent, so perhaps Windows is affected and I was just not "lucky" enough to reproduce it.

Summary: Some article title text is intermittently rendered with parts shifted to the wrong position → sw-wr/macOS: Some article title text is intermittently rendered with parts shifted to the wrong position
Severity: -- → S3
Priority: -- → P3

I wonder if Nical's texture cache work is causing this.

I also saw this bug on the H1 title text of this article ("From Balenciaga to Basics: Lessons from Our Pivot to API Tooling") in two different tabs:

https://www.akitasoftware.com/blog/2020/12/22/from-balenciaga-to-basics-lessons-from-our-pivot-to-api-tooling

Attached image body-screenshot.png

Correction:

  • I reproduced this bug without SW-WR (gfx.webrender.all = true and gfx.webrender.software = false).
  • I reproduced this bug the body text of an article (specifically Pocket's Article View). See the attached body-screenshot.png.

(In reply to Chris Peterson [:cpeterson] from comment #0)

I first noticed this bug on 2020-12-20

bug 1679751 comment 16 landed in 20201217092748.
(Regression range is not proven, just assumed.)

Regressed by: 1679751
Summary: sw-wr/macOS: Some article title text is intermittently rendered with parts shifted to the wrong position → macOS: Some article title text is intermittently rendered with parts shifted to the wrong position
Has Regression Range: --- → yes

I also see this sometimes on a late 2018 MacBook Pro with macOS 11.1 and WebRender (I don't use software WebRender) since a few days. So far I saw this on GitHub and in Cleverreach but it doesn't happen very often so it's really hard to reproduce.

I can reproduce this as well, with Hardware WebRender. It's ahrd to reproduce, but it happens fairly reliable after an hour or two of using the web for me. And once it starts, almost every page I open has some broken text on it, and it stays that way until I grudgingly reboot the browser.

:aosmond, you marked this as P3, but given this appears to be a recent regression that potentially affects a lot of users if their session is old enough, I feel like this might not be right. Could you reconsider that? :)

Flags: needinfo?(aosmond)

Yes, I agree, this should be fixed this cycle, or uplifted to beta. Originally it was just reported on SW-WR, which is not enabled on Mac, but if it affects HW-WR, it is more concerning.

Flags: needinfo?(aosmond) → needinfo?(nical.bugzilla)
Priority: P3 → P2
Blocks: wr-mac

I can reproduce this fairly easily on android by zooming on a text heavy page. Or on desktop on https://www.oneplus.com/uk/nord by moving the mouse over the animated menu items. Both of which would cause more texture cache allocation for new glyphs.

Attached image image.png

I can also replicate it reliably on the second part of Jamie's example page on macOS 10.14.6

Jamie, or Albert can you confirm the regression window?

Flags: needinfo?(jnicol)
Flags: needinfo?(albertsunildsouza)

[Tracking Requested - why for this release]: This is a noticeable visual regression that doesn't show up all of the time, but it seems to be fairly common given the large number of duplicate bugs filed.

This doesn't seems to be a MacOS only problem, it also happens to me on windows 10. Text glitches in this way sometimes randomly. Close and reopen the tabs fixed it sometimes.

Change the color fix it.
Change the font size also fix it.
Change the decoration also fix it.
But after you reverse these CSS style change, the corruption showed again.

It seems the font render cache or some sort like this corrupted in edge case and affect the graphic. (probably bad size calculation, bad font or something?)

Mozregression gave me this, confirming it is regressed by bug 1679751.

Note I had to test for a while before marking a commit as good, because it reproduces fairly easily most of the time but certainly not at will. So I wouldn't normally be 100% confident in the range. But given that we suspected this commit already and the dates match, it seems almost certain.

Flags: needinfo?(jnicol)

Tracking for 86. Nicolas, it seems your patches in bug 1679751 caused this regression.

OS: macOS → All
Assignee: nobody → nical.bugzilla
Status: NEW → ASSIGNED
Pushed by nsilva@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/0ebc6a1d8e51
Don't use the bucketed shelf allocator for glyphs. r=jrmuizel

Adjustments required after texture packing changes.

This adds a fuzziness of two in wrench as we do with non-wrench reftests.

Pushed by nsilva@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/be651eeda6d3
Don't use the bucketed shelf allocator for glyphs. r=jrmuizel
https://hg.mozilla.org/integration/autoland/rev/df2921234c95
Make android wrench reftests fuzzy by default. r=jrmuizel
https://hg.mozilla.org/integration/autoland/rev/9ecf9ce11807
Adjust reftest references. r=jrmuizel
Pushed by nsilva@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/3468a8fbd38f
Don't use the bucketed shelf allocator for glyphs. r=jrmuizel
https://hg.mozilla.org/integration/autoland/rev/53ce9813d599
Make android wrench reftests fuzzy by default. r=jrmuizel
https://hg.mozilla.org/integration/autoland/rev/3084eaaad6fa
Adjust reftest references. r=jrmuizel

Chris, can you confirm that the bug doesn't happen anymore on the latest nightly?

Flags: needinfo?(nical.bugzilla) → needinfo?(cpeterson)

I don't see it happening again in last few days.

(In reply to Nicolas Silva [:nical] from comment #35)

Chris, can you confirm that the bug doesn't happen anymore on the latest nightly?

I think this is fixed. Like Irvin, I haven't seen this bug over the last few days. I used to see it every day.

Status: RESOLVED → VERIFIED
Flags: needinfo?(cpeterson)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: