[vtkusers] Multithreaded VTK application got X Errors

Mo, Huaicai HMo at sjm.com
Thu Jul 10 14:41:14 EDT 2008


Hello,

I have a Qt based VTK application on Linux. The main part of the application is just a loop in which it repeatedly receives new data, uses the new input data to create new geometry, and then update the graphics display. This all works fine, except the part that creates geometry by using the input data is kind of slow. Therefore, the response of user interaction with this GUI application and also the updating rate of the geometry display are too slow to be acceptable.

In order to improve the performance, I tried to put the geometry generation into a separate QThread. The thread waits for new input data to come in, and then compute the geometry, finally emit a signal to notify the main thread that the new geometry is ready. The main thread will use the new geometry to update the graphics display. By the way, the new geometry is represented by "QVector<vtkProp3D*>". The application runs several times of the loop with the right graphics display, and then gets frozen. I'm attaching the error messages that I got at the bottom of this email. 

I'm using Qt4.4, Open sourced version on RedHat 5.2 Enterprise, VTK is 5.04. My graphics card is nVidia Quadro 1500. I'm not sure what do these errors mean. Is there any one have any clue about this problem? I appreciate your time. 

Thank you,
Hank

------------------------------------------------------------------------------------------------------------

X Error: BadAccess (attempt to access private resource denied) 10
  Extension:    128 (Uknown extension)
  Minor opcode: 5 (Unknown request)
  Resource id:  0x360002e
Xlib: sequence lost (0x10000 > 0x164b) in reply type 0x2!
Xlib: sequence lost (0x10000 > 0x164b) in reply type 0x0!
X Error: 0 0
  Major opcode: 0 ()
  Resource id:  0x0
Xlib: sequence lost (0x10000 > 0x164b) in reply type 0x0!
X Error: 0 0
  Major opcode: 0 ()
  Resource id:  0x0
Xlib: sequence lost (0x10000 > 0x164b) in reply type 0x20!
X Error: 0 0
  Major opcode: 0 ()
  Resource id:  0x0
X Error: 0 0
  Major opcode: 0 ()
  Resource id:  0x0
X Error: 0 0
  Major opcode: 0 ()
  Resource id:  0xc0000001
Xlib: sequence lost (0x10000 > 0x164b) in reply type 0x0!
X Error: 0 0
  Major opcode: 0 ()
  Resource id:  0x0
Xlib: sequence lost (0x10000 > 0x164b) in reply type 0x0!
X Error: 0 0
  Major opcode: 0 ()
  Resource id:  0x0
Xlib: sequence lost (0x10360 > 0x164b) in reply type 0x0!
X Error: 0 0
  Major opcode: 0 ()
  Resource id:  0xc0000001
Xlib: sequence lost (0x10021 > 0x164b) in reply type 0x18!
Xlib: sequence lost (0x10016 > 0x164b) in reply type 0x18!
Xlib: sequence lost (0x10000 > 0x164b) in reply type 0x0!
X Error: 0 0
  Major opcode: 0 ()
  Resource id:  0x0
Xlib: sequence lost (0x10000 > 0x164b) in reply type 0x0!
X Error: 0 0
  Major opcode: 8 (X_MapWindow)
  Resource id:  0xbfe2a2a8
Xlib: sequence lost (0x10016 > 0x164b) in reply type 0x18!
Xlib: sequence lost (0x10000 > 0x164b) in reply type 0x0!
X Error: 0 0
  Major opcode: 0 ()
  Resource id:  0x0
Xlib: sequence lost (0x1081f > 0x164b) in reply type 0x9c!
Xlib: sequence lost (0x10021 > 0x164b) in reply type 0x18!
Xlib: sequence lost (0x10016 > 0x164b) in reply type 0x18!
Xlib: sequence lost (0x10000 > 0x164b) in reply type 0x0!
X Error: 0 0
  Major opcode: 0 ()
  Resource id:  0x0
Xlib: sequence lost (0x10360 > 0x164b) in reply type 0x7!
Xlib: sequence lost (0x10000 > 0x164b) in reply type 0x0!
X Error: 0 0
  Major opcode: 0 ()
  Resource id:  0x0
Xlib: sequence lost (0x10000 > 0x164b) in reply type 0x0!
X Error: 0 0
  Major opcode: 0 ()
  Resource id:  0x0
Xlib: sequence lost (0x10000 > 0x164b) in reply type 0x0!
X Error: 0 0
  Major opcode: 0 ()
  Resource id:  0x0
X Error: 0 0
  Major opcode: 0 ()
  Resource id:  0x0
Xlib: sequence lost (0x10000 > 0x164b) in reply type 0x0!
X Error: 0 0
  Major opcode: 0 ()
  Resource id:  0x0
Xlib: sequence lost (0x1081f > 0x164b) in reply type 0x9c!
Xlib: sequence lost (0x10021 > 0x164b) in reply type 0x91!
Xlib: sequence lost (0x10000 > 0x164b) in reply type 0x0!
X Error: 0 0
  Major opcode: 0 ()
  Resource id:  0x0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20080710/c1b5dcac/attachment.htm>


More information about the vtkusers mailing list