[ITK-users] Segmentation fault in itkBinaryMask3DMeshSource
Mihail Isakov
mihail.isakov at googlemail.com
Thu Aug 10 18:50:09 EDT 2017
Hello,
i wonder how i could avoid crash in itkBinaryMask3DMeshSource (actual
version). In most cases the filter works excellent, but some files
bring it to segmentation fault.
r at deb:~/Desktop/test1/build$ ./test1 ../t.mha
Segmentation fault
Debug:
Modules/Core/Mesh/include/itkBinaryMask3DMeshSource.hxx
2343 if ( currentframetmp[i][0] != 0 )
2344 {
2345 m_CurrentFrame[m_CurrentFrameIndex][1] =
currentframetmp[i][1]; <-------------
2346 m_CurrentFrame[m_CurrentFrameIndex++][0] = currentframetmp[i][0];
the value of 'm_CurrentFrameIndex' in debugger is 65000, 'i' is 1
Minimal project with test file is here
https://drive.google.com/file/d/0ByBLJ2-U1t9xUm51d2Mtdzg1ZjQ/view?usp=sharing
Thanks.
Regards,
Mihail
More information about the Insight-users
mailing list