On Mon, Dec 20, 2010 at 4:36 PM, Alessandro Pasotti <[email protected]> wrote: >> >> 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? > > Yes, the out.png is there but it contains a blank (white) image.
Looking at the code, I see that you create an instance of QgsMapRenderer, but do not initialize. You should call its setLayerSet() and setExtent() methods so that it knows what to render. > adding > c.setParent(app) > did not help, nor did > del c > gdb bt is similar: still crashes in the destructor of QGraphicsScene. I will try your code in the evening on my dev computer. Martin _______________________________________________ Qgis-developer mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/qgis-developer
