[vtk-developers] [VTK 0012756]: xcb error with vtkPanel/Canvas on linux

Mantis Bug Tracker mantis at public.kitware.com
Thu Dec 1 11:10:15 EST 2011

The following issue has been SUBMITTED. 
Reported By:                Luke Dodd
Assigned To:                
Project:                    VTK
Issue ID:                   12756
Category:                   (No Category)
Reproducibility:            have not tried
Severity:                   minor
Priority:                   normal
Status:                     backlog
Project:                    TBD 
Type:                       crash 
Resolution:                 open
Fixed in Version:           
Date Submitted:             2011-12-01 11:10 EST
Last Modified:              2011-12-01 11:10 EST
Summary:                    xcb error with vtkPanel/Canvas on linux
When a vtkPanel is disposed of often an error like the following is given:

[xcb] Unknown request in queue while dequeuing
[xcb] Most likely this is a multi-threaded client and XInitThreads has not been
[xcb] Aborting, sorry about that.
java: ../../src/xcb_io.c:178: dequeue_pending_request: Assertion
`!xcb_xlib_unknown_req_in_deq' failed.

It's fairly non deterministic, but this code seems to reproduce around 50% of
the time:

I've seen this issue occur on many different versions of 64 bit Ubuntu, it was
present in vtk 5.6, 5.8 and recent git checkouts.

As way around this I created a vtk canvas class that uses LWJGL (a java opengl
wrapper) to set up the context and draw to an awt component, and then uses a
tweaked vtkGenericOpenGLRenderWindow to have vtk draw to this context. This
fixed the issue in my actual program, for the test case, and for someone else.

See this thread for details:

And this github: https://github.com/lukedodd/lwjgl-vtkcanvas
Especially the following directory:

(I don't expect any of the code on the git hub to be put into vtk in it's
current form, but hopefully it's hepful in pinning down exactly what's going on)

Issue History 
Date Modified    Username       Field                    Change               
2011-12-01 11:10 Luke Dodd      New Issue                                    

More information about the vtk-developers mailing list