[Qgis-developer] Is it possible to re-use print composer code to build a web service ?

Martin Dobias wonder.sk at gmail.com
Mon Dec 20 10:23:56 EST 2010


On Mon, Dec 20, 2010 at 4:03 PM, Alessandro Pasotti <apasotti at gmail.com> wrote:
>
> I've also tried that way...
> I've got no more than segfaults:
> http://dpaste.com/288618/
> Can you please take a quick look to my experiment ?
> http://dpaste.com/288616/

It seems that the segfault happens in the python finalization code.
Such crashes happen if the qt objects are deleted in wrong order.
Presumably the QApplication object has been deleted earlier than the
composition. That could be solved by various ways, for example,
delete the composition at the end or set QApplication to be parent of
the composition.

Since the code crashes in the finalization stage, you should get the
output png file anyway. Can you please check?

Regards
Martin


More information about the Qgis-developer mailing list