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)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla27

People

(Reporter: kats, Assigned: nical)

Details

Attachments

(2 files)

Attached file Stack of crash
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.
Flags: needinfo?(nical.bugzilla)
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)
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.
Attached patch patchSplinter Review
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)
Attachment #807213 - Flags: review?(bgirard) → review+
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.
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.
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.

Attachment

General

Created:
Updated:
Size: