Hi,
i've fixed the problems i had with freetype. The problem was that
Poppler/Fontconfig where calling the wrong version of freetype.
I'm using Qt/E which makes use of freetype by statically linking to
a certain version of freetype (i wasn't aware of this). Poppler and
fontconfig use the
Frank Meerkoetter a écrit :
Quoting david turner [EMAIL PROTECTED]:
Hello,
the cmap-clazz value is definitely wrong, and there is no way the
charmap was built
with it. In other words, the field has been rewritten after creation of
the charmap !!
Can you re-run the program but set a watch on
Quoting david turner [EMAIL PROTECTED]:
Hi,
Can you put a watchpoint on the cmap's clazz field to detect where it
is over-written ?
Really, it should give us meaningful information.
I'm not sure if i understand correctly what you wan't me to do.
The crash happens directly after cmap becomes
Quoting david turner [EMAIL PROTECTED]:
Hello,
the cmap-clazz value is definitely wrong, and there is no way the
charmap was built
with it. In other words, the field has been rewritten after creation of
the charmap !!
Can you re-run the program but set a watch on the fields's memory
address ?
Sorry, I should have been more accurate.
You should set the watchpoint just after the creation of the FT_CMap
object (this happens in FT_CMap_New in src/base/ftobjs.c). there is
code like this:
if ( !FT_ALLOC( cmap, clazz-size ) )
{
cmap-charmap = *charmap;
cmap-clazz = clazz;
Quoting david turner [EMAIL PROTECTED]:
Hi,
thanks for your explanation.
It seems that FT_CMap_New() isn't called at all.
(gdb) b 'FT_CMap_New'
Function FT_CMap_New not defined.
Make breakpoint pending on future shared library load? (y or [n]) y
Breakpoint 1 ('FT_CMap_New') pending.
(gdb) r
Hello Frank,
Frank Meerkoetter a écrit :
Hi,
(gdb) frame 1
#1 0x409eb304 in FT_Get_Next_Char (face=0x4bb90, charcode=0,
agindex=0xbefff738) at ftobjs.c:2436
2436 gindex = cmap-clazz-char_next( cmap, code );
(gdb) l
2431{
2432 FT_UInt32 code =
Ahh,
your version of FontConfig is accessing internal fields of FreeType,
and you probably have a version of FreeType installed on your system
that is more recent than the one fontconfig was compiled with.
this also explains the parameter insanity.
try installing fontconfig-2.3.93 or higher,
A segfault happens in this function:
TT_Access_Glyph_Frame( [...]
which is called from (a fontconfig function):
GetScriptTags( [...]
if (( error = tt_face-goto_table( tt_face, tabletag, stream, 0 ) ))
return error;
#0 TT_Access_Glyph_Frame (loader=0x40b1219c,