[vtkusers] VTK Renderer multithread problem
Lodron, Gerald
Gerald.Lodron at joanneum.at
Thu Nov 21 10:38:16 EST 2013
Hi,
No way, it is not allowed to use VTK classes in different threads, the pipeline crashes....
See http://www.vtk.org/Wiki/VTK/FAQ
Thread safety....
Best regards,
-----Ursprüngliche Nachricht-----
Von: vtkusers-bounces at vtk.org [mailto:vtkusers-bounces at vtk.org] Im Auftrag von maaschn
Gesendet: Donnerstag, 21. November 2013 16:34
An: vtkusers at vtk.org
Betreff: [vtkusers] VTK Renderer multithread problem
Hello,
I've got a multithread application in which one thread collects points and fills them into a polydata object which it gets passed in the constructor from the main thread which keeps the pipeline. I am using Qt and a Mutex lock. It nevertheless happens from time to time that my application crashes when the Renderer calls the render funtion. Then there is an unvalid cell id while transversing the polydata. I think it must have something to do with a collision between those two threads. Has some experienced something alike?
Or does someone knows what I could do to get this method threadsafe?
Thanks in advance
Maaschn
--
View this message in context: http://vtk.1045678.n5.nabble.com/VTK-Renderer-multithread-problem-tp5724554.html
Sent from the VTK - Users mailing list archive at Nabble.com.
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers
More information about the vtkusers
mailing list