It&#39;s very likely to be the updating of the vtkTIFF library that changed this behavior. I don&#39;t remember exactly when it was updated and don&#39;t have time to look it up right now, but it I&#39;m pretty sure it was between 5.1 and 5.4....<br>
<br><div>Are there any TIFF experts listening that could speak up / recommend anything here?</div><div><br></div><div>Perhaps look at the CVS diff of the TIFF VTK tests and examples to see what changed in the last few years to adapt to TIFF changes...</div>
<div><br></div><div><br><div class="gmail_quote">On Tue, Jun 2, 2009 at 11:35 AM, Sean McBride <span dir="ltr">&lt;<a href="mailto:sean@rogue-research.com">sean@rogue-research.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On 6/1/09 12:16 PM, Floarea Serban said:<br>
<br>
&gt;Here is the code snippet that generates the error. I have also attached the<br>
&gt;complete java source and a sample image (16-bit tiff stack) can be found at<br>
&gt;<a href="http://bioimage.ucsb.edu/images/stories/BioImage/research/microtubules/" target="_blank">http://bioimage.ucsb.edu/images/stories/BioImage/research/microtubules/</a><br>
&gt;original_video/0.1tnov.tif.<br>
&gt;            vtkTIFFReader  reader = new vtkTIFFReader();<br>
&gt;           reader.SetFileName(&quot;0.1tnov.tif&quot;);<br>
&gt;           reader.Update(); // this is the place where it crashes<br>
&gt;           System.out.println(reader.GetFileDimensionality());<br>
&gt;           System.out.println(reader.GetDataScalarType());<br>
&gt;<br>
&gt;I have tried it again and it works with version 5.1 but crashes with 5.4. I<br>
&gt;get only this error message:<br>
&gt;Invalid memory access of location 00000008 eip=08097779.<br>
<br>
</div>Have you run this in a debugger?  That would let you see where it is<br>
crashing.  The other thing you can do is regress, that is, use cvs to<br>
download various versions of VTK between 5.1 and 5.4 until you find when<br>
it broke.  That&#39;s rather tedious though.<br>
<div class="im"><br>
--<br>
____________________________________________________________<br>
Sean McBride, B. Eng                 <a href="mailto:sean@rogue-research.com">sean@rogue-research.com</a><br>
Rogue Research                        <a href="http://www.rogue-research.com" target="_blank">www.rogue-research.com</a><br>
Mac Software Developer              Montréal, Québec, Canada<br>
<br>
<br>
</div><div><div></div><div class="h5">_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <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 VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</div></div></blockquote></div><br></div>