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 states min SIP version is 4.5) I think we already do use some 
(newer version only) sipType calls not within an #if condition, so I 
guess somebody would have complained if this would be an issue...


On Son 28 Jul 2013 16:13:46 CEST, Alexander Bruy wrote:
> 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

Hi Alexander,

Confirmed here. Seems to be an error in the MappedType code, because 
we're using the deprecated sipConvertFromNewInstance instead of 
sipConvertFromNewType.
_______________________________________________
Qgis-developer mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to