Opened 11 years ago

Closed 11 years ago

#5002 closed defect (fixed)

Exporting to JPEG2000 results in SIGABRT

Reported by: misev Owned by: warmerdam
Priority: normal Milestone: 1.10.0
Component: GDAL_Raster Version: 1.9.0
Severity: normal Keywords:
Cc:

Description

Perhaps it's because the input data is Float32?

$ gdal_translate -of JPEG2000 test.hr5 out.jpg
Input file size is 334, 358
0...10...20...30...40...50...60...70...80...90...100 - done.
gdal_translate: jpc_enc.c:186: jpc_abstorelstepsize: Assertion `!((expn) & (~0x1f))' failed.
Aborted (core dumped)

Problem initially discovered in rasdaman: http://rasdaman.eecs.jacobs-university.de/trac/rasdaman/ticket/235

Attached the test.hr5 file

Attachments (1)

test.hr5 (301.5 KB ) - added by misev 11 years ago.

Download all attachments as: .zip

Change History (2)

by misev, 11 years ago

Attachment: test.hr5 added

comment:1 by Even Rouault, 11 years ago

Component: defaultGDAL_Raster
Milestone: 1.10.0
Resolution: fixed
Status: newclosed

I believe this is a bug in libjasper itself which asserts in jpc_enc.c:186

With JP2ECW driver, this works fine: gdal_translate test.hr5 out.jp2 -of jp2ecw

r25662 : "JPEG2000: do not accept by default source bands of type different from Byte, Int16 or UInt16 since they seem to cause crashes in libjasper. This can be overriden, at your own risk, by setting JPEG2000_FORCE_CREATION configuration option to YES (#5002)"

Note: See TracTickets for help on using tickets.