[ITK] [ITK-users] Segmentation fault in itkBinaryMask3DMeshSource
Francois Budin
francois.budin at kitware.com
Fri Aug 11 10:44:46 EDT 2017
Hello Mihail,
Thank you for the bug report. I found that there was a limitation in the
current implementation due to the fact that it uses "unsigned short"
variables. I will submit a patch and share it with you for your review. It
should correct your problem. Is it ok to add your data you shared in this
email to the ITK tests?
Thanks,
Francois
On Thu, Aug 10, 2017 at 6:50 PM, Mihail Isakov via Insight-users <
insight-users at itk.org> wrote:
> 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
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.php
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/insight-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20170811/18e8e74a/attachment.html>
-------------- next part --------------
_____________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php
Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/insight-users
More information about the Community
mailing list