Bug report #12477

removing programmatically generated field while attribute table is open crashes QGIS

Added by Marco Bernasocchi over 9 years ago. Updated over 9 years ago.

Status:Closed
Priority:High
Assignee:-
Category:-
Affected QGIS version:2.8.1 Regression?:No
Operating System:Ubuntu Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:Yes Copied to github as #:20625

Description

Hi,
when doing the following I can consistently crash qgis:
- load shp
- open attribute table
- programmatically add a field do the SHP
- remove a field using the attribute table GUI

the attached script crashes qgis 2.8.1 when executed in the python console.

killqgis.py Magnifier - script to reproduce bug (849 Bytes) Marco Bernasocchi, 2015-03-30 08:19 AM

stack.txt Magnifier - stack trace (4.03 KB) Marco Bernasocchi, 2015-03-30 08:19 AM

Associated revisions

Revision 316210d6
Added by Jürgen Fischer over 9 years ago

fix crash attribute table crash when attributes are added/removed bypassing vector layer (fixes #12477)

Revision c1b74f8b
Added by Jürgen Fischer over 9 years ago

fix crash attribute table crash when attributes are added/removed bypassing vector layer (fixes #12477)

(cherry picked from commit 316210d62255729600edfe0ab8b3b43312725be5)

History

#1 Updated by Jürgen Fischer over 9 years ago

  • Assignee deleted (Jürgen Fischer)

#2 Updated by Jürgen Fischer over 9 years ago

  • Status changed from Open to Closed

Also available in: Atom PDF