Bug 158127 - kfile causes application crashes on drag events
Summary: kfile causes application crashes on drag events
Status: RESOLVED FIXED
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources macOS
: HI crash
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-20 22:17 UTC by illogic-al
Modified: 2008-07-31 18:16 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
patch to fix (598 bytes, patch)
2008-07-31 03:30 UTC, Leo Franchi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description illogic-al 2008-02-20 22:17:13 UTC
Version:            (using Devel)
Installed from:    Compiled sources
Compiler:          gcc version 4.0.1 (Apple Inc. build 5465) 
OS:                OS X

Whenever I attempt to drag something in OS X the application the dragging occurs in crashes. I'm assuming this is the fault of kfile. It happens in both amarok and dolphin. I'll provide separate backtraces for each
Comment 1 illogic-al 2008-02-20 22:18:12 UTC
Application: Amarok (Amarok), signal SIGSEGV
Reading symbols for shared libraries ............................................. done
Attaching to program: `/opt/kde4/bin/Amarok.app/Contents/MacOS/Amarok', process 50764.
Reading symbols for shared libraries ++++++++++++++++++++++++++++++++++++++++++++.................................................................................................................................................................................. done
[KCrash handler]
#5  0x035258e4 in QMacPasteboard::promiseKeeper () at qlist.h:414
#6  0x03525c56 in QMacPasteboard::~QMacPasteboard () at qlist.h:414
#7  0x03530d96 in QDragManager::drag () at qlist.h:414
#8  0x034d82a8 in QDrag::exec () at qlist.h:414
#9  0x034d8348 in QDrag::exec () at qlist.h:414
#10 0x0399b4b1 in QAbstractItemView::startDrag () at qlist.h:414
#11 0x0399e501 in QAbstractItemView::mouseMoveEvent () at qlist.h:414
#12 0x00a55991 in CollectionTreeView::mouseMoveEvent (this=0x122514d0, e=0xbfffcde4) at /Users/orville/kdesvn/trunk/extragear/multimedia/amarok/src/collectionbrowser/CollectionTreeView.cpp:217
#13 0x0350f76f in QWidget::event () at videowidget_p.h:38
#14 0x03871435 in QFrame::event () at xml/dom_nodeimpl.h:95
#15 0x038fdbcf in QAbstractScrollArea::viewportEvent () at xml/dom_nodeimpl.h:95
#16 0x039a03aa in QAbstractItemView::viewportEvent () at qglobal.h:1912
#17 0x039d6152 in QTreeView::viewportEvent () at qglobal.h:1912
#18 0x03900b05 in QAbstractScrollAreaFilter::eventFilter () at xml/dom_nodeimpl.h:95
#19 0x0031f7c7 in QCoreApplicationPrivate::sendThroughObjectEventFilters ()
#20 0x034c8566 in QApplicationPrivate::notify_helper () at videowidget_p.h:38
#21 0x034cf46d in QApplication::notify () at videowidget_p.h:38
#22 0x0141f1d7 in KApplication::notify (this=0xbffff2a8, receiver=0x12251ef0, event=0xbfffcde4) at /Users/orville/kdesvn/trunk/KDE/kdelibs/kdeui/kernel/kapplication.cpp:311
#23 0x0031f661 in QCoreApplication::notifyInternal ()
#24 0x0351febb in QApplicationPrivate::globalEventProcessor () at videowidget_p.h:38
#25 0x94ab9fc3 in DispatchEventToHandlers ()
#26 0x94ab93fd in SendEventToEventTargetInternal ()
#27 0x94ad5e0e in SendEventToEventTarget ()
#28 0x94ae8874 in ToolboxEventDispatcherHandler ()
#29 0x94aba37c in DispatchEventToHandlers ()
#30 0x94ab93fd in SendEventToEventTargetInternal ()
#31 0x94ad5e0e in SendEventToEventTarget ()
#32 0x0351ad71 in qt_mac_send_event () at videowidget_p.h:38
#33 0x035291b2 in QEventDispatcherMac::processEvents () at videowidget_p.h:38
#34 0x0031f291 in QCoreApplication::processEvents ()
#35 0x00bf105f in AmarokMimeData::tracks (this=0x1511c2c0) at /Users/orville/kdesvn/trunk/extragear/multimedia/amarok/src/AmarokMimeData.cpp:98
#36 0x00bf12da in AmarokMimeData::retrieveData (this=0x1511c2c0, mimeType=@0xbfffd9d4, type=QVariant::Invalid) at /Users/orville/kdesvn/trunk/extragear/multimedia/amarok/src/AmarokMimeData.cpp:171
#37 0x03525ef5 in QMacPasteboard::setMimeData () at videowidget_p.h:38
#38 0x035309ff in QDragManager::drag () at videowidget_p.h:38
#39 0x034d82a8 in QDrag::exec () at videowidget_p.h:38
#40 0x034d8348 in QDrag::exec () at videowidget_p.h:38
#41 0x0399b4b1 in QAbstractItemView::startDrag () at qglobal.h:1912
#42 0x0399e501 in QAbstractItemView::mouseMoveEvent () at qglobal.h:1912
#43 0x00a55991 in CollectionTreeView::mouseMoveEvent (this=0x122514d0, e=0xbfffe6f4) at /Users/orville/kdesvn/trunk/extragear/multimedia/amarok/src/collectionbrowser/CollectionTreeView.cpp:217
#44 0x0350f76f in QWidget::event () at videowidget_p.h:38
#45 0x03871435 in QFrame::event () at xml/dom_nodeimpl.h:95
#46 0x038fdbcf in QAbstractScrollArea::viewportEvent () at xml/dom_nodeimpl.h:95
#47 0x039a03aa in QAbstractItemView::viewportEvent () at qglobal.h:1912
#48 0x039d6152 in QTreeView::viewportEvent () at qglobal.h:1912
#49 0x03900b05 in QAbstractScrollAreaFilter::eventFilter () at xml/dom_nodeimpl.h:95
#50 0x0031f7c7 in QCoreApplicationPrivate::sendThroughObjectEventFilters ()
#51 0x034c8566 in QApplicationPrivate::notify_helper () at videowidget_p.h:38
#52 0x034cf46d in QApplication::notify () at videowidget_p.h:38
#53 0x0141f1d7 in KApplication::notify (this=0xbffff2a8, receiver=0x12251ef0, event=0xbfffe6f4) at /Users/orville/kdesvn/trunk/KDE/kdelibs/kdeui/kernel/kapplication.cpp:311
#54 0x0031f661 in QCoreApplication::notifyInternal ()
#55 0x0351febb in QApplicationPrivate::globalEventProcessor () at videowidget_p.h:38
#56 0x94ab9fc3 in DispatchEventToHandlers ()
#57 0x94ab93fd in SendEventToEventTargetInternal ()
#58 0x94ad5e0e in SendEventToEventTarget ()
#59 0x94ae8874 in ToolboxEventDispatcherHandler ()
#60 0x94aba37c in DispatchEventToHandlers ()
#61 0x94ab93fd in SendEventToEventTargetInternal ()
#62 0x94ad5e0e in SendEventToEventTarget ()
#63 0x0351ad71 in qt_mac_send_event () at videowidget_p.h:38
#64 0x035291b2 in QEventDispatcherMac::processEvents () at videowidget_p.h:38
#65 0x0031ea98 in QEventLoop::processEvents ()
#66 0x0031ed1d in QEventLoop::exec ()
#67 0x00322c61 in QCoreApplication::exec ()
#68 0x00011b63 in main (argc=1819440429, argv=0x6c72752d) at /Users/orville/kdesvn/trunk/extragear/multimedia/amarok/src/main.cpp:124

 
Comment 2 illogic-al 2008-02-20 22:19:42 UTC
Application: Dolphin (dolphin), signal SIGSEGV
Attaching to process 50807.
Reading symbols for shared libraries . done
Reading symbols for shared libraries .......................................................................................................................................... done
[KCrash handler]
#5  0x018668e4 in QMacPasteboard::promiseKeeper ()
#6  0x01866c56 in QMacPasteboard::~QMacPasteboard ()
#7  0x01871d96 in QDragManager::drag ()
#8  0x018192a8 in QDrag::exec ()
#9  0x014668ec in DragAndDropHelper::startDrag (itemView=0x27f27c0, supportedActions=@0xbfffde9c) at /Users/orville/kdesvn/trunk/KDE/kdebase/apps/dolphin/src/draganddrophelper.cpp:57
#10 0x0145bf78 in DolphinIconsView::startDrag (this=0x27f27c0, supportedActions=@0xbfffdf70) at /Users/orville/kdesvn/trunk/KDE/kdebase/apps/dolphin/src/dolphiniconsview.cpp:217
#11 0x01cdf501 in QAbstractItemView::mouseMoveEvent () at dolphin_iconsmodesettings.h:222
#12 0x01cf97c0 in QListView::mouseMoveEvent () at dolphin_iconsmodesettings.h:222
#13 0x00953ed8 in KCategorizedView::mouseMoveEvent (this=0x27f27c0, event=0xbfffea34) at /Users/orville/kdesvn/trunk/KDE/kdelibs/kdeui/itemviews/kcategorizedview.cpp:1032
#14 0x0185076f in QWidget::event () at kurl.h:122
#15 0x01bb2435 in QFrame::event () at kurl.h:122
#16 0x01c3ebcf in QAbstractScrollArea::viewportEvent () at kurl.h:122
#17 0x01ce13aa in QAbstractItemView::viewportEvent () at kurl.h:122
#18 0x01c41b05 in QAbstractScrollAreaFilter::eventFilter () at kurl.h:122
#19 0x0031f7c7 in QCoreApplicationPrivate::sendThroughObjectEventFilters ()
#20 0x01809566 in QApplicationPrivate::notify_helper () at kurl.h:122
#21 0x0181046d in QApplication::notify () at kurl.h:122
#22 0x0096f1d7 in KApplication::notify (this=0xbffff508, receiver=0x27f3f30, event=0xbfffea34) at /Users/orville/kdesvn/trunk/KDE/kdelibs/kdeui/kernel/kapplication.cpp:311
#23 0x0031f661 in QCoreApplication::notifyInternal ()
#24 0x01860ebb in QApplicationPrivate::globalEventProcessor () at kurl.h:122
#25 0x94ab9fc3 in DispatchEventToHandlers ()
#26 0x94ab93fd in SendEventToEventTargetInternal ()
#27 0x94ad5e0e in SendEventToEventTarget ()
#28 0x94ae8874 in ToolboxEventDispatcherHandler ()
#29 0x94aba37c in DispatchEventToHandlers ()
#30 0x94ab93fd in SendEventToEventTargetInternal ()
#31 0x94ad5e0e in SendEventToEventTarget ()
#32 0x0185bd71 in qt_mac_send_event () at kurl.h:122
#33 0x0186a1b2 in QEventDispatcherMac::processEvents () at kurl.h:122
#34 0x0031ea98 in QEventLoop::processEvents ()
#35 0x0031ed1d in QEventLoop::exec ()
#36 0x00322c61 in QCoreApplication::exec ()
#37 0x0002ea7a in main (argc=2, argv=0xbffff694) at /Users/orville/kdesvn/trunk/KDE/kdebase/apps/dolphin/src/main.cpp:96

 
Comment 3 illogic-al 2008-06-24 19:54:39 UTC
Still happening. Still no feedback. Should I even bother reporting osx bugs? 
Comment 4 Leo Franchi 2008-07-02 04:48:23 UTC
I can confirm---happens on any drag in OS X.

does seem more like  Qt bug though than a kde one. 

Backtrace:

[KCrash handler]
#5  0x03930cec in QMacPasteboard::promiseKeeper () at qmutex.h:111
#6  0x03930e37 in QMacPasteboard::~QMacPasteboard () at qmutex.h:111
#7  0x0393b5ec in QDragManager::drag () at qmutex.h:111
#8  0x038e4ad8 in QDrag::exec () at qmutex.h:111
#9  0x03d2b747 in QAbstractItemView::startDrag () at qmutex.h:111
#10 0x008f909c in CollectionTreeView::startDrag (this=0x1ad4e180, supportedActions=@0xbfffd98c) at /Users/leofranchi/kde/amarok/src/collectionbrowser/CollectionTreeView.cpp:355
#11 0x03d2a331 in QAbstractItemView::mouseMoveEvent () at qmutex.h:111
#12 0x039229ff in QWidget::event () at qmutex.h:111
#13 0x03c10f25 in QFrame::event () at qmutex.h:111
#14 0x03c953ff in QAbstractScrollArea::viewportEvent () at qmutex.h:111
#15 0x03d2c632 in QAbstractItemView::viewportEvent () at qmutex.h:111
#16 0x03d5cca5 in QTreeView::viewportEvent () at qmutex.h:111
#17 0x03c97425 in QAbstractScrollAreaFilter::eventFilter () at qmutex.h:111
#18 0x002c001f in QCoreApplicationPrivate::sendThroughObjectEventFilters ()
#19 0x038d4166 in QApplicationPrivate::notify_helper () at qmutex.h:111
#20 0x038da9cf in QApplication::notify () at qmutex.h:111
#21 0x01144bd3 in KApplication::notify (this=0xbffff000, receiver=0x1ad4eb30, event=0xbfffe2d0) at /Users/leofranchi/kde/kdelibs/kdeui/kernel/kapplication.cpp:311
#22 0x002c05ae in QCoreApplication::notifyInternal ()
#23 0x0392db86 in QApplicationPrivate::globalEventProcessor () at qmutex.h:111
#24 0x967aa763 in DispatchEventToHandlers ()
#25 0x967a9b9d in SendEventToEventTargetInternal ()
#26 0x967c64ee in SendEventToEventTarget ()
#27 0x967d8b90 in ToolboxEventDispatcherHandler ()
#28 0x967aab1c in DispatchEventToHandlers ()
#29 0x967a9b9d in SendEventToEventTargetInternal ()
#30 0x967c64ee in SendEventToEventTarget ()
#31 0x03927351 in qt_mac_send_event () at qmutex.h:111
#32 0x03934382 in QEventDispatcherMac::processEvents () at qmutex.h:111
#33 0x002bf701 in QEventLoop::processEvents ()
#34 0x002bf95a in QEventLoop::exec ()
#35 0x002c1a83 in QCoreApplication::exec ()
#36 0x00012be3 in main (argc=2, argv=0xbffff3b4) at /Users/leofranchi/kde/amarok/src/main.cpp:129

Comment 5 Leo Franchi 2008-07-31 03:30:25 UTC
Created attachment 26518 [details]
patch to fix

Attached is a patch to fix. Problem was an off-by-one error , which would trip
everything up with an illegal array access.

cheers.
Comment 6 Benjamin Reed 2008-07-31 18:16:26 UTC
I've added this to qt-copy, thanks!