commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "edgar soldin (Jira)" <j...@apache.org>
Subject [jira] [Commented] (IMAGING-265) ArrayIndexOutOfBoundsException on reading simple GeoTIFF
Date Sun, 20 Sep 2020 11:30:00 GMT

    [ https://issues.apache.org/jira/browse/IMAGING-265?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17198959#comment-17198959
] 

edgar soldin commented on IMAGING-265:
--------------------------------------

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

we are successfully using the TIFF JAI reader from
  https://github.com/jai-imageio/jai-imageio-core
as well as earlier the one from imageio-ext project
  https://github.com/geosolutions-it/imageio-ext

to read a multitude of TIFF formats successfully. maybe these are sources to find inspirations
and implementations to inspire missing support in apache imaging's TIFF reader.

>>For the OpenJUMP folks
> 
> Good to learn about OpenJUMP. Will give it a try later.

do that. we are only around since 2011 ;)..

[~gwlucas][~kinow] can you please point me to where can i find snapshots that include your
fix?

thx! ..ede

> ArrayIndexOutOfBoundsException on reading simple GeoTIFF
> --------------------------------------------------------
>
>                 Key: IMAGING-265
>                 URL: https://issues.apache.org/jira/browse/IMAGING-265
>             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: 40m
>  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 [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)



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message