<div><br></div>Hello,<div><br></div><div>all back - the developers that complained about this problem discovered the error out of ITK.</div><div><br></div><div>Thanks for help and BIG SORRY for bothering you with such no-problems that stem from our lack of diligence.</div>
<div><br></div><div>Jakub</div><div><br></div><div><br><br><div class="gmail_quote">2009/5/21 Bill Lorensen <span dir="ltr">&lt;<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Jakub,<br>
<br>
Can you point us to some of the &quot;bad&quot; images? If we can reproduce the<br>
problem,, I&#39;m confident we can provide a satisfactory solution.<br>
<font color="#888888"><br>
Bill<br>
</font><div><div></div><div class="h5"><br>
On Wed, May 13, 2009 at 9:15 AM, Jakub Bican &lt;<a href="mailto:jakub.bican@matfyz.cz">jakub.bican@matfyz.cz</a>&gt; wrote:<br>
&gt; Thanks Luis,<br>
&gt;<br>
&gt; A) They were random images downloaded from the web ...<br>
&gt;<br>
&gt; B) I suppose ITK to throw an exception on a file that it is not able<br>
&gt; to read and clean-up everything correctly.<br>
&gt;<br>
&gt; C) I&#39;ve been told that reading many zero-sized jpeg files on our linux<br>
&gt; machine will cause the error (&quot;Error opendir(): Too many open files&quot;).<br>
&gt;<br>
&gt; I am working on easy-reproducing the problem and gathering some more<br>
&gt; info. I remember one more bug with jpeg loading which has been fixed<br>
&gt; (<a href="http://public.kitware.com/Bug/view.php?id=5201" target="_blank">http://public.kitware.com/Bug/view.php?id=5201</a>), but maybe<br>
&gt; insufficiently ...<br>
&gt;<br>
&gt; Regards, Jakub<br>
&gt;<br>
&gt;<br>
&gt; 2009/5/13 Luis Ibanez &lt;<a href="mailto:luis.ibanez@kitware.com">luis.ibanez@kitware.com</a>&gt;:<br>
&gt;&gt; Hi Jakub,<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; A couple of questions:<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; A) The corrupted JPEG files:<br>
&gt;&gt;     With what software were they generated ?<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; B) Do you expect ITK to read the corrupted files ?<br>
&gt;&gt;     or to throw exceptions when encountering them ?<br>
&gt;&gt;<br>
&gt;&gt; C) Can you share one (or several) of those corrupted<br>
&gt;&gt;     files so that we can attempt to replicate this<br>
&gt;&gt;     behavior.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; One thing that may be happening is that we may be<br>
&gt;&gt; throwing an exception but not closing the file handles<br>
&gt;&gt; that have been open so far....<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;      Thanks<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;              Luis<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; -------------------------------------------------------<br>
&gt;&gt; On Wed, May 13, 2009 at 2:54 AM, Jakub Bican &lt;<a href="mailto:jakub.bican@matfyz.cz">jakub.bican@matfyz.cz</a>&gt; wrote:<br>
&gt;&gt;&gt; Hello,<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; we built an image retrieval system and we encountered a problem. In<br>
&gt;&gt;&gt; the bunch of files we have to precess is a large number of corrupter<br>
&gt;&gt;&gt; jpeg files or files with zero length.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; We suspect the JPEG image reader class of ITK that it does not close<br>
&gt;&gt;&gt; file handle if it encounters some problem during file reading, because<br>
&gt;&gt;&gt; we run out of file handles on certain linux system after some time of<br>
&gt;&gt;&gt; system our execution.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Do someone have an experience with such behavior?<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Thanks, Jakub<br>
&gt;&gt;&gt; _____________________________________<br>
&gt;&gt;&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Visit other Kitware open-source projects at<br>
&gt;&gt;&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Please keep messages on-topic and check the ITK FAQ at: <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Follow this link to subscribe/unsubscribe:<br>
&gt;&gt;&gt; <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
&gt;&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt; _____________________________________<br>
&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;<br>
&gt; Visit other Kitware open-source projects at<br>
&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;<br>
&gt; Please keep messages on-topic and check the ITK FAQ at: <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
&gt;<br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
&gt;<br>
<br>
</div></div></blockquote></div><br></div>