[New-bugs-announce] [issue9502] Bus error on OS X while unittest'ing QT app

Ricky Huang report at bugs.python.org
Wed Aug 4 03:18:44 CEST 2010


New submission from Ricky Huang <ideinit at gmail.com>:

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/Python.app/Contents/MacOS/Python
Identifier:      org.python.python.app
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: com.apple.main-thread

Thread 0 Crashed:  Dispatch queue: com.apple.main-thread
0   QtGui                         	0x028aecc0 QWidgetPrivate::qt_widget_event(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 32
1   com.apple.HIToolbox           	0x955acf2f DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 1567
2   com.apple.HIToolbox           	0x955ac1f6 SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 411
3   com.apple.HIToolbox           	0x955ac055 SendEventToEventTargetWithOptions + 58
4   com.apple.HIToolbox           	0x955c72b7 HIView::SendOwningWindowChanged(unsigned long, OpaqueWindowPtr*, OpaqueWindowPtr*) + 315
5   com.apple.HIToolbox           	0x955c7142 HIView::NotifySubtreeWindowChanged(OpaqueWindowPtr*, OpaqueWindowPtr*, unsigned char) + 90
6   com.apple.HIToolbox           	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.

----------
assignee: ronaldoussoren
components: Macintosh, Tests
messages: 112734
nosy: Ricky.Huang, ronaldoussoren
priority: normal
severity: normal
status: open
title: Bus error on OS X while unittest'ing QT app
versions: Python 2.6

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9502>
_______________________________________


More information about the New-bugs-announce mailing list