[vtkusers] Re: Offscreen Rendering
Miguel Angel Martin Fernandez
vtk at helios.tel.uva.es
Wed Oct 3 05:45:12 EDT 2001
Hi vtkusers!
I am having a problem with vtkOpenGLOffscreenRenderWindow, sometimes when
I compile (on a remote host using telnet) a program that uses it, i get
the following error as i try to run my program:
Xlib: connection to ":0.0" refused by server Xlib: Invalid
MIT-MAGIC-COOKIE-1 key
ERROR: In vtkOpenGLOffscreenRenderWindow.cxx, line 683
vtkOpenGLOffscreenRenderWindow (0x807f478): bad X server connection.
p1_27512: p4_error: interrupt SIGSEGV: 11 rm_l_1_27513: p4_error:
interrupt SIGINT: 2 p0_22175: (2.142237) Trying to receive a message when
there are no connections; Bailing out
The cxx code line involved in this error is:
if (!this->DisplayId) {
this->DisplayId = XOpenDisplay(":0");
if (this->DisplayId == NULL) {
vtkErrorMacro(<< "bad X server connection.\n");
}
However, if I compile the program while I am fisically in front of the
computer (not using telnet) then everything works OK, and i don't get any
erorrs even if i then run it using telnet.
Maybe when I am actually sitting by the computer, then this->DisplayId
does exist, and therefore it doesn't enter that "if"??
Any ideas on how to fix this without having to run around the lab will be
definitely welcome!!!
Thank you very much in advance
Diego Hernando
More information about the vtkusers
mailing list