Bug 153539 - Crashs when dragging messages around
Summary: Crashs when dragging messages around
Status: RESOLVED WORKSFORME
Alias: None
Product: kmail
Classification: Applications
Component: message list (show other bugs)
Version: SVN trunk (KDE 4)
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-06 08:47 UTC by Tobias Powalowski
Modified: 2008-02-25 19:50 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tobias Powalowski 2007-12-06 08:47:04 UTC
Version:           3.97 (using KDE Devel)
Installed from:    Compiled sources
Compiler:          gcc 4.2.2 
OS:                Linux

while starting to hold left mouse button and dragging a mail around it crashes not everytime but around 1 out of 3 times.
Version is 3.97 tarball aka RC2

here the crash log:
(no debugging symbols found)
Using host libthread_db library "/lib/libthread_db.so.1".
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread 0x2b1f8316b1e0 (LWP 31134)]
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[KCrash handler]
#5  0x00002b1f7da662c2 in QDragManager::move () from /usr/lib/libQtGui.so.4
#6  0x00002b1f7da66dc5 in QDragManager::eventFilter ()
   from /usr/lib/libQtGui.so.4
#7  0x00002b1f7da00966 in QApplicationPrivate::notify_helper ()
   from /usr/lib/libQtGui.so.4
#8  0x00002b1f7da0349b in QApplication::notify () from /usr/lib/libQtGui.so.4
#9  0x00002b1f7875b861 in KApplication::notify (this=0x7fff3733f5a0, 
    receiver=0xf133d0, event=0x7fff3733d460)
    at /home/tobias/Arch/devel/kde4/kdelibs/src/kdelibs-3.97.0/kdeui/kernel/kapplication.cpp:319
#10 0x00002b1f73a8aac0 in QCoreApplication::notifyInternal ()
   from /usr/lib/libQtCore.so.4
#11 0x00002b1f7da59023 in QETWidget::translateMouseEvent ()
   from /usr/lib/libQtGui.so.4
#12 0x00002b1f7da584c1 in QApplication::x11ProcessEvent ()
   from /usr/lib/libQtGui.so.4
#13 0x00002b1f7da7b133 in ?? () from /usr/lib/libQtGui.so.4
#14 0x00002b1f7fb59f44 in g_main_context_dispatch ()
   from /usr/lib/libglib-2.0.so.0
#15 0x00002b1f7fb5d22d in g_main_context_iterate ()
   from /usr/lib/libglib-2.0.so.0
#16 0x00002b1f7fb5d6fe in g_main_context_iteration ()
   from /usr/lib/libglib-2.0.so.0
#17 0x00002b1f73aacec1 in QEventDispatcherGlib::processEvents ()
   from /usr/lib/libQtCore.so.4
#18 0x00002b1f7da7af7f in ?? () from /usr/lib/libQtGui.so.4
#19 0x00002b1f73a8a038 in QEventLoop::processEvents ()
   from /usr/lib/libQtCore.so.4
#20 0x00002b1f73a8a149 in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#21 0x00002b1f7da66b1a in QDragManager::drag () from /usr/lib/libQtGui.so.4
#22 0x00002b1f7da11b02 in QDrag::start () from /usr/lib/libQtGui.so.4
#23 0x00002b1f752f9e14 in KMHeaders::contentsMouseMoveEvent ()
   from /usr/lib/libkmailprivate.so.4
#24 0x00002b1f7e655729 in Q3ScrollView::viewportMouseMoveEvent ()
   from /usr/lib/libQt3Support.so.4
#25 0x00002b1f7e6570e6 in Q3ScrollView::eventFilter ()
   from /usr/lib/libQt3Support.so.4
#26 0x00002b1f7e60393e in Q3ListView::eventFilter ()
   from /usr/lib/libQt3Support.so.4
#27 0x00002b1f7530771e in KMHeaders::eventFilter ()
   from /usr/lib/libkmailprivate.so.4
#28 0x00002b1f7da00a4f in QApplicationPrivate::notify_helper ()
   from /usr/lib/libQtGui.so.4
#29 0x00002b1f7da0349b in QApplication::notify () from /usr/lib/libQtGui.so.4
#30 0x00002b1f7875b861 in KApplication::notify (this=0x7fff3733f5a0, 
    receiver=0x8b84e0, event=0x7fff3733ea40)
    at /home/tobias/Arch/devel/kde4/kdelibs/src/kdelibs-3.97.0/kdeui/kernel/kapplication.cpp:319
#31 0x00002b1f73a8aac0 in QCoreApplication::notifyInternal ()
   from /usr/lib/libQtCore.so.4
#32 0x00002b1f7da59023 in QETWidget::translateMouseEvent ()
   from /usr/lib/libQtGui.so.4
#33 0x00002b1f7da584c1 in QApplication::x11ProcessEvent ()
   from /usr/lib/libQtGui.so.4
#34 0x00002b1f7da7b133 in ?? () from /usr/lib/libQtGui.so.4
#35 0x00002b1f7fb59f44 in g_main_context_dispatch ()
   from /usr/lib/libglib-2.0.so.0
#36 0x00002b1f7fb5d22d in g_main_context_iterate ()
   from /usr/lib/libglib-2.0.so.0
#37 0x00002b1f7fb5d6fe in g_main_context_iteration ()
   from /usr/lib/libglib-2.0.so.0
#38 0x00002b1f73aacec1 in QEventDispatcherGlib::processEvents ()
   from /usr/lib/libQtCore.so.4
#39 0x00002b1f7da7af7f in ?? () from /usr/lib/libQtGui.so.4
#40 0x00002b1f73a8a038 in QEventLoop::processEvents ()
   from /usr/lib/libQtCore.so.4
#41 0x00002b1f73a8a149 in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#42 0x00002b1f73a8c6a9 in QCoreApplication::exec ()
   from /usr/lib/libQtCore.so.4
#43 0x00000000004031f4 in _start ()
#0  0x00002b1f7f46bf80 in __nanosleep_nocancel () from /lib/libc.so.6
Comment 1 Thomas McGuire 2007-12-09 15:35:22 UTC
I also get a crash (assert actually), but with a completely different backtrace.
I guess the problem might be the progress widget which briefly pops up, but I am a bit clueless about that.

My backtrace:

#5  0xb7e430ad in qt_assert (assertion=0xb5ec217d "object != 0", file=0xb5ec2082 "kernel/qdnd_x11.cpp", line=1256) at global/qglobal.cpp:1919
#6  0xb598a887 in QDragManager::eventFilter (this=0x866d4c0, o=0x8646c50, e=0xbfdfd58c) at kernel/qdnd_x11.cpp:1256
#7  0xb590d6e3 in QApplicationPrivate::notify_helper (this=0x806a0b0, receiver=0x8646c50, e=0xbfdfd58c) at kernel/qapplication.cpp:3519
#8  0xb590f69e in QApplication::notify (this=0xbfdffcdc, receiver=0x8646c50, e=0xbfdfd58c) at kernel/qapplication.cpp:3499
#9  0xb6bd2da7 in KApplication::notify (this=0xbfdffcdc, receiver=0x8646c50, event=0xbfdfd58c) at /media/kdedev/home/src/KDE/kdelibs/kdeui/kernel/kapplication.cpp:319
#10 0xb7f0120e in QCoreApplication::notifyInternal (this=0xbfdffcdc, receiver=0x8646c50, event=0xbfdfd58c) at kernel/qcoreapplication.cpp:532
#11 0xb590a693 in QCoreApplication::sendEvent (receiver=0x8646c50, event=0xbfdfd58c) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:202
#12 0xb595c351 in QWidgetPrivate::hide_helper (this=0x8684308) at kernel/qwidget.cpp:5476
#13 0xb59646f0 in QWidget::setVisible (this=0x8646c50, visible=false) at kernel/qwidget.cpp:5632
#14 0xb594932e in QWidget::hide (this=0x8646c50) at ../../include/QtGui/../../src/gui/kernel/qwidget.h:451
#15 0xb5962058 in ~QWidget (this=0x8646c50) at kernel/qwidget.cpp:1190
#16 0xb598d77f in ~QShapedPixmapWidget (this=0x8646c50) at kernel/qdnd_x11.cpp:266
#17 0xb5986b24 in QX11Data::xdndHandleBadwindow () at kernel/qdnd_x11.cpp:1696
#18 0xb59722e6 in qt_x_errhandler (dpy=0x8075f08, err=0xbfdfdba8) at kernel/qapplication_x11.cpp:474
#19 0xb6bd17a3 in KApplication::xErrhandler (this=0xbfdffcdc, dpy=0x8075f08, err_=0xbfdfdba8) at /media/kdedev/home/src/KDE/kdelibs/kdeui/kernel/kapplication.cpp:442
#20 0xb6bd181f in kde_x_errhandler (dpy=0x8075f08, err=0xbfdfdba8) at /media/kdedev/home/src/KDE/kdelibs/kdeui/kernel/kapplication.cpp:139
#21 0xb5ffdc4a in _XError () from /usr/lib/libX11.so.6
#22 0xb5fff714 in _XReply () from /usr/lib/libX11.so.6
#23 0xb5fe38a6 in XGetWindowProperty () from /usr/lib/libX11.so.6
#24 0xb59864ef in QX11Data::xdndHandleEnter (this=0x806d5b0, xe=0xbfdfdec4) at kernel/qdnd_x11.cpp:807
#25 0xb5989f71 in QDragManager::move (this=0x866d4c0, globalPos=@0xbfdfe418) at kernel/qdnd_x11.cpp:1583
#26 0xb598a8da in QDragManager::eventFilter (this=0x866d4c0, o=0x81c1cd8, e=0xbfdfe400) at kernel/qdnd_x11.cpp:1263
#27 0xb590d6e3 in QApplicationPrivate::notify_helper (this=0x806a0b0, receiver=0x81c1cd8, e=0xbfdfe400) at kernel/qapplication.cpp:3519
#28 0xb590e4d2 in QApplication::notify (this=0xbfdffcdc, receiver=0x81c1cd8, e=0xbfdfe400) at kernel/qapplication.cpp:3257
#29 0xb6bd2da7 in KApplication::notify (this=0xbfdffcdc, receiver=0x81c1cd8, event=0xbfdfe400) at /media/kdedev/home/src/KDE/kdelibs/kdeui/kernel/kapplication.cpp:319
#30 0xb7f0120e in QCoreApplication::notifyInternal (this=0xbfdffcdc, receiver=0x81c1cd8, event=0xbfdfe400) at kernel/qcoreapplication.cpp:532
#31 0xb5918d31 in QCoreApplication::sendSpontaneousEvent (receiver=0x81c1cd8, event=0xbfdfe400) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:205
#32 0xb597a45a in QETWidget::translateMouseEvent (this=0x81c1cd8, event=0xbfdfe96c) at kernel/qapplication_x11.cpp:3866
#33 0xb5977df8 in QApplication::x11ProcessEvent (this=0xbfdffcdc, event=0xbfdfe96c) at kernel/qapplication_x11.cpp:2917
#34 0xb59a558f in x11EventSourceDispatch (s=0x806cea8, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:137
#35 0xb5203df2 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#36 0xb5206dcf in ?? () from /usr/lib/libglib-2.0.so.0
#37 0x0806c490 in ?? ()
#38 0x00000000 in ?? ()
Comment 2 Allen Winter 2007-12-09 17:31:49 UTC
I don't see this crash.

Are you using qt-copy?
And did you apply the 0178-transparency-window-types.diff patch?

If not, perhaps the patch helps.  Don't know for sure.
Comment 3 Tobias Powalowski 2007-12-09 17:33:58 UTC
yes on archlinux we use qt-copy patches
Comment 4 Thomas McGuire 2007-12-13 00:07:31 UTC
>I don't see this crash.
When you start dragging a message, you will see (very briefly) a progress widget poping up in the message list.
I get the crashes sometimes when dragging at the same position where that widget pops up.
Comment 5 Thomas McGuire 2008-02-25 19:50:14 UTC
There have been some changes in drag&drop code lately, I can no longer reproduce this.

Please reopen if you still can reproduce with a recent version.