Closed Bug 1229932 Opened 10 years ago Closed 10 years ago

[Skia-update branch] SkRect.h:745: failed assertion "!r.isEmpty()"

Categories

(Core :: Graphics, defect)

defect
Not set
critical

Tracking

()

RESOLVED FIXED
mozilla46
Tracking Status
firefox45 --- affected
firefox46 --- fixed

People

(Reporter: jruderman, Assigned: lsalzman)

References

Details

(Keywords: assertion, regression, testcase, Whiteboard: [gfx-noted])

Attachments

(3 files)

Attached file testcase
Using the Mac build from https://treeherder.mozilla.org/#/jobs?repo=try&revision=91dc4f334fc5 (This does NOT reproduce on mozilla-central because bug 1082598 has not landed yet.) gfx/skia/skia/include/core/SkRect.h:745: failed assertion "!r.isEmpty()"
Attached file stack
The canvas spec allows infs ("unrestricted float") to be passed in to fillText(), though it does not specify what should be done with them. Given that other places in the spec where float values are restricted to finite values, infs cause drawing to be ignored, and an inf offset can be reasonably interpreted here as "offset so far as to not be possibly visible", it seems best to just bail out of rendering text with infinite offsets. Since Skia can't handle this downstream and it probably not being healthy for the other backends either to make them handle infs, this seems better handled in canvas itself.
Assignee: nobody → lsalzman
Status: NEW → ASSIGNED
Attachment #8699151 - Flags: review?(jmuizelaar)
Whiteboard: [gfx-noted]
Attachment #8699151 - Flags: review?(jmuizelaar) → review+
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla46
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: