Bug report #2688
crash when opening an unsupported raster layer
|Affected QGIS version:||
|Pull Request or Patch supplied:||
|Crashes QGIS or corrupts data:||
||Copied to github as #:||12748
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.
Looks like a trivial test is needed.
I can add unsupported file formats with 735f9e03 (SVN r13413) just fine.
Ok, I also get the error message, but it doesn't crash.
ok, I'll debug it farther
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"
The crash happens (under linux) also when I try to open a mrsid raster in a installation where I have not enabled mrsid support.
mails about my last two comments have not been sent by the system, so I'll bump this ticket.
Slightly different, but it could be the same: #2768
Still not reproducable. Which GDAL version is in use where it the crashes?
- Status changed from Open to Closed
- Resolution set to invalid
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.
Btw. Lutra, if you can confirm the crash with gdal 1.7, please reopen.
a quick test with Ubuntu 10.04 and qgis trunk and now it seems that does not crash anymore.
Confirmed, the bug is still there, both with GDAL 1.6 and 1.7
GDAL Error 4: @/home/paolo/Desktop/2010.ods' not recognised as a supported file format.
During startup - Warning message:
Also available in: Atom