Bug 80913 - crash when creating a message in collaboration diagram
Summary: crash when creating a message in collaboration diagram
Status: RESOLVED FIXED
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: 2004-05-04 19:57 UTC by Jonathan Riddell
Modified: 2004-05-05 07:51 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 Jonathan Riddell 2004-05-04 19:57:39 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources

Reported by Raymond Bosman <bosman_AT_hetnet.nl>

1) New Collaboration diagram.
2) Place two Object-s on the canvas.
3) Click on the Message button.
4) Click on the first Object.
5) Press on the second Object.
6) Release mousebutton. CRASH.


#0  0x08106a11 in AssociationWidget (this=0x851fc48, view=0x8588e80, pWidgetA=0x8571bf8, assocType=at_Coll_Message, pWidgetB=0x851f788)
    at associationwidget.cpp:115
#1  0x0819b22f in UMLView::setAssoc(UMLWidget*) (this=0x8588e80, pWidget=0x851f788) at umlview.cpp:2171
#2  0x081a43b6 in UMLWidget::mouseReleaseEvent(QMouseEvent*) (this=0x851f788, me=0x85204b8) at umlwidget.cpp:411
#3  0x0819bb35 in UMLView::allocateMouseReleaseEvent(QMouseEvent*) (this=0x8588e80, me=0x85204b8) at umlview.cpp:2453
#4  0x0819407b in UMLView::contentsMouseReleaseEvent(QMouseEvent*) (this=0x8588e80, ome=0xbfffed50) at umlview.cpp:340
#5  0x40cddc5c in QScrollView::viewportMouseReleaseEvent(QMouseEvent*) () from /usr/lib/libqt-mt.so.3
#6  0x40cdd559 in QScrollView::eventFilter(QObject*, QEvent*) () from /usr/lib/libqt-mt.so.3
#7  0x40bcc92e in QObject::activate_filters(QEvent*) () from /usr/lib/libqt-mt.so.3
#8  0x40bcc85c in QObject::event(QEvent*) () from /usr/lib/libqt-mt.so.3
#9  0x40c03d1f in QWidget::event(QEvent*) () from /usr/lib/libqt-mt.so.3
#10 0x40b7347f in QApplication::internalNotify(QObject*, QEvent*) () from /usr/lib/libqt-mt.so.3
#11 0x40b72b81 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libqt-mt.so.3
#12 0x4076d9ed in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdecore.so.4
#13 0x40b0b2e8 in QETWidget::translateMouseEvent(_XEvent const*) () from /usr/lib/libqt-mt.so.3
#14 0x40b08e12 in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib/libqt-mt.so.3
#15 0x40b1ef01 in QEventLoop::processEvents(unsigned) () from /usr/lib/libqt-mt.so.3
#16 0x40b86ce8 in QEventLoop::enterLoop() () from /usr/lib/libqt-mt.so.3
#17 0x40b86b98 in QEventLoop::exec() () from /usr/lib/libqt-mt.so.3
#18 0x40b736d1 in QApplication::exec() () from /usr/lib/libqt-mt.so.3
#19 0x081555df in main (argc=1, argv=0xbffff8b4) at main.cpp:86
Comment 1 Sebastian Stein 2004-05-04 23:58:52 UTC
gdb output:

Program received signal SIGSEGV, Segmentation fault.
0x080f72ea in AssociationWidget (this=0x8455330, view=0x84e36e8,
    pWidgetA=0x85ef320, assocType=at_Coll_Message, pWidgetB=0x84585d8)
    at associationwidget.cpp:115
115    m_pName->setUMLObject(m_role[B].m_pWidget->getUMLObject() );


valgrind output:

==16047==
==16047== Invalid read of size 4
==16047==    at 0x80F72EA: AssociationWidget::AssociationWidget(UMLV
iew*, UMLWidget*, Uml::Association_Type, UMLWidget*) (associationwid
get.cpp:115)
==16047==    by 0x818AF21: UMLView::setAssoc(UMLWidget*) (umlview.cp
p:2171)
==16047==    by 0x819459F: UMLWidget::mouseReleaseEvent(QMouseEvent*
) (umlwidget.cpp:411)
==16047==    by 0x818B8CA: UMLView::allocateMouseReleaseEvent(QMouse
Event*) (umlview.cpp:2453)
==16047==    Address 0x0 is not stack'd, malloc'd or free'd

Comment 2 Oliver Kellogg 2004-05-05 07:51:57 UTC
AssociationWidget::setName() needs a non-empty name
else it will not produce a new FloatingText.  This
behaviour was changed previously to reduce the amount
of empty FloatingTexts saved to file.