Crash in vtkIntersectionPolyDataFilter - problem with a minimal example
Find a minimal example attached to this issue. It tries to combine two input surfaces with vtkIntersectionPolyDataFilter
. The input surfaces are overlapping, manifold and seem to have a proper mesh.
Two possible behaviors have been observed:
- Crash in case source2 is kept open. (
failingWithCrash.py
) - Error messages in case source2 is closed. (
failingWithError.py
)
The crash occurs not always on my machine. Depending whether a (large), unrelated import is placed before the computation, the crash occurs reproducibly or only error messages are shown. These sometimes-crashes indicates that something is broken with memory accesses.
If the crash does not occur, warnings are shown, but the result still looks okay (closed line, see screenshot).
If one of the sources is slightly translated by bit, also the warning disappears. (slightlyDisplaced.py
)
The VTK version in use: the official vtk-8.1.0, built from source for python3.6. System: MacOS 10.11.6