Title: Bus error on OS X while unittest'ing QT app
Type: Stage:
Components: macOS, Tests Versions: Python 2.6
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: ronaldoussoren Nosy List: Ricky.Huang, r.david.murray, ronaldoussoren
Priority: normal Keywords:

Created on 2010-08-04 01:18 by Ricky.Huang, last changed 2010-08-04 06:07 by ronaldoussoren. This issue is now closed.

Messages (3)
msg112734 - (view) Author: Ricky Huang (Ricky.Huang) Date: 2010-08-04 01:18
Not sure if this is the right place, please redirect me if this is the wrong place to log this bug.

In my unittest I am testing a PyQt GUI app.  It brings up the app window, runs a few tests, then quit.  On quit I get a "Python quit unexpectedly while using the QtGui plugin" crash, below is a partial report from OS X:


Process:         Python [69112]
Path:            /System/Library/Frameworks/Python.framework/Versions/2.6/Resources/
Version:         2.6 (2.6)
Build Info:      python-440100~6
Code Type:       X86 (Native)
Parent Process:  bash [63500]

PlugIn Path:       /Library/Frameworks/QtGui.framework/Versions/4/QtGui
PlugIn Identifier: QtGui
PlugIn Version:    4.6.3 (compatibility 4.6.0)

Exception Type:  EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000024
Crashed Thread:  0  Dispatch queue:

Thread 0 Crashed:  Dispatch queue:
0   QtGui                         	0x028aecc0 QWidgetPrivate::qt_widget_event(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 32
1           	0x955acf2f DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 1567
2           	0x955ac1f6 SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 411
3           	0x955ac055 SendEventToEventTargetWithOptions + 58
4           	0x955c72b7 HIView::SendOwningWindowChanged(unsigned long, OpaqueWindowPtr*, OpaqueWindowPtr*) + 315
5           	0x955c7142 HIView::NotifySubtreeWindowChanged(OpaqueWindowPtr*, OpaqueWindowPtr*, unsigned char) + 90
6           	0x9567f1c0 HIViewRemoveFromSuperview + 58
7   QtGui                         	0x028a6731 qt_mac_destructView(OpaqueControlRef*) + 17
8   QtGui                         	0x028a8f02 QWidget::destroy(bool, bool) + 546
9   QtGui                         	0x0295e7c1 QWidget::~QWidget() + 449


Thanks in advance.
msg112763 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2010-08-04 05:13
Please report this first to PyQt.  If they determine that it is likely a Python bug (though that is unlikely) then a new ticket can be opened with more Python-specific information.  (To be clear: that error message is not one that is generated by Python itself, so it is most likely a PyQt message and bug.)
msg112765 - (view) Author: Ronald Oussoren (ronaldoussoren) * (Python committer) Date: 2010-08-04 06:07
And more importantly: your report contains to little information to determine what's going on.  Even a full crashreporter log is fairly useless unless you have access to the original binary and debugging symbols.

* Try to reproduce the crash in a smaller program
* Ask on PyQt forums what's going wrong
* If they determine that this is likely a Python bug file a bug here with the information needed to reproduce the problem
Date User Action Args
2010-08-04 06:07:10ronaldoussorensetmessages: + msg112765
2010-08-04 05:13:59r.david.murraysetstatus: open -> closed
nosy: + r.david.murray
messages: + msg112763

2010-08-04 01:18:43Ricky.Huangcreate