On Tuesday 31 May 2011 20:38:09 kungfuelmosan wrote: > Hey All, > > So we've just updated to PySide-1.0.3 from PySide-1.0.1 and we're > getting a seg-fault when doing : > > #include <pyside_qtgui_python.h> > PyTypeObject** SbkPySide_QtCoreTypes; > PyTypeObject** SbkPySide_QtGuiTypes; > > PyObject *wrapper = Shiboken::Converter<QWidget*>::toPython(control); > > Is this still a supported interface? It's an extremely powerful > feature, albeit an undocumented one as far as I can tell, so I'm > wondering if maybe I'm just exploiting an unpublicized feature, are > there any blog posts / docs about this (obtaining a PyObject wrapper, > given a QWidget* C++ pointer) ? > > Heres the top bit of my gdb back-trace : > > #0 0x00007fffc85cc582 in Shiboken::BindingManager::resolveType(void*, > SbkObjectType*) () from /vol/apps/pyside_qt4.7_kubuntu_10_04-1.0.3_64/ > lib/libshiboken-python2.6.so.1.0 > #1 0x00007fffc85c7bc3 in Shiboken::Object::newObject(SbkObjectType*, > void*, bool, bool, char const*) () from /vol/apps/ > pyside_qt4.7_kubuntu_10_04-1.0.3_64/lib/libshiboken-python2.6.so.1.0 > #2 0x00007fffc74a1db7 in Shiboken::createWrapper<QWidget> > (cppobj=0x4e68270, hasOwnership=false, isExactType=false) at /vol/apps/ > pyside_qt4.7-1.0.3_64/include/PySide/QtGui/pyside_qtgui_python.h:1943 > #3 0x00007fffc74a1e49 in > Shiboken::ObjectTypeConverter<QWidget>::toPython (cppobj=0x4e68270) > at /vol/apps/pyside_qt4.7-1.0.3_64/include/shiboken/conversions.h:222 > #4 0x00007fffc74a1bc6 in ... My Code ... > > Sorry I can't provide more info / code - stupid NDA's
Did you try to recompile your project after the PySide update? This could work due to a know issue on how we share Python types between modules. Regards -- Hugo Parente Lima INdT - Instituto Nokia de Tecnologia
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ PySide mailing list PySide@lists.pyside.org http://lists.pyside.org/listinfo/pyside