Bug 83553 - Crash in umbrello when renaming class
Summary: Crash in umbrello when renaming class
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: 2004-06-17 21:48 UTC by Anthony Parent
Modified: 2004-07-12 14:34 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 Anthony Parent 2004-06-17 21:48:01 UTC
Version:           1.2.90 (using KDE 3.2.2, compiled sources)
Compiler:          gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)
OS:                Linux (i686) release 2.4.20-6

I am using the current CVS HEAD as of 06/17/04

 - Start Umbrello
 - Create a package called foo
 - Create a class called foo (Umbrello tells you the name is invalid)
 - I clicked a bit to get the new class name back to "new_class"
 - I then clicked on the new class to rename it and umbrello crashed.
    - The backtrace is below ("BACKTRACE 1")

 - I tried to reproduce the error, doing everything the same. Only this time
   it let me select the "new_class". No matter what I tried to rename it to, I
   was told it was an invalid name.
 - I attempted to delete the "new_class" -> crash (See BACKTRACE 2)
 - This one seems to be repeatable

------------ BACKTRACE 1 -------------------------
[New Thread 1093907264 (LWP 10872)]
0xffffe002 in ?? ()
#0  0xffffe002 in ?? ()
#1  0x407be4dd in KCrash::defaultCrashHandler(int) ()
   from /home/tonyp/kde3.2.2/lib/libkdecore.so.4
#2  <signal handler called>
#3  0x40dd65ae in QGList::first() ()
   from /home/tonyp/kde3.2.2/lib/libqt-mt.so.3
#4  0x0813e906 in UMLPackage::addObject(UMLObject const*) ()
#5  0x08166b48 in UMLListView::slotDropped(QDropEvent*, QListViewItem*, QListViewItem*) ()
#6  0x0816c8b3 in UMLListView::qt_invoke(int, QUObject*) ()
#7  0x40b825b6 in QObject::activate_signal(QConnectionList*, QUObject*) ()
   from /home/tonyp/kde3.2.2/lib/libqt-mt.so.3
#8  0x405555bf in KListView::dropped(QDropEvent*, QListViewItem*, QListViewItem*) () from /home/tonyp/kde3.2.2/lib/libkdeui.so.4
#9  0x40550044 in KListView::contentsDropEvent(QDropEvent*) ()
   from /home/tonyp/kde3.2.2/lib/libkdeui.so.4
#10 0x40c7399b in QScrollView::viewportDropEvent(QDropEvent*) ()
   from /home/tonyp/kde3.2.2/lib/libqt-mt.so.3
#11 0x40c731bf in QScrollView::eventFilter(QObject*, QEvent*) ()
   from /home/tonyp/kde3.2.2/lib/libqt-mt.so.3
#12 0x40c47dad in QListView::eventFilter(QObject*, QEvent*) ()
   from /home/tonyp/kde3.2.2/lib/libqt-mt.so.3
#13 0x40b80610 in QObject::activate_filters(QEvent*) ()
   from /home/tonyp/kde3.2.2/lib/libqt-mt.so.3
#14 0x40b8055e in QObject::event(QEvent*) ()
   from /home/tonyp/kde3.2.2/lib/libqt-mt.so.3
#15 0x40bb00aa in QWidget::event(QEvent*) ()
   from /home/tonyp/kde3.2.2/lib/libqt-mt.so.3
#16 0x40b30bed in QApplication::internalNotify(QObject*, QEvent*) ()
   from /home/tonyp/kde3.2.2/lib/libqt-mt.so.3
#17 0x40b30330 in QApplication::notify(QObject*, QEvent*) ()
   from /home/tonyp/kde3.2.2/lib/libqt-mt.so.3
#18 0x4073bd2e in KApplication::notify(QObject*, QEvent*) ()
   from /home/tonyp/kde3.2.2/lib/libkdecore.so.4
#19 0x40ae03e3 in qt_handle_xdnd_drop(QWidget*, _XEvent const*, bool) ()
   from /home/tonyp/kde3.2.2/lib/libqt-mt.so.3
#20 0x40ae17eb in QDragManager::drop() ()
   from /home/tonyp/kde3.2.2/lib/libqt-mt.so.3
#21 0x40ae08bd in QDragManager::eventFilter(QObject*, QEvent*) ()
   from /home/tonyp/kde3.2.2/lib/libqt-mt.so.3
#22 0x40b30c8f in QApplication::internalNotify(QObject*, QEvent*) ()
   from /home/tonyp/kde3.2.2/lib/libqt-mt.so.3
#23 0x40b30405 in QApplication::notify(QObject*, QEvent*) ()
   from /home/tonyp/kde3.2.2/lib/libqt-mt.so.3
#24 0x4073bd2e in KApplication::notify(QObject*, QEvent*) ()
   from /home/tonyp/kde3.2.2/lib/libkdecore.so.4
#25 0x40ad2b1b in QETWidget::translateMouseEvent(_XEvent const*) ()
   from /home/tonyp/kde3.2.2/lib/libqt-mt.so.3
#26 0x40ad0474 in QApplication::x11ProcessEvent(_XEvent*) ()
   from /home/tonyp/kde3.2.2/lib/libqt-mt.so.3
#27 0x40ae4c16 in QEventLoop::processEvents(unsigned) ()
   from /home/tonyp/kde3.2.2/lib/libqt-mt.so.3
#28 0x40b417bb in QEventLoop::enterLoop() ()
   from /home/tonyp/kde3.2.2/lib/libqt-mt.so.3
#29 0x40b30e5c in QApplication::enter_loop() ()
   from /home/tonyp/kde3.2.2/lib/libqt-mt.so.3
#30 0x40ae2234 in QDragManager::drag(QDragObject*, QDragObject::DragMode) ()
   from /home/tonyp/kde3.2.2/lib/libqt-mt.so.3
#31 0x40b3a776 in QDragObject::drag(QDragObject::DragMode) ()
   from /home/tonyp/kde3.2.2/lib/libqt-mt.so.3
#32 0x40b3a725 in QDragObject::dragCopy() ()
   from /home/tonyp/kde3.2.2/lib/libqt-mt.so.3
#33 0x4054fbb2 in KListView::contentsMouseMoveEvent(QMouseEvent*) ()
   from /home/tonyp/kde3.2.2/lib/libkdeui.so.4
#34 0x40c73829 in QScrollView::viewportMouseMoveEvent(QMouseEvent*) ()
   from /home/tonyp/kde3.2.2/lib/libqt-mt.so.3
#35 0x40c73099 in QScrollView::eventFilter(QObject*, QEvent*) ()
   from /home/tonyp/kde3.2.2/lib/libqt-mt.so.3
#36 0x40c47dad in QListView::eventFilter(QObject*, QEvent*) ()
   from /home/tonyp/kde3.2.2/lib/libqt-mt.so.3
#37 0x40b80610 in QObject::activate_filters(QEvent*) ()
   from /home/tonyp/kde3.2.2/lib/libqt-mt.so.3
#38 0x40b8055e in QObject::event(QEvent*) ()
   from /home/tonyp/kde3.2.2/lib/libqt-mt.so.3
#39 0x40bb00aa in QWidget::event(QEvent*) ()
   from /home/tonyp/kde3.2.2/lib/libqt-mt.so.3
#40 0x40b30bed in QApplication::internalNotify(QObject*, QEvent*) ()
   from /home/tonyp/kde3.2.2/lib/libqt-mt.so.3
#41 0x40b30405 in QApplication::notify(QObject*, QEvent*) ()
   from /home/tonyp/kde3.2.2/lib/libqt-mt.so.3
#42 0x4073bd2e in KApplication::notify(QObject*, QEvent*) ()
   from /home/tonyp/kde3.2.2/lib/libkdecore.so.4
#44 0x40ad0474 in QApplication::x11ProcessEvent(_XEvent*) ()
   from /home/tonyp/kde3.2.2/lib/libqt-mt.so.3
#45 0x40ae4c16 in QEventLoop::processEvents(unsigned) ()
   from /home/tonyp/kde3.2.2/lib/libqt-mt.so.3
#46 0x40b417bb in QEventLoop::enterLoop() ()
   from /home/tonyp/kde3.2.2/lib/libqt-mt.so.3
#47 0x40b41678 in QEventLoop::exec() ()
   from /home/tonyp/kde3.2.2/lib/libqt-mt.so.3
#48 0x40b30e08 in QApplication::exec() ()
   from /home/tonyp/kde3.2.2/lib/libqt-mt.so.3
#49 0x0813401b in main ()
#50 0x42015504 in __libc_start_main () from /lib/tls/libc.so.6


--------------BACKTRACE 2 -------------------------
[New Thread 1093907264 (LWP 10878)]
0xffffe002 in ?? ()
#0  0xffffe002 in ?? ()
#1  0x407be4dd in KCrash::defaultCrashHandler(int) ()
   from /home/tonyp/kde3.2.2/lib/libkdecore.so.4
#2  <signal handler called>
#3  0x081708b2 in UMLObject::getBaseType() const ()
#4  0x0815a249 in UMLDoc::removeUMLObject(UMLObject*) ()
#5  0x08164cdd in UMLListView::popupMenuSel(int) ()
#6  0x0816c89f in UMLListView::qt_invoke(int, QUObject*) ()
#7  0x40b825b6 in QObject::activate_signal(QConnectionList*, QUObject*) ()
   from /home/tonyp/kde3.2.2/lib/libqt-mt.so.3
#8  0x40b826e9 in QObject::activate_signal(int, int) ()
   from /home/tonyp/kde3.2.2/lib/libqt-mt.so.3
#9  0x40e4e3f5 in QPopupMenu::activated(int) ()
   from /home/tonyp/kde3.2.2/lib/libqt-mt.so.3
#10 0x40c62f25 in QPopupMenu::actSig(int, bool) ()
   from /home/tonyp/kde3.2.2/lib/libqt-mt.so.3
#11 0x40c66cf1 in QPopupMenu::mouseReleaseEvent(QMouseEvent*) ()
   from /home/tonyp/kde3.2.2/lib/libqt-mt.so.3
#12 0x40bb011f in QWidget::event(QEvent*) ()
   from /home/tonyp/kde3.2.2/lib/libqt-mt.so.3
#13 0x40b30bed in QApplication::internalNotify(QObject*, QEvent*) ()
   from /home/tonyp/kde3.2.2/lib/libqt-mt.so.3
#14 0x40b30405 in QApplication::notify(QObject*, QEvent*) ()
   from /home/tonyp/kde3.2.2/lib/libqt-mt.so.3
#15 0x4073bd2e in KApplication::notify(QObject*, QEvent*) ()
   from /home/tonyp/kde3.2.2/lib/libkdecore.so.4
#16 0x40ad26a0 in QETWidget::translateMouseEvent(_XEvent const*) ()
   from /home/tonyp/kde3.2.2/lib/libqt-mt.so.3
#17 0x40ad0474 in QApplication::x11ProcessEvent(_XEvent*) ()
   from /home/tonyp/kde3.2.2/lib/libqt-mt.so.3
#18 0x40ae4c16 in QEventLoop::processEvents(unsigned) ()
   from /home/tonyp/kde3.2.2/lib/libqt-mt.so.3
#19 0x40b417bb in QEventLoop::enterLoop() ()
   from /home/tonyp/kde3.2.2/lib/libqt-mt.so.3
#20 0x40b41678 in QEventLoop::exec() ()
   from /home/tonyp/kde3.2.2/lib/libqt-mt.so.3
#21 0x40b30e08 in QApplication::exec() ()
   from /home/tonyp/kde3.2.2/lib/libqt-mt.so.3
#22 0x0813401b in main ()
#23 0x42015504 in __libc_start_main () from /lib/tls/libc.so.6
Comment 1 vittor 2004-06-20 22:55:43 UTC
I tried the following :
1- create a class named foo
2- try to create a second class also named foo
  => I get an error message : Name not unique
3- click OK
4- hit Esc key
  => I have 2 classes named foo !
5- try to delete the second one
  => crash

I believe that the step 4 should lead to cancelation of class creation.
Comment 2 Jonathan Riddell 2004-07-05 15:50:57 UTC
These problems occur when creating classes through the list view, not when creating them on the canvas.
Comment 3 Sebastian Stein 2004-07-12 14:34:48 UTC
*** Bug has been marked as fixed ***.