<div class="gmail_quote">2010/12/20 Martin Dobias <span dir="ltr">&lt;<a href="http://wonder.sk">wonder.sk</a>@<a href="http://gmail.com">gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Mon, Dec 20, 2010 at 4:03 PM, Alessandro Pasotti &lt;<a href="mailto:apasotti@gmail.com">apasotti@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; I&#39;ve also tried that way...<br>
&gt; I&#39;ve got no more than segfaults:<br>
&gt; <a href="http://dpaste.com/288618/" target="_blank">http://dpaste.com/288618/</a><br>
&gt; Can you please take a quick look to my experiment ?<br>
&gt; <a href="http://dpaste.com/288616/" target="_blank">http://dpaste.com/288616/</a><br>
<br>
</div>It seems that the segfault happens in the python finalization code.<br>
Such crashes happen if the qt objects are deleted in wrong order.<br>
Presumably the QApplication object has been deleted earlier than the<br>
composition. That could be solved by various ways, for example,<br>
delete the composition at the end or set QApplication to be parent of<br>
the composition.<br>
<br>
Since the code crashes in the finalization stage, you should get the<br>
output png file anyway. Can you please check?<br></blockquote><div><br></div><div>Yes, the out.png is there but it contains a blank (white) image.</div><div><br></div><div>adding </div><div><div>c.setParent(app)</div></div>
<div><br></div><div>did not help, nor did</div><div>del c</div><div><br></div><div>gdb bt is similar: still crashes in the destructor of QGraphicsScene.</div><div><br></div><div><br></div><div>PS: I&#39;m using current qgis trunk.</div>
</div>-- <br>Alessandro Pasotti<br>w3:   <a href="http://www.itopen.it">www.itopen.it</a><br>