[PySide] QDropEvent.source() crash

Fabien Castan fabcastan at gmail.com
Mon Mar 4 23:40:38 CET 2013

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
You could see the code, there:

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
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
951 ../Objects/typeobject.c: Aucun fichier ou dossier de ce type.
(gdb) bt
#0  subtype_dealloc.25740 (self=<ButtleApp at remote 0x1f0eb00>) at
#1  0x00007fffef60b015 in Shiboken::decRefPyObjectList(std::list<_object*,
std::allocator<_object*> > const&, _object*) () from
#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
#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
#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
#12 0x00000000004ce0ad in _start ()

-------------- 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