Bug 302120 - crash on foreign key
Summary: crash on foreign key
Status: RESOLVED FIXED
Alias: None
Product: umbrello
Classification: Applications
Component: general (show other bugs)
Version: 2.8.3
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Joris Steyn
URL:
Keywords:
: 281391 281478 291691 298359 300479 304337 329274 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-06-18 12:24 UTC by Karoly Bujtor
Modified: 2014-12-02 02:03 UTC (History)
17 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.11.4
Sentry Crash Report:


Attachments
New crash information added by DrKonqi (13.81 KB, text/plain)
2012-07-09 11:04 UTC, David Montero
Details
New crash information added by DrKonqi (16.39 KB, text/plain)
2012-08-02 13:01 UTC, ian.richards999
Details
New crash information added by DrKonqi (14.64 KB, text/plain)
2012-08-08 16:47 UTC, musikara
Details
New crash information added by DrKonqi (16.05 KB, text/plain)
2013-02-25 11:55 UTC, r.l.knudsen
Details
New crash information added by DrKonqi (16.13 KB, text/plain)
2013-06-11 00:51 UTC, andrea
Details
New crash information added by DrKonqi (15.13 KB, text/plain)
2013-07-05 22:44 UTC, Javier
Details
New crash information added by DrKonqi (10.04 KB, text/plain)
2013-10-11 10:44 UTC, Claudio
Details
New crash information added by DrKonqi (13.90 KB, text/plain)
2013-11-08 03:50 UTC, Arnaldo Martinez
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Karoly Bujtor 2012-06-18 12:24:56 UTC
Application: umbrello (2.8.3)
KDE Platform Version: 4.8.3 (4.8.3)
Qt Version: 4.8.1
Operating System: Linux 3.2.0-25-generic x86_64
Distribution: Ubuntu 12.04 LTS

-- Information about the crash:
umbrello crashed on foreign key creation

The crash can be reproduced every time.

-- Backtrace:
Application: Umbrello UML Modeller (umbrello), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f47db84b780 (LWP 17083))]

Thread 4 (Thread 0x7f47c1ee4700 (LWP 17094)):
#0  0x00007f47d782fb03 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f47d4730036 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f47d473049a in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f47c1ee998b in ?? () from /usr/lib/x86_64-linux-gnu/gio/modules/libdconfsettings.so
#4  0x00007f47d47519e5 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f47d7533e9a in start_thread (arg=0x7f47c1ee4700) at pthread_create.c:308
#6  0x00007f47d783b4bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f47c16e3700 (LWP 17095)):
#0  0x00007f47d4751eb0 in g_thread_self () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007f47d472f1cb in g_main_context_acquire () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f47d472ff04 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f47d473049a in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f47c924b406 in ?? () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#5  0x00007f47d47519e5 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#6  0x00007f47d7533e9a in start_thread (arg=0x7f47c16e3700) at pthread_create.c:308
#7  0x00007f47d783b4bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#8  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f47a6fa2700 (LWP 17117)):
#0  0x00007f47d782fb03 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f47d4730036 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f47d4730164 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f47d84c0426 in QEventDispatcherGlib::processEvents (this=0x7f47a00008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#4  0x00007f47d848fc82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f47d848fed7 in QEventLoop::exec (this=0x7f47a6fa1dd0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007f47d838efa7 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#7  0x00007f47d846f9ff in QInotifyFileSystemWatcherEngine::run (this=0x163b2d0) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x00007f47d8391fcb in QThreadPrivate::start (arg=0x163b2d0) at thread/qthread_unix.cpp:298
#9  0x00007f47d7533e9a in start_thread (arg=0x7f47a6fa2700) at pthread_create.c:308
#10 0x00007f47d783b4bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f47db84b780 (LWP 17083)):
[KCrash Handler]
#6  QString (other=..., this=0x7fffd155ad30) at /usr/include/qt4/QtCore/qstring.h:725
#7  UMLObject::doc (this=0x6c000000330038) at ../../../umbrello/umbrello/umlobject.cpp:415
#8  0x000000000045c75e in ClassifierListPage::slotActivateItem (this=0x19575a0, item=<optimized out>) at ../../../umbrello/umbrello/dialogs/classifierlistpage.cpp:354
#9  0x00007f47d84a5281 in QMetaObject::activate (sender=0x1cc8710, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fffd155aea0) at kernel/qobject.cpp:3547
#10 0x00007f47d966dcdf in QListWidget::currentItemChanged (this=<optimized out>, _t1=0x1e04e00, _t2=0x0) at .moc/release-shared/moc_qlistwidget.cpp:247
#11 0x00007f47d966de0e in QListWidgetPrivate::_q_emitCurrentItemChanged (this=0x17087c0, current=..., previous=...) at itemviews/qlistwidget.cpp:1112
#12 0x00007f47d84a5281 in QMetaObject::activate (sender=0x18fa7c0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fffd155b060) at kernel/qobject.cpp:3547
#13 0x00007f47d965b8ea in QItemSelectionModel::currentChanged (this=<optimized out>, _t1=..., _t2=...) at .moc/release-shared/moc_qitemselectionmodel.cpp:173
#14 0x00007f47d965b9e0 in QItemSelectionModel::setCurrentIndex (this=0x18fa7c0, index=..., command=...) at itemviews/qitemselectionmodel.cpp:1175
#15 0x00007f47d966d698 in QListWidget::setCurrentRow (this=0x1cc8710, row=1) at itemviews/qlistwidget.cpp:1484
#16 0x000000000045edbd in ClassifierListPage::slotListItemCreated (this=0x19575a0, object=0x15948e0) at ../../../umbrello/umbrello/dialogs/classifierlistpage.cpp:400
#17 0x00007f47d84a5281 in QMetaObject::activate (sender=0x10f7c10, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fffd155b3a0) at kernel/qobject.cpp:3547
#18 0x0000000000745d20 in UMLDoc::sigObjectCreated (this=<optimized out>, _t1=0x15948e0) at ./umldoc.moc:167
#19 0x00000000006db804 in UMLEntity::createForeignKeyConstraint (this=0x1b65620, name=...) at ../../../umbrello/umbrello/entity.cpp:244
#20 0x000000000070b449 in Object_Factory::createChildObject (parent=0x1b65620, type=UMLObject::ot_ForeignKeyConstraint) at ../../../umbrello/umbrello/object_factory.cpp:287
#21 0x000000000045d552 in ClassifierListPage::slotNewListItem (this=0x19575a0) at ../../../umbrello/umbrello/dialogs/classifierlistpage.cpp:735
#22 0x000000000045f863 in ConstraintListPage::slotNewForeignKeyConstraint (this=0x19575a0) at ../../../umbrello/umbrello/dialogs/constraintlistpage.cpp:125
#23 0x00007f47d84a5281 in QMetaObject::activate (sender=0x167c820, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fffd155b760) at kernel/qobject.cpp:3547
#24 0x00007f47d90d8132 in QAction::triggered (this=<optimized out>, _t1=false) at .moc/release-shared/moc_qaction.cpp:277
#25 0x00007f47d90d831f in QAction::activate (this=0x167c820, event=<optimized out>) at kernel/qaction.cpp:1257
#26 0x00007f47d952a119 in QMenuPrivate::activateCausedStack (this=0x18fef30, causedStack=..., action=0x167c820, action_e=QAction::Trigger, self=true) at widgets/qmenu.cpp:1028
#27 0x00007f47d9530272 in QMenuPrivate::activateAction (this=0x18fef30, action=0x167c820, action_e=QAction::Trigger, self=true) at widgets/qmenu.cpp:1120
#28 0x00007f47d9ed84a0 in KMenu::mouseReleaseEvent (this=0x18feea0, e=0x7fffd155c330) at ../../kdeui/widgets/kmenu.cpp:464
#29 0x00007f47d912f144 in QWidget::event (this=0x18feea0, event=0x7fffd155c330) at kernel/qwidget.cpp:8362
#30 0x00007f47d953180b in QMenu::event (this=0x18feea0, e=0x7fffd155c330) at widgets/qmenu.cpp:2469
#31 0x00007f47d90de894 in notify_helper (e=0x7fffd155c330, receiver=0x18feea0, this=0xe80070) at kernel/qapplication.cpp:4559
#32 QApplicationPrivate::notify_helper (this=0xe80070, receiver=0x18feea0, e=0x7fffd155c330) at kernel/qapplication.cpp:4531
#33 0x00007f47d90e40bf in QApplication::notify (this=<optimized out>, receiver=0x18feea0, e=0x7fffd155c330) at kernel/qapplication.cpp:4102
#34 0x00007f47d9e17bb6 in KApplication::notify (this=0x7fffd15607e0, receiver=0x18feea0, event=0x7fffd155c330) at ../../kdeui/kernel/kapplication.cpp:311
#35 0x00007f47d8490e9c in QCoreApplication::notifyInternal (this=0x7fffd15607e0, receiver=0x18feea0, event=0x7fffd155c330) at kernel/qcoreapplication.cpp:876
#36 0x00007f47d90df862 in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#37 QApplicationPrivate::sendMouseEvent (receiver=0x18feea0, event=0x7fffd155c330, alienWidget=0x0, nativeWidget=0x18feea0, buttonDown=0x0, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:3170
#38 0x00007f47d915f2c1 in QETWidget::translateMouseEvent (this=0x18feea0, event=<optimized out>) at kernel/qapplication_x11.cpp:4551
#39 0x00007f47d915dbae in QApplication::x11ProcessEvent (this=0x7fffd15607e0, event=0x7fffd155cc00) at kernel/qapplication_x11.cpp:3732
#40 0x00007f47d91870d2 in x11EventSourceDispatch (s=0xe7f300, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#41 0x00007f47d472fd53 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#42 0x00007f47d47300a0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#43 0x00007f47d4730164 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#44 0x00007f47d84c03bf in QEventDispatcherGlib::processEvents (this=0xe523d0, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#45 0x00007f47d9186d5e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#46 0x00007f47d848fc82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#47 0x00007f47d848fed7 in QEventLoop::exec (this=0x7fffd155cfa0, flags=...) at kernel/qeventloop.cpp:204
#48 0x00007f47d952d131 in QMenu::exec (this=<optimized out>, p=..., action=0x0) at widgets/qmenu.cpp:2113
#49 0x00007f47d953c6d2 in QPushButtonPrivate::_q_popupPressed (this=0x17fa530) at widgets/qpushbutton.cpp:592
#50 0x00007f47d84a5281 in QMetaObject::activate (sender=0x1b137e0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x0) at kernel/qobject.cpp:3547
#51 0x00007f47d94acae1 in QAbstractButtonPrivate::emitPressed (this=<optimized out>) at widgets/qabstractbutton.cpp:562
#52 0x00007f47d94ad51c in QAbstractButton::mousePressEvent (this=0x1b137e0, e=0x7fffd155d9e0) at widgets/qabstractbutton.cpp:1098
#53 0x00007f47d912f429 in QWidget::event (this=0x1b137e0, event=0x7fffd155d9e0) at kernel/qwidget.cpp:8358
#54 0x00007f47d90de894 in notify_helper (e=0x7fffd155d9e0, receiver=0x1b137e0, this=0xe80070) at kernel/qapplication.cpp:4559
#55 QApplicationPrivate::notify_helper (this=0xe80070, receiver=0x1b137e0, e=0x7fffd155d9e0) at kernel/qapplication.cpp:4531
#56 0x00007f47d90e40bf in QApplication::notify (this=<optimized out>, receiver=0x1b137e0, e=0x7fffd155d9e0) at kernel/qapplication.cpp:4102
#57 0x00007f47d9e17bb6 in KApplication::notify (this=0x7fffd15607e0, receiver=0x1b137e0, event=0x7fffd155d9e0) at ../../kdeui/kernel/kapplication.cpp:311
#58 0x00007f47d8490e9c in QCoreApplication::notifyInternal (this=0x7fffd15607e0, receiver=0x1b137e0, event=0x7fffd155d9e0) at kernel/qcoreapplication.cpp:876
#59 0x00007f47d90df862 in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#60 QApplicationPrivate::sendMouseEvent (receiver=0x1b137e0, event=0x7fffd155d9e0, alienWidget=0x1b137e0, nativeWidget=0x1147240, buttonDown=0x1b137e0, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:3170
#61 0x00007f47d915ebf5 in QETWidget::translateMouseEvent (this=0x1147240, event=<optimized out>) at kernel/qapplication_x11.cpp:4617
#62 0x00007f47d915dbae in QApplication::x11ProcessEvent (this=0x7fffd15607e0, event=0x7fffd155e2b0) at kernel/qapplication_x11.cpp:3732
#63 0x00007f47d91870d2 in x11EventSourceDispatch (s=0xe7f300, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#64 0x00007f47d472fd53 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#65 0x00007f47d47300a0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#66 0x00007f47d4730164 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#67 0x00007f47d84c03bf in QEventDispatcherGlib::processEvents (this=0xe523d0, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#68 0x00007f47d9186d5e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#69 0x00007f47d848fc82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#70 0x00007f47d848fed7 in QEventLoop::exec (this=0x7fffd155e650, flags=...) at kernel/qeventloop.cpp:204
#71 0x00007f47d95ae936 in QDialog::exec (this=0x1147240) at dialogs/qdialog.cpp:554
#72 0x000000000076d2eb in UMLObject::showPropertiesPagedDialog (this=0x1b65620, page=<optimized out>, assoc=false) at ../../../umbrello/umbrello/umlobject.cpp:125
#73 0x000000000076484d in UMLListView::popupMenuSel (this=0x145feb0, action=<optimized out>) at ../../../umbrello/umbrello/umllistview.cpp:617
#74 0x00000000007669f4 in UMLListView::qt_static_metacall (_o=0x145feb0, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at ./umllistview.moc:92
#75 0x00007f47d84a5281 in QMetaObject::activate (sender=0x16a9e40, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fffd155ed60) at kernel/qobject.cpp:3547
#76 0x00007f47d9529ea2 in QMenu::triggered (this=<optimized out>, _t1=0x19bd7f0) at .moc/release-shared/moc_qmenu.cpp:178
#77 0x00007f47d952b2bb in QMenuPrivate::_q_actionTriggered (this=<optimized out>) at widgets/qmenu.cpp:1146
#78 0x00007f47d84a5281 in QMetaObject::activate (sender=0x19bd7f0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fffd155ef10) at kernel/qobject.cpp:3547
#79 0x00007f47d90d8132 in QAction::triggered (this=<optimized out>, _t1=false) at .moc/release-shared/moc_qaction.cpp:277
#80 0x00007f47d90d831f in QAction::activate (this=0x19bd7f0, event=<optimized out>) at kernel/qaction.cpp:1257
#81 0x00007f47d952a119 in QMenuPrivate::activateCausedStack (this=0x1919f50, causedStack=..., action=0x19bd7f0, action_e=QAction::Trigger, self=true) at widgets/qmenu.cpp:1028
#82 0x00007f47d9530272 in QMenuPrivate::activateAction (this=0x1919f50, action=0x19bd7f0, action_e=QAction::Trigger, self=true) at widgets/qmenu.cpp:1120
#83 0x00007f47d9ed84a0 in KMenu::mouseReleaseEvent (this=0x16a9e40, e=0x7fffd155fae0) at ../../kdeui/widgets/kmenu.cpp:464
#84 0x00007f47d912f144 in QWidget::event (this=0x16a9e40, event=0x7fffd155fae0) at kernel/qwidget.cpp:8362
#85 0x00007f47d953180b in QMenu::event (this=0x16a9e40, e=0x7fffd155fae0) at widgets/qmenu.cpp:2469
#86 0x00007f47d90de894 in notify_helper (e=0x7fffd155fae0, receiver=0x16a9e40, this=0xe80070) at kernel/qapplication.cpp:4559
#87 QApplicationPrivate::notify_helper (this=0xe80070, receiver=0x16a9e40, e=0x7fffd155fae0) at kernel/qapplication.cpp:4531
#88 0x00007f47d90e40bf in QApplication::notify (this=<optimized out>, receiver=0x16a9e40, e=0x7fffd155fae0) at kernel/qapplication.cpp:4102
#89 0x00007f47d9e17bb6 in KApplication::notify (this=0x7fffd15607e0, receiver=0x16a9e40, event=0x7fffd155fae0) at ../../kdeui/kernel/kapplication.cpp:311
#90 0x00007f47d8490e9c in QCoreApplication::notifyInternal (this=0x7fffd15607e0, receiver=0x16a9e40, event=0x7fffd155fae0) at kernel/qcoreapplication.cpp:876
#91 0x00007f47d90df862 in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#92 QApplicationPrivate::sendMouseEvent (receiver=0x16a9e40, event=0x7fffd155fae0, alienWidget=0x0, nativeWidget=0x16a9e40, buttonDown=0x0, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:3170
#93 0x00007f47d915f2c1 in QETWidget::translateMouseEvent (this=0x16a9e40, event=<optimized out>) at kernel/qapplication_x11.cpp:4551
#94 0x00007f47d915dbae in QApplication::x11ProcessEvent (this=0x7fffd15607e0, event=0x7fffd15603b0) at kernel/qapplication_x11.cpp:3732
#95 0x00007f47d91870d2 in x11EventSourceDispatch (s=0xe7f300, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#96 0x00007f47d472fd53 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#97 0x00007f47d47300a0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#98 0x00007f47d4730164 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#99 0x00007f47d84c03bf in QEventDispatcherGlib::processEvents (this=0xe523d0, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#100 0x00007f47d9186d5e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#101 0x00007f47d848fc82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#102 0x00007f47d848fed7 in QEventLoop::exec (this=0x7fffd1560750, flags=...) at kernel/qeventloop.cpp:204
#103 0x00007f47d8494f67 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1148
#104 0x0000000000438d16 in main (argc=3, argv=0x7fffd1560bf8) at ../../../umbrello/umbrello/main.cpp:111

Possible duplicates by query: bug 300479, bug 298359, bug 291691, bug 281478, bug 281391.

Reported using DrKonqi
Comment 1 Jekyll Wu 2012-07-05 22:13:52 UTC
*** Bug 281391 has been marked as a duplicate of this bug. ***
Comment 2 Jekyll Wu 2012-07-05 22:14:11 UTC
*** Bug 298359 has been marked as a duplicate of this bug. ***
Comment 3 Jekyll Wu 2012-07-05 22:15:13 UTC
*** Bug 281478 has been marked as a duplicate of this bug. ***
Comment 4 Jekyll Wu 2012-07-05 22:15:21 UTC
*** Bug 291691 has been marked as a duplicate of this bug. ***
Comment 5 Jekyll Wu 2012-07-05 22:15:36 UTC
*** Bug 300479 has been marked as a duplicate of this bug. ***
Comment 6 David Montero 2012-07-09 11:04:36 UTC
Created attachment 72400 [details]
New crash information added by DrKonqi

umbrello (2.8.4) on KDE Platform 4.8.4 (4.8.4) using Qt 4.8.1

- What I was doing when the application crashed:

Every time I try to add a foreign key relation on Umbrello 2.8.4 (KDE 4.8.4, openSUSE 12.2 beta 2) it crashes. At first I thought it could be caused by different constraints (such as field length, unsigned type...) but it didn't make any difference.

-- Backtrace (Reduced):
#6  QString (other=..., this=0x7fffb5a60210) at /usr/include/QtCore/qstring.h:725
#7  UMLObject::doc (this=0xf00000000000040) at /usr/src/debug/kdesdk-4.8.4/umbrello/umbrello/umlobject.cpp:415
#8  0x000000000045bdaf in ClassifierListPage::slotActivateItem (this=0x24639b0, item=<optimized out>) at /usr/src/debug/kdesdk-4.8.4/umbrello/umbrello/dialogs/classifierlistpage.cpp:354
[...]
#10 0x00007f542038232f in QListWidget::currentItemChanged (this=this@entry=0x25d0b00, _t1=_t1@entry=0x290a5f0, _t2=0x0) at .moc/release-shared/moc_qlistwidget.cpp:247
#11 0x00007f542038245e in QListWidgetPrivate::_q_emitCurrentItemChanged (this=0x25d0b40, current=..., previous=...) at itemviews/qlistwidget.cpp:1112
Comment 7 Jekyll Wu 2012-07-31 15:19:42 UTC
*** Bug 304337 has been marked as a duplicate of this bug. ***
Comment 8 ian.richards999 2012-08-02 13:01:29 UTC
Created attachment 72902 [details]
New crash information added by DrKonqi

umbrello (2.8.4) on KDE Platform 4.8.4 (4.8.4) using Qt 4.8.1

- What I was doing when the application crashed:
Designing ERD
on click OK crashed

- Custom settings of the application:
2 Entities
primary keys
indexed
relationship using forgien key
colums local and referenced added

-- Backtrace (Reduced):
#6  QString (other=..., this=0x7fffbf3a3250) at /usr/include/qt4/QtCore/qstring.h:725
#7  UMLObject::doc (this=0x66006500440020) at ../../../umbrello/umbrello/umlobject.cpp:415
#8  0x000000000045c75e in ClassifierListPage::slotActivateItem (this=0x289a4d0, item=<optimized out>) at ../../../umbrello/umbrello/dialogs/classifierlistpage.cpp:354
[...]
#10 0x00007f74ffdbecdf in QListWidget::currentItemChanged (this=<optimized out>, _t1=0x2446d20, _t2=0x0) at .moc/release-shared/moc_qlistwidget.cpp:247
#11 0x00007f74ffdbee0e in QListWidgetPrivate::_q_emitCurrentItemChanged (this=0x240c6c0, current=..., previous=...) at itemviews/qlistwidget.cpp:1112
Comment 9 musikara 2012-08-08 16:47:07 UTC
Created attachment 73052 [details]
New crash information added by DrKonqi

umbrello (2.8.4) on KDE Platform 4.8.4 (4.8.4) using Qt 4.8.1

Creating a foreign key to a primary key of a foreign table (no error occurs while not using a primary key of a foreign table)

-- Backtrace (Reduced):
#6  QString (other=..., this=0x7fffd2f806d0) at /usr/include/qt4/QtCore/qstring.h:725
#7  UMLObject::doc (this=0x30) at ../../../umbrello/umbrello/umlobject.cpp:415
#8  0x000000000045c75e in ClassifierListPage::slotActivateItem (this=0x35ad660, item=<optimized out>) at ../../../umbrello/umbrello/dialogs/classifierlistpage.cpp:354
[...]
#10 0x00007ff0fe404cdf in QListWidget::currentItemChanged (this=<optimized out>, _t1=0x32fc560, _t2=0x0) at .moc/release-shared/moc_qlistwidget.cpp:247
#11 0x00007ff0fe404e0e in QListWidgetPrivate::_q_emitCurrentItemChanged (this=0x3017ce0, current=..., previous=...) at itemviews/qlistwidget.cpp:1112
Comment 10 r.l.knudsen 2013-02-25 11:55:18 UTC
Created attachment 77566 [details]
New crash information added by DrKonqi

umbrello (2.8.5) on KDE Platform 4.8.5 (4.8.5) using Qt 4.8.1

Tried adding a foreign key constraint from one entity to another in the Entity Relationship entity properties.

-- Backtrace (Reduced):
#6  QString (other=..., this=0x7fff751333e0) at /usr/include/qt4/QtCore/qstring.h:725
#7  UMLObject::doc (this=0x30) at ../../../umbrello/umbrello/umlobject.cpp:415
#8  0x000000000045c75e in ClassifierListPage::slotActivateItem (this=0x25fe6e0, item=<optimized out>) at ../../../umbrello/umbrello/dialogs/classifierlistpage.cpp:354
[...]
#10 0x00007f0d52627cdf in QListWidget::currentItemChanged (this=<optimized out>, _t1=0x2771990, _t2=0x0) at .moc/release-shared/moc_qlistwidget.cpp:247
#11 0x00007f0d52627e0e in QListWidgetPrivate::_q_emitCurrentItemChanged (this=0x2c87120, current=..., previous=...) at itemviews/qlistwidget.cpp:1112
Comment 11 andrea 2013-06-11 00:51:46 UTC
Created attachment 80437 [details]
New crash information added by DrKonqi

umbrello (2.8.5) on KDE Platform 4.8.5 (4.8.5) using Qt 4.8.1

- What I was doing when the application crashed:
adding a foreign key, soon after selecting the local field and the remote field and on clicking "create or submit" anyway the button that actually creates the foreign key umbrella crached.

-- Backtrace (Reduced):
#6  QString (other=..., this=0x7ffff8ca98b0) at /usr/include/qt4/QtCore/qstring.h:725
#7  UMLObject::doc (this=0x56000000ef) at ../../../umbrello/umbrello/umlobject.cpp:415
#8  0x000000000045c75e in ClassifierListPage::slotActivateItem (this=0x2020790, item=<optimized out>) at ../../../umbrello/umbrello/dialogs/classifierlistpage.cpp:354
[...]
#10 0x00007f5d06a84cdf in QListWidget::currentItemChanged (this=<optimized out>, _t1=0x2945ae0, _t2=0x0) at .moc/release-shared/moc_qlistwidget.cpp:247
#11 0x00007f5d06a84e0e in QListWidgetPrivate::_q_emitCurrentItemChanged (this=0x262a450, current=..., previous=...) at itemviews/qlistwidget.cpp:1112
Comment 12 Javier 2013-07-05 22:44:39 UTC
Created attachment 80981 [details]
New crash information added by DrKonqi

umbrello (2.10.4) on KDE Platform 4.10.4 using Qt 4.8.4

- What I was doing when the application crashed:

Created a Entity with two integer attributes. Then create a foreing key from one to the other.

-- Backtrace (Reduced):
#8  QString (other=..., this=this@entry=0xbf83831c) at /usr/include/qt4/QtCore/qstring.h:726
#9  UMLObject::doc (this=this@entry=0xa85b7f0) at ../../../umbrello/umbrello/umlobject.cpp:417
#10 0x080a1ca7 in ClassifierListPage::slotActivateItem (this=0xa8eceb8, item=0xa8902d0) at ../../../umbrello/umbrello/dialogs/classifierlistpage.cpp:354
[...]
#12 0xb6400afd in QListWidget::currentItemChanged (this=0xa1bad80, _t1=0xa8902d0, _t2=0x0) at .moc/release-shared/moc_qlistwidget.cpp:247
#13 0xb6400c71 in QListWidgetPrivate::_q_emitCurrentItemChanged (this=0xa885690, current=..., previous=...) at itemviews/qlistwidget.cpp:1112
Comment 13 Andi Fischer 2013-09-23 17:33:16 UTC
Git commit 8eb9a5457ca292712c75ca5efbc4bf5ff2f88afc by Andi Fischer, on behalf of Joris Steyn.
Committed on 23/09/2013 at 17:27.
Pushed by fischer into branch 'master'.

Fix crash when adding entity constraints

The root cause of this crash is not checking for a valid index when retrieving
the item from the QList. We should at least check that value before calling at().

The patch I propose adds this check and also fixes the problem causing the
index to be wrong in the first place (like Arash Abedinzadeh described).
Related: bug 191396, bug 237992, bug 257540, bug 322541

M  +12   -11   umbrello/dialogs/classifierlistpage.cpp
M  +1    -1    umbrello/dialogs/classifierlistpage.h
M  +9    -0    umbrello/dialogs/constraintlistpage.cpp
M  +1    -0    umbrello/dialogs/constraintlistpage.h

http://commits.kde.org/umbrello/8eb9a5457ca292712c75ca5efbc4bf5ff2f88afc
Comment 14 Claudio 2013-10-11 10:44:44 UTC
Created attachment 82785 [details]
New crash information added by DrKonqi

umbrello (2.11.1) on KDE Platform 4.11.1 using Qt 4.8.5

- What I was doing when the application crashed:
I've created 2 entities and relative pk and unique constraints.
So i've clicked on 1 of the 2 entities and i've created a foreign key.
Clicking "Apply" the application return an error and terminates.

- Custom settings of the application:
I don't have; using application with default settings.

-- Backtrace (Reduced):
#8  0x00000033ad8fceab in QListWidget::currentItemChanged(QListWidgetItem*, QListWidgetItem*) () from /usr/lib/libQtGui.so.4
[...]
#11 0x00000033ad8ebb4a in QItemSelectionModel::currentChanged(QModelIndex const&, QModelIndex const&) () from /usr/lib/libQtGui.so.4
#12 0x00000033ad8ebc2d in QItemSelectionModel::setCurrentIndex(QModelIndex const&, QFlags<QItemSelectionModel::SelectionFlag>) () from /usr/lib/libQtGui.so.4
#13 0x00000033ad8fc458 in QListWidget::setCurrentRow(int) () from /usr/lib/libQtGui.so.4
[...]
#22 0x00000033ad3c0cf2 in QAction::triggered(bool) () from /usr/lib/libQtGui.so.4
Comment 15 Arnaldo Martinez 2013-11-08 03:50:20 UTC
Created attachment 83420 [details]
New crash information added by DrKonqi

umbrello (2.10.5) on KDE Platform 4.10.5 "release 1" using Qt 4.8.4

- What I was doing when the application crashed:

 umbrello crashed on foreign key creation

-- Backtrace (Reduced):
#6  QString (other=..., this=0x7fff22c003a0) at /usr/include/QtCore/qstring.h:725
#7  UMLObject::doc (this=0x30) at /usr/src/debug/umbrello-4.11.2/umbrello/umlobject.cpp:406
#8  0x0000000000462a0f in ClassifierListPage::slotActivateItem (this=0x2677ee0, item=<optimized out>) at /usr/src/debug/umbrello-4.11.2/umbrello/dialogs/classifierlistpage.cpp:354
[...]
#10 0x00007f00bd48262f in QListWidget::currentItemChanged (this=this@entry=0x2678cf0, _t1=_t1@entry=0x2a28850, _t2=0x0) at .moc/release-shared/moc_qlistwidget.cpp:247
#11 0x00007f00bd48275e in QListWidgetPrivate::_q_emitCurrentItemChanged (this=0x2678d20, current=..., previous=...) at itemviews/qlistwidget.cpp:1112
Comment 16 Rohan Garg 2013-11-27 18:14:40 UTC
reopening since it doesn't seem to be fixed for users.
Comment 17 Rohan Garg 2013-11-27 18:16:30 UTC
Oops, didn't notice the Fixed in field, sorry for the noise.
Comment 18 Rohan Garg 2013-11-27 18:18:40 UTC
Could this be backported to the 4.11 branch as well?
Comment 19 Joris Steyn 2013-11-27 19:03:41 UTC
Git commit 29dbb0f09e083613f2acbab2ca14cb999149bbad by Joris Steyn.
Committed on 23/09/2013 at 17:27.
Pushed by jorissteyn into branch 'KDE/4.11'.

Fix crash when adding entity constraints
Related: bug 191396, bug 237992, bug 257540, bug 322541
FIXED-IN: 4.11.4

Cherry-picked from 8eb9a5457ca292712c75ca5efbc4bf5ff2f88afc.

Conflicts (resolved):
	umbrello/dialogs/classifierlistpage.cpp

M  +11   -10   umbrello/dialogs/classifierlistpage.cpp
M  +1    -1    umbrello/dialogs/classifierlistpage.h
M  +9    -0    umbrello/dialogs/constraintlistpage.cpp
M  +1    -0    umbrello/dialogs/constraintlistpage.h

http://commits.kde.org/umbrello/29dbb0f09e083613f2acbab2ca14cb999149bbad
Comment 20 Ralf Habacker 2014-12-02 02:03:48 UTC
*** Bug 329274 has been marked as a duplicate of this bug. ***