Summary: | crash on foreign key | ||
---|---|---|---|
Product: | [Applications] umbrello | Reporter: | Karoly Bujtor <bujtor.karoly> |
Component: | general | Assignee: | Joris Steyn <kde> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | ajtec.st, dark.orion, ian.richards999, javiersmail, kdebugs, knowsgrace, musikara, ondrej.flidr, pedro.aguilar.iniestra, penguyman, r.l.knudsen, ralf.habacker, rohan, roman.astorga, scieck, tymikk, underline |
Priority: | NOR | ||
Version: | 2.8.3 | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | http://commits.kde.org/umbrello/29dbb0f09e083613f2acbab2ca14cb999149bbad | Version Fixed In: | 4.11.4 |
Sentry Crash Report: | |||
Attachments: |
New crash information added by DrKonqi
New crash information added by DrKonqi New crash information added by DrKonqi New crash information added by DrKonqi New crash information added by DrKonqi New crash information added by DrKonqi New crash information added by DrKonqi New crash information added by DrKonqi |
Description
Karoly Bujtor
2012-06-18 12:24:56 UTC
*** Bug 281391 has been marked as a duplicate of this bug. *** *** Bug 298359 has been marked as a duplicate of this bug. *** *** Bug 281478 has been marked as a duplicate of this bug. *** *** Bug 291691 has been marked as a duplicate of this bug. *** *** Bug 300479 has been marked as a duplicate of this bug. *** 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
*** Bug 304337 has been marked as a duplicate of this bug. *** 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
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
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
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
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
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 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
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
reopening since it doesn't seem to be fixed for users. Oops, didn't notice the Fixed in field, sorry for the noise. Could this be backported to the 4.11 branch as well? 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 *** Bug 329274 has been marked as a duplicate of this bug. *** |