-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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 segfaults when using Qgsvectorlayer.select() inside geometryChanged handler #15751
Comments
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Daniel Vaz (Daniel Vaz) I create a test plugin that do nothing, except for connect the same signal and try to select something in the active layer. The plugin works fine. I am used a shape layer and node tool (from mDigitizeToolBar) and move tool, too. Nothing crash. Are you sure about the existence of layer_B when some feature of layer_A was changed? I look forward to hear you soon.
|
Author Name: Daniel Vaz (Daniel Vaz) Steps to use the plugin 1 - Open Qgis Works fine. |
Author Name: Jürgen Fischer (@jef-n)
|
Author Name: Rafael Varela (@rpet) Daniel Vaz wrote:
Well, I'm pretty sure that @layer_B@ existed when I did my tests, but I will check it again with the current "master". I still have to upgrade my installation to run your plugin. Bear in mind that this report is 9 months old and things may have changed a lot from the code revision I used (probably, fb7c596 from OSGeo4W package 1.9.0-227) Thank you for your interest in this issue. |
Author Name: Daniel Vaz (Daniel Vaz) You are right. A long time has passed since you post it. Probably the SIP was broken when you report the bug. Thanks |
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Matthias Kuhn (@m-kuhn) Closed due to lack of feedback.
|
Author Name: Rafael Varela (@rpet)
Original Redmine Issue: 6547
Affected QGIS version: master
Redmine category:vectors
I'm developing a python plugin in QGIS 1.9.0-master that makes QGIS
segfault when I call @Qgsvectorlayer.select()@ inside a @geometryChanged@
signal handler.
My code looks like this:
QGIS only segfaults when using the node tool of @mDigitizeToolBar@. It does not crash when I use the move feature tool.
Looking at the source code in the git repository I found out that most of the @Qgsvectorlayer::select()@ functionality resides in the @select()@ functions of the data provider, so I decided to write the layers to disk and switch the layer data provider from "memory" to "ogr".
Unfortunately, the problem still persists.
The text was updated successfully, but these errors were encountered: