<div dir="ltr">Hi all,<div> 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. <div>
<br></div><div>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.</div><div>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.</div>
<div><br></div><div>to make the problem go away here just uncomment line 24 or 32 in ItkTestThreadSupport.cpp</div><div><br></div><div>I am running Itk 4.5.2 and boost 1.55</div><div><br></div><div>If I can be of any assistance I would be happy to hel p- my stack trace looks like this</div>
<div><br></div><div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">H5MM_xfree()</div>
</div><div style="font-family:arial,sans-serif;font-size:13px">H5E_preintf_stack()</div><span style="font-family:arial,sans-serif;font-size:13px">H5E_clear_starck()</span><div><span style="font-family:arial,sans-serif;font-size:13px">isHdf5()</span></div>
<span style="font-family:arial,sans-serif;font-size:13px">HDF5ImageIO::CanReadFile()<br></span><span style="font-family:arial,sans-serif;font-size:13px">ImageIOFactory::CreateImageIO(</span><span style="font-family:arial,sans-serif;font-size:13px">)</span><span style="font-family:arial,sans-serif;font-size:13px">>::GeneraterOutputInformation(</span><span style="font-family:arial,sans-serif;font-size:13px">) line 116</span><div>
<span style="font-family:arial,sans-serif;font-size:13px">ImageFileReader<itk::image<</span><span style="font-family:arial,sans-serif;font-size:13px">short,3> itkDefaultConvertPixelTrats<</span><span style="font-family:arial,sans-serif;font-size:13px">short> </span></div>
<span style="font-family:arial,sans-serif;font-size:13px">ProcessObject::</span><span style="font-family:arial,sans-serif;font-size:13px">UpdateOutputInformation()</span><div><span style="font-family:arial,sans-serif;font-size:13px">ImageBase<3>::</span><span style="font-family:arial,sans-serif;font-size:13px">UpdateOutputInformation()</span></div>
<span style="font-family:arial,sans-serif;font-size:13px">DataObject::Update()</span><div><span style="font-family:arial,sans-serif;font-size:13px">ProcessObject::update()</span><span style="font-family:arial,sans-serif;font-size:13px"><br>
</span></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div></div></div>