Closed Bug 1322818 Opened 8 years ago Closed 7 years ago

Reenable the layout/reftests/bugs/1114526-1.html reftest

Categories

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

53 Branch
All
Linux
defect

Tracking

()

RESOLVED FIXED
mozilla54
Tracking Status
firefox53 --- affected

People

(Reporter: kats, Assigned: kats)

References

Details

(Whiteboard: [gfx-noted])

Attachments

(2 files)

In the interest of getting some reftest jobs running on TreeHerder sooner rather than later, I disabled the layout/reftests/bugs/1114526-1.html reftest in bug 1319188. This bug is to re-enable it after figuring out why it intermittently fails. In the failure cases it seems to loop indefinitely.
I was able to reproduce this locally with rr chaos mode, and it looks like there's an invalid region set on a WebRenderPaintedLayer that seems to never get cleared. As a result, the LayerTreeInvalidation code keeps producing an invalid region from [1] and the harness keeps painting, never actually firing the MozReftestInvalidate event.

I suspect we need to be clearing the invalid region somewhere inside Render(), or something.

[1] http://searchfox.org/mozilla-central/rev/594937fec2e2fc45fa9308ba2fb964816631f017/gfx/layers/LayerTreeInvalidation.cpp#212
Turns out the invalid region is getting set here (attached stack). My line numbers might be off since they local changes, but frame 3 is at http://searchfox.org/mozilla-central/rev/594937fec2e2fc45fa9308ba2fb964816631f017/layout/painting/FrameLayerBuilder.cpp#4625
After chasing this some more I think it might boil down to the fact that in non-WR builds, we don't fire a DidComposite message when we do a snapshot into a DrawTarget. In WR builds we do. The DidComposite message triggers the MozAfterPaint event which interferes with the reftest harness.
^ That made things worse, not better. I'll have to dig into this more, but not right now.
Assignee: bugmail → nobody
I tried reproducing this again locally but didn't see it. It might have gotten fixed already. Try push to see if it's still happening on tryserver: https://treeherder.mozilla.org/#/jobs?repo=try&revision=e2694239134b258dc51c1353c5a7a90550b03467
Assignee: nobody → bugmail
Pushed by kgupta@mozilla.com:
https://hg.mozilla.org/projects/graphics/rev/6bfcb75c9120
Re-enable skipped reftest that seems to be passing consistently now. r=gfx?
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla54
Comment on attachment 8831298 [details]
Bug 1322818 - Re-enable skipped reftest that seems to be passing consistently now. ?

https://reviewboard.mozilla.org/r/107854/#review131010
Attachment #8831298 - Flags: review+
Attachment #8831298 - Flags: review?(graphics-team)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: