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 after using memory data provider in python and adding the layer to the layer registry #19827

Closed
qgib opened this issue Nov 4, 2014 · 7 comments
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

Comments

@qgib
Copy link
Contributor

qgib commented Nov 4, 2014

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.


@qgib
Copy link
Contributor Author

qgib commented Nov 4, 2014

Author Name: Thilo Schneider (Thilo Schneider)


Forgot to mention: Testing has been done under Ubuntu Precise.

@qgib
Copy link
Contributor Author

qgib commented Nov 5, 2014

Author Name: Giovanni Manghi (@gioman)


tagging as a regression waiting for the feedback of a developer.


  • priority_id was changed from High to Severe/Regression

@qgib
Copy link
Contributor Author

qgib commented Nov 7, 2014

Author Name: Martin Dobias (@wonder-sk)


I cannot replicate the crash (ubuntu trusty)

@qgib
Copy link
Contributor Author

qgib commented Nov 7, 2014

Author Name: Giovanni Manghi (@gioman)


  • status_id was changed from Open to Feedback

@qgib
Copy link
Contributor Author

qgib commented Nov 7, 2014

Author Name: Thilo Schneider (Thilo Schneider)


Is there anything else I can provide to make tracking the problem easier for you?

@qgib
Copy link
Contributor Author

qgib commented Nov 10, 2014

Author Name: Salvatore Larosa (@slarosa)


Thilo Schneider wrote:

Is there anything else I can provide to make tracking the problem easier for you?

Yes, could you try to run QGIS with the @--noplugins@ option, please?

@qgib
Copy link
Contributor Author

qgib commented Nov 16, 2014

Author Name: Thilo Schneider (Thilo Schneider)


Problem solved. It turned out that I had an old dependency installed on my system.


  • 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! PyQGIS Related to the PyQGIS API 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 PyQGIS Related to the PyQGIS API
Projects
None yet
Development

No branches or pull requests

1 participant