GNOME Bugzilla – Bug 540617
Pango-WARNING **: Error loading GPOS table 5503
Last modified: 2009-03-01 11:25:40 UTC
Hi, Carlo Wood reported in Debian bug http://bugs.debian.org/484995: """ While running the command doxygen for my project, which somewhere runs 'dot graph_legend.dot -Tpng:gd -o graph_legend.png', dot prints: Pango-WARNING **: Error loading GPOS table 5503 This occurs because in line pango1.0-1.20.2/pango/opentype/harfbuzz-gpos.c:664, error is set to HB_Err_Invalid_SubTable_Format: 663 default: 664 return ERR(HB_Err_Invalid_SubTable_Format); This is a switch for the variable an->PosFormat in line 575: 575 switch ( an->PosFormat ) an->PosFormat has value 56 at that moment, and was read just before on line 571: 571 an->PosFormat = GET_UShort(); GET_UShort is a macro that depends on stream->cursor stream is at the point: (gdb) p *stream $112 = {base = 0x2b7330d17000 "", size = 465256, pos = 454286, descriptor = {value = 47773740265472, pointer = 0x2b7330d17000}, pathname = {value = 6732768, pointer = 0x66bbe0}, read = 0, close = 0x2b732ee23b90, memory = 0x62b960, cursor = 0x2b7330d85e8e "", limit = 0x2b7330d85e8e ""} The file associated with this stream is: (gdb) p *((char(*)[60])stream.pathname.pointer) $77 = "/usr/share/fonts/truetype/freefont/FreeSans.ttf\000\000\000\000\000\000\000\000\000q\000\000" > dpkg -S /usr/share/fonts/truetype/freefont/FreeSans.ttf ttf-freefont: /usr/share/fonts/truetype/freefont/FreeSans.ttf >dpkg -l ttf-freefont +++-==============-==============-============================================ ii ttf-freefont 20080323-3 Freefont Serif, Sans and Mono Truetype fonts >md5sum /usr/share/fonts/truetype/freefont/FreeSans.ttf 903788b0c6066dc3341fcb8bdd492ddc /usr/share/fonts/truetype/freefont/FreeSans.ttf Backtrace at the moment that the error occurs: (gdb) bt
+ Trace 201602
Let me know if I should for additional information. I'll ask whether he can reproduce with pango-view directly. Bye,
Wow, nice debugging... Please attach the font file to this bug. Providing a pango-view command to reproduce with that font file installed is even better.
Humm, no pango-view needed as this will happen on font load time.
Created attachment 113636 [details] The font file Here's the requested font file.
% pango-view --font=FreeSans /etc/passwd (pango-view:31602): Pango-WARNING **: Error loading GPOS table 5503 % fc-match FreeSans FreeSans.ttf: "FreeSans" "Medium"
Pango trunk parses that file without problem.