<div><div class="gmail_quote">On Tue, Jun 21, 2011 at 11:21 PM, Algis Kabaila <span dir="ltr"><<a href="mailto:akabaila@pcug.org.au">akabaila@pcug.org.au</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div></div><div class="h5">On Wed, 22 Jun 2011 02:04:25 AM David Townshend wrote:<br>
> Hi<br>
><br>
> I'm not sure of the appropriate place to file a PyQt bug report, so I hope<br>
> its ok to send it to this mailing list.<br>
><br>
> The problem is that creating (and quitting) multiple QApplications in<br>
> succession causes a segfault.  This situation tends to occur in unit tests,<br>
> particularly in testing subclasses of QApplication.<br>
><br>
> The following snippet illustrates the problem:<br>
> >>> from PyQt4 import QtGui<br>
> >>> app = QtGui.QApplication([])<br>
> >>> app.quit()<br>
> >>> app = QtGui.QApplication([])<br>
> >>> app.quit()<br>
> >>> app = QtGui.QApplication([])<br>
><br>
> Segmentation fault<br>
><br>
> Here is my python info:<br>
> Python 3.2 (r32:88445, Apr 15 2011, 11:09:05)<br>
> [GCC 4.5.2 20110127 (prerelease)] on linux2<br>
><br>
> I'm using PyQt 4.8.4 on Arch Linux.  I have tried it on Windows XP, but the<br>
> segfault does not occur there.  I haven't tried other linux distributions.<br>
><br>
> David<br>
<br>
</div></div>David,<br>
<br>
There is a bug tracker for bug reports where the bugs should be reported. I do<br>
not remember its URL, however.<br>
<br>
On my  kubuntu "natty" OS  the results are somewhat different:<br>
<br>
Using GUI Bash Shell:<br>
<br>
ak@supremo:~$ python3<br>
Python 3.2 (r32:88445, Mar 25 2011, 19:56:22)<br>
[GCC 4.5.2] on linux2<br>
Type "help", "copyright", "credits" or "license" for more information.<br>
<div class="im">>>> from PyQt4 import QtGui<br>
>>> app = QtGui.QApplication([])<br>
>>> app.quit()<br>
>>> app = QtGui.QApplication([])<br>
>>> app.quit()<br>
>>> app = QtGui.QApplication([])<br>
>>> app.quit()<br>
>>> app = QtGui.QApplication([])<br>
>>> app.quit()<br>
>>> app = QtGui.QApplication([])<br>
</div>>>> app.quit()<br>
>>>   [---> ctrl+D pressed to quit python3.2]<br>
Segmentation fault<br>
ak@supremo:~$<br>
<br>
Segmentation fault occured when quitting Python3.2, not when repeatedly<br>
creating and quitting app.<br>
<br>
Using IDLE things go strange sooner:<br>
<br>
Python 3.2 (r32:88445, Mar 25 2011, 19:56:22)<br>
[GCC 4.5.2] on linux2<br>
Type "copyright", "credits" or "license()" for more information.<br>
==== No Subprocess ====<br>
<div class="im">>>> from PyQt4 import QtGui<br>
>>> app = QtGui.QApplication([])<br>
>>> app.quit()<br>
>>> app = QtGui.QApplication([])<br>
>>> app.quit()<br>
<br>
</div>Python 3.2 IDLE shell vanishes from the screen without warning. No <Return><br>
pressed after typing app.quit() !<br>
<br>
My Linux OS:<br>
ak@supremo:~$ lsb_release -a<br>
No LSB modules are available.<br>
Distributor ID: Ubuntu<br>
Description:    Ubuntu 11.04<br>
Release:        11.04<br>
Codename:       natty<br>
ak@supremo:~$<br>
<br>
PyQt4 and Qt versions:<br>
<br>
Python 3.2 (r32:88445, Mar 25 2011, 19:56:22)<br>
[GCC 4.5.2] on linux2<br>
Type "help", "copyright", "credits" or "license" for more information.<br>
>>> from PyQt4.QtCore import (PYQT_VERSION_STR, QT_VERSION_STR)<br>
>>> PYQT_VERSION_STR<br>
'4.8.4'<br>
>>> QT_VERSION_STR<br>
'4.7.2'<br>
>>><br>
<br>
I've encountered similar problems in PySide.  I think it was considered to be<br>
a Python IDLE fault.  I know it does not shed much light on your problem, only<br>
some additional information.<br>
<br>
OldAl.<br>
</blockquote></div><div><br></div>Thanks for the info.  If this doesn't happen in Kubuntu then perhaps it is specific to my distro (I was working in a terminal, not idle, so its not that).  Either way, I think I'll dig a little deeper and see if I can get a useful traceback.<div>
<br></div><div>I did look around for a bug report website for quite a while, but didn't find anything. If anyone knows where I can report a pyqt bug, please let me know.</div><div><br></div><div>David</div></div>