[vtkusers] Re: Offscreen Rendering

Miguel Angel Martin Fernandez vtk at helios.tel.uva.es
Wed Oct 3 07:43:25 EDT 2001


Hi again!

I have just noticed that, in order for my remote-offscreen-rendering to
work i need to actually be logged in to my desktop on the remote computer 
as i run it, and not to re-compile it locally.

Does this make any sense or am i doing something wrong???






On Wed, 3 Oct 2001, Miguel Angel Martin Fernandez wrote:

> 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
> 
> _______________________________________________
> This is the private VTK discussion list. 
> Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
> 

-- 
            ________________________________________________________
  _________(_                                                      _)_________
  \········(_   Miguel Ángel Martín Fernández                      _)········/
   \·······(_   ETSI Telecomunicación, Universidad de Valladolid   _)·······/
    \······(_   Campus Miguel Delibes, Camino del Cementerio, s/n  _)······/
     )·····(_   e-mail: miguel at atenea.tel.uva.es                   _)·····(
    /······(_   Tfno: +34-983-423000 Ext. 25548                    _)······\
   /·······(________________________________________________________)·······\
  /__________)                                                 (_____________\
                                                        




More information about the vtkusers mailing list