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

2010-10-26 Thread Richard Duivenvoorde
Martin Dobias wrote: > On Mon, Oct 25, 2010 at 4:13 PM, Richard Duivenvoorde > wrote: >> Martin Dobias wrote: >>> Hi Richard >>> >>> On Sun, Oct 24, 2010 at 9:03 PM, Richard Duivenvoorde >>> wrote: p=QgsProject.instance() p.setFileName(str("/home/richard/temp/bpprr.qgs")) p.write()

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

2010-10-26 Thread Barry Rowlingson
On Mon, Oct 25, 2010 at 10:07 PM, Martin Dobias wrote: > On Mon, Oct 25, 2010 at 4:13 PM, Richard Duivenvoorde > wrote: >> Martin Dobias wrote: >>> Hi Richard >>> >>> On Sun, Oct 24, 2010 at 9:03 PM, Richard Duivenvoorde >>> wrote: p=QgsProject.instance() p.setFileName(str("/home/richa

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

2010-10-25 Thread Martin Dobias
On Mon, Oct 25, 2010 at 4:13 PM, Richard Duivenvoorde wrote: > Martin Dobias wrote: >> Hi Richard >> >> On Sun, Oct 24, 2010 at 9:03 PM, Richard Duivenvoorde >> wrote: >>> p=QgsProject.instance() >>> p.setFileName(str("/home/richard/temp/bpprr.qgs")) >>> p.write() I have looked into this and I t

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

2010-10-25 Thread Richard Duivenvoorde
Martin Dobias wrote: > Hi Richard > > On Sun, Oct 24, 2010 at 9:03 PM, Richard Duivenvoorde > 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 a

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

2010-10-25 Thread Martin Dobias
Hi Richard On Sun, Oct 24, 2010 at 9:03 PM, Richard Duivenvoorde 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 > qgspythonutilsim

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

2010-10-25 Thread Barry Rowlingson
On Mon, Oct 25, 2010 at 8:44 AM, Barry Rowlingson wrote: > my autosave plugin has been crashing qgis since version 1.5 because it > uses essentially the same python code. I was pretty busy at the time > so I just disabled it and carried on. Haven't got back to it, but can > confirm the behaviour

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

2010-10-25 Thread Barry Rowlingson
On Sun, Oct 24, 2010 at 8:03 PM, Richard Duivenvoorde wrote: > Does this ring a bell with someone? > Should I be able to save a just started qgis project via python? Or > should I call some other methods first? ding dong on the bell ringing front: http://osgeo-org.1803224.n2.nabble.com/autosave

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

2010-10-24 Thread Richard Duivenvoorde
Hi devs, trying to fix a mapserverexportplugin segfault (#2870) It appears to happen when we try to save a non-saved qgis project to qgs-file via python. It's easy to test; try the following in the python console: p=QgsProject.instance() p.setFileName(str("/home/richard/temp/bpprr.qgs")) p.write(