Uploaded image for project: 'Commons Imaging'
  1. Commons Imaging
  2. IMAGING-265

ArrayIndexOutOfBoundsException on reading simple GeoTIFF

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-alpha2
    • 1.0-alpha3
    • Format: TIFF
    • None

    Description

      hi,

       

      we on the OpenJUMP project cannot open some GeoTIFFs with commons.imaging . for details you may find a ticket in our bug tracker https://sourceforge.net/p/jump-pilot/bugs/498/ .

       

      the gist is: on loading the attached file getBufferedImage() fails with this stack

       Caused by: java.lang.ArrayIndexOutOfBoundsException: 8000Caused by: 
      java.lang.ArrayIndexOutOfBoundsException: 8000 at 
      org.apache.commons.imaging.formats.tiff.datareaders.DataReaderStrips.interpretStrip(DataReaderStrips.java:196) at 
      org.apache.commons.imaging.formats.tiff.datareaders.DataReaderStrips.readImageData(DataReaderStrips.java:254) at 
      org.apache.commons.imaging.formats.tiff.TiffImageParser.getBufferedImage(TiffImageParser.java:665) at 
      org.apache.commons.imaging.formats.tiff.TiffDirectory.getTiffImage(TiffDirectory.java:254) at 
      org.apache.commons.imaging.formats.tiff.TiffImageParser.getBufferedImage(TiffImageParser.java:469) at 
      org.apache.commons.imaging.Imaging.getBufferedImage(Imaging.java:1442) at 
      org.apache.commons.imaging.Imaging.getBufferedImage(Imaging.java:1335) at 
      org.apache.commons.imaging.Imaging.getBufferedImage(Imaging.java:1304) at 
      com.vividsolutions.jump.workbench.imagery.graphic.CommonsImage.initImage(CommonsImage.java:108)

      Attachments

        1. small_world.tif
          235 kB
          edgar soldin
        2. small_world_split.jpg
          41 kB
          Gary Lucas

        Activity

          People

            kinow Bruno P. Kinoshita
            edso edgar soldin
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 3h 40m
                3h 40m