[ITK-users] [ITK] bug in imageIOFactory
Bradley Lowekamp
blowekamp at mail.nih.gov
Wed May 21 16:15:26 EDT 2014
Hello,
If it's just the HDF5ImageIO module that is causing the threading issue, then have you considered just disabling that ITKModule when building ITK?
You may also be able to explicitly set the ImageIO to the ImageFileReader, so that that IOFactory is not used to determine the ImageIO to use.
Hope that helps,
Brad
On May 21, 2014, at 3:46 PM, Scott Pfeifer <scottfivefour at gmail.com> wrote:
> Hi all,
> I have found what seems to be a bug in IOFactory which seems to be a threading issue. I do not have a fix for it but I have a small program which reproduces the issue. I will attach the files.
>
> The fix I have for the situation is to either put a mutex around all itkIamgeFileReader::Update()'s of assign the ioObject if I already know what sort of image I am dealing with.
> You will have to change the file names to some mhd files you have, if you need me to provide some I can do that.
>
> to make the problem go away here just uncomment line 24 or 32 in ItkTestThreadSupport.cpp
>
> I am running Itk 4.5.2 and boost 1.55
>
> If I can be of any assistance I would be happy to hel p- my stack trace looks like this
>
>
>
> H5MM_xfree()
> H5E_preintf_stack()
> H5E_clear_starck()
> isHdf5()
> HDF5ImageIO::CanReadFile()
> ImageIOFactory::CreateImageIO()>::GeneraterOutputInformation() line 116
> ImageFileReader<itk::image<short,3> itkDefaultConvertPixelTrats<short>
> ProcessObject::UpdateOutputInformation()
> ImageBase<3>::UpdateOutputInformation()
> DataObject::Update()
> ProcessObject::update()
>
> <itkLoadTestMain.cpp><ItkTestThreadSupport.cpp><ItkTestThreadSupport.h>_____________________________________
> 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://www.itk.org/mailman/listinfo/insight-users
> _______________________________________________
> Community mailing list
> Community at itk.org
> http://public.kitware.com/cgi-bin/mailman/listinfo/community
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20140521/251cb552/attachment.html>
More information about the Insight-users
mailing list