Opened 14 years ago

Closed 9 years ago

#3284 closed defect (worksforme)

gdal_contour.exe crashes before exit in Vista

Reported by: brushtyler Owned by: warmerdam
Priority: normal Milestone:
Component: GDAL_Raster Version: 1.6.2
Severity: normal Keywords: gdal_contour, windows
Cc:

Description

gdal_contour.exe creates the correct output file, but crashes before exit in Vista.

I've hunted this error using the GdalTools-plugin on QGis. The contour application (gdal_contour.exe) startes and creates a correct output file, but crashes before exit.

Windows shows the message "gdal_contour.exe stopped to working" (sorry for the translation). I've debugged the gdal_contour.exe and it tries to read an access denied location.

The output file is generated correctly and it works too.

It's no a plugin error, it continues to work fine after the crash. There is also a ticket https://trac.faunalia.it/GdalTools-plugin/ticket/31 opened on the plugin trac, but it was created before the plugin refactoring, when the program crash produced a dialog crash.

Change History (9)

comment:1 by warmerdam, 14 years ago

Giuseppe,

Is the problem reproducable outside GdalTools? Can you provide the data and commandline arguments that demonstrate the problem? What build are you using, OSGeo4W? Is there reason to believe this only occurs on Vista, not other win32 versions of windows?

in reply to:  1 comment:2 by lutra, 14 years ago

Replying to warmerdam:

Is there reason to believe this only occurs on Vista, not other win32 versions of windows?

It is confirmed on Windows Seven while there are no problems under XP.

comment:3 by brushtyler, 14 years ago

Replying to warmerdam:

Is the problem reproducable outside GdalTools?

I've tried by windows prompt, but no error are displayed. I think it could crash without print any errors.

Can you provide the data and commandline arguments that demonstrate the problem?

The input data are the QGis sample raster (but it launches the same error with every raster file I tried). The commandline used is: gdal_contour -i 10 C:\OSGeo4W\sample_data\raster\landcover.img C:\OSGeo4W\sample_data

What build are you using, OSGeo4W?

Yes

Is there reason to believe this only occurs on Vista, not other win32 versions of windows? I don't know.

comment:4 by brushtyler, 14 years ago

I've hunted the problem, it seems a QGis error: changing the enviroment variables setted in OSGeo4W.bat and replacing them with the qgis.bat vars, contour crashes before exit on prompt too.

comment:5 by brushtyler, 14 years ago

Resolution: invalid
Status: newclosed

I've resolved the mistery, it's no a GDAL bug.
Contour crashes because there are 2 gdal_contour.exe in 2 different directories and both their paths are stored in windows PATH enviroment variable.

Thank you a lot and sorry for the time lost.

in reply to:  5 comment:6 by brushtyler, 14 years ago

Resolution: invalid
Status: closedreopened

Replying to brushtyler:

Contour crashes because there are 2 gdal_contour.exe in 2 different directories and both their paths are stored in windows PATH enviroment variable.

The issue was apparently resolved. So it is not. They was 2 different versions of gdal_contour.exe.

If I use the gdal_contour.exe from GDAL 1.5, it work fine both from shell and plugin. Instead the GDAL 1.6 applications continue to crash, run them by shell too.

I've installed qgis-dev package and gdal16 lib from OSGeo4W, but not gdal lib, so I've no GDAL 1.5 applications and no risk to mix GDAL 1.6 executables with GDAL 1.5 DLLs.

comment:7 by warmerdam, 14 years ago

If there is a crash with the GDAL 1.6 OSGeo4W gdal_contour, then I will need the data file(s) and the commandline arguments needed to reproduce the problem.

in reply to:  7 comment:8 by brushtyler, 14 years ago

Replying to warmerdam:

If there is a crash with the GDAL 1.6 OSGeo4W gdal_contour, then I will need the data file(s) and the commandline arguments needed to reproduce the problem.

This is the commandline arguments:

gdal_contour -i 10 C:/OSGeo4W/sample_data/qgis_sample_data/raster/landcover.img C:/OSGeo4W/sample_data

The source image is the raster in the QGis sample data.

However, either the args and the input raster are not important (I've tried some different ones and but it have ever the same behaviour).

comment:9 by Jukka Rahkonen, 9 years ago

Resolution: worksforme
Status: reopenedclosed

Tested on Vista 32 bit with GDAL 2.0-dev. Works for me, closing.

Note: See TracTickets for help on using tickets.