Bug 63316 - Crash when deleting object in sequence diagram
Summary: Crash when deleting object in sequence diagram
Status: RESOLVED WORKSFORME
Alias: None
Product: umbrello
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Umbrello Development Group
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-27 16:09 UTC by Sebastian Stein
Modified: 2004-10-06 22:53 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
example sequence diagram (7.26 KB, text/plain)
2003-08-27 16:11 UTC, Sebastian Stein
Details
Document which produced the crash. (14.18 KB, application/umbrello)
2004-09-17 12:11 UTC, Anton G. Alvedro
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Stein 2003-08-27 16:09:58 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources
OS:          Linux

Make a sequence diagram with 4 objects and connect them. Delete one of those. At least when deleting one of the object it will crash.

I will attach an example file to this report. There delete the new_class_1 object in sequence diagram seqDia1. Umbrello will crash.
Comment 1 Sebastian Stein 2003-08-27 16:11:30 UTC
Created attachment 2319 [details]
example sequence diagram

delete object new_class_1 from diagram seqDia1 and Umbrello will crash
Comment 2 Oliver Kellogg 2003-09-27 15:20:18 UTC
I cannot reproduce this with current CVS.
Please verify that this bug can be closed.

(Sidenote: One thing I did notice however is that
deleting an object in the sequence diagram seems
to be non-undoable. Is that supposed to be?)
Comment 3 Sebastian Stein 2003-09-27 22:24:01 UTC
I can't reproduce it either. 
Comment 4 Sebastian Stein 2003-09-28 17:30:22 UTC
Subject: Re: [Uml-devel]  Crash when deleting object in sequence diagram

Oliver Kellogg <okellogg@users.sourceforge.net> [030928 17:15]:
> (Sidenote: One thing I did notice however is that
> deleting an object in the sequence diagram seems
> to be non-undoable. Is that supposed to be?)

Of course not. But if it doesn't crash, I'm glad. Undo/Redo doesn't work at
many points, but I think we can't fix all those points till KDE 3.2.

Steinchen
Comment 5 Oliver Kellogg 2003-09-28 18:34:55 UTC
Subject: Re: [Uml-devel]  Crash when deleting object in sequence diagram

Lieber Sebastian,

Kleiner Hinweis, nur falls Du gerade einen cvs update gemacht
hast: Mein letzter Checkin (cleanup of inheritance) war ein
bisschen frueh, Input von operations/attributes ist kaputt.
Ich bin dran u. will das noch heut abend wieder ans Laufen
bringen.

Tja, die Heilkrisen der Software :->

Programmierkollegiale Gruesse

Oliver

Comment 6 Anton G. Alvedro 2004-09-17 12:05:29 UTC
This bug is still present in 1.3.0 release. I enclose a core dump and the document which is causing the crash.
Comment 7 Anton G. Alvedro 2004-09-17 12:11:51 UTC
Created attachment 7558 [details]
Document which produced the crash.

Trying to delete an object from the sequence diagram makes umbrello to crash.
Comment 8 Oliver Kellogg 2004-09-18 00:23:39 UTC
Try as I might - cannot reproduce this.
Comment 9 Bob 2004-10-06 21:04:38 UTC
I have just downloaded version 1.3.  I can continuously repeat this bug by doing the following:
1) Create new sequence diagram
2) Add 2 objects
3) Add Asynchronous Message from object 1 to object 2 lines
4) Select only the asynchronous message
5) Right click for menu and select cut
Version:
Qt: 3.3.2
KDE: 3.2.3-6.1.rh90.kde
Umbrello UML Modeller: 1.3.0

Back trace shows the following:
[New Thread 1094269408 (LWP 4372)]
0xffffe002 in ?? ()
#0  0xffffe002 in ?? ()
#1  0x407ea8dd in KCrash::defaultCrashHandler(int) ()
   from /usr/lib/libkdecore.so.4
#2  <signal handler called>
#3  0x081362a9 in MessageWidget::saveToXMI(QDomDocument&, QDomElement&) ()
#4  0x0818319b in UMLView::saveToXMI(QDomDocument&, QDomElement&) ()
#5  0x0815d3ba in UMLDoc::saveToXMI(QIODevice&) ()
#6  0x081641fe in UMLDoc::addToUndoStack() ()
#7  0x08162ebe in UMLDoc::setModified(bool, bool) ()
#8  0x0817a7ed in UMLView::removeWidget(UMLWidget*) ()
#9  0x08135a60 in MessageWidget::cleanup() ()
#10 0x0817a766 in UMLView::removeWidget(UMLWidget*) ()
#11 0x0817afff in UMLView::deleteSelection() ()
#12 0x08181ed1 in UMLView::slotCutSuccessful() ()
#13 0x0818638e in UMLView::qt_invoke(int, QUObject*) ()
#14 0x40bbd008 in QObject::activate_signal(QConnectionList*, QUObject*) ()
   from /usr/lib/qt-3.3/lib/libqt-mt.so.3
#15 0x40bbcec4 in QObject::activate_signal(int) ()
   from /usr/lib/qt-3.3/lib/libqt-mt.so.3
#16 0x08151345 in UMLApp::sigCutSuccessful() ()
#17 0x0814e405 in UMLApp::slotEditCut() ()
#18 0x08187d8a in UMLWidget::slotMenuSelection(int) ()
#19 0x0812105a in FloatingText::slotMenuSelection(int) ()
#20 0x08134d6b in MessageWidget::slotMenuSelection(int) ()
#21 0x081372db in MessageWidget::qt_invoke(int, QUObject*) ()
#22 0x40bbd090 in QObject::activate_signal(QConnectionList*, QUObject*) ()
   from /usr/lib/qt-3.3/lib/libqt-mt.so.3
#23 0x40bbd1f0 in QObject::activate_signal(int, int) ()
   from /usr/lib/qt-3.3/lib/libqt-mt.so.3
#24 0x40effa22 in QPopupMenu::activated(int) ()
   from /usr/lib/qt-3.3/lib/libqt-mt.so.3
#25 0x40cb9c1c in QPopupMenu::actSig(int, bool) ()
   from /usr/lib/qt-3.3/lib/libqt-mt.so.3
#26 0x40cbe173 in QPopupMenu::mouseReleaseEvent(QMouseEvent*) ()
   from /usr/lib/qt-3.3/lib/libqt-mt.so.3
#27 0x40bf1ecc in QWidget::event(QEvent*) ()
   from /usr/lib/qt-3.3/lib/libqt-mt.so.3
#28 0x40b61af5 in QApplication::internalNotify(QObject*, QEvent*) ()
   from /usr/lib/qt-3.3/lib/libqt-mt.so.3
#29 0x40b61292 in QApplication::notify(QObject*, QEvent*) ()
   from /usr/lib/qt-3.3/lib/libqt-mt.so.3
#30 0x4076ac7c in KApplication::notify(QObject*, QEvent*) ()
   from /usr/lib/libkdecore.so.4
#31 0x40af8c4d in QETWidget::translateMouseEvent(_XEvent const*) ()
   from /usr/lib/qt-3.3/lib/libqt-mt.so.3
#32 0x40af6beb in QApplication::x11ProcessEvent(_XEvent*) ()
   from /usr/lib/qt-3.3/lib/libqt-mt.so.3
#33 0x40b0da87 in QEventLoop::processEvents(unsigned) ()
   from /usr/lib/qt-3.3/lib/libqt-mt.so.3
#34 0x40b73976 in QEventLoop::enterLoop() ()
   from /usr/lib/qt-3.3/lib/libqt-mt.so.3
#35 0x40b73818 in QEventLoop::exec() () from /usr/lib/qt-3.3/lib/libqt-mt.so.3
#36 0x40b61d41 in QApplication::exec() ()
   from /usr/lib/qt-3.3/lib/libqt-mt.so.3
#37 0x081337cb in main ()
#38 0x42015704 in __libc_start_main () from /lib/tls/libc.so.6
Comment 10 Oliver Kellogg 2004-10-06 22:53:02 UTC
Strange. CVS head doesn't crash for me using the Cut as you suggest.
(By the way, Cut/Paste is not yet implemented for sequence messages.)