#2688 closed bug (invalid)
crash when opening an unsupported raster layer
Reported by: | borysiasty | Owned by: | ersts |
---|---|---|---|
Priority: | critical: causes crash or data corruption | Milestone: | Version 1.5.0 |
Component: | Rasters | Version: | Trunk |
Keywords: | raster open crash | Cc: | |
Must Fix for Release: | Yes | Platform: | Debian |
Platform Version: | Awaiting user input: | no |
Description
When I accidentaly try to add a raster file not supported by GDAL (e.g. something nonsensical like a mp3), qgis crashes with the error:
Error: GDAL Error 4: `/home/borys/foo.mp3' not recognised as a supported file format. Segmentation fault
Looks like a trivial test is needed.
Change History (11)
comment:1 by , 14 years ago
comment:3 by , 14 years ago
Owner: | changed from | to
---|
I can replicate this under linux.
Open a GRASS raster and export it with the module r.out.ascii
Then try to add it to QGIS, under linux it will crashes with
GDAL Error 4: `/home/gio/Desktop/teste1' not recognised as a supported file format.
under windows it will show only
"is not a supported raster data source"
comment:4 by , 14 years ago
The crash happens (under linux) also when I try to open a mrsid raster in a installation where I have not enabled mrsid support.
comment:5 by , 14 years ago
mails about my last two comments have not been sent by the system, so I'll bump this ticket.
comment:7 by , 14 years ago
Still not reproducable. Which GDAL version is in use where it the crashes?
comment:8 by , 14 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
Now it works again with gdal 1.7, the problems were with 1.6. I'm closing the ticket as it seems to be related to gdal only.
comment:10 by , 14 years ago
a quick test with Ubuntu 10.04 and qgis trunk and now it seems that does not crash anymore.
comment:11 by , 14 years ago
Confirmed, the bug is still there, both with GDAL 1.6 and 1.7
Error:
GDAL Error 4: `/home/paolo/Desktop/2010.ods' not recognised as a supported file format.
During startup - Warning message: �� Segmentation fault
I can add unsupported file formats with r13412 just fine. Ok, I also get the error message, but it doesn't crash.