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 321429 - Crash when default font is unreadable
Crash when default font is unreadable
Status: RESOLVED DUPLICATE of bug 314239
Product: pango
Classification: Platform
Component: general
1.10.x
Other Linux
: Normal minor
: ---
Assigned To: pango-maint
pango-maint
Depends on:
Blocks:
 
 
Reported: 2005-11-14 12:58 UTC by Roland Holder
Modified: 2005-11-22 22:05 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
output of 'ssh -Y USER@HOST strace /opt/gnome/bin/inkscape' (18.63 KB, application/octet-stream)
2005-11-14 22:12 UTC, Roland Holder
Details
output of 'll /usr/X11R6/lib/X11/fonts/truetype', right permissions (30.77 KB, text/plain)
2005-11-14 22:14 UTC, Roland Holder
Details
output of 'll /usr/X11R6/lib/X11/fonts/truetype', wrong permissions (30.77 KB, text/plain)
2005-11-14 22:15 UTC, Roland Holder
Details
output of 'ssh -Y USER@HOST strace /opt/gnome/bin/gimp', right permissions (137.00 KB, application/octet-stream)
2005-11-14 22:19 UTC, Roland Holder
Details
output of 'ssh -Y USER@HOST strace /opt/gnome/bin/gimp', wrong permissions (13.85 KB, application/octet-stream)
2005-11-14 22:20 UTC, Roland Holder
Details

Description Roland Holder 2005-11-14 12:58:14 UTC
Distribution/Version: SuSE 10.0

I use SuSE 10.0. When I wanted to start gimp (but also inkscape) per 'ssh -X
USER@HOST /opt/gnome/bin/gimp', gimp didn't start. The problem was that there
were not world readable truetype fonts installed on the SSH server. Changing the
permission to 744 solved the problem. 
Other programs, not part of gnome, i.e. scribus, xfe an konqueror started
without problems.
Would it be possible to change the behavior of gimp (and inkscape....) so it
starts up also without the right fonts permissions?
Thanks.
Comment 1 Olav Vitters 2005-11-14 13:09:42 UTC
*** Bug 321428 has been marked as a duplicate of this bug. ***
Comment 2 Michael Natterer 2005-11-14 14:34:53 UTC
I don't understand anything.

What exact files have what exact permissions and why is this a problem?
Comment 3 Roland Holder 2005-11-14 15:34:56 UTC
Sorry, once again.
I have truetype fonts in /usr/X11R6/lib/X11/fonts/truetype on the Server where
the application should run. Some of theses fonts were only root-readable. Then I
started gimp from another computer with 'ssh -X USER@HOST /opt/gnome/bin/gimp'.
This didn't work, gimp didn't start. I think it crashed while searchin for
fonts. (There was an error message telling this when running 'strace gimp'.) But
it started after I changed the permissions of the fonts so that they are
readable for all.
Now I wonder why gimp didn't start up, but other, non-gnome-apps, did.
Comment 4 Manish Singh 2005-11-14 16:26:14 UTC
You're going to have to reproduce the problem and tell us the exact error
message, and even better, a stack trace.
Comment 5 Sven Neumann 2005-11-14 20:14:10 UTC
You should also note that GIMP is not going to use any fonts from the X server.
As outlined in http://gimp.org/unix/fonts.html, GIMP uses fontconfig and
freetype to access fonts installed on the system is started on, not from the X
server it is being run on.
Comment 6 Roland Holder 2005-11-14 21:44:03 UTC
Okay. I just changed the permission of verdana* in
/usr/X11R6/lib/X11/fonts/truetype into 744 (can be seen in
ll_truetypes_wrong.txt on rolle.cybton.com, all files are there). Then I started
'ssh -Y USER@HOST strace /opt/gnome/bin/gimp'. The results can be seen in
strace_gimp_wrong_permissions.txt.bz2.
Then I changed the permission back to 744 - ll_truetypes_right.txt. Then gimp
started up - strace_gimp_right_permissions.txt.bz2. I had to pack the
strace-output because it was too large for my modem.
Comment 7 Manish Singh 2005-11-14 22:08:06 UTC
Please attach the files to this bug report.
Comment 8 Roland Holder 2005-11-14 22:12:07 UTC
Created attachment 54749 [details]
output of 'ssh -Y USER@HOST strace /opt/gnome/bin/inkscape'
Comment 9 Roland Holder 2005-11-14 22:14:01 UTC
Created attachment 54750 [details]
output of 'll /usr/X11R6/lib/X11/fonts/truetype', right permissions
Comment 10 Roland Holder 2005-11-14 22:15:32 UTC
Created attachment 54752 [details]
output of 'll /usr/X11R6/lib/X11/fonts/truetype', wrong permissions
Comment 11 Roland Holder 2005-11-14 22:19:30 UTC
Created attachment 54754 [details]
output of 'ssh -Y USER@HOST strace /opt/gnome/bin/gimp', right permissions
Comment 12 Roland Holder 2005-11-14 22:20:08 UTC
Created attachment 54755 [details]
output of 'ssh -Y USER@HOST strace /opt/gnome/bin/gimp', wrong permissions
Comment 13 Roland Holder 2005-11-14 22:21:39 UTC
I'll try it. And I also made a 'strace inkscape' to show you, why I think it's a
fonts permission problem. See the last few lines.
Comment 14 Manish Singh 2005-11-14 22:59:18 UTC
Pango problem. If your default font isn't readable, it crashes. This will happen
with any gtk app, including gtk-demo, so it's nothing that is gimp or inkscape
specific.

The ssh bit doesn't matter also, this will happen on a local machine as well.

Reassigning accordingly
Comment 15 Manish Singh 2005-11-14 23:09:04 UTC
The crash is here:

0xb7ba8f3f in get_face_metrics (fcfont=0x819b090, metrics=0x81a2f78)
    at pangofc-font.c:311
311           metrics->descent = - PANGO_UNITS_26_6 (face->size->metrics.descender);

face is NULL in this case, so pango_fc_font_lock_face (fcfont) is returning
NULL, so pango isn't handling an error return from cairo_ft_scaled_font_lock_face.

Perhaps cairo should have a better error return code for this case as well.
Comment 16 Behdad Esfahbod 2005-11-14 23:43:14 UTC
Humm, isn't it a fontconfig problem?  I believe fontconfig shouldn't return
fonts not readable by the user.
Comment 17 Behdad Esfahbod 2005-11-22 22:05:04 UTC

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