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

Barry Rowlingson b.rowlingson at lancaster.ac.uk
Tue Oct 26 07:49:19 EDT 2010


On Mon, Oct 25, 2010 at 10:07 PM, Martin Dobias <wonder.sk at gmail.com> wrote:
> On Mon, Oct 25, 2010 at 4:13 PM, Richard Duivenvoorde
> <rdmailings at duif.net> wrote:
>> Martin Dobias wrote:
>>> 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 have looked into this and I think I have fixed that issue
> successfully in r14434. It seems the problem was in not acquiring the
> python global interpreter lock and thus accessing python API while in
> an inconsistent state.
>
> Richard, Barry, please test whether it helps your plugins.

 Yup, autosave is now working just fine. Also a simple test of saving
a project from the python console works too. Sweeeeeeeeeeeeeeet as.

Barry


More information about the Qgis-developer mailing list