Bug report #7483
Crash after selecting rows in attribute table
Status: | Closed | ||
---|---|---|---|
Priority: | Severe/Regression | ||
Assignee: | Matthias Kuhn | ||
Category: | - | ||
Affected QGIS version: | master | Regression?: | No |
Operating System: | Easy fix?: | No | |
Pull Request or Patch supplied: | No | Resolution: | |
Crashes QGIS or corrupts data: | Yes | Copied to github as #: | 16435 |
Description
Seems caused by merging dual-view branch.
Steps to reproduce:- open any vector layer
- open attribute table
- select on row, then try to select another row or select several features
- QGIS crashes with "Segmentation fault"
Associated revisions
[FIX #7483] Attribute table changed selection on layer twice subsequently
This led to a crash and was superfluent
History
#1 Updated by Matthias Kuhn over 11 years ago
- Status changed from Open to Feedback
Sorry, I can't reproduce this here.
Can somebody else confirm?
Alex, what dataprovider are you using?
I tried postgres (with and without "select at id") and shapefile.
#2 Updated by Regis Haubourg over 11 years ago
Yes confirmed here right now on windows.
#3 Updated by Alexander Bruy over 11 years ago
- File admin.tar.bz2 added
Tested with shapefiles (sample dataset attached) and with postgresql/postgis (connection settings http://gis-lab.info/qa/geosample.html#PostGIS) with same result. QGIS crashes with "Segmentation fault". Here is last few strings from console output
Debug: src/core/qgsmaprenderer.cpp: 369: (render) If there is a QPaintEngine error here, it is caused by an emit call Debug: src/core/qgsmaprenderer.cpp: 387: (render) layer admin: minscale:0 maxscale:1e+08 scaledepvis:0 extent:75.0819396972655966,49.0830841064452983 : 89.8699798583983949,57.2502746582030966 blendmode:0 Debug: src/core/qgsmaprenderer.cpp: 478: (render) Caching enabled but layer redraw forced by extent change or empty cache Debug: src/core/qgsmaplayer.cpp: 1246: (setCacheImage) cache Image set! Debug: src/core/qgsvectorlayer.cpp: 982: (draw) rendering v2: SINGLE: FILL SYMBOL (1 layers) color 225,110,231,255 Debug: src/core/qgspallabeling.cpp: 1240: (prepareLayer) PREPARE LAYER admin20130402143234605 Debug: src/providers/postgres/qgspostgresconn.cpp: 804: (openCursor) Starting read-only transaction Debug: src/core/qgsmaplayer.cpp: 1246: (setCacheImage) cache Image set! Warning: QPaintDevice: Cannot destroy paint device that is being painted Segmentation fault
Can't get anything useful from gdb.
Maybe local issue. Anyone else can confirm?
#4 Updated by Matthias Kuhn over 11 years ago
Confirmed with the attached shapefile. Will look into this.
#5 Updated by Matthias Kuhn over 11 years ago
- Status changed from Feedback to In Progress
The attribute table was a bit overactive in feature selection. It called setSelectedFeatures twice subsequently. Apparently QGIS didn't like this.
#6 Updated by Jürgen Fischer over 11 years ago
- Status changed from In Progress to Closed
Fixed in changeset 255b467b4620862d81acf49325388ca927ee1f12.