[vtkusers] connection to ":0.0" refused by server
Tom G. Smith (Smitty)
smitty at kcc.com
Thu Oct 24 15:08:43 EDT 2002
As I said in my original post (see below) I have no trouble running
any other X client in this environment. I'd already tried
"xhost +myhost" but as a last resort; I wouldn't have expected it to
make any difference. My display is -
bash-2.05a$ echo $DISPLAY
myhost:11.0
*not* ":0.0". Perhaps the real question should be, why is vtk partially
ignoring my $DISPLAY value? Ssh is listening on port 11 on myhost.
It captures all of the X Client output, sending it back to my real
host in its own encrypted tunnel.
BTW, I tried this -
export TCLLIBPATH=/contrib/vtk/VTK/Wrapping/Tcl
vtk -display $DISPLAY \
/contrib/vtk/VTK/Examples/Modelling/Tcl/hello.tcl
which gives me a grey-filled window labeled "vtk," no "Hello" graphic,
no interaction, nada, and the only way I've found to get rid of it
is to press Ctrl-C. If I leave off the -display -
export TCLLIBPATH=/contrib/vtk/VTK/Wrapping/Tcl
vtk /contrib/vtk/VTK/Examples/Modelling/Tcl/hello.tcl
I get the "Hello" graphic, and I can interact with it, rotating,
zooming, etc, just like I can with VTK 3.2. But I get this message
at startup (Note that :0.0 is *NOT* my $DISPLAY value) -
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
and when I press "q" to exit, I get a segmentation fault.
On Thu, 24 Oct 2002, John Balster wrote:
> >I get the "Hello" graphic, and I can interact with it (rotate, zoom, etc.).
> >But I also get this error:
> >
> > Xlib: connection to ":0.0" refused by server
> > Xlib: No protocol specified
>
> Did you execute an xhost command on the computer you are trying to open
> the display on to tell it to allow windows to be opened? This has to be
> done even if it's on the same machine that's running VtK. For instance,
> if your machine is called kcc, you would use "xhost + kcc" to tell it to
> allow windows from kcc. From a security point of view, I don't recommend
> using "xhost +" as that would open up windows creation to any computer in
> the world.
>
> John
Original post to vtkusers at public.kitware.com:
>From smitty at random.kcc.com Thu Oct 24 12:09:29 2002
Date: Thu, 24 Oct 2002 12:08:23 -0500 (CDT)
From: "Tom G. Smith (Smitty)" <smitty at random.kcc.com>
To: vtk mailing list <vtkusers at public.kitware.com>
Cc: Chris Pieper <Chris.Pieper at kcc.com>
Subject: connection to ":0.0" refused by server
Hello vtkusers at public.kitware.com,
I got past the initial error (GLX missing, see attached (BTW the
responses from vtkusers were underwhelming :-)) by upgrading to Exceed
3D 7.1, but now when I do -
export TCLLIBPATH=/contrib/vtk/VTK/Wrapping/Tcl
vtk /contrib/vtk/VTK/Examples/Modelling/Tcl/hello.tcl
I get the "Hello" graphic, and I can interact with it (rotate, zoom, etc.).
But I also get this error:
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
and when I press "q" to quit, I get a segmentation fault. I'm running
this remotely via ssh, and my $DISPLAY is set to -
bash-2.05a$ echo $DISPLAY
myhost:11.0
I have no trouble running other X Clients (xterm, xclock, xeyes, MATLAB, etc.)
so I don't believe it's my X Configuration causing this.
------------------------------------------------------------------------------
This e-mail is intended for the use of the addressee(s) only and may contain privileged, confidential, or proprietary information that is exempt from disclosure under law. If you have received this message in error, please inform us promptly by reply e-mail, then delete the e-mail and destroy any printed copy. Thank you.
==============================================================================
More information about the vtkusers
mailing list