[PyQt] Re: bus error and segmentation fault on MacOS
Michael Held
michael.held at bc.biol.ethz.ch
Fri Jun 12 13:03:29 BST 2009
Michael Held wrote:
> hi,
>
> so I am still a newbie in PyQt/Qt and was playing around with QFrames
> and QDialogs.
> the purpose of the attached program is to show a QFrame XOR a QDialog
> editing the same object via a QDoubleSpinBox. Frame and Dialog should
> not be visible at the same time.
> when switching between Frame and Dialog with certain speed a seg fault /
> bus error is occurring on MacOS.
>
> MacOS 10.5.7
> Python 2.6 (stackless)
> Qt 4.5 (2009.02)
> PyQt 4.5 (stable)
> SIP sip-4.8-snapshot-20090430
>
> on windows this error is not occurring, therefore the Frame is not
> disappearing correctly (it's removed from the layout and destroyed
> afterwards)
>
> Windows XP
> Python 2.6.2 (stackless)
> Qt 4.5.1
> PyQt 4.5.1 (binary)
>
> thanks for your help!
> michael
>
just in case nobody can reproduce this crash I am attaching Apples
traceback here:
> Process: Python [48824]
> Path: /Library/Frameworks/Python.framework/Versions/2.6/Resources/Python.app/Contents/MacOS/Python
> Identifier: Python
> Version: ??? (???)
> Code Type: X86 (Native)
> Parent Process: bash [34561]
>
> Interval Since Last Report: 18729 sec
> Crashes Since Last Report: 14
> Per-App Interval Since Last Report: 0 sec
> Per-App Crashes Since Last Report: 14
>
> Date/Time: 2009-06-12 14:01:26.062 +0200
> OS Version: Mac OS X 10.5.7 (9J61)
> Report Version: 6
> Anonymous UUID: FCE00F17-C4E6-4A27-A7FD-280EAB755AAA
>
> Exception Type: EXC_BAD_ACCESS (SIGBUS)
> Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000194
> Crashed Thread: 0
>
> Thread 0 Crashed:
> 0 com.apple.HIToolbox 0x937221a7 HIObject::IsOfClass(HIObjectClass*) + 25
> 1 com.apple.HIToolbox 0x93725fa8 HIObjectIsOfClass + 60
> 2 QtGui 0x01c3d17f qt_isGenuineQWidget(OpaqueControlRef*) + 31
> 3 QtGui 0x01c42347 qt_mac_window_for(QWidget const*) + 71
> 4 QtGui 0x01c42aa8 QWidgetPrivate::setFocus_sys() + 56
> 5 QtGui 0x01ca423c QApplicationPrivate::setFocusWidget(QWidget*, Qt::FocusReason) + 252
> 6 QtGui 0x01ce2001 QWidget::setFocus(Qt::FocusReason) + 289
> 7 QtGui 0x01ca4926 QApplication::setActiveWindow(QWidget*) + 1078
> 8 QtGui 0x01c373e7 QApplicationPrivate::globalEventProcessor(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 4759
> 9 com.apple.HIToolbox 0x9370e11d DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 1181
> 10 com.apple.HIToolbox 0x9370d55b SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 405
> 11 com.apple.HIToolbox 0x9370d3c0 SendEventToEventTargetWithOptions + 58
> 12 com.apple.HIToolbox 0x93792465 PostActivateEvent + 381
> 13 com.apple.HIToolbox 0x93791ef7 HiliteAndActivateWindow + 381
> 14 com.apple.HIToolbox 0x939cfe6d AdjustToNewWindowActivation(WindowData*, WindowContext*, OpaqueWindowPtr*, unsigned char, WindowData*) + 225
> 15 com.apple.HIToolbox 0x93793100 PotentiallyAdjustToNewWindowActivation(WindowData*, WindowData*, WindowContext*, OpaqueWindowPtr*, WindowData*) + 126
> 16 com.apple.HIToolbox 0x9379304a BringToFrontAndActivateWindow(WindowData*, OpaqueWindowGroupRef*, unsigned char) + 134
> 17 com.apple.HIToolbox 0x93792f07 WindowData::SelectWindow() + 229
> 18 QtGui 0x01c44073 QWidget::activateWindow() + 403
> 19 QtGui 0x01c389f4 QApplicationPrivate::globalEventProcessor(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 10404
> 20 com.apple.HIToolbox 0x9370e11d DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 1181
> 21 com.apple.HIToolbox 0x9370d55b SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 405
> 22 com.apple.HIToolbox 0x93729eac SendEventToEventTarget + 52
> 23 QtGui 0x01c47ca1 QWidgetPrivate::qt_window_event(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 1409
> 24 com.apple.HIToolbox 0x9370e11d DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 1181
> 25 com.apple.HIToolbox 0x9370d55b SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 405
> 26 com.apple.HIToolbox 0x93729eac SendEventToEventTarget + 52
> 27 com.apple.HIToolbox 0x9373c5e3 ToolboxEventDispatcherHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 2579
> 28 com.apple.HIToolbox 0x9370e4d6 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 2134
> 29 com.apple.HIToolbox 0x9370d55b SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 405
> 30 com.apple.HIToolbox 0x93729eac SendEventToEventTarget + 52
> 31 QtGui 0x01c4b7c4 QEventDispatcherMac::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 628
> 32 QtCore 0x01106151 QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 65
> 33 QtCore 0x011062fd QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 157
> 34 QtCore 0x0110a14e QCoreApplication::exec() + 174
> 35 QtGui.so 0x017d500c meth_QApplication_exec_ + 104
> 36 org.python.python 0x002c539b PyEval_EvalFrame_value + 20571
> 37 org.python.python 0x002c6b25 PyEval_EvalFrameEx_slp + 325
> 38 org.python.python 0x002c8136 slp_frame_dispatch_top + 54
> 39 org.python.python 0x002cc326 slp_run_tasklet + 102
> 40 org.python.python 0x002c82e3 slp_eval_frame + 291
> 41 org.python.python 0x002c8338 climb_stack_and_eval_frame + 56
> 42 org.python.python 0x002c8281 slp_eval_frame + 193
> 43 org.python.python 0x002bf2d7 PyEval_EvalCode + 87
> 44 org.python.python 0x002f88a1 PyRun_FileExFlags + 225
> 45 org.python.python 0x002f9883 PyRun_SimpleFileExFlags + 851
> 46 org.python.python 0x0030b07e Py_Main + 3038
> 47 Python 0x00001f82 0x1000 + 3970
> 48 Python 0x00001ea9 0x1000 + 3753
More information about the PyQt
mailing list