Opened 14 years ago
Closed 14 years ago
#2768 closed bug (invalid)
crash when opening an invalid file
Reported by: | pcav | Owned by: | nobody |
---|---|---|---|
Priority: | critical: causes crash or data corruption | Milestone: | Version 1.5.0 |
Component: | Rasters | Version: | Trunk |
Keywords: | Cc: | ||
Must Fix for Release: | Yes | Platform: | Debian |
Platform Version: | Awaiting user input: | no |
Description
If one tries to open the accessory .aux file instead of the .adf, QGIS crashes:
Error:
GDAL Error 1: Can't find RasterDMS field in Eimg_Layer with block list.
Segmentation fault
I'm attaching the file causing the crash.
Attachments (1)
Change History (17)
by , 14 years ago
comment:1 by , 14 years ago
comment:2 by , 14 years ago
Summary: | chrash when opening a raster .aux accessory file → crash when opening a raster .aux accessory file |
---|
can't reproduce this either. Which GDAL version is in use?
comment:3 by , 14 years ago
Paolo, can you test it with gdal 1.7? At mine, this one and #2688 seem to be related to gdal 1.6.x only.
follow-ups: 8 10 comment:4 by , 14 years ago
Confirmed: it crashes with the above mentioned error with libgdal1-1.7.0 Version: 1.7.1-1 from Debian experimental. It crashes with error:
Error:
GDAL Error 4: `/home/paolo/Desktop/dem50.aux' not recognised as a supported file format.
During startup - Warning message: �w� Segmentation fault
with libgdal1-1.6.0 Version: 1.6.3-4 from Debian testing
comment:7 by , 14 years ago
Must Fix for Release: | No → Yes |
---|
comment:8 by , 14 years ago
Replying to pcav:
Confirmed: it crashes with the above mentioned error with libgdal1-1.7.0 Version: 1.7.1-1 from Debian experimental. It crashes with error:
32 or 64bit?
comment:10 by , 14 years ago
Does it crash also when you have only the .aux
? Maybe that why it doesn't crash here. Does gdalinfo -mm dem50.aux
also crash for you?
comment:11 by , 14 years ago
Yes, it crashes also when I have only the .aux:
Error:
GDAL Error 4: `/home/paolo/article.aux' not recognised as a supported file format.
Segmentation fault
gdalinfo -mm /home/paolo/article.aux gives the same error:
ERROR 4: `/home/paolo/article.aux' not recognised as a supported file format.
gdalinfo failed - unable to open '/home/paolo/article.aux'.
follow-up: 13 comment:12 by , 14 years ago
Summary: | crash when opening a raster .aux accessory file → crash when opening an invalid file |
---|
BTW, this bug renders the Image Boundary plugin unusable, if in the origin folder there are .tfw or other files.
follow-up: 14 comment:13 by , 14 years ago
Replying to pcav:
BTW, this bug renders the Image Boundary plugin unusable, if in the origin folder there are .tfw or other files.
could you provider a backtrace? Did you try without any plugins?
comment:14 by , 14 years ago
Replying to jef:
could you provide a backtrace? Did you try without any plugins?
And a clean ~/.qgis...
comment:15 by , 14 years ago
You are right (as usual): it depends on some plugin - removing the it does not crash, putting them back it does. Now it's a long way to test every one.
Paolo, this should be duplicate of #2688