Closed Bug 860442 Opened 12 years ago Closed 12 years ago

B2G emulator reftest failures and timeouts after layers refactoring

Categories

(Core :: Graphics: Layers, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla23

People

(Reporter: ahal, Assigned: jrmuizel)

References

Details

Attachments

(1 file)

This is fallout from the layers refactoring in bug 825928. Reftests are currently so the bustage wasn't caught right away (you can see them with https://tbpl.mozilla.org/?tree=Mozilla-Inbound&showall=1&jobname=b2g) Each chunk has many failures, and eventually times out after 330 seconds with no output, e.g: https://tbpl.mozilla.org/php/getParsedLog.php?id=21655253&tree=Mozilla-Inbound&full=1
Assigning to Jeff to track the team effort.
Assignee: nobody → jmuizelaar
This looks like an OOM
We're leaking gralloc buffers
We are leaking in the snapshot path of BasicShadowLayerManager::EndTransaction. We allocate a surface descriptor in AllocSurfaceDescriptor. However, it does not have a bufferParent and so when we call ISurfaceAllocator::PlatformDestroySharedSurface it ends up leaking. This fixes the leak. However, I don't have much of an idea of how correct it is.
Attachment #736137 - Flags: review?(bjacob)
(In reply to Jeff Muizelaar [:jrmuizel] from comment #4) > This fixes the leak. However, I don't have much of an idea of how correct it > is. I don't either. Could you at least describe how you came up with this idea? It wouldn't even have crossed my mind. Let's flag jdm for needinfo: is it a typical idiom, to go "if we don't have a parent, use the child" like this patch does? What sense does it make?
Flags: needinfo?(josh)
Yes, that is a common idiom in IPC code.
Flags: needinfo?(josh)
In particular, one and only one of those methods will return a non-null value, depending on whether it's running on the parent or child.
There is also an intermittent crash in B2G mochitest, with a stack trace that looks like it might be relevant: https://tbpl.mozilla.org/php/getParsedLog.php?id=21686207&tree=Mozilla-Inbound
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla23
There are still some perma-orange tests in R1 and R6 https://tbpl.mozilla.org/php/getParsedLog.php?id=21733320&tree=Mozilla-Inbound https://tbpl.mozilla.org/php/getParsedLog.php?id=21733404&tree=Mozilla-Inbound (ignore the input-file-*.html tests, they are bug 855352) Jeff, should I file a separate bug for these? Or are they symptoms of known issues.
Comment on attachment 736137 [details] [diff] [review] Delete the gralloc buffer even when we don't have a PBufferParent Nical reviewed this.
Attachment #736137 - Flags: review?(bjacob) → review+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: