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

Manipulating a cached WFS layer causes application crash #19396

Closed
qgib opened this issue Aug 15, 2014 · 4 comments
Closed

Manipulating a cached WFS layer causes application crash #19396

qgib opened this issue Aug 15, 2014 · 4 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Crash/Data Corruption Data Provider Related to specific vector, raster or mesh data providers

Comments

@qgib
Copy link
Contributor

qgib commented Aug 15, 2014

Author Name: James Nunn (James Nunn)
Original Redmine Issue: 11062
Affected QGIS version: 2.4.0
Redmine category:web_services_clients/wfs


Also noted at: [http://gis.stackexchange.com/questions/110651/qgsmaplayerregistry-removemaplayerswfs-layer-causes-crash]

First I loaded a single WFS layer (from Geoserver) into QGIS 2.4 using the standard 'Add WFS layer' dialog, keeping the 'Cache features' option checked. Then in the Python console, typed the following code:

lyr = iface.legendInterface().layers()[0]

Then one of the following lines:

QgsMapLayerRegistry.instance().removeMapLayer(lyr.id()) # or:
lyr.reload() # or:
lyr.dataProvider().reloadData()

These cause a crash to desktop with no warnings, errors or dumps.

If I add a layer by unchecking the 'Cache features' option, none of the problems occur. I am also trying to add the the layer using pyqgis, and to work around this will probably have to insert a precalculated bbox parameter in the WFS url.


Related issue(s): #18829 (relates)
Redmine related issue(s): 10413


@qgib
Copy link
Contributor Author

qgib commented Aug 15, 2014

Author Name: Matthias Kuhn (@m-kuhn)


  • fixed_version_id was configured as Version 2.6
  • priority_id was changed from Normal to Severe/Regression

@qgib
Copy link
Contributor Author

qgib commented Oct 16, 2014

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


not reproducable here using the "USA Population" layer from the geoserver from osgeo live 7.0 with either QGIS 2.4 or master.


  • status_id was changed from Open to Feedback

@qgib
Copy link
Contributor Author

qgib commented Oct 31, 2014

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


  • fixed_version_id was changed from Version 2.6 to Future Release - High Priority

@qgib
Copy link
Contributor Author

qgib commented Feb 15, 2015

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


closing for the lack of feedback


  • resolution was changed from to not reproducable
  • status_id was changed from Feedback to Closed

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Data Provider Related to specific vector, raster or mesh data providers Crash/Data Corruption labels May 25, 2019
@qgib qgib added this to the Future Release - High Priority milestone 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 Data Provider Related to specific vector, raster or mesh data providers
Projects
None yet
Development

No branches or pull requests

1 participant