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

Stefan Bruckner stefan.bruckner at chello.at
Sat Sep 14 02:04:14 EDT 2002


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?

--
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




More information about the vtkusers mailing list