Exception when opening LZW-TIFFs as stack

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Exception when opening LZW-TIFFs as stack

Dominik Geisel
Hello!

when I open some LZW-compressed TIFF-files as a stack, I get the following
exception (not a once but after opening some 3-5 images):


java.lang.ArrayIndexOutOfBoundsException
 at java.lang.System.arraycopy(Native Method)
 at ij.io.ImageReader.readCompressed8bitImage(ImageReader.java:80)
 at ij.io.ImageReader.read8bitImage(ImageReader.java:37)
 at ij.io.ImageReader.readPixels(ImageReader.java:480)
 at ij.io.FileOpener.readPixels(FileOpener.java:391)
 at ij.io.FileOpener.open(FileOpener.java:64)
 at ij.io.Opener.openTiff2(Opener.java:504)
 at ij.io.Opener.openTiff(Opener.java:451)
 at ij.io.Opener.openImage(Opener.java:160)
 at Open_as_Stack.openFilesAsStack(Open_as_Stack.java:81)
 at Open_as_Stack.run(Open_as_Stack.java:35)
 at ij.IJ.runUserPlugIn(IJ.java:265)
 at ij.IJ.runPlugIn(IJ.java:109)
 at ij.Executer.runPlugIn(Executer.java:169)
 at ij.Executer.runCommand(Executer.java:131)
 at ij.Executer.run(Executer.java:63)
 at java.lang.Thread.run(Unknown Source)


java.lang.NullPointerException
 at Open_as_Stack.openFilesAsStack(Open_as_Stack.java:82)
 at Open_as_Stack.run(Open_as_Stack.java:35)
 at ij.IJ.runUserPlugIn(IJ.java:265)
 at ij.IJ.runPlugIn(IJ.java:109)
 at ij.Executer.runPlugIn(Executer.java:169)
 at ij.Executer.runCommand(Executer.java:131)
 at ij.Executer.run(Executer.java:63)
 at java.lang.Thread.run(Unknown Source)


Anyone knows what could be the problem?
Reply | Threaded
Open this post in threaded view
|

Re: Exception when opening LZW-TIFFs as stack

ctrueden
Hi Dominik,

>when I open some LZW-compressed TIFF-files as a stack, I get the following
>exception (not a once but after opening some 3-5 images):
>  
>

Does it happen consistently with certain TIFF files? Or only
intermittently after loading a few files? Either way, if you can
identify a procedure that causes the exception, and post the TIFF files
you used somewhere online, it would be very helpful for diagnosing this
problem.

-Curtis