RESOLVED FIXED 53528
ASSERT_NOT_REACHED reached with broken ideograph and system fallback
https://bugs.webkit.org/show_bug.cgi?id=53528
Summary ASSERT_NOT_REACHED reached with broken ideograph and system fallback
James Simonsen
Reported 2011-02-01 13:36:51 PST
ASSERT_NOT_REACHED reached with broken ideograph and system fallback
Attachments
Patch (6.46 KB, patch)
2011-02-01 13:39 PST, James Simonsen
no flags
Patch (6.61 KB, patch)
2011-02-07 20:40 PST, James Simonsen
no flags
Patch (3.43 KB, patch)
2011-02-08 21:47 PST, James Simonsen
no flags
Patch (6.71 KB, patch)
2011-03-01 18:07 PST, James Simonsen
no flags
Patch (7.81 KB, patch)
2011-03-03 16:19 PST, James Simonsen
no flags
Patch (8.12 KB, patch)
2011-03-04 15:25 PST, James Simonsen
no flags
Patch (8.34 KB, patch)
2011-05-23 20:39 PDT, James Simonsen
no flags
James Simonsen
Comment 1 2011-02-01 13:39:51 PST
James Simonsen
Comment 2 2011-02-01 13:45:08 PST
We hit the ASSERT_NOT_REACHED in Font::glyphDataForCharacter() on chromium linux with one of the new layout tests. It seems to happen because we have missing glyphs that we're only able to get by relying on the system fallback. That will update the normal page, but not the corresponding page for broken ideographs, so the assert fails. I'm new to this code, so I'd definitely appreciate your take on it.
David Levin
Comment 3 2011-02-07 13:17:58 PST
Comment on attachment 80818 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=80818&action=review > Source/WebCore/platform/graphics/FontFastPath.cpp:171 > + else if (isBrokenIdeograph(characterFontData, c)) { Why does the previous if check for characterFontData being 0 and this one does not?
Eric Seidel (no email)
Comment 4 2011-02-07 15:10:15 PST
Nevermind evan/tony. This has little to do with cr-lx.
James Simonsen
Comment 5 2011-02-07 20:40:06 PST
James Simonsen
Comment 6 2011-02-07 20:40:20 PST
(In reply to comment #3) > (From update of attachment 80818 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=80818&action=review > > > Source/WebCore/platform/graphics/FontFastPath.cpp:171 > > + else if (isBrokenIdeograph(characterFontData, c)) { > > Why does the previous if check for characterFontData being 0 and this one does not? Good catch. Fixed.
James Simonsen
Comment 7 2011-02-08 21:47:44 PST
James Simonsen
Comment 8 2011-02-08 21:49:58 PST
Comment on attachment 81745 [details] Patch Oops. That last patch was meant for a different bug.
James Simonsen
Comment 9 2011-03-01 18:07:42 PST
James Simonsen
Comment 10 2011-03-01 18:08:42 PST
I updated the patch. I'd appreciate it if one of you guys could take a look.
mitz
Comment 11 2011-03-03 10:58:16 PST
Comment on attachment 84341 [details] Patch This is OK, but I think it would be a lot better to add a BrokenIdeograph value to FontDataVariant and just change the variant to BrokenIdeograph in this case.
James Simonsen
Comment 12 2011-03-03 16:19:22 PST
James Simonsen
Comment 13 2011-03-03 16:20:09 PST
(In reply to comment #11) > (From update of attachment 84341 [details]) > This is OK, but I think it would be a lot better to add a BrokenIdeograph value to FontDataVariant and just change the variant to BrokenIdeograph in this case. Yeah, that turned out nice. I've done that in this patch.
mitz
Comment 14 2011-03-03 16:23:01 PST
Did you mean to flag attachment 84647 [details] for review?
James Simonsen
Comment 15 2011-03-03 16:24:53 PST
(In reply to comment #14) > Did you mean to flag attachment 84647 [details] for review? Yeah, it'd be nice if you took another look.
Build Bot
Comment 16 2011-03-03 20:22:42 PST
James Simonsen
Comment 17 2011-03-04 15:25:55 PST
Adam Barth
Comment 18 2011-05-05 01:35:07 PDT
Comment on attachment 84813 [details] Patch Looks like you did what mitz requested. I'm tempted to mark this R+, but I'm not familiar with this code. Mitz, would you be willing to take another look at this crash fix?
Eric Seidel (no email)
Comment 19 2011-05-23 14:42:18 PDT
Comment on attachment 84813 [details] Patch Looks reasonable to me. Mitz is of course still welcome/encouraged to comment, but this has been up for over a month and looks reasonable.
James Simonsen
Comment 20 2011-05-23 20:39:35 PDT
James Simonsen
Comment 21 2011-05-23 20:40:39 PDT
(In reply to comment #19) > (From update of attachment 84813 [details]) > Looks reasonable to me. Mitz is of course still welcome/encouraged to comment, but this has been up for over a month and looks reasonable. I merged this with the changes to the file since I initially uploaded the patch. I'll land it tomorrow, barring any objections.
WebKit Commit Bot
Comment 22 2011-05-24 15:12:36 PDT
Comment on attachment 94552 [details] Patch Clearing flags on attachment: 94552 Committed r87215: <http://trac.webkit.org/changeset/87215>
WebKit Commit Bot
Comment 23 2011-05-24 15:12:44 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.