[Qgis-developer] fieldNameMap() crashes QGIS

Matthias Kuhn matthias.kuhn at gmx.ch
Mon Jul 29 06:19:16 PDT 2013


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:
> 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
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer




More information about the Qgis-developer mailing list