[vtkusers] QVTKRenderWindowInteractor crashes under Mac OS X 10.6
Clinton Stimpson
clinton at elemtech.com
Tue Sep 22 12:38:08 EDT 2009
Is your VTK configured to use Cocoa? And your Qt to use Carbon?
Have you ever gotten PyQt (Carbon) with VTK (Carbon) to work on Mac OS X?
I didn't think it worked, because of previous limitations in Carbon's
HIToolbox when used with OpenGL. Modifying vtkCarbonRenderWindow to use new
Mac 10.5 apis might help it work.
Using Cocoa all around should work better, but you'll need to rebuild your Qt,
and use VTK from CVS.
Clint
On Tuesday 22 September 2009 10:04:04 am Piotr Byzia wrote:
> Dear all,
>
> When launching VTK/Wrapping/Python/vtk/qt4/
> QVTKRenderWindowInteractor.py it crashes with traceback as below.
>
> I'm using
> PyQt 4.5.4
> VTK 5.4.2
> Python 2.6.1
>
> Phil Thompson (author of the patch for PyQt4 release) suggested that
> it's problem on the Apple side.
>
> Does anyone know how to fix it or what exactly is causing this behavior?
>
> Best regards,
> Piotr Byzia
>
>
>
> $ python QVTKRenderWindowInteractor.py
> 2009-09-22 17:30:04.641 python[284:903] invalid drawable
> 2009-09-22 17:30:04.646 python[284:903] invalid drawable
> 2009-09-22 17:30:04.802 python[284:903] -[NSHIObject frame]:
> unrecognized selector sent to instance 0x1672360
> 2009-09-22 17:30:04.897 python[284:903] HIToolbox: ignoring exception
> '-[NSHIObject frame]: unrecognized selector sent to instance
> 0x1672360' that raised inside Carbon event dispatch
> (
> 0 CoreFoundation 0x905a258a __raiseError + 410
> 1 libobjc.A.dylib 0x917bbf49
> objc_exception_throw + 56
> 2 CoreFoundation 0x905ee9db -[NSObject
> (NSObject) doesNotRecognizeSelector:] + 187
> 3 CoreFoundation 0x9054a026 ___forwarding___ +
> 950
> 4 CoreFoundation 0x905edd92
> __forwarding_prep_1___ + 50
> 5 libvtkRendering.5.4.dylib 0x05f50836
> _ZN20vtkCocoaRenderWindow7GetSizeEv + 94
> 6 libvtkRendering.5.4.dylib 0x05e4f9af
> _ZN15vtkRenderWindow6RenderEv + 1773
> 7 libvtkRenderingPythonD.5.4.dylib 0x05ac7da3
> _Z24PyvtkRenderWindow_RenderP7_objectS0_ + 103
> 8 .Python 0x000b575d PyEval_EvalFrameEx
> + 24210
> 9 .Python 0x000b6177 PyEval_EvalCodeEx
> + 1967
> 10 .Python 0x0003b69c function_call + 162
> 11 .Python 0x0000e606 PyObject_Call + 77
> 12 .Python 0x0001f51e
> instancemethod_call + 401
> 13 .Python 0x0000e606 PyObject_Call + 77
> 14 .Python 0x000aeaa3
> PyEval_CallObjectWithKeywords + 72
> 15 sip.so 0x006cf4dd
> sip_api_call_method + 76
> 16 QtGui.so 0x020046cd
> _Z13sipVH_QtGui_416PyGILState_STATEP7_objectP11QPaintEvent + 91
> 17 QtGui.so 0x0241bdf9
> _ZN10sipQWidget10paintEventEP11QPaintEvent + 121
> 18 QtGui 0x028ed3be
> _ZN7QWidget5eventEP6QEvent + 3934
> 19 QtGui.so 0x0241b790
> _ZN10sipQWidget5eventEP6QEvent + 102
> 20 QtGui 0x028a0c0f
> _ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent + 191
> 21 QtGui 0x028a7a3c
> _ZN12QApplication6notifyEP7QObjectP6QEvent + 1036
> 22 QtGui.so 0x023d27c3
> _ZN15sipQApplication6notifyEP7QObjectP6QEvent + 109
> 23 QtCore 0x012d1bd2
> _ZN16QCoreApplication14notifyInternalEP7QObjectP6QEvent + 98
> 24 QtGui 0x02847870
> _ZN14QWidgetPrivate15qt_widget_eventEP25OpaqueEventHandlerCallRefP14OpaqueE
>ventRefPv + 4416
> 25 HIToolbox 0x97b4a129
> _ZL23DispatchEventToHandlersP14EventTargetRecP14OpaqueEventRefP14HandlerCal
>lRec + 1567
> 26 HIToolbox 0x97b493f0
> _ZL30SendEventToEventTargetInternalP14OpaqueEventRefP20OpaqueEventTargetRef
>P14HandlerCallRec + 411
> 27 HIToolbox 0x97b4924f
> SendEventToEventTargetWithOptions + 58
> 28 HIToolbox 0x97b7115d
> _ZN6HIView8SendDrawEsP13OpaqueGrafPtrPK9__HIShapeP9CGContext + 475
> 29 HIToolbox 0x97b70ab1
> _ZN6HIView23RecursiveDrawCompositedEPK9__HIShapemPS_P9CGContexthf + 713
> 30 HIToolbox 0x97b70d24
> _ZN6HIView23RecursiveDrawCompositedEPK9__HIShapemPS_P9CGContexthf + 1340
> 31 HIToolbox 0x97b70d24
> _ZN6HIView23RecursiveDrawCompositedEPK9__HIShapemPS_P9CGContexthf + 1340
> 32 HIToolbox 0x97b6fad7
> _ZN6HIView14DrawCompositedEsP13OpaqueGrafPtrPK9__HIShapemPS_P9CGContext
> + 873
> 33 HIToolbox 0x97b6f71d
> _ZN6HIView4DrawEsP13OpaqueGrafPtrm + 83
> 34 HIToolbox 0x97b6f66d
> _ZN6HIView6RenderEmP9CGContext + 45
> 35 HIToolbox 0x97b6efaf
> _ZN10WindowData20PrepareForVisibilityEv + 145
> 36 HIToolbox 0x97b6e589 _ShowHideWindows +
> 286
> 37 HIToolbox 0x97b6e468 ShowHide + 38
> 38 QtGui 0x02844bf7
> _ZN14QWidgetPrivate8show_sysEv + 775
> 39 QtGui 0x028f06a9
> _ZN14QWidgetPrivate11show_helperEv + 297
> 40 QtGui 0x028f0da3
> _ZN7QWidget10setVisibleEb + 1267
> 41 QtGui.so 0x0241b51e
> _ZN10sipQWidget10setVisibleEb + 108
> 42 QtGui.so 0x024239cb meth_QWidget_show
> + 121
> 43 .Python 0x000b575d PyEval_EvalFrameEx
> + 24210
> 44 .Python 0x000b5998 PyEval_EvalFrameEx
> + 24781
> 45 .Python 0x000b6177 PyEval_EvalCodeEx
> + 1967
> 46 .Python 0x000b632e PyEval_EvalCode + 87
> 47 .Python 0x000d9bbf PyRun_FileExFlags
> + 150
> 48 .Python 0x000da9a7
> PyRun_SimpleFileExFlags + 818
> 49 .Python 0x000eaf30 Py_Main + 3481
> 50 python 0x00001f8e 0x0 + 8078
> 51 python 0x00001eb5 0x0 + 7861
> )
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
More information about the vtkusers
mailing list