Closed Bug 1181197 Opened 9 years ago Closed 9 years ago

Crashes at SharedPlanarYCbCrImage::~SharedPlanarYCbCrImage()

Categories

(Core :: Graphics: Layers, defect)

41 Branch
defect
Not set
critical

Tracking

()

VERIFIED FIXED
mozilla42
Tracking Status
firefox41 --- fixed
firefox42 --- fixed

People

(Reporter: smichaud, Assigned: smichaud)

Details

(Keywords: crash, regression, topcrash-mac)

Crash Data

Attachments

(1 file)

https://crash-stats.mozilla.com/signature/?date=%3E%3D2015-05-01&signature=mozilla%3A%3Alayers%3A%3ASharedPlanarYCbCrImage%3A%3A%7ESharedPlanarYCbCrImage%28%29

These crashes take place on OS X and Windows (at least), here:

https://hg.mozilla.org/mozilla-central/annotate/e7e69cc8c07b/gfx/layers/ipc/SharedPlanarYCbCrImage.cpp#l40

This is in code added by bug 1144906, which landed on the trunk on 2015-06-04.  The crashes started shortly afterwards.  They have relatively low volume on Windows, but on the Mac they're a topcrasher on the 42 branch.
Version: unspecified → 41 Branch
Attached patch Null checkSplinter Review
These crashes are null dereferences.  mTextureClient is null at the following line:

ADDREF_MANUALLY(mTextureClient);

So the simplest way to fix them is to add a null check.  I'm not sure it's the best way, though.

Jeff, I'm asking you to review this because you're the author of the code I'm changing (of the patches for bug 1144906).  Please feel free to pass the review along if you think that's appropriate.

If my null check *isn't* the best way to fix this bug, then we'll need to find someone else to take it -- I know very little about the code I'm patching :-)

I've started a set of tryserver builds for this patch:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=095c43738d4a
Attachment #8630559 - Flags: review?(jgilbert)
Crash Signature: [@ mozilla::layers::SharedPlanarYCbCrImage::~SharedPlanarYCbCrImage() ]
Attachment #8630559 - Flags: review?(jgilbert) → review+
Assignee: nobody → smichaud
https://hg.mozilla.org/mozilla-central/rev/2e96e63c2db4
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla42
There aren't any more of these crashes on the 42 branch since my patch landed (in builds containing my patch).
Status: RESOLVED → VERIFIED
Comment on attachment 8630559 [details] [diff] [review]
Null check

Approval Request Comment
[Feature/regressing bug #]: 1144906
[User impact if declined]: Mac topcrash
[Describe test coverage new/current, TreeHerder]: Baked for a week on m-c
[Risks and why]: Very low risk -- added a null check
[String/UUID change made/needed]: None
Attachment #8630559 - Flags: approval-mozilla-aurora?
Comment on attachment 8630559 [details] [diff] [review]
Null check

Seems safe and stable, let's uplift to Aurora.
Attachment #8630559 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: