From: Gelonida on
On 08/13/2010 09:11 AM, Gelonida wrote:
> Lee,
>
> On 08/13/2010 12:53 AM, Lee Harr wrote:
>>
>>> I'm desperate. I'm having a real application, which fails rather often
>>> when finishing it. I'm not sure, whether any serious problem could be
>>> hidden behind it
>>>
>>> The script is a pyqt script, which segfaults most of the time on my
>>> ubuntu 10.4 linux 64 bit and I'm having trouble to understand why.
>>
>>
>> Looks to be a known issue:
>> http://www.google.com/search?q=pyqt+segfault+on+exit
>> https://launchpad.net/bugs/561303
>>
>> The last activity on that bug is almost 2 months ago...
>> Hopefully the fix will be distributed soon.
>
>
>
> This seems to be the problem.
>
>
> In my case I can workaround the issue by adding one line.
>
> if __name__ == "__main__":
> app = QApplication([])
> myform = MyForm()
> myform.show()
> retcode = app.exec_()
> myform = None # <<<< THIS IS THE WORK AROUND
> print "last"
>
For more complex multi widget examples it doesn't seem enough to just
destroy the main widget.
probably I had to recursively assign all widgets / dialogues sub widgets
to None.

So I'll just try to stay away from this pyqt release and stick with
older or newer ones.