Bug report #2768

crash when opening an invalid file

Added by Paolo Cavallini over 14 years ago. Updated over 14 years ago.

Status:Closed
Priority:Low
Assignee:nobody -
Category:Rasters
Affected QGIS version: Regression?:No
Operating System:Debian Easy fix?:No
Pull Request or Patch supplied: Resolution:invalid
Crashes QGIS or corrupts data: Copied to github as #:12828

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.

dem50.aux (6.36 KB) Paolo Cavallini, 2010-06-01 10:04 AM

History

#1 Updated by Giovanni Manghi over 14 years ago

Paolo, this should be duplicate of #2688

#2 Updated by Jürgen Fischer over 14 years ago

can't reproduce this either. Which GDAL version is in use?

#3 Updated by Borys Jurgiel over 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.

#4 Updated by Paolo Cavallini over 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

#5 Updated by Borys Jurgiel over 14 years ago

So you get the same behaviour with both gdals 1.6.3 and 1.7.1?

#6 Updated by Paolo Cavallini over 14 years ago

Same behaviour, different message.

#7 Updated by Jürgen Fischer over 14 years ago

Replying to [comment:4 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?

#8 Updated by Paolo Cavallini over 14 years ago

gdal 1.6.3 on 32, 1.7.1 on 64 bit

#10 Updated by Paolo Cavallini over 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'.

#11 Updated by Paolo Cavallini over 14 years ago

BTW, this bug renders the Image Boundary plugin unusable, if in the origin folder there are .tfw or other files.

#12 Updated by Jürgen Fischer over 14 years ago

Replying to [comment:12 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?

#13 Updated by Jürgen Fischer over 14 years ago

Replying to [comment:13 jef]:

could you provide a backtrace? Did you try without any plugins?

And a clean ~/.qgis...

#14 Updated by Paolo Cavallini over 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.

#15 Updated by Paolo Cavallini over 14 years ago

  • Status changed from Open to Closed
  • Resolution set to invalid

OK, got it: it's SDA4PP

Also available in: Atom PDF