Bug 153437 - umbrello crashes on double klick on note
Summary: umbrello crashes on double klick on note
Status: RESOLVED FIXED
Alias: None
Product: umbrello
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: Umbrello Development Group
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-04 19:35 UTC by Oliver Putz
Modified: 2008-03-19 01:20 UTC (History)
1 user (show)

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 Oliver Putz 2007-12-04 19:35:17 UTC
Version:           1.92.1 (using KDE 3.96.1 (KDE 4.0 >= 20071120), compiled sources)
Compiler:          gcc
OS:                Linux (i686) release 2.6.20-15-generic

If I open umbrello, create a note and double klick on that note, umbrello crashes.

Steps to reproduce

1) Start umbrello
2) Klick on note and place a new note in the form
3) Klick on select and doubleclick on the note just created

This crash is not restricted to the class diagram view. The program crashes in the other views too.

I use kde4daily r744670 and the backtrace for this crash is: 


(no debugging symbols found)
Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread -1240455472 (LWP 6107)]
[KCrash handler]
#6  0x08259859 in QHash<ListPopupMenu::Menu_Type, QAction*>::value ()
#7  0x0824e136 in ListPopupMenu::getAction ()
#8  0x08267325 in NoteWidgetController::doMouseDoubleClick ()
#9  0x082e0c0a in UMLWidgetController::mouseDoubleClickEvent ()
#10 0x082daf73 in UMLWidget::mouseDoubleClickEvent ()
#11 0x082855c8 in ToolBarStateArrow::mouseDoubleClickWidget ()
#12 0x08284cd6 in ToolBarState::mouseDoubleClick ()
#13 0x082c30d9 in UMLView::contentsMouseDoubleClickEvent ()
#14 0xb73f066b in Q3ScrollView::viewportMouseDoubleClickEvent ()
   from /storage/tmp/kde4dev/qt-unstable/lib/libQt3Support.so.4
#15 0xb73f1405 in Q3ScrollView::eventFilter ()
   from /storage/tmp/kde4dev/qt-unstable/lib/libQt3Support.so.4
#16 0xb668becc in QApplicationPrivate::notify_helper ()
   from /storage/tmp/kde4dev/qt-unstable/lib/libQtGui.so.4
#17 0xb668cac2 in QApplication::notify ()
   from /storage/tmp/kde4dev/qt-unstable/lib/libQtGui.so.4
#18 0xb7a8f62f in KApplication::notify (this=0xbfb3d148, receiver=0x8664868, 
    event=0xbfb3c930)
    at /storage/tmp/kde4dev/kdelibs/kdeui/kernel/kapplication.cpp:319
#19 0xb7ef1356 in QCoreApplication::notifyInternal ()
   from /storage/tmp/kde4dev/qt-unstable/lib/libQtCore.so.4
#20 0xb6697321 in QCoreApplication::sendSpontaneousEvent ()
   from /storage/tmp/kde4dev/qt-unstable/lib/libQtGui.so.4
#21 0xb66f8ae2 in QETWidget::translateMouseEvent ()
   from /storage/tmp/kde4dev/qt-unstable/lib/libQtGui.so.4
#22 0xb66f6480 in QApplication::x11ProcessEvent ()
   from /storage/tmp/kde4dev/qt-unstable/lib/libQtGui.so.4
#23 0xb6724047 in x11EventSourceDispatch ()
   from /storage/tmp/kde4dev/qt-unstable/lib/libQtGui.so.4
#24 0xb6284df2 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#25 0xb6287dcf in ?? () from /usr/lib/libglib-2.0.so.0
#26 0x08379898 in ?? ()
#27 0x00000000 in ?? ()
#0  0xffffe402 in __kernel_vsyscall ()
Comment 1 Oliver Putz 2008-01-09 01:56:56 UTC
After having compiled KDE myself, here a somewhat more verbose backtrace (KDE Version 4.00.80 >= 20080104 and gcc version 4.1.2 20070214 on a gentoo machine)

Using host libthread_db library "/lib/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread 0xb604a8e0 (LWP 14470)]
[KCrash handler]
#6  QHash<ListPopupMenu::Menu_Type, QAction*>::value (this=0xf8, 
    akey=@0xbff3f7d4, adefaultValue=@0xbff3f7c4)
    at /usr/include/qt4/QtCore/qhash.h:586
#7  0x082266db in ListPopupMenu::getAction (this=0x0, 
    idx=ListPopupMenu::mt_Rename)
    at /var/tmp/portage/kde-base/kdesdk-9999.4/work/kdesdk-9999.4/umbrello/umbrello/listpopupmenu.cpp:1616
#8  0x0823bd02 in NoteWidgetController::doMouseDoubleClick (this=0x8555908)
    at /var/tmp/portage/kde-base/kdesdk-9999.4/work/kdesdk-9999.4/umbrello/umbrello/notewidgetcontroller.cpp:44
#9  0x08256fa4 in ToolBarStateArrow::mouseDoubleClickWidget (this=0x84d5e68)
    at /var/tmp/portage/kde-base/kdesdk-9999.4/work/kdesdk-9999.4/umbrello/umbrello/toolbarstatearrow.cpp:106
#10 0x082567a8 in ToolBarState::mouseDoubleClick (this=0x84d5e68, 
    ome=0xbff3f878)
    at /var/tmp/portage/kde-base/kdesdk-9999.4/work/kdesdk-9999.4/umbrello/umbrello/toolbarstate.cpp:107
#11 0xb730ff3e in Q3ScrollView::viewportMouseDoubleClickEvent (
    this=0x84d2c08, e=0xbff3fe44) at widgets/q3scrollview.cpp:1799
#12 0xb7311270 in Q3ScrollView::eventFilter (this=0x84d2c08, obj=0x84d33c8, 
    e=0xbff3fe44) at widgets/q3scrollview.cpp:1507
#13 0xb64dffdb in QApplicationPrivate::notify_helper (this=0x831c9c0, 
    receiver=0x84d33c8, e=0xbff3fe44) at kernel/qapplication.cpp:3550
#14 0xb64e1c6c in QApplication::notify (this=0xbff403cc, receiver=0x84d33c8, 
    e=0xbff3fe44) at kernel/qapplication.cpp:3257
#15 0xb7a0f783 in KApplication::notify (this=0xbff403cc, receiver=0x84d33c8, 
    event=0xbff3fe44)
    at /var/tmp/portage/kde-base/kdelibs-9999.4/work/kdelibs-9999.4/kdeui/kernel/kapplication.cpp:314
#16 0xb7e81cab in QCoreApplication::notifyInternal (this=0xbff403cc, 
    receiver=0x84d33c8, event=0xbff3fe44) at kernel/qcoreapplication.cpp:532
#17 0xb6545908 in QETWidget::translateMouseEvent (this=0x84d33c8, 
    event=0xbff40208)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:205
#18 0xb654416e in QApplication::x11ProcessEvent (this=0xbff403cc, 
    event=0xbff40208) at kernel/qapplication_x11.cpp:2917
#19 0xb6569ef5 in QEventDispatcherX11::processEvents (this=0x831c4a8, 
    flags=@0xbff402f4) at kernel/qeventdispatcher_x11.cpp:127
#20 0xb7e810c1 in QEventLoop::processEvents (this=0xbff40360, 
    flags=@0xbff40328) at kernel/qeventloop.cpp:142
#21 0xb7e811ca in QEventLoop::exec (this=0xbff40360, flags=@0xbff40368)
    at kernel/qeventloop.cpp:188
#22 0xb7e83556 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:761
#23 0xb64df6c7 in QApplication::exec () at kernel/qapplication.cpp:3055
#24 0x08230972 in main (argc=1, argv=0xbff40524)
    at /var/tmp/portage/kde-base/kdesdk-9999.4/work/kdesdk-9999.4/umbrello/umbrello/main.cpp:111
#25 0xb61a4fdc in __libc_start_main (main=0x8230340 <main>, argc=1, 
    ubp_av=0xbff40524, init=0x82af290 <__libc_csu_init>, 
    fini=0x82af280 <__libc_csu_fini>, rtld_fini=0xb7f45100 <_dl_fini>, 
    stack_end=0xbff4051c) at libc-start.c:229
#26 0x08079701 in _start ()
#0  0xffffe410 in __kernel_vsyscall ()
Comment 2 Marcus Better 2008-02-15 09:35:42 UTC
I can confirm this with Umbrello 2.0.0, KDE 4.0.1 (Debian i386).
Comment 3 Sharan Rao 2008-02-15 18:40:06 UTC
SVN commit 775390 by sharan:

Fix crash on - Double Click on Note Widget
Looking at the fix from a macroscopic view, it seems like a hack to me. If we are going to need access to actions in places other than the ListPopupMenu, maybe we should associate the actions with the Widgets ? and not have them as strongly coupled with the ListPopupMenu ? Suggestions/Comments ?

CCBUG:153437



 M  +4 -0      notewidgetcontroller.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=775390
Comment 4 Marcus Better 2008-03-07 12:55:03 UTC
Bug still present in KDE 4.0.2 (Debian).
Comment 5 Oliver Putz 2008-03-19 01:20:02 UTC
Fixed in current SVN build