Closed
Bug 914426
Opened 11 years ago
Closed 11 years ago
Dumping layer trees in B2G crashes
Categories
(Core :: Graphics: Layers, defect)
Tracking
()
RESOLVED
FIXED
mozilla27
People
(Reporter: roc, Assigned: roc)
Details
Attachments
(1 file, 1 obsolete file)
4.80 KB,
patch
|
nrc
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Comment 1•11 years ago
|
||
Attachment #801923 -
Flags: review?(ncameron)
Comment 2•11 years ago
|
||
Comment on attachment 801923 [details] [diff] [review]
fix
Review of attachment 801923 [details] [diff] [review]:
-----------------------------------------------------------------
::: gfx/layers/composite/ContentHost.cpp
@@ +234,5 @@
> }
> if (aDumpHtml) {
> fprintf(aFile, "<ul>");
> }
> + if (mDeprecatedTextureHost && aDumpHtml) {
I don't see why you are adding these checks for aDumpHtml. They are covered by the ternary operator if expressions in the fprintfs and presumably we still want the ability to dump non-html dumps.
Comment 3•11 years ago
|
||
I crash on mac too, by the way
Comment 4•11 years ago
|
||
This seems like a dup of 911730.
Comment 5•11 years ago
|
||
(In reply to Matt Woodrow (:mattwoodrow) from comment #4)
> This seems like a dup of 911730.
With MOZ_DUMP_PAINTING symbol, we need these buffer checking conditions in attachment 801923 [details] [diff] [review] to prevent crash.
Assignee | ||
Comment 6•11 years ago
|
||
(In reply to Matt Woodrow (:mattwoodrow) from comment #4)
> This seems like a dup of 911730.
That bug helped, but my patch is also needed.
(In reply to Nick Cameron [:nrc] from comment #2)
> I don't see why you are adding these checks for aDumpHtml. They are covered
> by the ternary operator if expressions in the fprintfs and presumably we
> still want the ability to dump non-html dumps.
Getting the gralloc buffer contents crashes for me, somewhere in darkest Android. I don't think we need to try dumping mDeprecatedTextureHost contents for plaintext output, that seems unnecessary.
Assignee | ||
Comment 7•11 years ago
|
||
Attachment #801923 -
Attachment is obsolete: true
Attachment #801923 -
Flags: review?(ncameron)
Attachment #807689 -
Flags: review?(ncameron)
Comment 8•11 years ago
|
||
Comment on attachment 807689 [details] [diff] [review]
fix v2
Review of attachment 807689 [details] [diff] [review]:
-----------------------------------------------------------------
::: gfx/layers/composite/ContentHost.cpp
@@ +762,2 @@
> fprintf(aFile, "%s", aPrefix);
> fprintf(aFile, aDumpHtml ? "<li> <a href=" : "Back buffer: ");
You don't need these checks for aDumpHTML in the fprintfs. Probably nicer to do an early return if !aDumpHtml like you do in the base version.
Attachment #807689 -
Flags: review?(ncameron) → review+
Assignee | ||
Comment 9•11 years ago
|
||
Comment 10•11 years ago
|
||
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
•