<div dir="ltr">Hi,<div><br></div><div>I'm not getting any crash here.</div><div>Do you have any mean to produce a stacktrace?</div><div><br></div><div>Denis</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr">Le mar. 1 août 2017 à 12:30, Alexander Bruy <<a href="mailto:alexander.bruy@gmail.com">alexander.bruy@gmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Just tried this and still got crash<br>
<br>
2017-08-01 12:08 GMT+03:00 Nyall Dawson <<a href="mailto:nyall.dawson@gmail.com" target="_blank">nyall.dawson@gmail.com</a>>:<br>
> On 1 August 2017 at 17:40, Alexander Bruy <<a href="mailto:alexander.bruy@gmail.com" target="_blank">alexander.bruy@gmail.com</a>> wrote:<br>
>> Hi,<br>
>><br>
>> while working on Processing algorithms I have found an issue with<br>
>> QgsRasterHistogram class. According to the documentation, member<br>
>> histogramVector should not be available in Python [0], but it is present<br>
>> in the corresponding SIP file. However, any attempt to access this member<br>
>> leads to QGIS crash.<br>
>><br>
>> Should we remove histogramVector from Python? Or it should be exposed<br>
>> and there is a bug/incomplete implementation in bindings?<br>
><br>
> That's odd - there's nothing particularly unusal about<br>
> HistogramVector. A vector of ints should be accessibly from Python.<br>
><br>
> Why not try removing the typedef use from the sip file and see if that<br>
> helps? E.g.<br>
><br>
> #ifndef SIP_RUN<br>
> HistogramVector histogramVector;<br>
> #else<br>
> QVector<int> histogramVector;<br>
> #endif<br>
><br>
> Nyall<br>
><br>
><br>
><br>
>><br>
>> [0] <a href="http://qgis.org/api/classQgsRasterHistogram.html#a9bd23abeb4764f3a6c73975ee96fd4ff" rel="noreferrer" target="_blank">http://qgis.org/api/classQgsRasterHistogram.html#a9bd23abeb4764f3a6c73975ee96fd4ff</a><br>
>><br>
>> --<br>
>> Alexander Bruy<br>
>> _______________________________________________<br>
>> QGIS-Developer mailing list<br>
>> <a href="mailto:QGIS-Developer@lists.osgeo.org" target="_blank">QGIS-Developer@lists.osgeo.org</a><br>
>> List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
>> Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
<br>
<br>
<br>
--<br>
Alexander Bruy<br>
_______________________________________________<br>
QGIS-Developer mailing list<br>
<a href="mailto:QGIS-Developer@lists.osgeo.org" target="_blank">QGIS-Developer@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a></blockquote></div>