Bug report #11269

can't access in Python to new features added to editBuffer

Added by enrico ferreguti over 5 years ago. Updated about 1 year ago.

Status:Closed
Priority:Normal
Assignee:-
Category:Python plugins
Affected QGIS version:2.4.0 Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:end of life
Crashes QGIS or corrupts data:No Copied to github as #:19568

Description

Trying to access to new features added to edit buffer causes application crash (v2.0 v2.4 in xp).
You can replicate the bug select a layer, enter in edit mode, add a feature and then input in python console the following command:

iface.legendInterface().currentLayer().editBuffer().addedFeatures()

I expect to find a QgsFeatureMap, but the application crashes.
If you simply edit layer without adding features the same command correctly gives {} (a void dict)

History

#1 Updated by Pirmin Kalberer over 5 years ago

  • Tracker changed from Support to Bug report
  • Project changed from QGIS Redmine (QGIS bug tracker) to QGIS Application
  • Affected QGIS version set to 2.4.0
  • Crashes QGIS or corrupts data set to No

#2 Updated by enrico ferreguti over 5 years ago

In windows 7 the command goes well

#3 Updated by Jürgen Fischer over 5 years ago

  • Category set to Python plugins

#4 Updated by Matthias Kuhn over 5 years ago

On Fedora Linux 64bit/current master the command works as expected

#5 Updated by enrico ferreguti over 5 years ago

I can't understand.
2.6.1 Brighton remains affected to this issue. And Only on XP systems. In all other platform I tested (windows 7, ubuntu 14.04, mac os mavericks) everything goes well.
What can be so system relevant so deep in the code?
I am deploying an application for a local government XP based environment for tracking urban planning documents editing and I'm going crazy.
Is there anyone that can figure what happens? Thanks a lot in advance
related minidump attached....

#6 Updated by Giovanni Manghi almost 3 years ago

  • Regression? set to No
  • Easy fix? set to No

#7 Updated by Giovanni Manghi about 1 year ago

  • Resolution set to end of life
  • Status changed from Open to Closed

Also available in: Atom PDF