Red Hat Bugzilla – Bug 177904
Pango-ERROR **: file basic-fc.c: line 347 (basic_engine_shape)
Last modified: 2007-11-30 17:11:21 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20051215 Fedora/1.7.12-3
Description of problem:
evolution crashes on some asian spam mails I seem to get a lot of, reproducable standalone pango test case attached
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. gcc -g pango-test.c `pkg-config --cflags gtk+-2.0 --libs gtk+-2.0`
Actual Results: valid is 1
pLayout is 92b4c78
text is 倉田京子 <firstname.lastname@example.org>
Pango-ERROR **: file basic-fc.c: line 347 (basic_engine_shape): assertion failed: (face != NULL)
Expected Results: no assert/crash
affects evolution a lot for me
Created attachment 123232 [details]
fonts-japanese needs to be installed to see the crash
I have fonts-japanese installed, and still don't see the crash...
I had similar although not quite the same issues.
The problem was the rename of the directory containing the files. It used to be
ja, now it's japanese (and similar for korean and chinese). rpm removed the
font files but the fc caches remained. fontconfig is broken enough to find
those caches, tries to load the fonts, which fails, and then frees the fonts
anyway. The freeing is what causes trouble for me.
In this case here it's likely just the loading part: font found in cache, the
load is expected to work but doesn't.
$ rpm -q fontconfig
$ gcc -g pango-test.c -o pango-test `pkg-config --cflags gtk+-2.0 --libs gtk+-2.0`
pango-test.c: In function âmainâ:
pango-test.c:36: warning: assignment makes pointer from integer without a cast
[sangu@sangu ~]$ ./pango-test
valid is 1
pLayout is 9e74458
text is åç°äº¬å <email@example.com>
line count is 1
Is this problem Fixed in fontconfig-2.3.93.cvs20060124-1?
Please see also bug 176409 .
Looks like it, doesn't it ?
Well, what Ulrich explains may be one case. Now that you say fonts-japanese,
makes me believe it's the bug that I tracked down today.
The symptom was that a bunch of fonts shipped with Fedora, when chosen in the
font dialog in gedit for example, crash it. They typically have three letter
lowercase names. The one I test with is called "sys", and is actually this file:
It's a completely another issue that why are we shipping bitmap fonts in
/usr/share/fonts, but anyway. I debugged it a few hours ago and seems like the
pproblem is that the font contains 0x0 glyphs, and cairo has a bug with bitmap
0x0 glyphs, causing a crash. I have reported the bug here:
And the crash I was getting was indeed in the same place as reported in this
bug. So I believe that's the cause. This is going to be fixed soon and hit
cairo 1.2, and I'm planning to require cairo 1.2 for pango 1.12, so it should be
fixed in FC5...