[ https://issues.apache.org/jira/browse/IMAGING-265?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17208598#comment-17208598 ]
Bruno P. Kinoshita commented on IMAGING-265: -------------------------------------------- [~edso]I think [~gwlucas] ' pull request fixes this issue. He included the file you provided in the test data, and added a simple unit test. I wasn't aware of this different planar configurations in TIFF, so thanks for the explanation [~gwlucas] . Pull request pretty much ready for review. I think we don't have a snapshot being created for imaging, even though I think commons-lang and/or other components in commons are publishing snapshots. If you need one from one of our Maven servers, I can take a look at our Jenkins server to see how to publish one. Otherwise you can either build the snapshot from `master` to test, or wait a bit for the next alpha release (aiming at a release now in Q4/2020), with the final 1.0 somewhere in 2021. Cheers Bruno > 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: 2h 10m > 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 > {noformat} > 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){noformat} -- This message was sent by Atlassian Jira (v8.3.4#803005)