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

QGIS Crash when trying to load a point layer to georss file #18925

Closed
qgib opened this issue Jun 9, 2014 · 5 comments
Closed

QGIS Crash when trying to load a point layer to georss file #18925

qgib opened this issue Jun 9, 2014 · 5 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Crash/Data Corruption High Priority Vectors Related to general vector layer handling (not specific data formats)

Comments

@qgib
Copy link
Contributor

qgib commented Jun 9, 2014

Author Name: Richard Duivenvoorde (@rduivenvoorde)
Original Redmine Issue: 10515
Affected QGIS version: master
Redmine category:vectors


I'm on a715ce6 debian testing.

And wanted to try to save a point shp file to save as georss (via saveAs), QGIS crashes.

Easy to reproduce: you can even create a memory layer with one point (epsg:4326), save as GeoRSS and QGIS crashes with segfault.

Tried to run with gdb, but only got this backtrace (first saved as geojson, which was ok):

src/core/qgsvectorfilewriter.cpp: 1862: (writeAsVectorFormat) newFilename = /tmp/georss.geojson
[Thread 0x7fff73c56700 (LWP 11325) exited]
src/gui/qgscollapsiblegroupbox.cpp: 112: (showEvent) found a QScrollArea parent: scrollArea
src/gui/qgscollapsiblegroupbox.cpp: 372: (updateStyle) groupbox: mExtentGroupBox style: gtk+ offset: left=0 top=1 top2=5
src/gui/qgscollapsiblegroupbox.cpp: 112: (showEvent) found a QScrollArea parent: scrollArea
src/gui/qgscollapsiblegroupbox.cpp: 372: (updateStyle) groupbox: mLayerOptionsGroupBox style: gtk+ offset: left=0 top=1 top2=5
src/gui/qgscollapsiblegroupbox.cpp: 112: (showEvent) found a QScrollArea parent: scrollArea
src/gui/qgscollapsiblegroupbox.cpp: 372: (updateStyle) groupbox: mOgrOptionsGroupBox style: gtk+ offset: left=0 top=1 top2=5
src/gui/qgscollapsiblegroupbox.cpp: 112: (showEvent) found a QScrollArea parent: scrollArea
src/gui/qgscollapsiblegroupbox.cpp: 372: (updateStyle) groupbox: mDatasourceOptionsGroupBox style: gtk+ offset: left=0 top=1 top2=5
[New Thread 0x7fff73c56700 (LWP 11413)]
[New Thread 0x7fff73455700 (LWP 11414)]
[Thread 0x7fff73c56700 (LWP 11413) exited]
[New Thread 0x7fff73c56700 (LWP 11415)]
[Thread 0x7fff73c56700 (LWP 11415) exited]
src/core/qgsvectorfilewriter.cpp: 230: (QgsVectorFileWriter) Created data source
src/core/qgsvectorfilewriter.cpp: 254: (QgsVectorFileWriter) WKT to save as is GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4326"]]
src/core/qgsvectorfilewriter.cpp: 322: (QgsVectorFileWriter) created layer
src/core/qgsvectorfilewriter.cpp: 325: (QgsVectorFileWriter) creating 0 fields
src/core/qgsvectorfilewriter.cpp: 470: (QgsVectorFileWriter) Done creating fields
src/core/qgsvectorfilewriter.cpp: 1862: (writeAsVectorFormat) newFilename = /tmp/georss.xml

Program received signal SIGSEGV, Segmentation fault.
0x0000000000000041 in ?? ()

Tested also on windows, but there is seems ok.
Anybody can confirm?

@qgib
Copy link
Contributor Author

qgib commented Jun 9, 2014

Author Name: Giovanni Manghi (@gioman)


I can confirm on Ubuntu/master/64 self compiled.


  • crashes_corrupts_data was changed from 0 to 1
  • category_id was configured as Vectors
  • version was changed from 2.2.0 to master

@qgib
Copy link
Contributor Author

qgib commented Jun 17, 2014

Author Name: Martin Dobias (@wonder-sk)


I can replicate - the crash happens inside the OGR library:

#_0  0x0000000000000040 in ?? ()
#_1  0x00007ffff4f8b089 in OGRGeomFieldDefn::~OGRGeomFieldDefn (this=0x49aa510, __in_chrg=<optimized out>) at ogrgeomfielddefn.cpp:124
#_2  0x00007ffff4f4544f in OGRFeatureDefn::~OGRFeatureDefn (this=0x1134be0, __in_chrg=<optimized out>) at ogrfeaturedefn.cpp:116
#_3  0x00007ffff4f454a9 in OGRFeatureDefn::~OGRFeatureDefn (this=0x1134be0, __in_chrg=<optimized out>) at ogrfeaturedefn.cpp:120
#_4  0x00007ffff4de77d3 in OGRGeoRSSLayer::~OGRGeoRSSLayer (this=0x49aa360, __in_chrg=<optimized out>) at ogrgeorsslayer.cpp:156
#_5  0x00007ffff4de78e9 in OGRGeoRSSLayer::~OGRGeoRSSLayer (this=0x49aa360, __in_chrg=<optimized out>) at ogrgeorsslayer.cpp:180
#_6  0x00007ffff4de675f in OGRGeoRSSDataSource::~OGRGeoRSSDataSource (this=0x498ed70, __in_chrg=<optimized out>) at ogrgeorssdatasource.cpp:82
#_7  0x00007ffff4de6809 in OGRGeoRSSDataSource::~OGRGeoRSSDataSource (this=0x498ed70, __in_chrg=<optimized out>) at ogrgeorssdatasource.cpp:85
#_8  0x00007ffff40a7207 in QgsVectorFileWriter::~QgsVectorFileWriter (this=0x4e93950, __in_chrg=<optimized out>) at /home/martin/qgis/git-master/src/core/qgsvectorfilewriter.cpp:1777

@qgib
Copy link
Contributor Author

qgib commented Jun 18, 2014

Author Name: Richard Duivenvoorde (@rduivenvoorde)


but ogr/ogr2ogr seems ok?

I can happily create a georss file from given shp file with:

ogr2ogr -f GeoRSS output.xml -dsco USE_EXTENSIONS=YES poly4326.shp

(where poly4326.shp is a one polygon in epsg:4326)

Exact trying to save that shape in QGIS crashes it.

I thought to create an issue at GDAL, but I cannot reproduce it with ogr2ogr or so...

@qgib
Copy link
Contributor Author

qgib commented Oct 30, 2014

Author Name: Giovanni Manghi (@gioman)


still true on the latest master.

@qgib
Copy link
Contributor Author

qgib commented Oct 18, 2015

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


Fixed in changeset "cee63c84f7f85586ddcb5348e70a0af0b1bcdf5e".


  • status_id was changed from Open to Closed

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! High Priority Vectors Related to general vector layer handling (not specific data formats) Crash/Data Corruption labels May 25, 2019
@qgib qgib closed this as completed May 25, 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! Crash/Data Corruption High Priority Vectors Related to general vector layer handling (not specific data formats)
Projects
None yet
Development

No branches or pull requests

1 participant