Bug 289572 - Adding Unique key constraint fails
Summary: Adding Unique key constraint fails
Status: RESOLVED DUPLICATE of bug 191396
Alias: None
Product: umbrello
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Umbrello Development Group
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-22 09:55 UTC by nisarpro
Modified: 2012-01-05 17:36 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 nisarpro 2011-12-22 09:55:04 UTC
Application: umbrello (2.4.5)
KDE Platform Version: 4.4.5 (KDE 4.4.5)
Qt Version: 4.6.2
Operating System: Linux 2.6.32-37-generic i686
Distribution: Ubuntu 10.04.3 LTS

-- Information about the crash:
Adding two columns which are foriegn keys in an entity makes the application crash when we are trying to create a unique key contraint

The crash can be reproduced every time.

 -- Backtrace:
Application: Umbrello UML Modeller (umbrello), signal: Segmentation fault
[KCrash Handler]
#6  QString (this=0x7) at /usr/include/qt4/QtCore/qstring.h:714
#7  UMLObject::getDoc (this=0x7) at ../../../umbrello/umbrello/umlobject.cpp:408
#8  0x080a5fd5 in ClassifierListPage::slotActivateItem (this=0x95d7ec0, item=0x95dd950) at ../../../umbrello/umbrello/dialogs/classifierlistpage.cpp:354
#9  0x080a969c in ClassifierListPage::qt_metacall (this=0x95d7ec0, _c=QMetaObject::InvokeMetaMethod, _id=27, _a=0xbf873b54) at ./classifierlistpage.moc:94
#10 0x080a9c1c in ConstraintListPage::qt_metacall (this=0x95d7ec0, _c=QMetaObject::InvokeMetaMethod, _id=27, _a=0xbf873b54) at ./constraintlistpage.moc:73
#11 0x01374c9a in QMetaObject::metacall (object=0x95d7ec0, cl=16159680, idx=27, argv=0xbf873b54) at kernel/qmetaobject.cpp:237
#12 0x013833d5 in QMetaObject::activate (sender=0x9457f20, m=0x6f7bfc8, local_signal_index=6, argv=0xbf873b54) at kernel/qobject.cpp:3293
#13 0x06c54c89 in QListWidget::currentItemChanged (this=0x9457f20, _t1=0x95dd950, _t2=0x0) at .moc/release-shared/moc_qlistwidget.cpp:233
#14 0x06c567c7 in QListWidgetPrivate::_q_emitCurrentItemChanged (this=0x956eb90, current=..., previous=...) at itemviews/qlistwidget.cpp:1112
#15 0x06c59ba8 in QListWidget::qt_metacall (this=0x9457f20, _c=QMetaObject::InvokeMetaMethod, _id=19, _a=0xbf873cd4) at .moc/release-shared/moc_qlistwidget.cpp:147
#16 0x01374c9a in QMetaObject::metacall (object=0x9457f20, cl=16159680, idx=89, argv=0xbf873cd4) at kernel/qmetaobject.cpp:237
#17 0x013833d5 in QMetaObject::activate (sender=0x958d5e0, m=0x6f7be30, local_signal_index=1, argv=0xbf873cd4) at kernel/qobject.cpp:3293
#18 0x06c415a9 in QItemSelectionModel::currentChanged (this=0x958d5e0, _t1=..., _t2=...) at .moc/release-shared/moc_qitemselectionmodel.cpp:159
#19 0x06c41742 in QItemSelectionModel::setCurrentIndex (this=0x958d5e0, index=..., command=...) at itemviews/qitemselectionmodel.cpp:1167
#20 0x06c5665d in QListWidget::setCurrentRow (this=0x9457f20, row=2) at itemviews/qlistwidget.cpp:1484
#21 0x06c57085 in QListWidget::setCurrentItem (this=0x9457f20, item=0x95dd950) at itemviews/qlistwidget.cpp:1455
#22 0x080a6624 in ClassifierListPage::slotListItemCreated (this=0x95d7ec0, object=0x981ddc0) at ../../../umbrello/umbrello/dialogs/classifierlistpage.cpp:400
#23 0x080a96dc in ClassifierListPage::qt_metacall (this=0x95d7ec0, _c=QMetaObject::InvokeMetaMethod, _id=29, _a=0xbf873fb8) at ./classifierlistpage.moc:96
#24 0x080a9c1c in ConstraintListPage::qt_metacall (this=0x95d7ec0, _c=QMetaObject::InvokeMetaMethod, _id=29, _a=0xbf873fb8) at ./constraintlistpage.moc:73
#25 0x01374c9a in QMetaObject::metacall (object=0x95d7ec0, cl=16159680, idx=29, argv=0xbf873fb8) at kernel/qmetaobject.cpp:237
#26 0x013833d5 in QMetaObject::activate (sender=0x91e3cc0, m=0x8792968, local_signal_index=4, argv=0xbf873fb8) at kernel/qobject.cpp:3293
#27 0x086e18c5 in UMLDoc::sigObjectCreated (this=0x91e3cc0, _t1=0x981ddc0) at ./umldoc.moc:153
#28 0x086839e9 in UMLEntity::createUniqueConstraint (this=0x9715398, name=...) at ../../../umbrello/umbrello/entity.cpp:195
#29 0x086b4478 in Object_Factory::createChildObject (parent=0x9715398, type=Uml::ot_UniqueConstraint) at ../../../umbrello/umbrello/object_factory.cpp:278
#30 0x080a5a18 in ClassifierListPage::slotNewListItem (this=0x95d7ec0) at ../../../umbrello/umbrello/dialogs/classifierlistpage.cpp:735
#31 0x080a9a29 in ConstraintListPage::slotNewUniqueConstraint (this=0x95d7ec0) at ../../../umbrello/umbrello/dialogs/constraintlistpage.cpp:86
#32 0x080a9c8f in ConstraintListPage::qt_metacall (this=0x95d7ec0, _c=QMetaObject::InvokeMetaMethod, _id=40, _a=0xbf874248) at ./constraintlistpage.moc:78
#33 0x01374c9a in QMetaObject::metacall (object=0x95d7ec0, cl=16159680, idx=40, argv=0xbf874248) at kernel/qmetaobject.cpp:237
#34 0x013833d5 in QMetaObject::activate (sender=0x958f390, m=0x6f6ed58, local_signal_index=1, argv=0xbf874248) at kernel/qobject.cpp:3293
#35 0x0663fbd9 in QAction::triggered (this=0x958f390, _t1=false) at .moc/release-shared/moc_qaction.cpp:263
#36 0x06641dcc in QAction::activate (this=0x958f390, event=QAction::Trigger) at kernel/qaction.cpp:1255
#37 0x06ae560c in QMenuPrivate::activateCausedStack (this=0x9585bf8, causedStack=..., action=0x958f390, action_e=QAction::Trigger, self=true) at widgets/qmenu.cpp:1011
#38 0x06aebabb in QMenuPrivate::activateAction (this=0x9585bf8, action=0x958f390, action_e=QAction::Trigger, self=<value optimized out>) at widgets/qmenu.cpp:1103
#39 0x06aecac7 in QMenu::mouseReleaseEvent (this=0x9590158, e=0xbf874ae0) at widgets/qmenu.cpp:2312
#40 0x00d30745 in KMenu::mouseReleaseEvent (this=0x9590158, e=0xbf874ae0) at ../../kdeui/widgets/kmenu.cpp:471
#41 0x066a47f8 in QWidget::event (this=0x9590158, event=0xbf874ae0) at kernel/qwidget.cpp:7998
#42 0x06aee0cc in QMenu::event (this=0x9590158, e=0xbf874ae0) at widgets/qmenu.cpp:2414
#43 0x066464dc in QApplicationPrivate::notify_helper (this=0x909b4f0, receiver=0x9590158, e=0xbf874ae0) at kernel/qapplication.cpp:4300
#44 0x0664d9f7 in QApplication::notify (this=0xbf8778f0, receiver=0x9590158, e=0xbf874ae0) at kernel/qapplication.cpp:3865
#45 0x00c3a40a in KApplication::notify (this=0xbf8778f0, receiver=0x9590158, event=0xbf874ae0) at ../../kdeui/kernel/kapplication.cpp:302
#46 0x0136fa3b in QCoreApplication::notifyInternal (this=0xbf8778f0, receiver=0x9590158, event=0xbf874ae0) at kernel/qcoreapplication.cpp:704
#47 0x0664c952 in QCoreApplication::sendEvent (receiver=0x9590158, event=0xbf874ae0, alienWidget=0x0, nativeWidget=0x9590158, buttonDown=0x6f8a058, lastMouseReceiver=..., spontaneous=true)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#48 QApplicationPrivate::sendMouseEvent (receiver=0x9590158, event=0xbf874ae0, alienWidget=0x0, nativeWidget=0x9590158, buttonDown=0x6f8a058, lastMouseReceiver=..., spontaneous=true)
    at kernel/qapplication.cpp:2965
#49 0x066d85cf in QETWidget::translateMouseEvent (this=0x9590158, event=0xbf874ffc) at kernel/qapplication_x11.cpp:4302
#50 0x066d7511 in QApplication::x11ProcessEvent (this=0xbf8778f0, event=0xbf874ffc) at kernel/qapplication_x11.cpp:3379
#51 0x0670660a in x11EventSourceDispatch (s=0x909e700, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#52 0x025095e5 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#53 0x0250d2d8 in ?? () from /lib/libglib-2.0.so.0
#54 0x0250d4b8 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#55 0x0139b5d5 in QEventDispatcherGlib::processEvents (this=0x907e150, flags=...) at kernel/qeventdispatcher_glib.cpp:412
#56 0x06706135 in QGuiEventDispatcherGlib::processEvents (this=0x907e150, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#57 0x0136e059 in QEventLoop::processEvents (this=0xbf8752f0, flags=) at kernel/qeventloop.cpp:149
#58 0x0136e4aa in QEventLoop::exec (this=0xbf8752f0, flags=...) at kernel/qeventloop.cpp:201
#59 0x06ae8dde in QMenu::exec (this=0x9590158, p=..., action=0x0) at widgets/qmenu.cpp:2063
#60 0x06af9df7 in QPushButtonPrivate::_q_popupPressed (this=0x95988e0) at widgets/qpushbutton.cpp:588
#61 0x06afb3b0 in QPushButton::qt_metacall (this=0x95e7b30, _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0xbf87543c) at .moc/release-shared/moc_qpushbutton.cpp:80
#62 0x01374c9a in QMetaObject::metacall (object=0x95e7b30, cl=16159680, idx=40, argv=0xbf87543c) at kernel/qmetaobject.cpp:237
#63 0x013833d5 in QMetaObject::activate (sender=0x95e7b30, m=0x6f818c4, local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3293
#64 0x06d714f7 in QAbstractButton::pressed (this=0x95e7b30) at .moc/release-shared/moc_qabstractbutton.cpp:193
#65 0x06a50a49 in QAbstractButtonPrivate::emitPressed (this=0x95988e0) at widgets/qabstractbutton.cpp:560
#66 0x06a50c4e in QAbstractButton::mousePressEvent (this=0x95e7b30, e=0xbf875b50) at widgets/qabstractbutton.cpp:1096
#67 0x066a47dc in QWidget::event (this=0x95e7b30, event=0xbf875b50) at kernel/qwidget.cpp:7994
#68 0x06a50d4e in QAbstractButton::event (this=0x95e7b30, e=0x7) at widgets/qabstractbutton.cpp:1080
#69 0x06afb1f2 in QPushButton::event (this=0x95e7b30, e=0xbf875b50) at widgets/qpushbutton.cpp:679
#70 0x066464dc in QApplicationPrivate::notify_helper (this=0x909b4f0, receiver=0x95e7b30, e=0xbf875b50) at kernel/qapplication.cpp:4300
#71 0x0664d9f7 in QApplication::notify (this=0xbf8778f0, receiver=0x95e7b30, e=0xbf875b50) at kernel/qapplication.cpp:3865
#72 0x00c3a40a in KApplication::notify (this=0xbf8778f0, receiver=0x95e7b30, event=0xbf875b50) at ../../kdeui/kernel/kapplication.cpp:302
#73 0x0136fa3b in QCoreApplication::notifyInternal (this=0xbf8778f0, receiver=0x95e7b30, event=0xbf875b50) at kernel/qcoreapplication.cpp:704
#74 0x0664c952 in QCoreApplication::sendEvent (receiver=0x95e7b30, event=0xbf875b50, alienWidget=0x95e7b30, nativeWidget=0x946c660, buttonDown=0x6f8a058, lastMouseReceiver=..., spontaneous=true)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#75 QApplicationPrivate::sendMouseEvent (receiver=0x95e7b30, event=0xbf875b50, alienWidget=0x95e7b30, nativeWidget=0x946c660, buttonDown=0x6f8a058, lastMouseReceiver=..., spontaneous=true)
    at kernel/qapplication.cpp:2965
#76 0x066d8088 in QETWidget::translateMouseEvent (this=0x946c660, event=0xbf87606c) at kernel/qapplication_x11.cpp:4368
#77 0x066d7511 in QApplication::x11ProcessEvent (this=0xbf8778f0, event=0xbf87606c) at kernel/qapplication_x11.cpp:3379
#78 0x0670660a in x11EventSourceDispatch (s=0x909e700, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#79 0x025095e5 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#80 0x0250d2d8 in ?? () from /lib/libglib-2.0.so.0
#81 0x0250d4b8 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#82 0x0139b5d5 in QEventDispatcherGlib::processEvents (this=0x907e150, flags=...) at kernel/qeventdispatcher_glib.cpp:412
#83 0x06706135 in QGuiEventDispatcherGlib::processEvents (this=0x907e150, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#84 0x0136e059 in QEventLoop::processEvents (this=0xbf876360, flags=) at kernel/qeventloop.cpp:149
#85 0x0136e4aa in QEventLoop::exec (this=0xbf876360, flags=...) at kernel/qeventloop.cpp:201
#86 0x06b854f3 in QDialog::exec (this=0x946c660) at dialogs/qdialog.cpp:546
#87 0x0865c4de in UMLWidget::showProperties (this=0x96df3b0) at ../../../umbrello/umbrello/widgets/umlwidget.cpp:648
#88 0x0865df86 in UMLWidget::slotMenuSelection (this=0x96df3b0, action=0x946abd8) at ../../../umbrello/umbrello/widgets/umlwidget.cpp:292
#89 0x0865b80f in UMLWidget::qt_metacall (this=0x96df3b0, _c=QMetaObject::InvokeMetaMethod, _id=3, _a=0xbf8765b8) at ./umlwidget.moc:93
#90 0x01374c9a in QMetaObject::metacall (object=0x96df3b0, cl=16159680, idx=7, argv=0xbf8765b8) at kernel/qmetaobject.cpp:237
#91 0x013833d5 in QMetaObject::activate (sender=0x946ac28, m=0x6f75748, local_signal_index=2, argv=0xbf8765b8) at kernel/qobject.cpp:3293
#92 0x06ae4073 in QMenu::triggered (this=0x946ac28, _t1=0x946abd8) at .moc/release-shared/moc_qmenu.cpp:164
#93 0x06ae6aca in QMenuPrivate::_q_actionTriggered (this=0x9575178) at widgets/qmenu.cpp:1129
#94 0x06aeb196 in QMenu::qt_metacall (this=0x946ac28, _c=QMetaObject::InvokeMetaMethod, _id=8, _a=0xbf8767a8) at .moc/release-shared/moc_qmenu.cpp:105
#95 0x00d3218a in KMenu::qt_metacall (this=0x946ac28, _c=QMetaObject::InvokeMetaMethod, _id=35, _a=0xbf8767a8) at ./kmenu.moc:76
#96 0x01374c9a in QMetaObject::metacall (object=0x946ac28, cl=16159680, idx=35, argv=0xbf8767a8) at kernel/qmetaobject.cpp:237
#97 0x013833d5 in QMetaObject::activate (sender=0x946abd8, m=0x6f6ed58, local_signal_index=1, argv=0xbf8767a8) at kernel/qobject.cpp:3293
#98 0x0663fbd9 in QAction::triggered (this=0x946abd8, _t1=false) at .moc/release-shared/moc_qaction.cpp:263
#99 0x06641dcc in QAction::activate (this=0x946abd8, event=QAction::Trigger) at kernel/qaction.cpp:1255
#100 0x06ae560c in QMenuPrivate::activateCausedStack (this=0x9575178, causedStack=..., action=0x946abd8, action_e=QAction::Trigger, self=true) at widgets/qmenu.cpp:1011
#101 0x06aebabb in QMenuPrivate::activateAction (this=0x9575178, action=0x946abd8, action_e=QAction::Trigger, self=<value optimized out>) at widgets/qmenu.cpp:1103
#102 0x06aecac7 in QMenu::mouseReleaseEvent (this=0x946ac28, e=0xbf877040) at widgets/qmenu.cpp:2312
#103 0x00d30745 in KMenu::mouseReleaseEvent (this=0x946ac28, e=0xbf877040) at ../../kdeui/widgets/kmenu.cpp:471
#104 0x066a47f8 in QWidget::event (this=0x946ac28, event=0xbf877040) at kernel/qwidget.cpp:7998
#105 0x06aee0cc in QMenu::event (this=0x946ac28, e=0xbf877040) at widgets/qmenu.cpp:2414
#106 0x066464dc in QApplicationPrivate::notify_helper (this=0x909b4f0, receiver=0x946ac28, e=0xbf877040) at kernel/qapplication.cpp:4300
#107 0x0664d9f7 in QApplication::notify (this=0xbf8778f0, receiver=0x946ac28, e=0xbf877040) at kernel/qapplication.cpp:3865
#108 0x00c3a40a in KApplication::notify (this=0xbf8778f0, receiver=0x946ac28, event=0xbf877040) at ../../kdeui/kernel/kapplication.cpp:302
#109 0x0136fa3b in QCoreApplication::notifyInternal (this=0xbf8778f0, receiver=0x946ac28, event=0xbf877040) at kernel/qcoreapplication.cpp:704
#110 0x0664c952 in QCoreApplication::sendEvent (receiver=0x946ac28, event=0xbf877040, alienWidget=0x0, nativeWidget=0x946ac28, buttonDown=0x6f8a058, lastMouseReceiver=..., spontaneous=true)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#111 QApplicationPrivate::sendMouseEvent (receiver=0x946ac28, event=0xbf877040, alienWidget=0x0, nativeWidget=0x946ac28, buttonDown=0x6f8a058, lastMouseReceiver=..., spontaneous=true)
    at kernel/qapplication.cpp:2965
#112 0x066d85cf in QETWidget::translateMouseEvent (this=0x946ac28, event=0xbf87755c) at kernel/qapplication_x11.cpp:4302
#113 0x066d7511 in QApplication::x11ProcessEvent (this=0xbf8778f0, event=0xbf87755c) at kernel/qapplication_x11.cpp:3379
#114 0x0670660a in x11EventSourceDispatch (s=0x909e700, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#115 0x025095e5 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#116 0x0250d2d8 in ?? () from /lib/libglib-2.0.so.0
#117 0x0250d4b8 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#118 0x0139b5d5 in QEventDispatcherGlib::processEvents (this=0x907e150, flags=...) at kernel/qeventdispatcher_glib.cpp:412
#119 0x06706135 in QGuiEventDispatcherGlib::processEvents (this=0x907e150, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#120 0x0136e059 in QEventLoop::processEvents (this=0xbf877854, flags=) at kernel/qeventloop.cpp:149
#121 0x0136e4aa in QEventLoop::exec (this=0xbf877854, flags=...) at kernel/qeventloop.cpp:201
#122 0x0137269f in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#123 0x06646577 in QApplication::exec () at kernel/qapplication.cpp:3579
#124 0x086ac645 in main (argc=1, argv=0xbf877aa4) at ../../../umbrello/umbrello/main.cpp:111

Possible duplicates by query: bug 264310, bug 260942, bug 259062, bug 257239, bug 256814.

Reported using DrKonqi
Comment 1 Christoph Feck 2012-01-05 17:36:34 UTC

*** This bug has been marked as a duplicate of bug 191396 ***