<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"><<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>></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 "bad" images? If we can reproduce the<br>
problem,, I'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 <<a href="mailto:jakub.bican@matfyz.cz">jakub.bican@matfyz.cz</a>> wrote:<br>
> Thanks Luis,<br>
><br>
> A) They were random images downloaded from the web ...<br>
><br>
> B) I suppose ITK to throw an exception on a file that it is not able<br>
> to read and clean-up everything correctly.<br>
><br>
> C) I've been told that reading many zero-sized jpeg files on our linux<br>
> machine will cause the error ("Error opendir(): Too many open files").<br>
><br>
> I am working on easy-reproducing the problem and gathering some more<br>
> info. I remember one more bug with jpeg loading which has been fixed<br>
> (<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>
> insufficiently ...<br>
><br>
> Regards, Jakub<br>
><br>
><br>
> 2009/5/13 Luis Ibanez <<a href="mailto:luis.ibanez@kitware.com">luis.ibanez@kitware.com</a>>:<br>
>> Hi Jakub,<br>
>><br>
>><br>
>> A couple of questions:<br>
>><br>
>><br>
>> A) The corrupted JPEG files:<br>
>> With what software were they generated ?<br>
>><br>
>><br>
>> B) Do you expect ITK to read the corrupted files ?<br>
>> or to throw exceptions when encountering them ?<br>
>><br>
>> C) Can you share one (or several) of those corrupted<br>
>> files so that we can attempt to replicate this<br>
>> behavior.<br>
>><br>
>><br>
>> One thing that may be happening is that we may be<br>
>> throwing an exception but not closing the file handles<br>
>> that have been open so far....<br>
>><br>
>><br>
>><br>
>> Thanks<br>
>><br>
>><br>
>> Luis<br>
>><br>
>><br>
>> -------------------------------------------------------<br>
>> On Wed, May 13, 2009 at 2:54 AM, Jakub Bican <<a href="mailto:jakub.bican@matfyz.cz">jakub.bican@matfyz.cz</a>> wrote:<br>
>>> Hello,<br>
>>><br>
>>> we built an image retrieval system and we encountered a problem. In<br>
>>> the bunch of files we have to precess is a large number of corrupter<br>
>>> jpeg files or files with zero length.<br>
>>><br>
>>> We suspect the JPEG image reader class of ITK that it does not close<br>
>>> file handle if it encounters some problem during file reading, because<br>
>>> we run out of file handles on certain linux system after some time of<br>
>>> system our execution.<br>
>>><br>
>>> Do someone have an experience with such behavior?<br>
>>><br>
>>> Thanks, Jakub<br>
>>> _____________________________________<br>
>>> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
>>><br>
>>> Visit other Kitware open-source projects at<br>
>>> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
>>><br>
>>> 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>
>>><br>
>>> Follow this link to subscribe/unsubscribe:<br>
>>> <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
>>><br>
>><br>
>><br>
> _____________________________________<br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> 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>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
><br>
<br>
</div></div></blockquote></div><br></div>