Canvas2D failed assertion "(uint16_t)x == x" and crash [@SkToU16]

RESOLVED WORKSFORME

Status

()

Core
Canvas: 2D
--
critical
RESOLVED WORKSFORME
5 years ago
a year ago

People

(Reporter: posidron, Assigned: gw280)

Tracking

(Blocks: 1 bug, {assertion, crash, testcase})

Trunk
x86_64
Mac OS X
assertion, crash, testcase
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [skia-upstream][gfx-noted])

Attachments

(2 attachments)

(Reporter)

Description

5 years ago
Created attachment 791279 [details]
testcase

./gfx/skia/src/ports/SkFontHost_mac.cpp:1069

    if (isLion() || isMountainLion()) {
[..]
        // Lion returns fractions in the bounds
*       glyph->fWidth = SkToU16(sk_float_ceil2int(bounds.size.width));
        glyph->fHeight = SkToU16(sk_float_ceil2int(bounds.size.height));


./gfx/skia/src/core/SkDebug.cpp:34

uint16_t SkToU16(size_t x)
{
    SkASSERT((uint16_t)x == x);
    return (uint16_t)x;
}
(Reporter)

Comment 1

5 years ago
Created attachment 791280 [details]
callstack
(Reporter)

Comment 2

5 years ago
user_pref("gfx.canvas.azure.backends", "skia");
user_pref("gfx.canvas.azure.enabled", true);
user_pref("gfx.canvas.azure.accelerated", false);

Tested with https://hg.mozilla.org/integration/mozilla-inbound/rev/6bcbba818727
Assignee: nobody → gwright
(Assignee)

Updated

4 years ago
Whiteboard: [skia-upstream]
Is this still reproducible?
Flags: needinfo?(cdiehl)
Whiteboard: [skia-upstream] → [skia-upstream][gfx-noted]
(Reporter)

Comment 4

a year ago
No, does not reproduce anymore.
Flags: needinfo?(cdiehl)
Closing based on comment 4.
Status: NEW → RESOLVED
Last Resolved: a year ago
Resolution: --- → WORKSFORME
(Reporter)

Updated

a year ago
Blocks: 1289929
You need to log in before you can comment on or make changes to this bug.