<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hello,<div><br></div><div>If it's just the HDF5ImageIO module that is causing the threading issue, then have you considered just disabling that ITKModule when building ITK?</div><div><br></div><div>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.</div><div><br></div><div>Hope that helps,</div><div>Brad</div><div><br><div><div>On May 21, 2014, at 3:46 PM, Scott Pfeifer <<a href="mailto:scottfivefour@gmail.com">scottfivefour@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><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>
<span><itkLoadTestMain.cpp></span><span><ItkTestThreadSupport.cpp></span><span><ItkTestThreadSupport.h></span>_____________________________________<br>Powered by <a href="http://www.kitware.com">www.kitware.com</a><br><br>Visit other Kitware open-source projects at<br><a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br><br>Kitware offers ITK Training Courses, for more information visit:<br>http://www.kitware.com/products/protraining.php<br><br>Please keep messages on-topic and check the ITK FAQ at:<br>http://www.itk.org/Wiki/ITK_FAQ<br><br>Follow this link to subscribe/unsubscribe:<br>http://www.itk.org/mailman/listinfo/insight-users<br>_______________________________________________<br>Community mailing list<br>Community@itk.org<br>http://public.kitware.com/cgi-bin/mailman/listinfo/community<br></blockquote></div><br></div></body></html>