Open Bug 1411693 Opened 7 years ago Updated 2 years ago

Google's search box shadow animation flickers/New tab shadows

Categories

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

x86_64
All
defect

Tracking

()

Tracking Status
firefox-esr52 --- unaffected
firefox56 --- unaffected
firefox57 --- unaffected
firefox58 --- unaffected
firefox59 --- unaffected
firefox60 --- unaffected

People

(Reporter: jan, Unassigned)

References

(Blocks 2 open bugs, )

Details

(Keywords: nightly-community, Whiteboard: [wr-reserve][gfx-noted])

Attachments

(8 files, 1 obsolete file)

Attached file testcase.html (deleted) —
Nightly 58 x64 20171025100449 de_DE @ Debian Testing (KDE, Radeon RX480) fresh profile: gfx.webrender.enabled See attached testcase + video. The problem in bug 1411454 looks similar, but I couldn't make a testcase there (I'm a noob). And it doesn't cases my UI to flicker like bug 1411131.
Attached video 2017-10-25_21-09-27.mp4 (obsolete) (deleted) —
correction: > And it doesn't cause my UI to flicker like bug 1411131.
Whiteboard: [wr-mvp] [triage]
OS: Linux → All
Priority: P2 → P3
Whiteboard: [wr-mvp] [triage] → [wr-reserve]
Whiteboard: [wr-reserve] → [wr-reserve][gfx-noted]
Attached video 2017-11-02_00-00-54.mp4 (deleted) —
Nightly 58 x64 20171101104430 de_DE @ Debian Testing (KDE, Radeon RX480) This has changed after the latest webrender update and got better. fresh profile (left): layers force accel, webrender, blob-images main profile (right): layers force accel, webrender, blob-images, omtp, gpu process, stylo-chrome Only a white flickering is left.
Attachment #8922046 - Attachment is obsolete: true
Depends on: 1412280
#1943 is fixed and I can't reproduce now. Can you confirm?
Flags: needinfo?(jan)
(In reply to Ethan Lin[:ethlin] from comment #7) > #1943 is fixed and I can't reproduce now. Can you confirm? Oh..#1943 is still open. But I can't reproduce the problem on windows and macOS.
Attached video 2017-12-21_03-41-58.mp4 (deleted) —
100% zoom and some other zoom levels show the problem, some other not.
Flags: needinfo?(jan)
I can't reproduce this with latest nightly on OSX and window. Checking this on linux now.
Can't reproduce this on linux as well. Reporter, can you help to confirm it?
Flags: needinfo?(jan)
Nightly 59 x64 20180115100056 de_DE @ Debian Testing (KDE, Radeon RX480) fresh profile: gfx.webrender.all I can still reproduce on Linux and will check this on Windows 10.
There are enough artifacts that we can't really close any of the "flickering" bugs as "works for me". And it sounds like :darkspirit can reproduce it anyway. Peter, do have have discrete graphics? I find for me it happens a lot more on Nvidia than on Intel.
Flags: needinfo?(jan)
(In reply to Jan Andre Ikenmeyer [:darkspirit] from comment #12) > Nightly 59 x64 20180115100056 de_DE @ Debian Testing (KDE, Radeon RX480) > fresh profile: gfx.webrender.all > > I can still reproduce on Linux and will check this on Windows 10. :darkspirit Do you have the chance to verify this on windows 10?
Nightly 59 x64 20180116220110 de_DE @ Windows 10 (Radeon RX480) fresh profile: gfx.webrender.all Still reproducible.
(In reply to Jan Andre Ikenmeyer [:darkspirit] from comment #15) > Created attachment 8943102 [details] > 2018-01-17 03-59-36_20180116220110_Win10.mp4 > > Nightly 59 x64 20180116220110 de_DE @ Windows 10 (Radeon RX480) > fresh profile: gfx.webrender.all > Still reproducible. Thanks. I also modified the test case a little bit to make it more obvious to see. http://jsfiddle.net/efvyw2eq/ Now I can reproduce this on linux(nvidia) and windows(nvidia) but not OSX.
Assignee: nobody → howareyou322
Flags: needinfo?(jan)
Attached file testcase2.html (deleted) —
Pimped testcase from comment 16.
Flags: needinfo?(jan)
try builds from bug 1440664: > WR @ 4e374f0c5139ca81ee8de99afe2fc3bc53e3632e mozregression --repo try --launch 3894fc62b9052a377b1e0a0287f44722751fbb4d --pref gfx.webrender.all:true startup.homepage_welcome_url:"https://bugzilla.mozilla.org/attachment.cgi?id=8922041" bad > WR @ b53cf7799a0f5861dfa928ee0ccc66e8d0b78758 mozregression --repo try --launch d115c4c11850c1b1d0b1c847eefc3d959efe0b12 --pref gfx.webrender.all:true startup.homepage_welcome_url:"https://bugzilla.mozilla.org/attachment.cgi?id=8922041" good Fix range: https://github.com/servo/webrender/compare/4e374f0c5139ca81ee8de99afe2fc3bc53e3632e...b53cf7799a0f5861dfa928ee0ccc66e8d0b78758 This got far better, but is not fixed. attachment 8957846 [details] shows the remaining problem more clearly.
Depends on: 1440664
Attached video 2018-03-10_22-59-42.mp4 (deleted) —
Assignee: howareyou322 → a.beingessner
Lowering the priority on this since the severity has reduced. On google itself I can't actually notice anything, though I do see the issue clearly on Jan's testcase2
Priority: P1 → P2
I think the borders of hovered tiles on about:newtab have the same problem.
I still see a wiggling shadow on Google. Testcase from bug 1468047 comment 3: attachment 8984725 [details]
Blocks: stage-wr-trains
No longer blocks: stage-wr-nightly
This is such a minor rendering quality of implementation issue that I think we can ship without fixing this. And it shouldn't cause a major rearchitecting to fix when we do get to it.
Blocks: stage-wr-next
No longer blocks: stage-wr-trains
Assignee: a.beingessner → nobody
The shadow of the thumbnails on the right: https://www.servoexperiments.com/experiments/divMosaics/

This is pretty minor in many cases, but it's quite noticeable and likely to be encountered very frequently in the Top Sites section of Activity Stream. We should either fix it here or get the Activity Stream folks to change how they animate Top Sites hovering.

Priority: P2 → P3
Summary: Google's search box shadow animation flickers → Google's search box shadow animation flickers/New tab shadows
Blocks: stage-wr-trains
No longer blocks: stage-wr-next

Nical, it looks like this is similar to bug 1475827 and may have the same root cause. Let me know if you feel otherwise.

Assignee: nobody → nical.bugzilla
Flags: needinfo?(nical.bugzilla)

Sounds plausible.

Flags: needinfo?(nical.bugzilla)

A slightly simplified test case, without animation to ease debugging:

box-shadow: 0px 0 1.5px 0 rgba(0,0,0,1);

With layout.css.devPixelsPerPx set to 1 looks fine without WR, but is asymmetrical with WR.

Assignee: nical.bugzilla → gwatson

I can see at least one problem here - the prim_shadow_rect is not rounded, and thus it can result in an asymmetrical stretch occurring during the clip mask generation.

I put up a try run with a hack fix for that here - https://treeherder.mozilla.org/#/jobs?repo=try&revision=7f4c4eb820df368d9606469fc6dd63b5dabb0add

It's still not perfect, but anecdotally it seems significantly better to me on the test cases in this bug and https://bugzilla.mozilla.org/show_bug.cgi?id=1475827.

The lack of rounding in the prim_shadow_rect is definitely an issue, but I'm not 100% certain whether (a) this is a good fix (and there is another bug causing the remaining issues) or (b) this fix isn't sufficient and can break / not fix some cases.

I'll see what breaks on the try run and do a more detailed investigation tomorrow.

The try run above isn't quite finished, but it looks like it makes boxshadow-large-border-radius.html and boxshadow-skiprect.html pass. There also doesn't like like there are any new failures (just a couple of already known intermittents).

So I'll open a patch for this tomorrow, and then we can see if it resolves this issue completely, or needs some additional fixes.

Attached video 2019-01-23 14-34-40.mp4 (deleted) —

Win10, GTX1060

left (WR): mozregression --launch 2019-01-23 --pref gfx.webrender.all:true -a https://bug1411693.bmoattachments.org/attachment.cgi?id=8957846 -a https://bugzilla.mozilla.org/attachment.cgi?id=8984725 -a https://www.servoexperiments.com/experiments/divMosaics/

middle (WR try): mozregression --repo try --launch 7f4c4eb820df368d9606469fc6dd63b5dabb0add --pref gfx.webrender.all:true -a https://bug1411693.bmoattachments.org/attachment.cgi?id=8957846 -a https://bugzilla.mozilla.org/attachment.cgi?id=8984725 -a https://www.servoexperiments.com/experiments/divMosaics/

right (non-WR): mozregression --launch 2019-01-23 --pref gfx.webrender.force-disabled:true -a https://bug1411693.bmoattachments.org/attachment.cgi?id=8957846 -a https://bugzilla.mozilla.org/attachment.cgi?id=8984725 -a https://www.servoexperiments.com/experiments/divMosaics/

It's a vast improvement (thank you!), although not smooth on servoexperiments.com.

https://bugzilla.mozilla.org/show_bug.cgi?id=1522351 is the patch that includes the partial fix above.

Depends on: 1522351
Priority: P3 → P2

Dropping back down to P3 because bug 1522351 has been fixed

Priority: P2 → P3
Depends on: 1523882

I think that this is fixed once https://bugzilla.mozilla.org/show_bug.cgi?id=1523882 lands in a nightly (or at least improved enough to be shippable). darkspirit, could you confirm?

Flags: needinfo?(jan)
Attached video 2019-02-02 21-38-28.mp4 (deleted) —
Flags: needinfo?(jan)

I can see the flickering sometimes on the test case if I set layout.css.devPixelsPerPx to 1, but I don't see it at the default for my screen. I suspect this might be related to fractional values being rounded.

Similarly for the mosaics case, it doesn't appear to be smooth, but if I alter the box shadow blur in devtools from 5px to 15px, it looks smooth on my machine. This also suggests that the issue might be related to fractional values being rounded.

Nical, do you have cycles to do some more investigation of this?

Flags: needinfo?(nical.bugzilla)

Right now I am focusing on bug 1523495 so this one is free to be picked up by anyone with an empty p2/p3 list. That said, there is a small chance that two bugs are actually affected by the same root issue.

Bug 1523495 is also related to the "intensity" of blurs incorrectly varying depending on a parameter that shouldn't affect it. My current theory is that we use linear filtering during down-scale in srgb space which doesn't preserve the perceptual intensity of the color/alpha, so depending on the sizes of the input/output targets during down-scaling sampling will play out differently and lead to different blur intensities.

I haven't verified whether this is what's happening here as well but some of the symptoms described in this bug match what I am observing in the other bug.

Flags: needinfo?(nical.bugzilla)

The test case from https://bugzilla.mozilla.org/show_bug.cgi?id=1411693#c30 is now working correctly, as a result of https://bugzilla.mozilla.org/show_bug.cgi?id=1523882 (the box shadow is symmetrical).

However, it's still not smooth in testcase2.html. I can reproduce the smoothness issue even with the blur radius set to 0. It looks like the AA is taking effect on the inner edge of the shadow, which might be what's causing the perceived flickering. This might be related to snapping - still investigating.

I'm moving this to P4. If anyone has a prominent web property whether this is still quite bad we can consider moving it back up in priority.

Priority: P3 → P4
Blocks: wr-67
No longer blocks: stage-wr-trains
Priority: P4 → P2
No longer blocks: wr-67
Priority: P2 → P3

I wonder if this is still an issue after Andrew's snapping changes landed?

Flags: needinfo?(jmuizelaar)
Flags: needinfo?(aosmond)

I don't think https://www.servoexperiments.com/experiments/divMosaics/ has improved at all before or after my change. I can see the transition is smooth on Chrome for me.

Flags: needinfo?(aosmond)

Yeah, testcase2.html is still smoother in Chrome.

Flags: needinfo?(jmuizelaar)

Un-assigning for now, since I'm not intending to work on this in the near future - we have it tagged as part of wr-snap.

Assignee: gwatson → nobody
Severity: normal → S3

The severity field for this bug is relatively low, S3. However, the bug has 5 duplicates.
:gw, could you consider increasing the bug severity?

For more information, please visit auto_nag documentation.

Flags: needinfo?(gwatson)

The last needinfo from me was triggered in error by recent activity on the bug. I'm clearing the needinfo since this is a very old bug and I don't know if it's still relevant.

Flags: needinfo?(gwatson)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: