My in-situ process run well if I compose simulation iteration and CoProcss function in the main thread. But if I tried to run the CoProcss function (data visualization) asynchronously based on a new thread, I got this error message:
MandelbulbDynamic: .../paraview/VTK/Common/Core/vtkGarbageCollector.cxx:907: static void vtkGarbageCollector::DeferredCollectionPush(): Assertion `vtkGarbageCollectorIsMainThread()' failed.
It looks that I need to define the
VTK_USE_PTHREADS somewhere, but in the vtk documentation (deprecate-vtkconfigure.md), it said that the
VTK_USE_PTHREADS is deprecated, I’m a little bit confused about it.
Thanks a lot for your help!