[Insight-users] problem while loading corrupted files
Luis Ibanez
luis.ibanez at kitware.com
Wed May 20 23:09:15 EDT 2009
Hi Jakub,
If the JPEG file is corrupted, ITK is subject to the error management
capabilities of the JPEG library.
I'll suggest you try to read the image directly with the jpeg libraries
to see if there is any error reporting.
Please let us know what you find.
Thanks
Luis
-----------------
Jakub Bican wrote:
> Thanks Luis,
>
> A) They were random images downloaded from the web ...
>
> B) I suppose ITK to throw an exception on a file that it is not able
> to read and clean-up everything correctly.
>
> C) I've been told that reading many zero-sized jpeg files on our linux
> machine will cause the error ("Error opendir(): Too many open files").
>
> I am working on easy-reproducing the problem and gathering some more
> info. I remember one more bug with jpeg loading which has been fixed
> (http://public.kitware.com/Bug/view.php?id=5201), but maybe
> insufficiently ...
>
> Regards, Jakub
>
>
> 2009/5/13 Luis Ibanez <luis.ibanez at kitware.com>:
>
>>Hi Jakub,
>>
>>
>>A couple of questions:
>>
>>
>>A) The corrupted JPEG files:
>> With what software were they generated ?
>>
>>
>>B) Do you expect ITK to read the corrupted files ?
>> or to throw exceptions when encountering them ?
>>
>>C) Can you share one (or several) of those corrupted
>> files so that we can attempt to replicate this
>> behavior.
>>
>>
>>One thing that may be happening is that we may be
>>throwing an exception but not closing the file handles
>>that have been open so far....
>>
>>
>>
>> Thanks
>>
>>
>> Luis
>>
>>
>>-------------------------------------------------------
>>On Wed, May 13, 2009 at 2:54 AM, Jakub Bican <jakub.bican at matfyz.cz> wrote:
>>
>>>Hello,
>>>
>>>we built an image retrieval system and we encountered a problem. In
>>>the bunch of files we have to precess is a large number of corrupter
>>>jpeg files or files with zero length.
>>>
>>>We suspect the JPEG image reader class of ITK that it does not close
>>>file handle if it encounters some problem during file reading, because
>>>we run out of file handles on certain linux system after some time of
>>>system our execution.
>>>
>>>Do someone have an experience with such behavior?
>>>
>>>Thanks, Jakub
>>>_____________________________________
>>>Powered by www.kitware.com
>>>
>>>Visit other Kitware open-source projects at
>>>http://www.kitware.com/opensource/opensource.html
>>>
>>>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 Insight-users
mailing list