[Qgis-developer] save project via python results in segfault

Martin Dobias wonder.sk at gmail.com
Mon Oct 25 06:02:27 EDT 2010


Hi Richard

On Sun, Oct 24, 2010 at 9:03 PM, Richard Duivenvoorde
<rdmailings at duif.net> wrote:
>
> p=QgsProject.instance()
> p.setFileName(str("/home/richard/temp/bpprr.qgs"))
> p.write()
>
> I've been looking at it by putting debug messages in cpp code, and to me
> it seems the crash appears when in
> qgspythonutilsimpl.cpp: 153: the method runString is called with the
> parameter "sys.path.append('/home/richard/temp')"

I think this kind of crash happens probably always when Python calls
C++ and C++ again calls some Python code. I am not sure what exactly
happens and whether this is caused by PyQt/sip or python itself...

Martin


More information about the Qgis-developer mailing list