Closed
Bug 918078
Opened 11 years ago
Closed 11 years ago
Dumping the layer tree appears to have side-effects
Categories
(Core :: Graphics: Layers, defect)
Tracking
()
RESOLVED
FIXED
mozilla27
People
(Reporter: kats, Assigned: nical)
Details
Attachments
(2 files)
7.27 KB,
text/plain
|
Details | |
3.12 KB,
patch
|
BenWa
:
review+
|
Details | Diff | Splinter Review |
I used BenWa's bug 916259 to try to dump the layer tree in B2G but because of where I put the log it was crashing. The stack trace shows it's running into an assertion failure in the middle of the dumping code. See attached stack.
Updated•11 years ago
|
Flags: needinfo?(nical.bugzilla)
Assignee | ||
Comment 1•11 years ago
|
||
Do we want the dump to contain dataurls of the texture data? If so we need to Lock the TextureHost before requiring and accessing the data on the TextureSource, which we are not doing here. Otherwise we do not need to read data from the TextureSource, so no need to call GetTextureSource either. The fix to this problem is simple, just depends on what info we want to dump.
Flags: needinfo?(nical.bugzilla)
Comment 2•11 years ago
|
||
No, dumping the dataurl is slow and adds clutter. We just want to print the layer tree information. I wanted to check with you since you added the code.
Assignee | ||
Comment 3•11 years ago
|
||
with this patch, TextureHost prints the same info as DeprecatedTextureHost, and doesn't need to access a TextureSource
Assignee: nobody → nical.bugzilla
Attachment #807213 -
Flags: review?(bgirard)
Updated•11 years ago
|
Attachment #807213 -
Flags: review?(bgirard) → review+
Assignee | ||
Comment 4•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/64c58cb9c49b
Comment 5•11 years ago
|
||
sorry had to back this out because causing build bustages like https://tbpl.mozilla.org/php/getParsedLog.php?id=28140452&tree=Mozilla-Inbound backout push is https://tbpl.mozilla.org/?tree=Mozilla-Inbound&rev=7609a7ace997
Assignee | ||
Comment 6•11 years ago
|
||
Sorry about that. I am at a conference so if you guys need this fix quickly I'll let you fix the patch (it's really trivial), ortherwise I'll fix it on Monday.
Assignee | ||
Comment 7•11 years ago
|
||
fixed and relanded https://hg.mozilla.org/integration/mozilla-inbound/rev/5c771c423d44 As a side note this is an example of why I don't like to #ifdef out stuff like PrintInfo while still requiring it. Whenever we touch that code even in trivial ways it is very easy to break builds if we don't check both builds with and without MOZ_LAYERS_HAVE_LOG.
Comment 8•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/5c771c423d44
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla27
You need to log in
before you can comment on or make changes to this bug.
Description
•