[ITK-users] bug in imageIOFactory

Scott Pfeifer scottfivefour at gmail.com
Wed May 21 15:46:38 EDT 2014


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()
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20140521/1cecb165/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: itkLoadTestMain.cpp
Type: text/x-c++src
Size: 2041 bytes
Desc: not available
URL: <http://www.itk.org/pipermail/insight-users/attachments/20140521/1cecb165/attachment.cpp>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ItkTestThreadSupport.cpp
Type: text/x-c++src
Size: 1100 bytes
Desc: not available
URL: <http://www.itk.org/pipermail/insight-users/attachments/20140521/1cecb165/attachment-0001.cpp>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ItkTestThreadSupport.h
Type: text/x-chdr
Size: 601 bytes
Desc: not available
URL: <http://www.itk.org/pipermail/insight-users/attachments/20140521/1cecb165/attachment.h>


More information about the Insight-users mailing list