commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gary Lucas (Jira)" <>
Subject [jira] [Commented] (IMAGING-265) ArrayIndexOutOfBoundsException on reading simple GeoTIFF
Date Tue, 22 Sep 2020 00:17:00 GMT


Gary Lucas commented on IMAGING-265:

Thanks for the information.  The original authors of the Commons Imaging project put an enormous
amount of effort into creating the TIFF modules and I think they left us with a pretty good
foundation.  Nowadays, it's unusual to find an example of a format that Commons Imaging doesn't
support...  unusual, but perhaps not quite unusual enough :)

In the case of the samples you provided, they were created using an "odd duck" specification
that we hadn't seen before.  I knew there was something called a PlanarConfiguration, but
I had no idea what it was about.  So your image provided a good opportunity to expand our
capabilities.  Of course, nobody likes to learn about a new bug (or a new feature) that needs
to be addressed... But it definitely leads to more robust code when we do. 

> 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: 1.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