<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
<font class="Apple-style-span" face="Tahoma" size="2">Thanks for the prompt response !</font><div style="font-family: Tahoma; font-size: 10pt; "><br></div><div><font class="Apple-style-span" face="Tahoma" size="2">I assume then that exception is now handled gracefully with open jpeg trunk. May be the 'openjpeg.dll' that come with</font></div><div><font class="Apple-style-span" face="Tahoma" size="2">with http://vbkto.dyndns.org:1280/sdk/ is outdated and did not have that fix. I'll build it from the open jpeg 2000 trunk and verify the results.</font></div><div><font class="Apple-style-span" face="Tahoma" size="2"><br></font></div><div><font class="Apple-style-span" face="Tahoma" size="2">Was it the trunk ? or branch v2 as mentioned at </font><span class="Apple-style-span" style="font-size: 12pt; "><a href="http://gdal.org/frmt_jp2openjpeg.html">http://gdal.org/frmt_jp2openjpeg.html</a></span><span class="Apple-style-span" style="font-size: 12pt; "> ?</span></div><div><br></div><div><font class="Apple-style-span" face="Tahoma" size="2">Noureddine Farah<br></font><br><div id="SkyDrivePlaceholder" style="font-family: Tahoma; font-size: 10pt; "></div><font class="Apple-style-span" face="Tahoma" size="2">> From: even.rouault@mines-paris.org</font><br><font class="Apple-style-span" face="Tahoma" size="2">> To: gdal-dev@lists.osgeo.org</font><br><font class="Apple-style-span" face="Tahoma" size="2">> Subject: Re: [gdal-dev] gdalinfo crash on a jpeg 2000 file</font><br><font class="Apple-style-span" face="Tahoma" size="2">> Date: Mon, 28 Feb 2011 00:14:01 +0100</font><br><font class="Apple-style-span" face="Tahoma" size="2">> CC: nfarah@hotmail.com</font><br><font class="Apple-style-span" face="Tahoma" size="2">> </font><br><font class="Apple-style-span" face="Tahoma" size="2">> Le lundi 28 février 2011 00:02:31, N. Farah a écrit :</font><br><font class="Apple-style-span" face="Tahoma" size="2">> > Hi,</font><br><font class="Apple-style-span" face="Tahoma" size="2">> > Using gdalinfo from GDAL 1.8 release build</font><br><font class="Apple-style-span" face="Tahoma" size="2">> > (http://vbkto.dyndns.org:1280/sdk/) on this jpeg 2000</font><br><font class="Apple-style-span" face="Tahoma" size="2">> > file(http://www.openjpeg.org/samples/Facade.j2k) crash ! To debug it I</font><br><font class="Apple-style-span" face="Tahoma" size="2">> > built gdal from source and registered only open jpeg 2000 driver: it</font><br><font class="Apple-style-span" face="Tahoma" size="2">> > appears that a unhandled exception wasthrown at this line</font><br><font class="Apple-style-span" face="Tahoma" size="2">> > if(!opj_read_header(pCodec, &psImage, &nX0, &nY0, &nTileW, &nTileH,</font><br><font class="Apple-style-span" face="Tahoma" size="2">> > &nTilesX, &nTilesY, pStream))in JP2OpenJPEGDataset::Open method. The used</font><br><font class="Apple-style-span" face="Tahoma" size="2">> > openjpeg.dll is the one that come with http://vbkto.dyndns.org:1280/sdk</font><br><font class="Apple-style-span" face="Tahoma" size="2">> > which i assume was a private build fromthe open jpeg branch or trunk.</font><br><font class="Apple-style-span" face="Tahoma" size="2">> > Should i file this as ticket with GDAL or probably with open jpeg 2000 ?</font><br><font class="Apple-style-span" face="Tahoma" size="2">> > Thanks</font><br><font class="Apple-style-span" face="Tahoma" size="2">> > Noureddine Farah</font><br><font class="Apple-style-span" face="Tahoma" size="2">> </font><br><font class="Apple-style-span" face="Tahoma" size="2">> On Linux, with my own build of openjpeg v2 branch, I get a "clean" error :</font><br><font class="Apple-style-span" face="Tahoma" size="2">> ERROR 1: Marker is not compliant with its position</font><br><font class="Apple-style-span" face="Tahoma" size="2">> ERROR 1: opj_read_header() failed</font><br><font class="Apple-style-span" face="Tahoma" size="2">> </font><br><font class="Apple-style-span" face="Tahoma" size="2">> I'd note that the JP2ECW and JPEG2000 (Jasper) drivers also fail on that </font><br><font class="Apple-style-span" face="Tahoma" size="2">> image. With the JP2MrSID driver I manage to read it, but some parts are very </font><br><font class="Apple-style-span" face="Tahoma" size="2">> blury, so I guess this is a corrupted or corner case image.</font><br></div>                                            </body>
</html>