[PySide] QDropEvent.source() crash
Fabien Castan
fabcastan at gmail.com
Mon Mar 4 23:40:38 CET 2013
Hi,
I created a DropArea for QtQuick 1.
So it's a QDeclarativeItem and I reimplemented the dropEvent. The problem
is when I read event.source(), it creates a seg. fault. at the end of the
application.
You could see the code, there:
https://github.com/buttleofx/QuickMamba/blob/master/quickmamba/gui/dropArea.py#L132
Just adding this print creates a seg. fault:
print "event source:", event.source()
This is true only when the drag event has been created inside the
application.
If you drag&drop files from a file browser, "event.source()" returns None
and there is no problem.
Some kind of widget ownership problem.
Program received signal SIGSEGV, Segmentation fault.
subtype_dealloc.25740 (self=<ButtleApp at remote 0x1f0eb00>) at
../Objects/typeobject.c:951
951 ../Objects/typeobject.c: Aucun fichier ou dossier de ce type.
(gdb)
(gdb)
(gdb) bt
#0 subtype_dealloc.25740 (self=<ButtleApp at remote 0x1f0eb00>) at
../Objects/typeobject.c:951
#1 0x00007fffef60b015 in Shiboken::decRefPyObjectList(std::list<_object*,
std::allocator<_object*> > const&, _object*) () from
/usr/local/lib/libshiboken-python2.7.so.1.1
#2 0x00007fffef60d5a6 in Shiboken::Object::clearReferences(SbkObject*) ()
from /usr/local/lib/libshiboken-python2.7.so.1.1
#3 0x00007fffef60ce0f in Shiboken::Object::deallocData(SbkObject*, bool)
() from /usr/local/lib/libshiboken-python2.7.so.1.1
#4 0x00007fffef609ba8 in SbkDeallocWrapper () from
/usr/local/lib/libshiboken-python2.7.so.1.1
#5 0x00007fffef60ca17 in Shiboken::Object::removeParent(SbkObject*, bool,
bool) () from /usr/local/lib/libshiboken-python2.7.so.1.1
#6 0x00007fffef60a39c in (anonymous
namespace)::_destroyParentInfo(SbkObject*, bool) () from
/usr/local/lib/libshiboken-python2.7.so.1.1
#7 0x00007fffef60c754 in Shiboken::Object::destroy(SbkObject*, void*) ()
from /usr/local/lib/libshiboken-python2.7.so.1.1
#8 0x00007fffef621901 in Shiboken::BindingManager::~BindingManager() ()
from /usr/local/lib/libshiboken-python2.7.so.1.1
#9 0x00007ffff6f1f901 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#10 0x00007ffff6f1f985 in exit () from /lib/x86_64-linux-gnu/libc.so.6
#11 0x00007ffff6f05774 in __libc_start_main () from
/lib/x86_64-linux-gnu/libc.so.6
#12 0x00000000004ce0ad in _start ()
Regards,
Fabien
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/pyside/attachments/20130304/9b024d96/attachment.html>
More information about the PySide
mailing list