
There has been 3 independent reports of crashes with some fonts on Windows:
https://sourceforge.net/tracker/?func=detail&atid=604306&aid=1496795... https://sourceforge.net/tracker/index.php?func=detail&aid=1495807&gr... https://sourceforge.net/tracker/index.php?func=detail&aid=1494337&gr...
At least 2 of them are Pango errors, and I suspect the third one is as well. On Linux these fonts seem to work fine.
The problem is that now it crashes as soon as you open the drop-down in the text toolbar, because of auto previews. Previously it only crashed if you clicked specifically on that font in Font dialog list. So now Inkscape _seems_ much more crashy. And judging by the number of the reports, this is going to be a really major problem.
What do we do? Disable previews in drop-down until this is fixed? This is the easiest thing to do, and of course only a partial solution (it will still crash if you select that font).
Or, try to find out what these fonts have in common (something encoding related I guess) and just disable all such fonts.
Or, (most difficult) fix this bug in Pango and ship our own Pango dll (as we do) with this fix.
Thoughts?

Pango appears to have been tweaked in 1.11.3 and above to make this a non-fatal error (http://cvs.gnome.org/viewcvs/pango/pango/shape.c?r1=1.12&r2=1.13). The comments seem to indicate that the font will look ugly, but that's much better than taking all of Inkscape down.
I agree with Bulia about the severity of this problem, and would strongly argue that Pango is upgraded (probably to 1.12.3) for pre1 so we can get some testing to make sure the newer version is good.
Richard.

On 5/29/06, Richard Hughes <cyreve@...400...> wrote:
Thanks a lot Richard for a comprehensive response - I didn't expect the answer so fast :)
Ishmal, can you please prepare a new libraries bundle with this version of Pango? Thanks!

bulia byak wrote:
I'm uploading it now. The new items in the bundle are
pango-1.12.3.zip gtk+-2.8.18.zip
http://inkscape.modevia.com/win32libs/gtk28-060529.7z
bob

pango-1.12.3.zip gtk+-2.8.18.zip
Yep, this stops it dying horribly in the font selector. Instead it just shows a whole row of those 'no glyph' boxes (I'm testing with GeoType TT from bug 1474337).
I've just checked in a fix to stop things crashing when you actually try to render some canvas text with one of the dodgy fonts, but it's still not great. It falls back to Sans for the rasterisation but Pango is still using the extents and character-to-glyph mapping from the real font (which it has failed to read hence are all zeros), so you end up with the wrong characters all on top of each other. But it doesn't crash.
It would be better to detect fonts that aren't going to work earlier so that we can do the entire render with Sans, but that's kind of awkward because we don't know the font that Pango's going to choose until too late. Anyway, this way we get a very visible reminder that it would be nice to fix Pango.
Richard.

On Mon, May 29, 2006 at 11:07:56AM -0400, bulia byak wrote:
For what it's worth, I estimate we're only a few days from being to Hard Freeze, so whatever solution is chosen, it needs to be done expediently. I agree with that this is more critical than we'd expected, due to the number of bug reports. If the feature needs to be disabled in order to avoid increasing Inkscape's crashiness, then that'd probably be a wise thing to do. Of course, eliminating the bug entirely (or even mostly) would be much preferred.
Bryce
participants (4)
-
Bob Jamison
-
Bryce Harrington
-
bulia byak
-
Richard Hughes