GNOME Bugzilla – Bug 141559
gimp 2.0.1: batang.ttf font redering strangeness (gimp crash)
Last modified: 2004-12-22 21:47:04 UTC
1. Install batang.tff 2. open gimp 2.0.1 create new image 3. Add text to image 4. choose font "Batang" 5. type some characters, i.e. "batang" everything is rendered in BATANG 6. now type "הצ�" or press enter 7. the whole text now is rendered in a different font on the console "** (gimp:2983): WARNING **: Unable to open font file /usr....batang.ttf for font Batang 64, falling back to .... 8. While trying to acquire a screen shot gimp crashed with GLib-ERROR **: gmem.c:140: failed to allocate 16384 bytes aborting... gimp: terminated: Aborted (script-fu:2984): LibGimpBase-WARNING **: script-fu: wire_read(): error ll
Created attachment 27263 [details] rendered in Batang
Created attachment 27264 [details] now a different font
you may download batang.ttf from http://www.ing-steen.se/share/fonts/ttfonts/batang.ttf
I can't reproduce using Pango-1.4.0. That download directory contains many clearly proprietary fonts. (For instance, many of the fonts distributed with Microsoft Windows.) Not knowing the providence of this font, I'd guess it's likely also to be not legally distributable. I would suggest you remove it from your system.
Does this mean, everything works OK on your system? Can you post some rendered image? I downloaded the fonts GulimChe.TTF and msgothic.ttf and could reproduce the behavior even with freetype 2.1.8. These fonts are available on Microsoft's website. With GulimChe the Umlaute הצ� are translated into some japanese characters. Is this intended? What can I do to track down the error?
It all worked as expected for me using Pango-1.4.0 and GIMP-2.0.1. Basically, what needs to be done is to debug the problem the above looks like memory corruption, which is basically impossible to debug hands-off. Running the GIMP under valgrind might be informative. I'll reopen and mark HELPWANTED ... there's nothing I can do here.
It seems to be a memory leak. The reason why it crashes gimp on my machine was a per process virtual memory limit of 300 M (ulimit -v 300000). After releasing this limit, gimp allocs about 600 M for the simple string "BATANG IST EINE NETTE SCHRIFTART". Can you reproduce this memory consumption?
See bug 138882.
Indeed. This looks very much like the same problem as in #138882. *** This bug has been marked as a duplicate of 138882 ***