Closed Bug 822086 Opened 12 years ago Closed 12 years ago

"ASSERTION: Shouldn't be trying to draw with a singular matrix!"

Categories

(Core :: Graphics, defect)

x86_64
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla22

People

(Reporter: jruderman, Assigned: mattwoodrow)

References

Details

(Keywords: assertion, testcase)

Attachments

(2 files, 2 obsolete files)

Attached file testcase
###!!! ASSERTION: Shouldn't be trying to draw with a singular matrix!: '!aMatrix.IsSingular()', file Layers.h, line 732 This assertion was added in bug 810302.
Interesting. We create a matrix for the nsDisplayTransform which isn't singular: (gdb) p newTransformMatrix $2 = (const gfx3DMatrix &) @0x1123d7ce0: { _11 = 2575, _12 = 278, _13 = 3, _14 = 4, _21 = 5153, _22 = 558, _23 = 7, _24 = 8, _31 = 7731, _32 = 838, _33 = 11, _34 = 12, _41 = -1667315.5, _42 = -180007, _43 = -1943.5, _44 = -2590 } and then call NudgeToIntegers on it in ChooseScaleAndSetTransform: (gdb) p transform $3 = { _11 = 2575, _12 = 278, _13 = 3, _14 = 4, _21 = 5153, _22 = 558, _23 = 7, _24 = 8, _31 = 7731, _32 = 838, _33 = 11, _34 = 12, _41 = -1667315, _42 = -180007, _43 = -1943.5, _44 = -2590 } Apparently rounding the _41 value makes this singular. I guess we should check for singularity again at some point and bail out.
Depends on: 846971
Attachment #722515 - Flags: review?(roc)
Right patch this time hopefully
Attachment #722515 - Attachment is obsolete: true
Attachment #722515 - Flags: review?(roc)
Attachment #722524 - Flags: review?(roc)
Comment on attachment 722524 [details] [diff] [review] Bail out if we end up with a singular matrix v2 Review of attachment 722524 [details] [diff] [review]: ----------------------------------------------------------------- Can we avoid adding an extra IsSingular check by removing the existing one?
You mean the one in nsDisplayTransform?
Attachment #722524 - Attachment is obsolete: true
Attachment #722524 - Flags: review?(roc)
Attachment #722627 - Flags: review?(roc)
Depends on: 849676
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla22
Assignee: nobody → matt.woodrow
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: