[QGIS-trac] [Quantum GIS] #2649: editing postgis attriubte table crashs qgis when some fields are hidden

Quantum GIS qgis at qgis.org
Wed Apr 14 05:55:47 EDT 2010


#2649: editing postgis attriubte table crashs qgis when some fields are hidden
---------------------------------------------------------+------------------
   Reporter:  cmoe                                       |              Owner:  nobody       
       Type:  bug                                        |             Status:  new          
   Priority:  critical: causes crash or data corruption  |          Milestone:  Version 1.5.0
  Component:  Data Provider                              |            Version:  HEAD         
   Keywords:  attribute table; editing                   |   Platform_version:               
   Platform:  RedHat                                     |           Must_fix:  Yes          
Status_info:  0                                          |  
---------------------------------------------------------+------------------
 Editing the attribute table of an postgis layer with hidden fields leads
 to a crash when toggling back the editing mode.

  1. Add a postgis layer to qgis
  2. Open the layer properties
  3. Go to the attributes and set for some fields the edit widget to
 'hidden'
  4. Open the attribute table
  5. Enable editing and do some changes
  6. Disable editing
  7. Qgis crashes

 The message in the terminal window is: Fatal: ASSERT failure in
 QList<T>::operator[]: "index out of range", file
 /usr/local/qt-4.5.2/include/QtCore/qlist.h, line 399

 Reloading the same postgis layer shows, that the changes are saved, its
 only qgis that crashes ....

-- 
Ticket URL: <http://trac.osgeo.org/qgis/ticket/2649>
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