AW: AW: [vtkusers] Rendering in a thread causes "Xlib: unexpected async reply"

Stefan Bruckner stefan.bruckner at chello.at
Sat Sep 14 13:48:22 EDT 2002


No, it doesn't work. XInitThreads() returns without error (nonzero
return value) but the behaviour is still exactly the same ...

--
Stefan

Am Sam, 2002-09-14 um 18.47 schrieb Jeff Lee:
> 
> Stefan Bruckner wrote:
> 
> >Why modify vtk_qt? If I call XInitThreads() in my main() before the main
> >widget is created, it's definitely called before any X call is made ...
> >Right?
> >  
> >
> Right.  Does it work?
> 
> >--
> >Stefan
> >
> >
> >-----Ursprüngliche Nachricht-----
> >Von: vtkusers-admin at public.kitware.com
> >[mailto:vtkusers-admin at public.kitware.com] Im Auftrag von Jeff Lee
> >Gesendet: Freitag, 13. September 2002 22:07
> >An: Stefan Bruckner; VTK users list
> >Betreff: Re: AW: [vtkusers] Rendering in a thread causes "Xlib:
> >unexpected async reply"
> >
> >
> >Stefan Bruckner wrote:
> >
> >  
> >
> >>In MY code I don't make X calls at all, this is done in Qt and VTK. I 
> >>suppose hat the QThread class does all the plattform-specific stuff, 
> >>such as this call (at least the Qt documentation suggests that) ...
> >>
> >>    
> >>
> >I meant that you need to call XInitThreads() before any X call is made 
> >in your executable.  This could mean modifying vtk_qt a little :).
> >
> >  
> >
> >>--
> >>Stefan
> >>
> >>
> >>-----Ursprüngliche Nachricht-----
> >>Von: vtkusers-admin at public.kitware.com 
> >>[mailto:vtkusers-admin at public.kitware.com] Im Auftrag von Jeff Lee
> >>Gesendet: Freitag, 13. September 2002 21:51
> >>An: Stefan Bruckner
> >>Cc: vtkusers at public.kitware.com
> >>Betreff: Re: [vtkusers] Rendering in a thread causes "Xlib: unexpected 
> >>async reply"
> >>
> >>
> >>Hi,
> >>you could try calling XInitThreads() before making any X calls in your 
> >>code. -Jeff
> >>
> >>Stefan Bruckner wrote:
> >>
> >> 
> >>
> >>    
> >>
> >>>Hi. I'm using vtk 4.0 and Qt 3.0.5 (utilizing Carsten Kuebler's
> >>>vtk_qt) on a Linux system. I want to perform rendering in a seperate
> >>>QThread.
> >>>But calling the vtkRenderWindow::Render() method results in "Xlib: 
> >>>unexpected async reply" errors.
> >>>
> >>>I have found out that this happens because of X's limited 
> >>>multi-threading support ... From a google search I have seen, that 
> >>>some other people have experienced this behaviour.
> >>>
> >>>Is this possible at all? If yes, can anybody give me a hint how to do
> >>>it? Does it work with current nightly-builds from CVS?
> >>>
> >>>I hope someone can help me with this.
> >>>
> >>>Thanks,
> >>>Stefan Bruckner
> >>>
> >>>   
> >>>
> >>>      
> >>>
> >>_______________________________________________
> >>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
> >>
> >> 
> >>
> >>    
> >>
> >
> >_______________________________________________
> >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
> >
> >
> >
> >  
> >
> 
> -- 
> Jeff Lee <jeff at cdnorthamerica.com>
> Software Engineer
> CD North America
> 21 Lafayette Street, Suite 230
> Lebanon, NH 03766
> Tel:    (603) 643-9993 ext. 109
> Fax:    (603) 643-9994
> 
> 





More information about the vtkusers mailing list