<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2015-10-28 9:57 GMT+01:00 François-Xavier Thomas <span dir="ltr"><<a href="mailto:francois-xavier.thomas@airinov.fr" target="_blank">francois-xavier.thomas@airinov.fr</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello all,<br>
<br>
I've just upgraded to QGIS 2.12, in order to test some of my scripts with the new version, and they just happen to segfault immediately when I call QgsApplication.initQgis() in 2.12.<br>
<br>
I've checked the latest docs[1], and the 3 lines mentioned at the beginning are enough to crash the Python interpreter:<br>
<br>
  from qgis.core import *<br>
  QgsApplication.setPrefixPath("/usr", True)<br>
  QgsApplication.initQgis()<br>
<br></blockquote><div><br></div><div>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></div></div><br></div><div class="gmail_extra"><br>I thought it was fixed in 2.12 (and master).<br><br></div><div class="gmail_extra"><br>-- <br><div class="gmail_signature">Alessandro Pasotti<br>w3:   <a href="http://www.itopen.it" target="_blank">www.itopen.it</a></div>
</div></div>