[vtkusers] Rendering in a thread causes "Xlib: unexpected async reply"
Stefan Bruckner
stefan.bruckner at chello.at
Fri Sep 13 16:16:31 EDT 2002
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) ...
--
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
More information about the vtkusers
mailing list