Closed Bug 394384 Opened 17 years ago Closed 17 years ago

"ASSERTION: Textrun was not completely removed from the cache" with non-breaking hyphen

Categories

(Core :: Graphics, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: jruderman, Assigned: roc)

References

Details

(Keywords: assertion, testcase)

Attachments

(2 files, 1 obsolete file)

Attached file testcase
If I load the testcase and then quit Firefox (Cmd+Q), I see:

###!!! ASSERTION: Textrun was not completely removed from the cache!: 'aTextRun->mCachedWords == 0', file /Users/jruderman/trunk/mozilla/gfx/thebes/src/gfxTextRunWordCache.cpp, line 560

I think the was the testcase is displayed is wrong, too.  Shouldn't there be a space between the non-breaking hyphen and the 'A'?
This can lead to hard-to-diagnose crashes
Assignee: nobody → roc
Flags: blocking1.9?
The rendering is correct. CR characters are not linefeeds and do not get converted to spaces. We make them invisible zero-width characters.
Attached patch fix (obsolete) — Splinter Review
This is just an accounting error. We're counting a word in the textrun as referenced by the cache when it's actually not.
Attachment #279057 - Flags: review?(vladimir)
Attached patch fixSplinter Review
This is just an accounting error. We're counting a word in the textrun as referenced by the cache when it's actually not.
Attachment #279058 - Flags: review?(vladimir)
Attachment #279058 - Flags: approval1.9?
So this bug can't actually lead to hard-to-diagnose crashes?
Attachment #279058 - Flags: review?(vladimir)
Attachment #279058 - Flags: review+
Attachment #279058 - Flags: approval1.9?
Attachment #279058 - Flags: approval1.9+
Attachment #279057 - Attachment is obsolete: true
Attachment #279057 - Flags: review?(vladimir)
This assertion, in general, points to hard-to-diagnose crashes occurring later. In this case, however, the assertion was firing spuriously so this testcase will not lead to crashes.
checked in
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Crashtest checked in.
Flags: in-testsuite+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: