[ITK] [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://public.kitware.com/pipermail/community/attachments/20140521/1cecb165/attachment-0001.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://public.kitware.com/pipermail/community/attachments/20140521/1cecb165/attachment-0002.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://public.kitware.com/pipermail/community/attachments/20140521/1cecb165/attachment-0003.cpp>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ItkTestThreadSupport.h
Type: text/x-chdr
Size: 601 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/community/attachments/20140521/1cecb165/attachment-0001.h>
-------------- 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://www.itk.org/mailman/listinfo/insight-users


More information about the Community mailing list