Crash after using memory data provider in python and adding the layer to the layer registry #19827
Labels
Bug
Either a bug report, or a bug fix. Let's hope for the latter!
Crash/Data Corruption
PyQGIS
Related to the PyQGIS API
Author Name: Thilo Schneider (Thilo Schneider)
Original Redmine Issue: 11562
Affected QGIS version: 2.6.0
Redmine category:pyqgis_console
The following code creates an immediate crash when inserted into the python console:
@
vectorlayer = QgsVectorLayer("Point?crs=epsg:31467", "Player", "memory")
vectorlayer.updateExtents()
QgsMapLayerRegistry.instance().addMapLayer(vectorlayer)
@
If one first adds the vectorlayer to the layer registry and then updates the extends, QGis crashes not immediately but as soon as the map is redrawn the next time. The crash persists if I add features to the layer before adding it to the layer registry.
All third party plugins are disabled in my installation. The same code has been working in 2.4.
The text was updated successfully, but these errors were encountered: