Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crash when opening an unsupported raster layer #12748

Closed
qgib opened this issue May 2, 2010 · 11 comments
Closed

crash when opening an unsupported raster layer #12748

qgib opened this issue May 2, 2010 · 11 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Rasters Related to general raster layer handling (not specific data formats)
Milestone

Comments

@qgib
Copy link
Contributor

qgib commented May 2, 2010

Author Name: Borys Jurgiel (@borysiasty)
Original Redmine Issue: 2688

Redmine category:rasters
Assignee: ersts -


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.

@qgib
Copy link
Contributor Author

qgib commented May 2, 2010

Author Name: Jürgen Fischer (@jef-n)


I can add unsupported file formats with 735f9e0 (SVN r13413) just fine.
Ok, I also get the error message, but it doesn't crash.

@qgib
Copy link
Contributor Author

qgib commented May 2, 2010

Author Name: Borys Jurgiel (@borysiasty)


ok, I'll debug it farther

@qgib
Copy link
Contributor Author

qgib commented May 24, 2010

Author Name: Giovanni Manghi (@gioman)


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"

@qgib
Copy link
Contributor Author

qgib commented May 25, 2010

Author Name: Giovanni Manghi (@gioman)


The crash happens (under linux) also when I try to open a mrsid raster in a installation where I have not enabled mrsid support.

@qgib
Copy link
Contributor Author

qgib commented May 25, 2010

Author Name: Giovanni Manghi (@gioman)


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

@qgib
Copy link
Contributor Author

qgib commented Jun 1, 2010

Author Name: Paolo Cavallini (@pcav)


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

@qgib
Copy link
Contributor Author

qgib commented Jun 8, 2010

Author Name: Jürgen Fischer (@jef-n)


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

@qgib
Copy link
Contributor Author

qgib commented Jun 8, 2010

Author Name: Borys Jurgiel (@borysiasty)


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.


  • status_id was changed from Open to Closed
  • resolution was changed from to invalid

@qgib
Copy link
Contributor Author

qgib commented Jun 8, 2010

Author Name: Borys Jurgiel (@borysiasty)


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

@qgib
Copy link
Contributor Author

qgib commented Jun 8, 2010

Author Name: Giovanni Manghi (@gioman)


a quick test with Ubuntu 10.04 and qgis trunk and now it seems that does not crash anymore.

@qgib
Copy link
Contributor Author

qgib commented Jun 9, 2010

Author Name: Paolo Cavallini (@pcav)


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

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Rasters Related to general raster layer handling (not specific data formats) labels May 24, 2019
@qgib qgib added this to the Version 1.5.0 milestone May 24, 2019
@qgib qgib closed this as completed May 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Rasters Related to general raster layer handling (not specific data formats)
Projects
None yet
Development

No branches or pull requests

1 participant