Closed Bug 743499 Opened 12 years ago Closed 12 years ago

[Azure] Asseration failed: (mCg) [@mozilla::gfx::DrawTargetCG::Init]

Categories

(Core :: Graphics: Canvas2D, defect)

x86_64
macOS
defect
Not set
critical

Tracking

()

RESOLVED FIXED
mozilla14
Tracking Status
firefox12 - wontfix
firefox13 + verified
firefox-esr10 - ---

People

(Reporter: posidron, Assigned: jrmuizel)

References

Details

(Keywords: crash, testcase, Whiteboard: [qa+])

Crash Data

Attachments

(3 files)

Attached file testcase
In: /gfx/2d/DrawTargetCG.cpp:914

[...]
  mCg = CGBitmapContextCreate (mData,
                               mSize.width,
                               mSize.height,
                               bitsPerComponent,
                               stride,
                               mColorSpace,
                               bitinfo);
                   
 
  assert(mCg);
[...]
Attached file callstack
I have no idea how common this is. See bug 745818 for tracking whether we want to turn off CoreGraphics for 12.
I didn't realize Sizes could be negative when originally writing this code.
Attachment #615488 - Flags: review?(bas.schouten)
Attachment #615488 - Flags: review?(bas.schouten) → review+
And we'll wait for enterprises to let us know this is a major pain point before fixing on the ESR.
Crash Signature: [@mozilla::gfx::DrawTargetCG::Init]
Comment on attachment 615488 [details] [diff] [review]
Handle negative sizes

[Approval Request Comment]
Regression caused by (bug #): 692879
User impact if declined: Occasional crashes
Testing completed (on m-c, etc.): test case attached to bug no longer asserts
Risk to taking this patch (and alternatives if risky): none
String changes made by this patch: none
Attachment #615488 - Flags: approval-mozilla-central?
Attachment #615488 - Flags: approval-mozilla-aurora?
Comment on attachment 615488 [details] [diff] [review]
Handle negative sizes

[Triage Comment]
Very low risk, approved for mozilla-central.
Attachment #615488 - Flags: approval-mozilla-central? → approval-mozilla-central+
https://hg.mozilla.org/integration/mozilla-inbound/rev/ec09ab2b6e14
Assignee: nobody → jmuizelaar
Target Milestone: --- → mozilla14
https://hg.mozilla.org/mozilla-central/rev/ec09ab2b6e14
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Comment on attachment 615488 [details] [diff] [review]
Handle negative sizes

[Triage comment]
Please go ahead and land on Aurora.
Attachment #615488 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Comment on attachment 615488 [details] [diff] [review]
Handle negative sizes

[Triage Comment]
Sorry, this is meant for Beta, since it was after the merge.
Attachment #615488 - Flags: approval-mozilla-aurora+ → approval-mozilla-beta+
Whiteboard: [qa+]
I've verified this on:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:13.0) Gecko/20120517 Firefox/13.0 beta debug build

There is no assertion in the console and the build did not crashed.

Setting the flag to verified.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: