commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bruno P. Kinoshita (Jira)" <>
Subject [jira] [Commented] (IMAGING-265) ArrayIndexOutOfBoundsException on reading simple GeoTIFF
Date Sat, 19 Sep 2020 07:15:00 GMT


Bruno P. Kinoshita commented on IMAGING-265:

>It took a while, but I've identified the problem and I think that the original authors
of TIFF were in love with complexity.


>The problematic image uses Planar Configuration 2. Searching through the code, I don't
find any evidence of Planar Configuration 2 implemented anywhere. So it looks like this configuration
is not currently supported by Commons Imaging.

Great detective work! I didn't know about this planar configuration, nor can I remember seeing
it anywhere in the TIFF image parser.

>For the OpenJUMP folks

Good to learn about OpenJUMP. Will give it a try later.

Thanks for investigating the issue and for the detailed explanation [~gwlucas]

> ArrayIndexOutOfBoundsException on reading simple GeoTIFF
> --------------------------------------------------------
>                 Key: IMAGING-265
>                 URL:
>             Project: Commons Imaging
>          Issue Type: Bug
>          Components: Format: TIFF
>    Affects Versions: 1.0-alpha2
>            Reporter: edgar soldin
>            Assignee: Bruno P. Kinoshita
>            Priority: Major
>         Attachments: small_world.tif, small_world_split.jpg
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
> hi,
> we on the OpenJUMP project cannot open some GeoTIFFs with commons.imaging . for details
you may find a ticket in our bug tracker [] .
> 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(
at org.apache.commons.imaging.formats.tiff.datareaders.DataReaderStrips.readImageData(
at org.apache.commons.imaging.formats.tiff.TiffImageParser.getBufferedImage(
at org.apache.commons.imaging.formats.tiff.TiffDirectory.getTiffImage(
at org.apache.commons.imaging.formats.tiff.TiffImageParser.getBufferedImage(
at org.apache.commons.imaging.Imaging.getBufferedImage( at org.apache.commons.imaging.Imaging.getBufferedImage(
at org.apache.commons.imaging.Imaging.getBufferedImage( at com.vividsolutions.jump.workbench.imagery.graphic.CommonsImage.initImage(

This message was sent by Atlassian Jira

View raw message