[Qgis-user] PyQGIS script segfaults with 2.12
François-Xavier Thomas
francois-xavier.thomas at airinov.fr
Wed Oct 28 02:29:57 PDT 2015
On 10/28/2015 10:01 AM, Alessandro Pasotti wrote:
> Try to add QtGui.QApplication(sys.argv) such as:
>
> #Initialize QGIS
> core.QgsApplication.setPrefixPath("/usr", True)
> core.QgsApplication.initQgis()
> # On 2.10 crashes without!
> QtGui.QApplication(sys.argv)
>
> I thought it was fixed in 2.12 (and master).
Thanks, that was it!
I'm not sure why it worked before in 2.10, but it did without
initializing the QApplication. Hm, weird.
--
François-Xavier Thomas -- Ingénieur traitement des images
AIRINOV
Incubateur PRINE
48 rue René Clair
75899 Paris Cedex 18
09 72 39 75 82
www.airinov.fr
More information about the Qgis-user
mailing list