Skip to content

Fix crash in `vtkPolyhedron::IsInside` when multithread execution

Continued here: !11265 (merged)

Relates #19182

Fix random crashes in ParaView, especially using the "Resample to Image" filter. This filter calls vtkMath::Random through the vtkPolyhedron::isInside method which is not thread safe.

This is a multi-threading concurrency issue, so hard to test in a reliable way unless you run a code X times hoping to crash. So I haven't written any test, but I can do so if required.

Edited by Léon Victor

Merge request reports

Loading