[Qgis-developer] Composer crash after setting composition

Matthias Kuhn matthias.kuhn at gmx.ch
Tue Nov 12 03:20:39 PST 2013


Maybe the composition gets garbage collected and you need to make sure, 
you keep a reference to it, as long as its used?
Or is it supposed, that ownership is transferred?

Matthias

On Die 12 Nov 2013 11:37:40 CET, Alexander Bruy wrote:
> Hi all,
>
> playing with QGIS composer I found that it crashes after setting composition
> via Python. If I just open new composer from plugin all fine, but if I
> try to set
> prepared composition (to allow user tweak it) I got crash. Interestingly, that
> same code works fine from Python console, issue exists only if I run code
> from plugin.
>
> Ticket in redmine with test plugin and crash dump [0].
>
> Anyone confirms? Any ideas what is wrong?
>
> [0] https://hub.qgis.org/issues/8996
>
> Thanks




More information about the Qgis-developer mailing list