<div dir="ltr"><div>Hi,<br></div>It's discussed in this bug report : <a href="http://hub.qgis.org/issues/13494">http://hub.qgis.org/issues/13494</a><br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-10-28 10:21 GMT+01:00 Luigi Pirelli <span dir="ltr"><<a href="mailto:luipir@gmail.com" target="_blank">luipir@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I suppose QtGui.QApplication(sys.argv) would be before the<br>
initQgis().... new Auth system need a QApplication to work.<br>
<br>
I can't remember where there were a Larry Shaffer post regarding<br>
this... I can't find it now. Please ttest and give confirmation in the<br>
list.<br>
<br>
regards<br>
Luigi Pirelli<br>
<br>
**************************************************************************************************<br>
* LinkedIn: <a href="https://www.linkedin.com/in/luigipirelli" rel="noreferrer" target="_blank">https://www.linkedin.com/in/luigipirelli</a><br>
* Elance: <a href="https://www.elance.com/s/edit/luigipirelli/" rel="noreferrer" target="_blank">https://www.elance.com/s/edit/luigipirelli/</a><br>
* GitHub: <a href="https://github.com/luipir" rel="noreferrer" target="_blank">https://github.com/luipir</a><br>
* Stackexchange: <a href="http://gis.stackexchange.com/users/19667/luigi-pirelli" rel="noreferrer" target="_blank">http://gis.stackexchange.com/users/19667/luigi-pirelli</a><br>
* Mastering QGIS:<br>
<a href="https://www.packtpub.com/application-development/mastering-qgis" rel="noreferrer" target="_blank">https://www.packtpub.com/application-development/mastering-qgis</a><br>
**************************************************************************************************<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
On 28 October 2015 at 10:01, Alessandro Pasotti <<a href="mailto:apasotti@gmail.com">apasotti@gmail.com</a>> wrote:<br>
> 2015-10-28 9:57 GMT+01:00 François-Xavier Thomas<br>
> <<a href="mailto:francois-xavier.thomas@airinov.fr">francois-xavier.thomas@airinov.fr</a>>:<br>
>><br>
>> Hello all,<br>
>><br>
>> I've just upgraded to QGIS 2.12, in order to test some of my scripts with<br>
>> the new version, and they just happen to segfault immediately when I call<br>
>> QgsApplication.initQgis() in 2.12.<br>
>><br>
>> I've checked the latest docs[1], and the 3 lines mentioned at the<br>
>> beginning are enough to crash the Python interpreter:<br>
>><br>
>> from qgis.core import *<br>
>> QgsApplication.setPrefixPath("/usr", True)<br>
>> QgsApplication.initQgis()<br>
>><br>
><br>
> Try to add QtGui.QApplication(sys.argv) such as:<br>
><br>
> #Initialize QGIS<br>
> core.QgsApplication.setPrefixPath("/usr", True)<br>
> core.QgsApplication.initQgis()<br>
> # On 2.10 crashes without!<br>
> QtGui.QApplication(sys.argv)<br>
><br>
><br>
> I thought it was fixed in 2.12 (and master).<br>
><br>
><br>
> --<br>
> Alessandro Pasotti<br>
> w3: <a href="http://www.itopen.it" rel="noreferrer" target="_blank">www.itopen.it</a><br>
><br>
</div></div><div class="HOEnZb"><div class="h5">> _______________________________________________<br>
> Qgis-user mailing list<br>
> <a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br>
> <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a></div></div></blockquote></div><br></div>