1833792 Members
2143 Online
110063 Solutions
New Discussion

gui application error

 
Daniel_25
Advisor

gui application error

My system is HP-UX 11 on L2000
Usually when I run app such as sam, swinstall, etc ..& display in Xserver (other comp) it works fine.

But now it just hang & it take lot of cpu resource. It 's not just sam, but all app include java app.
Is there any log file that we could find & any solution ?

Thanks
Daniel
14 REPLIES 14
U.SivaKumar_2
Honored Contributor

Re: gui application error

hi,
can you attach the output of top command.
regards,
U.SivaKumar
Innovations are made when conventions are broken
Alex Glennie
Honored Contributor

Re: gui application error

/var/dt/Xerrors !

sounds like your DISPLAY variable is not set or exported correctly.

other places to check : syslog.log & $HOME/.dt/errorlogs.

do you ever see the application GUI or just see a hang ... any errors if you don't start the application in the background (if applicable)

are you su'ing to another user > what happens if you login as root direct and try this ?
Daniel_25
Advisor

Re: gui application error

Hi,..thanks for the respond,..here is what I do :

root@nxdev#echo $DISPLAY
10.1.74.14:0
root@nxdev#
root@nxdev#sam

after this,..its just hang,.even i could not stop the process with ctrl+c

the sam welcome window appear for a moment & then disappear,.but the process still running & take lot of cpu resource

for other app it doesnt display anything but just hang

Oya,..I'm sure my Xserver configuration is OK, cos It works fine with other HP machine


Load averages: 1.58, 1.98, 2.13

Memory: 532348K (201612K) real, 1332860K (1137336K) virtual, 228052K free Page#
1/15

CPU TTY PID USERNAME PRI NI SIZE RES STATE TIME %WCPU %CPU COMMAND
1 pts/te 25483 root 239 20 1144K 1224K run 0:14 77.50 47.53 samx
0 ? 18212 htuser 152 20 14396K 39136K run 0:23 25.89 25.84 java



Alex Glennie
Honored Contributor

Re: gui application error

so what's in the log files we suggested you take a look at ?

Also on what are you displaying the sam gui, I suspect it's not the L-class as they rarely have a graphics card installed so my guess is it's a PC or xterminal .....

10.1.74.14 - what is this system ? is it listed in /etc/hosts on the L-class and are you using DNS ? I'd also check nslookup of 10.1.74.14 works OK too !

does xlock -display 10.1.74.14:0 work at all ?

possibly this could be fonts ? depends on errors found .....

Daniel_25
Advisor

Re: gui application error

Hai Alex,
There're nothing information on that log files,.. I also executed as root
Oh ya, I already try to use Xwin32 or use Xserver in my Linux machine to display the application but failed :-(
It's weird

Thanks
Alex Glennie
Honored Contributor

Re: gui application error

OK no errors .... xclock did that work and on which Xserver are you trying to display it to/on ... sounds like a linux system ..... if yes this could be font related .....
Daniel_25
Advisor

Re: gui application error

Hi Alex,
10.1.74.14 is my workstation.
for xclock it's work fine ,...:-)

root@nxdev#xclock -display 10.1.74.14:0
Warning: Missing charsets in String to FontSet conversion
Warning: Unable to load any usable fontset

root@nxdev#more /var/dt/Xerrors
root@nxdev#
also for /.dt/errorlogs

Regards
Daniel
Alex Glennie
Honored Contributor

Re: gui application error

First of ALL ensure your locale/LANG is set to C, if that's OK or still does not work ......

I'd set up xfs on your hp workstation : see below

EDIT: /etc/X11/fs/config

Append ",/usr/dt/config/xfonts/C" to the end of the
"catalogue = ..." line

EDIT: /etc/rc.config.d/xfs

Set the following variable: "RUN_X_FONT_SERVER=1"

EXECUTE: /sbin/init.d/xfs start

If the font-server is already running, kill it and
restart it.

2 - Force CDE to add the font-server to the X-Server font-path
by editing the Xsetup file. (NOTE: This steps REQUIRES
the IP address of the CDE session server. You can get
this information by running: nslookup `hostname`.)

COPY: /usr/dt/config/Xsetup to /etc/dt/config/Xsetup
EDIT: /etc/dt/config/Xsetup

Add the following line to /etc/dt/config/Xsetup replacing
"IPADDRESS" with the IP address of the server as returned
from "nslookup `hostname`":

$XDIR/xset fp+ tcp/IPADDRESS:7000 1>/dev/null

if this fails to resolve run xset -q and xrdb -q and post the outputs .... I'm off to lunch back shortly .... it's looking like fonts as xclock does not require them and the errors wrt missing char sets you reported are also font related.
Daniel_25
Advisor

Re: gui application error

Alex,..sorry if i make u confuse

My workstation is win2000 / linux redhat 7.2
I think the problem is not on Xserver on my workstation, because before I could display any application from the same server or ??

Also my Xserver on my workstation has no problem to display any application from another HP server ( same HP UX-11 L2000 )

Or u want me to do that setting on Xserver ( on HP server ) ?


Regard
Daniel
Alex Glennie
Honored Contributor

Re: gui application error

Things are clearer now. OK ....

setup xfs on the L-class server as per my earlier post.

when you log onto your linux system run the following within a terminal (gnome-term)

xset +fp tcp/IPADDRESS:7000 where the IPADDRESS = the L-class.

then run sam ? what's the result ?
Bill Hassell
Honored Contributor

Re: gui application error

The reason to use HP-UX as a font server is that there are thousands of Xwindow fonts and there is no simple way to insure that the programs will do the right thing is a requested font is not available from the display server. A good programmer would check on the desired font and if not found, use a very basic font that all display server probably have.

The only way to avoid font issues is to have the application clients supply the fonts to your display server. This may solve the hang, but also make sure you don't have any other copies of SAM or other Xwindow programs looping around. kill -9 or rebooting the display server is a good way to create Xwindow hangs. Make sure any leftover programs are terminated.


Bill Hassell, sysadmin
Daniel_25
Advisor

Re: gui application error

Still hang :-(

what I did :
on the HP server : set RUN_X_FONT_SERVER=1 & cek /etc/X11/fs/config ( as Alex solution no. 1 )
restart the xfs


on linux :
xset fp+ tcp/ip_hp_server:7000

then back to HP :
set DISPLAY variable to linux
start sam

I don't think it's font problem because before it's *work fine*

Any other posibility ?
Alex Glennie
Honored Contributor

Re: gui application error

This is hard work for no points ;)
on the linux system :
can u run xset -q and xrdb -q and post the outputs

also look for an Xserver logfile : I think it's /lib/X11/XErrorDB under linux.
Daniel_25
Advisor

Re: gui application error

Oh ya,..also already try to reboot the machine but still have the same problem.
Any HP application, including other ( java gui app ) could not show.
I don't know what HP application related with this problem...if needed it's ok to reinstall the app
but it's imposible to reinstall the whole os :-p