I'd appreciate help in explaining the following error from
motif(). I am running Splus 6.0 Release 1 for Sun SPARC, SunOS
5.6 : 2000, on the console of a Sun Ultra-60 machine with Solaris
8 and CDE.
I have always been able to simply type motif() and get a window
for graphs. Recently I updated a new license code. After that
my call to motif() dies with the following error (other things
seem to work fine):
> motif()
X11 Toolkit Error : Can't open display: ps''
Problem in .C("S_send_ps_int",: Current graphics device died:
remove it with dev.off(), while calling subroutine
S_send_ps_int
Use traceback() to see the call stack
It appears as if motif() finds a default display named "ps". But
my call to unix("echo $DISPLAY") shows that the display is
actually ":0.0" and I am able to get a window on the console if I
specify it in motif("-display :0.0").
Tests on other devices suggest that the error comes from the
default of motif() and perhaps S_send_ps_int, not from CDE, the X
server, or my K-shell and its DISPLAY shell variable (which
defaults to ":0.0" anyway). Here are my tests:
1. If I run Splus with "Splus -je" I can get java.graph(). No
need to specify "-display :0.0".
2. I am able to get separate windows when I run help.start() and
help(help, win = T).
3. motif() shows exactly the same error message even when I set
DISPLAY (prior to starting Splus) to a fake IP address, e.g.,
DISPLAY=12.34.56.789:0. Note that if I fake the IP I can only
run Splus with the -e option. Splus reports errors about X11
server when I try "-je" with a wrong IP.
Finally, I attach the traceback() output immediately after a
simple motif(). Many thanks in advance,
Best,
Yuelin.
----------------------------------------
> traceback()
9: eval(action, sys.parent())
8: doErrorAction("Problem in .C(\"S_send_ps_int\",: Current
graphics device died: remove it with dev.off(), while calling
subroutine S_send_ps_int",
7: .C("S_send_ps_int",
6: ps.options.send(force = T)
5: eval(this.call, local = sys.parent(1.))
4: do.call("ps.options.send", opts$matches)
3: pipegraph(name = "motif", pars = as.single(tpar), npars =
length(tpar))
2: motif()
1:
Message: Problem in .C("S_send_ps_int",: Current graphics device
died: remove it with dev.off(), while calling subroutine
S_send_ps_int
|