Re: [Qgis-developer] fieldNameMap() crashes QGIS

2013-07-29 Thread Alexander Bruy
Hi Matthias, many thanks, now works fine for me. 2013/7/29 Matthias Kuhn matthias.k...@gmx.ch: Commit 8c81032 implements this change. Can you please do a short check and open a bugreport if there's still a problem. Thanks, Matthias On Son 28 Jul 2013 23:27:24 CEST, Matthias Kuhn wrote:

[Qgis-developer] fieldNameMap() crashes QGIS

2013-07-28 Thread Alexander Bruy
Hi all, seems calling fieldNameMap() on vector data provider crashes QGIS. To reproduce load shapefile and run in Python console next commands: l = iface.mapCanvas().currentLayer() fm = l.dataProvider().fieldNameMap() Anyone confirms? Should I file a ticket? Thanks -- Alexander Bruy

Re: [Qgis-developer] fieldNameMap() crashes QGIS

2013-07-28 Thread Gino Pirelli
On 28 July 2013 16:13, Alexander Bruy alexander.b...@gmail.com wrote: l = iface.mapCanvas().currentLayer() fm = l.dataProvider().fieldNameMap() I confirm using python console... not using a plugin that use this function. signal received in Quantum-GIS/python/core/conversions.sip:906 This is

Re: [Qgis-developer] fieldNameMap() crashes QGIS

2013-07-28 Thread Matthias Kuhn
Seems switching from the deprecated sipInstance... calls to sipType... calls (e.g. sipConvertFromType, sipCanConvertFromType etc) solves this issue. However, these are deprecated since sip 4.8. Can we switch all of them or do we need to support older sip versions still? (The INSTALL file