After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 141559 - gimp 2.0.1: batang.ttf font redering strangeness (gimp crash)
gimp 2.0.1: batang.ttf font redering strangeness (gimp crash)
Status: RESOLVED DUPLICATE of bug 138882
Product: pango
Classification: Platform
Component: general
1.4.x
Other Linux
: Normal normal
: 1.4.2
Assigned To: pango-maint
pango-maint
Depends on:
Blocks:
 
 
Reported: 2004-05-01 13:31 UTC by Peter K. Mueller
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
rendered in Batang (19.58 KB, image/jpeg)
2004-05-01 13:39 UTC, Peter K. Mueller
Details
now a different font (23.14 KB, image/jpeg)
2004-05-01 13:40 UTC, Peter K. Mueller
Details

Description Peter K. Mueller 2004-05-01 13:31:22 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
Comment 1 Peter K. Mueller 2004-05-01 13:39:08 UTC
Created attachment 27263 [details]
rendered in Batang
Comment 2 Peter K. Mueller 2004-05-01 13:40:23 UTC
Created attachment 27264 [details]
now a different font
Comment 3 Peter K. Mueller 2004-05-01 13:54:41 UTC
you may download batang.ttf from
http://www.ing-steen.se/share/fonts/ttfonts/batang.ttf
Comment 4 Owen Taylor 2004-06-21 20:46:02 UTC
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.

Comment 5 Peter K. Mueller 2004-06-25 15:22:57 UTC
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?

Comment 6 Owen Taylor 2004-06-25 15:45:34 UTC
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.
Comment 7 Peter K. Mueller 2004-06-28 21:09:53 UTC
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?
Comment 8 Michael Schumacher 2004-07-16 13:12:14 UTC
See bug 138882.
Comment 9 Sven Neumann 2004-07-16 13:37:37 UTC
Indeed. This looks very much like the same problem as in #138882.

*** This bug has been marked as a duplicate of 138882 ***