1838594 Members
3984 Online
110128 Solutions
New Discussion

Re: HP-UX 10.20 & GIMP

 
Charles Harris
Super Advisor

HP-UX 10.20 & GIMP

Dear all,

I'm trying to get gimp (the hpux port) running on one of our HP 9000/800 R class servers without success.

So far with your help (you know who you are!) we have managed to get the xfvs version of X running along with XFS, which all looks okay. The problem is this error when starting gimp :-


** WARNING **: file gdkfont.c: line 115: "font != NULL"

** WARNING **: file gdkfont.c: line 177: "fonta != NULL"

** WARNING **: file gdkfont.c: line 115: "font != NULL"

** WARNING **: file gdkfont.c: line 156: "font != NULL"

** WARNING **: file gdkfont.c: line 156: "font != NULL"

** WARNING **: file gdkfont.c: line 156: "font != NULL"

** ERROR **: BadFont (invalid Font parameter)
serial 58 error_code 7 request_code 55 minor_code 0

./gimp terminated: sigabrt caught
g_error: recursed!

If anyone can help or point me in the right direction (again!) I'd really appreciate it !
10 REPLIES 10
Charles Harris
Super Advisor

Re: HP-UX 10.20 & GIMP

Please help I'm stuck!!!


-ChaZ-
Charles Harris
Super Advisor

Re: HP-UX 10.20 & GIMP

;-(
Charles Harris
Super Advisor

Re: HP-UX 10.20 & GIMP

Please Please Help ?!? Any HP guys / girls want to have a pop?


Cheers,


-ChaZ-
Gregory Fruth
Esteemed Contributor

Re: HP-UX 10.20 & GIMP

Since this a server machine, you're displaying GIMP on
a remote display, right? Just checking.

Use "xset -q" to make sure your font path is set up
correctly to access the X font server. One of the
entries should be "tcp/servername:portno". See the
man page for "X" under "FONT SERVER NAMES".

Charles Harris
Super Advisor

Re: HP-UX 10.20 & GIMP

Thanks for the thought! - xset -q revealed that the font server path wasn't set but unfortunately making the changes didn't make any difference. I still get the same error.
I wondered if I had misconfigured the font server, but I've been through everything again and can see no errors. The only niggle is that in a previous answer to an XFS query, the fix included adding a font.alias file, although it didn't mention where. I stuck it in each font directory just for good measure.

I really don't know what the error is implying, is there a xfs problem or a xvfb config issue?

Again, thanks for the tip so far, any other thoughts or suggestions will be warmly received!!!!!!!

Cheers,


-ChaZ-
Gregory Fruth
Esteemed Contributor

Re: HP-UX 10.20 & GIMP

OK, so this is actually running under xvfb and not on a
remote display (or any real display), right?

To figure out if xvfb the problem, you need to remove
xvfb from the equation. If you have another X-capable
machine on the network, try this (I've assumed your
X-less HP server is called "hp1" and your other machine
is called "hp2"):

(log in to hp2)
% xhost +hp1
% telnet hp1
(log in to hp1)
% setenv DISPLAY hp2:0 # NOTE: use this if you use csh or tcsh
% export DISPLAY hp2:0 # NOTE: use this if you use sh or ksh
% gimp

If you get the same errors, xvfb is not the problem.

To see if your xfs config is the problem, try connecting to
a different xfs server on your network. Hopefully, you have
an HP workstation somewhere; SAM can easily set up the
font server for you. If the other font server works, your xfs
config on hp1 is bad.

On an HP workstation, the xfs config file is
/etc/X11/fs/config. I dunno where it might be on an
HP server. (Presumably you've installed the reference
X implementation or something similar.) At any rate,
check the config file to see how (or if) xfs logging
is set. If it's not enabled, enable it, either to a file or
to syslog (/var/adm/syslog/syslog.log). You'll have
to restart xfs (use "kill -HUP" on the PID) for it to
take effect.

Do a "grep -i font" or "grep -i xfs" on syslog or the log
file to see if xfs is logging any errors.

Every font directory should have fonts.alias and fonts.dir,
and maybe fonts.scale. Use "mkfontdir" to make fonts.dir.
See the man page for "mkfontdir" for a discussion on
these files.

Good luck!
Charles Harris
Super Advisor

Re: HP-UX 10.20 & GIMP

Thanks for the sound advice, I must admit I have tried slimming down the problem in a similar way to your suggestion. Although until you put it in black and white, I didn't realise what the problem was. I am pretty sure it's xvfb's configuration because when I export the DISPLAY=mypc:124 (running exceed Xserver) it works fine. The problem is, I know nothing about xvfb or even where the configuration files are located.

Again, thanks for the help so far, any other pointers or tip / suggestions welcomed!!!!

Cheers,

-ChaZ-
Gregory Fruth
Esteemed Contributor

Re: HP-UX 10.20 & GIMP

Xvfb must have been installed by a system admin at
some point. If they installed the unsupported one from
HP (available at
ftp://xgraphic:xgraphic@hprc.external.hp.com/xgraphic/xgraphic),
the config file is in /etc/rc.config.d/xvfb. Otherwise, use
"find /usr /opt /etc -name '*vfb* -exec ls -lad {} \;" to find
xvfb and its supporting files.

xvfb may have a log file, or maybe it logs to /var/adm/syslog/*,
or maybe /var/dt/Xerrors or something else. Check those
files for errors from xvfb. Do other X clients (e.g. xterm,
xlogo, xclock) work with your xvfb?

This document has further help on setting up xvfb:

http://us-support3.external.hp.com/cki/bin/doc.pl/sid=41e58a02007b707572/screen=ckiDisplayDocument?docId=200000053288261
Charles Slivkoff
Respected Contributor

Re: HP-UX 10.20 & GIMP

Am I missing something? The GIMP is an image-editing tool with similar features as PhotoShop and PhotoPaint. Of what use will it be displayed to the Xvfb X server?

Charles Harris
Super Advisor

Re: HP-UX 10.20 & GIMP

Gregory,

Thanks again for the sterling advice, I have since found the reason for the error, but I'm unable to fix it. Here's the scoop:-

After even more trawling through various documentation, I discovered that the error is caused by the GTK tools installed for running gimp, the error is cause because the standard font is 'missing'. The only problem now is that if I run an xlsfonts it doesn't show up, but if I query my XFS server (Samebox) it does!!
So I think I need to install it as a system font (if that's possible) or reconfigure the Xvfb settings to get all fonts from the xfs server (which I thought it did anyway!)

Again, thanks for all your help!!! - Any pointers on this issue will as always be warmly received!

* The reason I am running gimp via Xvfb is that although gimp is a graphics manipulation package, it can also be used as a GFX server for creating web / gfx content on the fly!!!