[QGIS-trac] Re: [Quantum GIS] #3366: QgsVectorLayer.committedFeaturesRemoved causes crash in Python

Quantum GIS qgis at qgis.org
Mon Dec 27 16:28:48 EST 2010


#3366: QgsVectorLayer.committedFeaturesRemoved causes crash in Python
---------------------------------------------------------+------------------
   Reporter:  ccrook                                     |              Owner:  borysiasty   
       Type:  bug                                        |             Status:  new          
   Priority:  critical: causes crash or data corruption  |          Milestone:  Version 1.7.0
  Component:  Python plugins and bindings                |            Version:  1.6.0        
   Keywords:                                             |   Platform_version:  XP SP3       
   Platform:  Windows                                    |           Must_fix:  No           
Status_info:  0                                          |  
---------------------------------------------------------+------------------

Comment(by wonder):

 When running the code in python console I get this (for the connect()
 call):

 {{{
 Traceback (most recent call last):
   File "<input>", line 1, in <module>
 TypeError: type 'QgsFeatureIds' is not supported as a slot argument type
 }}}

 (this is sip v4.10.5 and pyqt v4.7.4)

 It doesn't crash for me. I see several possible causes of your crash:

  * {{{QgsFeatureIds}}} was not known by sip
  * the committed*(...) signals were not known by sip (they were added in
 qgis 1.6 but not also to pyqgis)

 I have fixed both in r14978 - please give it another try with new trunk
 and close this bug if it works now.

 Martin

-- 
Ticket URL: <https://trac.osgeo.org/qgis/ticket/3366#comment:2>
Quantum GIS <http://qgis.org>
Quantum GIS is an Open Source GIS viewer/editor supporting OGR, PostGIS, and GRASS formats


More information about the QGIS-trac mailing list