Closed Bug 1021367 Opened 10 years ago Closed 10 years ago

Assertion failure in GetShaderConfigFor

Categories

(Core :: Graphics: Layers, defect)

ARM
Android
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla36

People

(Reporter: dougc, Assigned: dougc)

Details

Attachments

(2 files)

Running the BananaBench asm.js demo on a Nexus 7 (older model), Android 4.4, crashes on the following assertion:

gfx/layers/opengl/CompositorOGL.cpp:907
907	    MOZ_ASSERT_IF(source->GetTextureTarget() == LOCAL_GL_TEXTURE_EXTERNAL,
908	                  source->GetFormat() == gfx::SurfaceFormat::R8G8B8A8);
fwiw this assertion was added in Bug 926128.
I am having trouble reproducing this on the Nexus 7 using the current m-c, perhaps some other regression over the last week. The demo now just stops, like there is a deadlock in the graphics pipe, but other tabs can be opened.

However I got a similar failure on a Nexus 4:
Assertion failure: source->GetFormat() == gfx::SurfaceFormat::R8G8B8A8, at gfx/layers/opengl/CompositorOGL.cpp:926

The unexpected value of source->GetFormat() on the Nexus 4 is R8G8B8X8, and adding this at least allows the demo to proceed.
Got it running again on the Nexus 7. Upgraded to 4.4.3 and did a clean install of Firefox, and perhaps this helped. The demo causes exactly the same failure on the Nexus 7 as the Nexus 4, and the same patch gets it running.
This issue might also affect beta. Would anyone have time to look at this?
Attachment #8441098 - Flags: feedback?(gal)
Attachment #8441098 - Flags: feedback?(gal) → feedback+
Comment on attachment 8436844 [details] [diff] [review]
hack patch for the Nexus 4

Review of attachment 8436844 [details] [diff] [review]:
-----------------------------------------------------------------

Nical, is this fix correct? This crash is showing up on https://tbpl.mozilla.org/?tree=Try&rev=64cb0111f38c and if it's easy to fix we should do that.
Attachment #8436844 - Flags: review?(nical.bugzilla)
Attachment #8436844 - Flags: review?(nical.bugzilla) → review+
Assignee: nobody → dtc-moz
https://hg.mozilla.org/mozilla-central/rev/e394d04ba98a
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla36
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: