Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#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 jef, 14 years ago

I can add unsupported file formats with r13412 just fine. Ok, I also get the error message, but it doesn't crash.

comment:2 by borysiasty, 14 years ago

ok, I'll debug it farther

comment:3 by lutra, 14 years ago

Owner: changed from nobody to ersts

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 lutra, 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 lutra, 14 years ago

mails about my last two comments have not been sent by the system, so I'll bump this ticket.

comment:6 by pcav, 14 years ago

Slightly different, but it could be the same: #2768

comment:7 by jef, 14 years ago

Still not reproducable. Which GDAL version is in use where it the crashes?

comment:8 by borysiasty, 14 years ago

Resolution: invalid
Status: newclosed

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:9 by borysiasty, 14 years ago

Btw. Lutra, if you can confirm the crash with gdal 1.7, please reopen.

comment:10 by lutra, 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 pcav, 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

Note: See TracTickets for help on using tickets.