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

If there is any feature selected, QGIS crashes on exiting. #12435

Closed
qgib opened this issue Jan 18, 2010 · 7 comments
Closed

If there is any feature selected, QGIS crashes on exiting. #12435

qgib opened this issue Jan 18, 2010 · 7 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Plugins
Milestone

Comments

@qgib
Copy link
Contributor

qgib commented Jan 18, 2010

Author Name: luca76 - (luca76 -)
Original Redmine Issue: 2375

Redmine category:python_plugins
Assignee: Jürgen Fischer


I've wrote a python plugin that selects some features and views them on the map.

I found that if there's a particular [[PostGIS]] layer and you select some features from a Shapefile Vector layer, exiting QGIS crashes.

To test a plugin, you can download the "Find attribute plugin 0.3" and modify it in order to view the selected features. I'll attach it anyway.

Steps to reproduce:

  1. create a [[PostGIS]] layer whith the attached code;
  2. open QGIS;
  3. add the [[PostGIS]] layer;
  4. add a line multistring shapefile vector layer (i.e. roads);
  5. use the Find By Attribute 0.3 plugin and modify it in order to view selected features
  6. exit QGIS by clicking on "X" of the window
  7. QGIS crashes

@qgib
Copy link
Contributor Author

qgib commented Jan 18, 2010

Author Name: Giovanni Manghi (@gioman)


I'm trying to replicate the issue but I'm not understanding much.

Can you explain me what exactly to do in step 5)?

The features to be selected are in the postgis layer created with the sql you attached or in the vector you say to add in step 4) ? What has one vector to do with the other?

The findbyattr.py file you attached is to replace the original provided with the "find by attribute plugin"? If yes, should I see something different in the modified plugin? I tried and it seems the same to me.

@qgib
Copy link
Contributor Author

qgib commented Jan 18, 2010

Author Name: luca76 - (luca76 -)


Download "find by attribute 0.3" from the plugin repository; then replace the Findbyattr.py code with the attached one.

The difference is that the attached code selects the found features on the map and zooms to them.

Use the plugin to find for road name (from the vector layer).

After if you exit Qgis, it crashes.

@qgib
Copy link
Contributor Author

qgib commented Jan 20, 2010

Author Name: Giovanni Manghi (@gioman)


Replying to [comment:2 trapanator]:

Download "find by attribute 0.3" from the plugin repository; then replace the Findbyattr.py code with the attached one.

The difference is that the attached code selects the found features on the map and zooms to them.

ok, I'll try it.

Use the plugin to find for road name (from the vector layer).

what vector layer? the sql statement you attached does not add any "road" vector/table.

@qgib
Copy link
Contributor Author

qgib commented Jan 20, 2010

Author Name: luca76 - (luca76 -)


Replying to [comment:3 lutra]:

Use the plugin to find for road name (from the vector layer).

what vector layer? the sql statement you attached does not add any "road" vector/table.

see the step 3) of the description of the bug. If you want to test, download it from here:

http://webapps.comune.trento.it/base/varie.zip

crashes in Windows XP (with OSGEO4W and the official setup), but maybe it's a Operating System related bug (in Ubuntu I am not able to reproduce it...)

@qgib
Copy link
Contributor Author

qgib commented Jan 20, 2010

Author Name: luca76 - (luca76 -)


I found that de-selecting features BEFORE exit, QGIS no longer crashes. Maybe it's a memory leak bug.

@qgib
Copy link
Contributor Author

qgib commented Jan 20, 2010

Author Name: Giovanni Manghi (@gioman)


I really don't know if I'm doing it right, but I get no crashes under qgis 1.4 (osgeo4w) under xp.

Added the the "grafo" vector layer

Replaced the findbyattr.py of the "find by attribute plugin"

Tested the modified plugin (that seems to work fine) on the "grafo" vector layer both as shape and postgis

Even with features selected, closing qgis (in all possible ways) does not give a crash

@qgib
Copy link
Contributor Author

qgib commented Jan 22, 2010

Author Name: luca76 - (luca76 -)


I made another test. It's a subdle bug, and I found that the guilty might be a corrupted ECW image.

Setting this bug CLOSED INVALID.


  • resolution was changed from to invalid
  • 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! Plugins labels May 24, 2019
@qgib qgib added this to the Version 1.5.0 milestone May 24, 2019
@qgib qgib closed this as completed May 24, 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! Plugins
Projects
None yet
Development

No branches or pull requests

1 participant