Ticket #4724 (closed defect: invalid)

Opened 12 months ago

Last modified 12 months ago

GDAL crash in ERDAS NCSEcw4_RO.dll used through Python interface

Reported by: bcarpenter Owned by: warmerdam
Priority: normal Milestone:
Component: default Version: 1.9.1
Severity: normal Keywords:
Cc:

Description

Unfortunately, I don't currently have the ability to pull together a test case to accompany this ticket that would reliably demonstrate the problem. My guess is that there's a "wild C pointer" problem, so even the Windows error dialog that implicates the NCSEcw4_RO.dll file could be a "red herring." When we experience the problem, the image we are examining is a .vrt file that is based on another .vrt file based on a NITF (.ntf) file. So I don't think there's even a reason for the NCSEcw4_RO.dll file that comes from the "ERDAS ECW/JP2 SDK" to be in the picture.

The calls we make from the Python api are:

dataset = gdal.Open()
band = dataset.GetRasterBand()
band.SetNoDataValue()
band.GetStatistics()

and possibly band.GetHistogram(), but I don't think it gets that far.

Here are the dialogs that Windows puts up when the crash happens: Image showing the Windows crash dialogs. I have attached the file WER0a04.dir00.zip holding the files that the above dialog refers to.

The version we are using is from the OSGeo4W Setup program and what I recall is that it was just "1.9.1-RC2" at the time, but now I see that the Setup program offers "1.9.1-RC2-2" and "1.9.1-RC2-1" I believe that what we are using is what is now called the "-1" version.

Attachments

CrashDialogs.jpg Download (112.2 KB) - added by bcarpenter 12 months ago.
Image showing the Windows crash dialogs.

Change History

Changed 12 months ago by bcarpenter

Image showing the Windows crash dialogs.

Changed 12 months ago by bcarpenter

It turns out that the 52 Megabyte "WER0a04.dir00.zip" file I said I'd attach was way past the size limit for Trac. But I will keep that information available so I can supply it later if needed.

Changed 12 months ago by rouault

If the NITF file is JPEG2000 compressed, then the mention to NCSEcw4_RO.dll is not impossible. What happens if you try : "gdalinfo -stats thefile.ntf" ? Did you use the right version of the ECW SDK too (see  http://trac.osgeo.org/osgeo4w/wiki/pkg-gdal-ecw) ?

Changed 12 months ago by rouault

  • status changed from new to closed
  • resolution set to invalid

No feedback from reporter. Closing. Reopen if you can provide more information

Note: See TracTickets for help on using tickets.