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 137550 - Program exits when browsing fonts
Program exits when browsing fonts
Status: RESOLVED DUPLICATE of bug 101856
Product: GIMP
Classification: Other
Component: Tools
1.x
Other Windows
: Normal major
: ---
Assigned To: GIMP Bugs
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2004-03-18 01:10 UTC by ost2life
Modified: 2004-03-28 19:55 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description ost2life 2004-03-18 01:10:54 UTC
Using the text tool in The GIMP 2.0pre4 for windows with GTK2 installed on
windows xp the program unexpectedly exits, it only occurs when attempting
to scroll up or down the font list, in all view modes. and rescanning for
fonts has no effect on it. makes using text in any font other than arial
nigh on impossible
Comment 1 Pedro Gimeno 2004-03-26 12:03:05 UTC
I'm experiencing the same problem too. Deleting C:\Documents and 
settings\<your_user_name>\.fonts.cache-1 works for one single session; if the 
file exists when gimp starts up, it exits. Note that it is recreated every time 
you run gimp, so as a temporary workaround you can create a batch file to 
invoke gimp which first deletes that file and then launches the app.

Reproduced in 2.0.0 and 1.3.22. This may be a duplicate of some other bug but I 
can't find one that is appropriate. Looks like a fontconfig issue.
Comment 2 Sven Neumann 2004-03-26 14:13:02 UTC
Perhaps someone could investigate what is actually creating the cache file. GIMP
doesn't do that, so the problem might be in whatever the win32 installers does
when starting GIMP.
Comment 3 Pedro Gimeno 2004-03-27 02:01:31 UTC
Perhaps the cache file is generated as a result of the fix for bug #110798. To
me it sounds that scanning 2000+ font files would be extremely slow if not cached.
Comment 4 Jason Malinowski 2004-03-28 03:11:07 UTC
I hope I don't do anything wrong here...first bugzilla post for any program. :-
) Sadly I'm not familiar with GIMP architecture, so I can only apply general 
hacking knowledge I've gained.

After deleting the font cache file as mentioned above, it still caused errors, 
but I was at least able to capture what was being dumped to the console. For 
record I'm using Windows 98 SE, which I'm aware isn't officially supported, but 
I hope that this might be useful nonetheless (but fixing this might be 
desireable due to it's impact -- not being able to switch fonts is a big 
problem!) I'm using GIMP version 2.0.0, GTK version 2.2.4. I didn't install 
Wimp per instructions on the FAQ at 
http://www2.arnes.si/~sopjsimo/gimp/faq.html to avoid the errors.

One temporary (but quite ugly solution) I've tried is deleting font cache 
entires for fonts causing crashing in the font cache file. The GIMP didn't add 
the fonts back in (should it have?), so if I can just find a way to identify 
what fonts are causing problems then I could hack together an app to at least 
patch the file to allow GIMP to be stable. Not pretty, but it might work!

The entry for one of the fonts listed in the font cache (one apparently causing 
the problems) is:

"C:\\WINDOWS\\fonts\\ANDMOIPA.TTF" 0 904004414 "Andale Mono 
IPA:style=Regular:slant=0:weight=80:width=100:spacing=100:foundry=monotype:index
=0:outline=True:scalable=True:charset=  T!B;|U>x<e$WCdV P0oWU !BB0>!!!%#  !!
rW+     :lang=:fontversion=65536"

The dump of the console follows. There are three errors per bad font, some of 
the messages are from other fonts. It's cut off, as the Win 98 console doesn't 
scroll. :-(

** (gimp-2.0.exe:4294334953): WARNING **: Error in FT_Set_Char_Size: 23

** (gimp-2.0.exe:4294334953): WARNING **: Unable to load unicode charmap from 
font file C:\WINDOWS\fonts/msgeonb1.ttf

** (gimp-2.0.exe:4294334953): WARNING **: Unable to open font file 
C:\WINDOWS\fonts/msgeonb1.ttf for font Arial Narrow Special G1 Bold 16, falling 
back to C:\WINDOWS\fonts/VGA850.FON

** (gimp-2.0.exe:4294334953): WARNING **: Error in FT_Set_Char_Size: 23

** (gimp-2.0.exe:4294334953): WARNING **: Unable to load unicode charmap from 
font file C:\WINDOWS\fonts/ANDMOIPA.TTF

** (gimp-2.0.exe:4294334953): WARNING **: Unable to open font file 
C:\WINDOWS\fonts/ANDMOIPA.TTF for font Andale Mono IPA 16, falling back to 
C\WINDOWS\fonts/VGA850.FON

** (gimp-2.0.exe:4294334953): WARNING **: Error in FT_Set_Char_Size: 23
Comment 5 Sven Neumann 2004-03-28 12:04:44 UTC

*** This bug has been marked as a duplicate of 101856 ***
Comment 6 Pedro Gimeno 2004-03-28 19:52:11 UTC
The crash reported here may not be related to the warnings, which are indeed due
to bug #101856. Reopening until we can be sure about the cause. I'd say it may
be related to bug #132366 instead.
Comment 7 Sven Neumann 2004-03-28 19:55:38 UTC
Since the bug reporter said that the crash happens when scrolling in the font
list, it is very certain that we have a duplicate of bug #101856 here.

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