Closed
Bug 1436020
Opened 6 years ago
Closed 6 years ago
During SanityTest, verifyLayersRendering() always failed with WebRender
Categories
(Core :: Graphics: WebRender, defect, P1)
Core
Graphics: WebRender
Tracking
()
RESOLVED
FIXED
mozilla60
Tracking | Status | |
---|---|---|
firefox60 | --- | fixed |
People
(Reporter: sotaro, Assigned: sotaro)
References
Details
Attachments
(1 file, 4 obsolete files)
4.38 KB,
patch
|
sotaro
:
review+
|
Details | Diff | Splinter Review |
Created based on Bug 1435693 comment 6.
Assignee | ||
Updated•6 years ago
|
Assignee: nobody → sotaro.ikeda.g
Updated•6 years ago
|
Blocks: stage-wr-trains
Priority: -- → P1
Assignee | ||
Comment 1•6 years ago
|
||
The verifyLayersRendering() was failed on my PC, because I enabled WebRender Profiler UI.
Assignee | ||
Comment 2•6 years ago
|
||
(In reply to Sotaro Ikeda [:sotaro] from comment #1) > The verifyLayersRendering() was failed on my PC, because I enabled WebRender Profiler UI. When WebRender Profiler UI was disabled, the verifyLayersRendering() was always passed.
Assignee | ||
Comment 3•6 years ago
|
||
From Comment 2, it seems better to disable WebRender Profiler during verifyLayersRendering().
Assignee | ||
Comment 4•6 years ago
|
||
(In reply to Sotaro Ikeda [:sotaro] from comment #3) > From Comment 2, it seems better to disable WebRender Profiler during > verifyLayersRendering(). Correction: it seems better to disable WebRender Profiler during takeWindowSnapshot().
Assignee | ||
Comment 5•6 years ago
|
||
Assignee | ||
Updated•6 years ago
|
Attachment #8948922 -
Flags: review?(matt.woodrow)
Comment 6•6 years ago
|
||
Comment on attachment 8948922 [details] [diff] [review] patch - Disable WebRender profiler during taking snap shot of sanity test Review of attachment 8948922 [details] [diff] [review]: ----------------------------------------------------------------- Do we ever want to show the WebRender profiler UI when taking a snapshot? I think we should just disable the profiler overlay for all snapshots (in the C++ code), so that callers don't have to deal with prefs.
Assignee | ||
Comment 7•6 years ago
|
||
(In reply to Matt Woodrow (:mattwoodrow) from comment #6) > Comment on attachment 8948922 [details] [diff] [review] > patch - Disable WebRender profiler during taking snap shot of sanity test > > I think we should just disable the profiler overlay for all snapshots (in > the C++ code), so that callers don't have to deal with prefs. Yea, it seems like a reasonable approach.
Assignee | ||
Updated•6 years ago
|
Attachment #8948922 -
Flags: review?(matt.woodrow)
Assignee | ||
Comment 8•6 years ago
|
||
Attachment #8948922 -
Attachment is obsolete: true
Assignee | ||
Comment 9•6 years ago
|
||
attachment 8949307 [details] [diff] [review] locally defines WebRender's DebugFlags. It should be defined in webrender_ffi_generated.h. I tried to update webrender_ffi_generated.h as to include DebugFlags types. But even with default gecko source, `rustup run nightly cbindgen toolkit/library/rust/ --crate webrender_bindings -o gfx/webrender_bindings/webrender_ffi_generated.h` failed with error on Linux and on Windows :( DebugFlags was update in WebRender and is going to be imported to gecko. https://github.com/servo/webrender/pull/2382 By the way WebRenderDebugPrefChangeCallback() also defines DebugFlags types locally. https://dxr.mozilla.org/mozilla-central/source/gfx/thebes/gfxPlatform.cpp#598
Assignee | ||
Updated•6 years ago
|
Attachment #8949307 -
Flags: feedback?(nical.bugzilla)
Assignee | ||
Comment 10•6 years ago
|
||
(In reply to Sotaro Ikeda [:sotaro] from comment #9) > But even with default gecko source, `rustup run nightly cbindgen > toolkit/library/rust/ --crate webrender_bindings -o > gfx/webrender_bindings/webrender_ffi_generated.h` failed with error on Linux > and on Windows :( I got following error with default m-c source. > rustup run nightly cbindgen toolkit/library/rust/ --crate webrender_bindings -o gfx/webrender_bindings/webrender_ffi_generated.h ERROR: Parsing crate `webrender`:``: unparsed tokens after crate: " ERROR: Couldn't generate bindings for toolkit/library/rust/.
Assignee | ||
Comment 11•6 years ago
|
||
:rhunt, is there a tip for updating webrender_ffi_generated.h?
Flags: needinfo?(rhunt)
Comment 12•6 years ago
|
||
Apply this patch on your tree temporarily: https://hg.mozilla.org/try/rev/e3f85ef18dca6d6bfc842bb1dbaa9bb188c1d0a5 then run cbindgen, and then undo the patch. This has been fixed in upstream cbindgen by using the latest version of syn, but there are other problems so it hasn't been published yet.
Flags: needinfo?(rhunt)
Assignee | ||
Comment 13•6 years ago
|
||
Thanks!
Comment 14•6 years ago
|
||
Comment on attachment 8949307 [details] [diff] [review] patch - Disable WebRender profiler UI during readback Review of attachment 8949307 [details] [diff] [review]: ----------------------------------------------------------------- Looks good to me, but maybe we should just disable all debug flags when taking the screenshot? Just setting them all to zero and restore them after the call. That way you don't even need to worry about maintaining the constants by hand.
Attachment #8949307 -
Flags: feedback?(nical.bugzilla) → feedback+
Assignee | ||
Comment 15•6 years ago
|
||
(In reply to Nicolas Silva [:nical] from comment #14) > > Looks good to me, but maybe we should just disable all debug flags when > taking the screenshot? Just setting them all to zero and restore them after > the call. That way you don't even need to worry about maintaining the > constants by hand. Thanks for the advice, it is simpler!
Assignee | ||
Comment 16•6 years ago
|
||
Attachment #8949307 -
Attachment is obsolete: true
Assignee | ||
Updated•6 years ago
|
Attachment #8950497 -
Flags: review?(nical.bugzilla)
Updated•6 years ago
|
Attachment #8950497 -
Flags: review?(nical.bugzilla) → review+
Assignee | ||
Comment 17•6 years ago
|
||
Bug 1437949 is going to re-add RendererOGL::Update(). Then it seems better to update the patch as to restore DebugFlag.
Assignee | ||
Comment 18•6 years ago
|
||
Attachment #8950497 -
Attachment is obsolete: true
Assignee | ||
Comment 19•6 years ago
|
||
(In reply to Sotaro Ikeda [:sotaro] from comment #17) > Bug 1437949 is going to re-add RendererOGL::Update(). Then it seems better > to update the patch as to restore DebugFlag. I change my mind. I am going to handle Bug 1437949 related side effect as a follow up.
Assignee | ||
Updated•6 years ago
|
Attachment #8950497 -
Attachment is obsolete: false
Assignee | ||
Updated•6 years ago
|
Attachment #8950826 -
Attachment is obsolete: true
Assignee | ||
Comment 20•6 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=d69ca2d5cda5cbddf4593bed0045c0b592707444 https://treeherder.mozilla.org/#/jobs?repo=try&revision=b89e0625775b278e8ffe8881cd5a572534bf38e3
Assignee | ||
Comment 21•6 years ago
|
||
Rebased.
Attachment #8950497 -
Attachment is obsolete: true
Attachment #8951125 -
Flags: review+
Comment 22•6 years ago
|
||
Pushed by sikeda@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/1647b6d2973f Disable WebRender profiler UI during readback r=nical
Comment 23•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/1647b6d2973f
Status: NEW → RESOLVED
Closed: 6 years ago
status-firefox60:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla60
You need to log in
before you can comment on or make changes to this bug.
Description
•