Closed
Bug 1283330
Opened 9 years ago
Closed 9 years ago
ASSERTION: xmid should be within [x,XMost()] and the wrapped rect should have the same width
Categories
(Core :: Graphics, defect)
Core
Graphics
Tracking
()
RESOLVED
FIXED
mozilla50
Tracking | Status | |
---|---|---|
firefox50 | --- | fixed |
People
(Reporter: jruderman, Assigned: lsalzman)
References
Details
(Keywords: assertion, testcase, Whiteboard: [gfx-noted])
Attachments
(3 files)
With:
user_pref("layers.enable-tiles", false);
user_pref("layers.force-active", true);
###!!! ASSERTION: xmid should be within [x,XMost()] and the wrapped rect should have the same width: '!xwrap || (xmid > aRect.x && xmid < aRect.XMost() && FuzzyEqual((xmid - aRect.x) + (aRect.XMost() - xmid), aRect.width))', file gfx/layers/Compositor.cpp, line 374
Reporter | ||
Comment 1•9 years ago
|
||
Assignee | ||
Comment 2•9 years ago
|
||
The test case exacerbates lurking floating-point error bugs in DecomposeIntoNoRepeatRects with large coordinates.
The incoming rect has coordinates like (17894492, 0), with width of 1205. But since the coordinates won't fit in the single-precision mantissa, so, for example, aRect.XMost() comes out as 17895696. This error also effects the upper/lower bounds comparisons in the assertion as well as the size validation.
The assertion thus needs to be relaxed a bit to accommodate this.
I looked at also trying to avoid absolute coordinates here throughout the entire function, but since we're passing down these rectangles to D3D/OpenGL, and they will be turned into absolute coordinates for the underlying vertexes before getting transformed to the final coordinate space, we're going to suffer this error behavior downwind anyway if we don't eat the bullet up here in the layers code.
So overall, I decided to just relax the assertion.
Assignee: nobody → lsalzman
Status: NEW → ASSIGNED
Attachment #8774834 -
Flags: review?(nical.bugzilla)
Assignee | ||
Updated•9 years ago
|
Whiteboard: [gfx-noted]
Updated•9 years ago
|
Attachment #8774834 -
Flags: review?(nical.bugzilla) → review+
Pushed by lsalzman@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/c3c3bc22ff72
take floating point inaccuracy into account for assertions in DecomposeIntoNoRepeatRects. r=nical
Comment 4•9 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla50
You need to log in
before you can comment on or make changes to this bug.
Description
•