[vtkusers] Bug found in vtkTIFFReader
Bill Lorensen
bill.lorensen at gmail.com
Tue Nov 4 12:27:46 EST 2014
I found the problem. If the file is a volume, the reader was not
closing the file after processing.
I submit a gerrit patch.
On Tue, Nov 4, 2014 at 11:48 AM, Bill Lorensen <bill.lorensen at gmail.com> wrote:
> Try adding:
> if (this->InternalImage)
> {
> this->InternalImage->Clean();
> }
> in
> vtkTIFFReader::~vtkTIFFReader()
>
>
> On Tue, Nov 4, 2014 at 11:24 AM, Bill Lorensen <bill.lorensen at gmail.com> wrote:
>> The sample.tif file is generating an error regarding an unknown tag.
>> The error is ignored silently. Further investigation is needed.
>>
>>
>> On Tue, Nov 4, 2014 at 8:56 AM, Bill Lorensen <bill.lorensen at gmail.com> wrote:
>>> I tried a different tiff file and the program runs fine.
>>>
>>> I also put prints in before TIFFOpen and TIFFClose in the reader. For
>>> sample.tiff, TIFFClose is never called. But for the other tif file,
>>> there is a TIFFClose for each TIFFOpen.
>>>
>>> Further investigation is needed.
>>>
>>>
>>> On Tue, Nov 4, 2014 at 8:42 AM, Bill Lorensen <bill.lorensen at gmail.com> wrote:
>>>> I get the same error. Something must be leaking. Perhaps a file
>>>> descriptor is not being freed.
>>>>
>>>>
>>>> On Tue, Nov 4, 2014 at 4:57 AM, matheus_viana <vianamp at gmail.com> wrote:
>>>>> Julien, this is the error:
>>>>>
>>>>> ERROR: In /Users/Viana/Desktop/VTK-master/IO/Image/vtkTIFFReader.cxx, line
>>>>> 392
>>>>> vtkTIFFReader (0x7f9616301c00): Unable to open file sample.tif
>>>>>
>>>>> ERROR: In
>>>>> /Users/Viana/Desktop/VTK-master/Common/ExecutionModel/vtkExecutive.cxx, line
>>>>> 754
>>>>> vtkCompositeDataPipeline (0x7f96163067e0): Algorithm
>>>>> vtkTIFFReader(0x7f9616301c00) returned failure for request: vtkInformation
>>>>> (0x7f9616308670)
>>>>> Debug: Off
>>>>> Modified Time: 44614
>>>>> Reference Count: 1
>>>>> Registered Events: (none)
>>>>> Request: REQUEST_INFORMATION
>>>>> ALGORITHM_AFTER_FORWARD: 1
>>>>> FORWARD_DIRECTION: 0
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> View this message in context: http://vtk.1045678.n5.nabble.com/Bug-found-in-vtkTIFFReader-tp5729336p5729345.html
>>>>> Sent from the VTK - Users mailing list archive at Nabble.com.
>>>>> _______________________________________________
>>>>> 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 VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>>>>>
>>>>> Follow this link to subscribe/unsubscribe:
>>>>> http://public.kitware.com/mailman/listinfo/vtkusers
>>>>
>>>>
>>>>
>>>> --
>>>> Unpaid intern in BillsBasement at noware dot com
>>>
>>>
>>>
>>> --
>>> Unpaid intern in BillsBasement at noware dot com
>>
>>
>>
>> --
>> Unpaid intern in BillsBasement at noware dot com
>
>
>
> --
> Unpaid intern in BillsBasement at noware dot com
--
Unpaid intern in BillsBasement at noware dot com
More information about the vtkusers
mailing list