From issues-return-92387-archive-asf-public=cust-asf.ponee.io@commons.apache.org Tue Sep 22 00:21:03 2020 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mailroute1-lw-us.apache.org (mailroute1-lw-us.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with ESMTPS id E55B21806D6 for ; Tue, 22 Sep 2020 02:21:02 +0200 (CEST) Received: from mail.apache.org (localhost [127.0.0.1]) by mailroute1-lw-us.apache.org (ASF Mail Server at mailroute1-lw-us.apache.org) with SMTP id 29CE1122D18 for ; Tue, 22 Sep 2020 00:21:02 +0000 (UTC) Received: (qmail 33683 invoked by uid 500); 22 Sep 2020 00:21:01 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 33669 invoked by uid 99); 22 Sep 2020 00:21:01 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Sep 2020 00:21:01 +0000 Received: from jira-he-de.apache.org (static.172.67.40.188.clients.your-server.de [188.40.67.172]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id C901742AB2 for ; Tue, 22 Sep 2020 00:21:00 +0000 (UTC) Received: from jira-he-de.apache.org (localhost.localdomain [127.0.0.1]) by jira-he-de.apache.org (ASF Mail Server at jira-he-de.apache.org) with ESMTP id 1A67A78031B for ; Tue, 22 Sep 2020 00:21:00 +0000 (UTC) Date: Tue, 22 Sep 2020 00:21:00 +0000 (UTC) From: "Gary Lucas (Jira)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (IMAGING-265) ArrayIndexOutOfBoundsException on reading simple GeoTIFF MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/IMAGING-265?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D171= 99714#comment-17199714 ]=20 Gary Lucas edited comment on IMAGING-265 at 9/22/20, 12:20 AM: --------------------------------------------------------------- Thanks for the information.=C2=A0 The original authors of the Commons Imagi= ng project put an enormous amount of effort into creating the TIFF modules = and I think they left the project with a pretty good foundation.=C2=A0 Nowa= days, it's unusual to find an example of a format that Commons Imaging does= n't support...=C2=A0 unusual, but perhaps not quite unusual enough=C2=A0:) In the case of the samples you provided, they were created using an "odd du= ck" specification that we hadn't seen before.=C2=A0 I knew there was someth= ing called a PlanarConfiguration, but I had no idea what it was about.=C2= =A0 So your image provided a good opportunity to expand our capabilities.= =C2=A0 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 w= hen we do.=C2=A0 =C2=A0 Gary P.S.=C2=A0 Just to make sure there's no confusion here, I am not properly s= peaking a member of the Commons Imaging project and certainly do not speak = for them. I help out with coding occasionally.=C2=A0 My post above makes it= sound like I know a lot more than I actually do...=C2=A0 Hope I didn't giv= e a false sense of authority. =C2=A0 was (Author: gwlucas): Thanks for the information.=C2=A0 The original authors of the Commons Imagi= ng project put an enormous amount of effort into creating the TIFF modules = and I think they left us with a pretty good foundation.=C2=A0 Nowadays, it'= s unusual to find an example of a format that Commons Imaging doesn't suppo= rt...=C2=A0 unusual, but perhaps not quite unusual enough=C2=A0:) In the case of the samples you provided, they were created using an "odd du= ck" specification that we hadn't seen before.=C2=A0 I knew there was someth= ing called a PlanarConfiguration, but I had no idea what it was about.=C2= =A0 So your image provided a good opportunity to expand our capabilities.= =C2=A0 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 w= hen we do.=C2=A0 > 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: 1.5h > Remaining Estimate: 0h > > hi, > =C2=A0 > we on the OpenJUMP project cannot open some GeoTIFFs with commons.imaging= . for details you may find a ticket in our bug tracker [https://sourceforg= e.net/p/jump-pilot/bugs/498/]=C2=A0. > =C2=A0 > the gist is: on loading the attached file getBufferedImage() fails with t= his stack > Caused by: java.lang.ArrayIndexOutOfBoundsException: 8000Caused by: java.= lang.ArrayIndexOutOfBoundsException: 8000 at org.apache.commons.imaging.for= mats.tiff.datareaders.DataReaderStrips.interpretStrip(DataReaderStrips.java= :196) at org.apache.commons.imaging.formats.tiff.datareaders.DataReaderStri= ps.readImageData(DataReaderStrips.java:254) at org.apache.commons.imaging.f= ormats.tiff.TiffImageParser.getBufferedImage(TiffImageParser.java:665) at o= rg.apache.commons.imaging.formats.tiff.TiffDirectory.getTiffImage(TiffDirec= tory.java:254) at org.apache.commons.imaging.formats.tiff.TiffImageParser.g= etBufferedImage(TiffImageParser.java:469) at org.apache.commons.imaging.Ima= ging.getBufferedImage(Imaging.java:1442) at org.apache.commons.imaging.Imag= ing.getBufferedImage(Imaging.java:1335) at org.apache.commons.imaging.Imagi= ng.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)