Closed
Bug 647480
Opened 15 years ago
Closed 14 years ago
Crash [@ TextRunWordCache::MakeTextRun] with canvas mozDrawText, mozPathText, mozTextAlongPath
Categories
(Core :: Graphics: Canvas2D, defect)
Core
Graphics: Canvas2D
Tracking
()
RESOLVED
FIXED
mozilla5
People
(Reporter: jruderman, Assigned: MatsPalmgren_bugz)
References
Details
(Keywords: crash, testcase, Whiteboard: [sg:dos])
Crash Data
Attachments
(3 files, 1 obsolete file)
###!!! ASSERTION: Default canvas font is invalid: 'res == NS_OK', file content/canvas/src/nsCanvasRenderingContext2D.cpp, line 2941
(like in bug 637245)
Crash [@ TextRunWordCache::MakeTextRun]
| Reporter | ||
Comment 1•15 years ago
|
||
| Assignee | ||
Updated•15 years ago
|
OS: Mac OS X → All
Hardware: x86 → All
Summary: Crash [@ TextRunWordCache::MakeTextRun] with canvas mozDrawText → Crash [@ TextRunWordCache::MakeTextRun] with canvas mozDrawText, mozPathText, mozTextAlongPath
| Assignee | ||
Comment 2•15 years ago
|
||
mozPathText() and mozTextAlongPath() also crashes without a font.
Accessing the font, eg "ctx.font", asserts:
###!!! ASSERTION: Default canvas font is invalid: 'res == NS_OK',
file content/canvas/src/nsCanvasRenderingContext2D.cpp, line 2941
Assignee: nobody → matspal
Attachment #523873 -
Flags: review?(jfkthame)
| Assignee | ||
Comment 3•15 years ago
|
||
The assertion is bug 637245, which will be fixed by the patch.
Comment 4•15 years ago
|
||
Shouldn't there be a valid default for the font? (10px sans-serif, iirc.) It seems to me like this patch just papers over the problem so that we don't assert or crash, but doesn't actually fix the underlying issue, which is that we apparently don't know how to set up the font without a presshell. We should be fixing that problem, not sweeping it under the carpet, no?
| Assignee | ||
Comment 5•15 years ago
|
||
Try harder to set up a default font.
Attachment #523873 -
Attachment is obsolete: true
Attachment #523873 -
Flags: review?(jfkthame)
Attachment #523909 -
Flags: review?(jfkthame)
| Assignee | ||
Updated•15 years ago
|
Whiteboard: [needs review]
Comment 6•15 years ago
|
||
Comment on attachment 523909 [details] [diff] [review]
fix v2
Looks good to me, thanks.
Attachment #523909 -
Flags: review?(jfkthame) → review+
Updated•15 years ago
|
Whiteboard: [needs review]
| Assignee | ||
Comment 7•14 years ago
|
||
Fixed in Cedar:
http://hg.mozilla.org/projects/cedar/rev/5384e63ae39e
blocking2.0: --- → ?
Flags: in-testsuite+
Whiteboard: [sg:dos] fixed-in-cedar
Comment 8•14 years ago
|
||
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Whiteboard: [sg:dos] fixed-in-cedar → [sg:dos]
Target Milestone: --- → mozilla2.2
We will not be taking this for Macaw. If you disagree, please renominate or
send an email to release-drivers@mozilla.org with additional reasoning.
blocking2.0: ? → -
Updated•14 years ago
|
status-firefox5:
--- → fixed
Updated•14 years ago
|
blocking1.9.2: --- → -
Updated•14 years ago
|
Crash Signature: [@ TextRunWordCache::MakeTextRun]
You need to log in
before you can comment on or make changes to this bug.
Description
•