[vtkusers] Xlib: unexpected async reply (sequence 0x2b1a)
Mathieu Malaterre
mathieu.malaterre at gmail.com
Wed Sep 12 11:14:52 EDT 2007
Hi Carl (aka Henrik),
Could you please log that as a bug report at:
http://vtk.org/Bug
Thanks
-Mathieu
On 9/12/07, Carl Westerberg <henrik.westerberg at crg.es> wrote:
>
>
>
>
> Hello vtkusers,
>
> I believe I have resolved my issue with threading in VTK/Java/X.
>
> I added a method to vtkPanel.java to remove all actors in a scene:
>
> public void removeProps() {
> Lock();
> ren.RemoveAllViewProps();
> UnLock();
> }
>
> Recompiled VTK and now I no longer get any async errors, well after about
> 10mins of testing anyway.
>
> So I use
>
> renWin.removeProps();
>
> rather than
>
> renWin.GetRenderer().RemoveAllViewProps();
>
> where renWin is a vtkCanvas.
>
> regards,
>
> Henrik
>
>
>
> -----Original Message-----
> From: vtkusers-bounces+henrik.westerberg=crg.es at vtk.org on
> behalf of Henrik Westerberg
> Sent: Mon 8/27/2007 6:06 PM
> To: vtkusers at vtk.org
> Subject: [vtkusers] Xlib: unexpected async reply (sequence 0x2b1a)
>
>
> Hello vtkusers,
>
> I am getting a lot of these types of errors in my Java/VTK app:
>
> Xlib: unexpected async reply (sequence 0x2b1a)
>
> I have tried using methods from vtkPanel/vtkCanvas where possible
> but sometimes it is necessary to use vtk functions which may
> interact with the renderer. i.e:
>
> renWin.GetRenderer().RemoveAllViewProps();
> renWin.GetRenderer().AddActor(aActor);
>
> using vtkCanvas and vtkPanel:
>
> renWin.resetCamera();
> renWin.Render();
>
> where renWin is a vtkCanvas.
>
> I need to be able to interactively take actors in and out of the scene, and
> I suspect it is the RemoveAllViewProps() which is causing the problems.
> Also
> I cannot use Lock and Unlock provided in vtkPanel as they are protected,
> is
> this an avenue worth looking into?
>
> I am using VTK 5.1, Java 1.6, X 6.8.2, RH5.5
>
> any pointers would be appreciated,
>
> Henrik
>
>
>
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
--
Mathieu
More information about the vtkusers
mailing list