ITK icon indicating copy to clipboard operation
ITK copied to clipboard

Mesh Write in Binary mode fails in Linux with post2 python wheels

Open PranjalSahu opened this issue 1 year ago • 2 comments

Writing mesh in binary mode fails when using 5.3rc4.post2 wheels.

Description

Getting segmentation faults with messages such as:

  • free(): corrupted unsorted chunks
  • corrupted size vs. prev_size

Steps to Reproduce

Install itk 5.3rc4.post2 using pip.

Expected behavior

Actual behavior

Reproducibility

Versions

Environment

Additional Information

PranjalSahu avatar Aug 02 '22 02:08 PranjalSahu

Is there data/script to reproduce this issue?

thewtex avatar Aug 09 '22 13:08 thewtex

The following test when used with binary flag fails.

https://github.com/InsightSoftwareConsortium/ITK/blob/0fcfaf1288928a76c3ef2b3fcc8b6e53246bfbba/Modules/IO/MeshVTK/test/CMakeLists.txt#L35

itk_add_test(NAME itkPolyLineReadWriteTest02
      COMMAND ITKIOMeshVTKTestDriver itkPolylineReadWriteTest
      DATA{Baseline/hollow.vtk}
      ${ITK_TEST_OUTPUT_DIR}/hollow.vtk
)

Fix for this issue is ready in https://github.com/InsightSoftwareConsortium/ITK/pull/3526. I am looking at other commented tests that were failing before. https://github.com/InsightSoftwareConsortium/ITK/pull/3526 fix did not solve all of them.

PranjalSahu avatar Aug 09 '22 15:08 PranjalSahu