Opened 10 years ago

Closed 10 years ago

#5317 closed defect (invalid)

gdal_translate (v1.10.2 with OpenJPEG2) seg faults with 16-bit JPEG2000 files

Reported by: jwderos Owned by: warmerdam
Priority: normal Milestone:
Component: default Version: unspecified
Severity: normal Keywords:
Cc:

Description

I get segmentation faults with: gdal_translate -of GTiff -ot UInt16 20100216_a_abc6_0924_0483_hr4.jp2 out.tif

Files are located at: http://hdds.usgs.gov/hdds2/pub/data/disaster/200908_Hurricane_Test/data/SATELLITE/NON_INGESTED/GDAL/test3/openjpeg

(Login and registration required)

The only different I can find is that these are Uint16 file whereas files that work are Byte. I tried to apply the patch from http://trac.osgeo.org/gdal/changeset/26664 , but it didn't help.

Change History (2)

comment:1 by jwderos, 10 years ago

You will have to "Register" with the site and then login to be able to download files. There is no need to request restricted data.

comment:2 by Even Rouault, 10 years ago

Resolution: invalid
Status: newclosed

After investigation, this is an OpenJPEG bug. The patch attached to the following openjpeg ticket fixes the issue:

http://code.google.com/p/openjpeg/issues/detail?can=2&start=0&num=100&q=&colspec=ID%20Type%20Status%20Priority%20Milestone%20Owner%20Summary&groupby=&sort=&id=218

Note: See TracTickets for help on using tickets.