Closed
Bug 759653
Opened 13 years ago
Closed 13 years ago
BasicLayers.cpp ABORTs in DEBUG mode on B2G
Categories
(Core :: Graphics, defect)
Tracking
()
RESOLVED
FIXED
mozilla16
People
(Reporter: dhylands, Assigned: cjones)
References
Details
Attachments
(2 files)
|
6.95 KB,
text/plain
|
Details | |
|
1.11 KB,
patch
|
mwu
:
review+
|
Details | Diff | Splinter Review |
All DEBUG builds after the following commit from our mozilla-central git repository:
7fe94a9 Sat May 26 12:38:17 2012 +0800 Kan-Ru Chen Bug 743182 - Use gfxPlatform::OptimalFormatForContent everywhere. r=joedrew
cause the following ABORT to occur in B2G:
###!!! ABORT: Bad! Did we create a buffer twice without painting?: '!mIsNewBuffer', file /home/work/B2G/gecko/gfx/layers/basic/BasicLayers.cpp, line 2531
| Reporter | ||
Comment 1•13 years ago
|
||
| Reporter | ||
Comment 2•13 years ago
|
||
And oh yeah - the ABORT is only seen when OMTC is enabled.
| Assignee | ||
Comment 3•13 years ago
|
||
This abort is a very serious logic error: it means our double-buffering code became discombobulated and probably would have not have synchronized front->back buffers correctly. If that happens we'll get horrendous rendering artifacts.
Very interested to know how we're getting into this state.
| Assignee | ||
Comment 4•13 years ago
|
||
It would be instructive to try re-applying the patch from bug 743182, but with the gfx/layers hunks removed.
| Reporter | ||
Comment 5•13 years ago
|
||
I also confirmed that a non-debug build of the same commit fixes bug 744238 (so no artifacts seen when sliding up the lock screen when OMTC is enabled).
| Reporter | ||
Comment 6•13 years ago
|
||
Removing gfx/layers/basic/BasicLayers.cpp and gfx/layers/ipc/ShadowLayers.cpp from the patchset, and adding back in the gfxASurface::FormatFromContent function cause the ABORT to not occur (and the lock screen artifact still shows)
| Assignee | ||
Comment 7•13 years ago
|
||
That is very very odd.
| Reporter | ||
Comment 8•13 years ago
|
||
In the working code case, the image format that ShadowLayerForwarder::AllocBuffer creates is ImageFormatRGB16_565.
In the case that aborts, the image format that ShadowLayerForwarder::AllocBuffer creates is ImageFormatARGB32.
And if I go back to the version of the code that doesn't ABORT and modify OptimalFormatFor to return ImageFormatARGB32 then I also get the ABORT.
| Reporter | ||
Comment 9•13 years ago
|
||
And all of this testing was being done on a Samsung Galaxy S II running the ICS variant of gonk.
| Assignee | ||
Comment 10•13 years ago
|
||
dhylands, do you have a patch for the ImageFormat problem?
| Assignee | ||
Comment 11•13 years ago
|
||
Actually, I think this bug only affects sgs2, so it's not a top priority. But if you already have a patch we should land it.
| Assignee | ||
Comment 12•13 years ago
|
||
Assignee: nobody → jones.chris.g
Attachment #632115 -
Flags: review?(mwu)
Updated•13 years ago
|
Attachment #632115 -
Flags: review?(mwu) → review+
| Assignee | ||
Comment 13•13 years ago
|
||
Target Milestone: --- → mozilla16
Comment 14•13 years ago
|
||
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•