unable to add a foreign key constraint in ER

Bug #509423 reported by P
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KDE Software Development Kit
Invalid
High
kdesdk (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: kdesdk

try to add a foreign key constraint to evenements on the sessions entity
==> crash

ProblemType: Bug
Architecture: i386
Date: Tue Jan 19 02:06:04 2010
DistroRelease: Ubuntu 9.10
ExecutablePath: /usr/bin/umbrello
InstallationMedia: Kubuntu 9.10 "Karmic Koala" - Release i386 (20091028.5)
Package: umbrello 4:4.3.4-0ubuntu1~karmic1
ProcEnviron:
 PATH=(custom, user)
 LANG=fr_FR.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-17.54-generic
SourcePackage: kdesdk
Uname: Linux 2.6.31-17-generic i686

Revision history for this message
In , Tim-murphy (tim-murphy) wrote :

Application that crashed: umbrello
Version of the application: 2.3.2
KDE Version: 4.3.2 (KDE 4.3.2)
Qt Version: 4.5.2
Operating System: Linux 2.6.31-14-generic i686
Distribution: Ubuntu 9.10

What I was doing when the application crashed:
Created an ER diagram with three entities. Populated entities with elements. When adding a foreign key constraint to an entity, umbrello crashes when pressing apply or save. Always happens. I have tried restarting kubuntu and closing all other applications, but I get the same problem.

 -- Backtrace:
Application: Umbrello UML Modeller (umbrello), signal: Segmentation fault
[KCrash Handler]
#6 0x014a0e4b in QString::at (text=...) at ../../include/QtCore/../../src/corelib/tools/qstring.h:685
#7 Qt::mightBeRichText (text=...) at text/qtextdocument.cpp:113
#8 0x016d7b80 in QTextEdit::setText (this=0xa9fa610, text=...) at widgets/qtextedit.cpp:2458
#9 0x080a4ab7 in _start ()

Reported using DrKonqi

Revision history for this message
In , Dario Andres (andresbajotierra) wrote :

- If you can reproduce the crash at will (or you experience this regularly), can you install the "kdesdk-dbg" package and post a complete backtrace here? Thanks

Revision history for this message
In , Tim-murphy (tim-murphy) wrote :
Download full text (15.7 KiB)

Application: Umbrello UML Modeller (umbrello), signal: Segmentation fault
[KCrash Handler]
#6 0x010a8e4b in QString::at (text=...) at ../../include/QtCore/../../src/corelib/tools/qstring.h:685
#7 Qt::mightBeRichText (text=...) at text/qtextdocument.cpp:113
#8 0x012dfb80 in QTextEdit::setText (this=0xa3137f0, text=...) at widgets/qtextedit.cpp:2458
#9 0x080a4ab7 in ClassifierListPage::slotActivateItem (this=0xa34e230, item=0xa466af8) at ../../../umbrello/umbrello/dialogs/classifierlistpage.cpp:350
#10 0x080a7b6c in ClassifierListPage::qt_metacall (this=0xa34e230, _c=QMetaObject::InvokeMetaMethod, _id=27, _a=0xbfce1e44) at ./classifierlistpage.moc:88
#11 0x080a803c in ConstraintListPage::qt_metacall (this=0xa34e230, _c=QMetaObject::InvokeMetaMethod, _id=27, _a=0xbfce1e44) at ./constraintlistpage.moc:67
#12 0x0435b263 in QMetaObject::activate (sender=0xa34e420, from_signal_index=76, to_signal_index=76, argv=0xbfce1e44) at kernel/qobject.cpp:3113
#13 0x0435bec2 in QMetaObject::activate (sender=0xa34e420, m=0x16c6428, local_signal_index=6, argv=0xbfce1e44) at kernel/qobject.cpp:3187
#14 0x0140c1c9 in QListWidget::currentItemChanged (this=0xa34e420, _t1=0xa466af8, _t2=0xa30a048) at .moc/release-shared/moc_qlistwidget.cpp:227
#15 0x01410d41 in QListWidgetPrivate::_q_emitCurrentItemChanged (this=0xa438438, current=..., previous=...) at itemviews/qlistwidget.cpp:1070
#16 0x014126e8 in QListWidget::qt_metacall (this=0xa34e420, _c=QMetaObject::InvokeMetaMethod, _id=19, _a=0xbfce1fb4) at .moc/release-shared/moc_qlistwidget.cpp:141
#17 0x0435b263 in QMetaObject::activate (sender=0xa3ea970, from_signal_index=5, to_signal_index=5, argv=0xbfce1fb4) at kernel/qobject.cpp:3113
#18 0x0435bec2 in QMetaObject::activate (sender=0xa3ea970, m=0x16c6290, local_signal_index=1, argv=0xbfce1fb4) at kernel/qobject.cpp:3187
#19 0x013fa069 in QItemSelectionModel::currentChanged (this=0xa3ea970, _t1=..., _t2=...) at .moc/release-shared/moc_qitemselectionmodel.cpp:153
#20 0x013fa202 in QItemSelectionModel::setCurrentIndex (this=0xa3ea970, index=..., command=...) at itemviews/qitemselectionmodel.cpp:1123
#21 0x0140fa0d in QListWidget::setCurrentRow (this=0xa34e420, row=1) at itemviews/qlistwidget.cpp:1437
#22 0x0140fea5 in QListWidget::setCurrentItem (this=0xa34e420, item=0xa466af8) at itemviews/qlistwidget.cpp:1408
#23 0x080a4f1a in ClassifierListPage::slotListItemCreated (this=0xa34e230, object=0xa480238) at ../../../umbrello/umbrello/dialogs/classifierlistpage.cpp:396
#24 0x080a7bac in ClassifierListPage::qt_metacall (this=0xa34e230, _c=QMetaObject::InvokeMetaMethod, _id=29, _a=0xbfce2278) at ./classifierlistpage.moc:90
#25 0x080a803c in ConstraintListPage::qt_metacall (this=0xa34e230, _c=QMetaObject::InvokeMetaMethod, _id=29, _a=0xbfce2278) at ./constraintlistpage.moc:67
#26 0x0435b263 in QMetaObject::activate (sender=0xa10c430, from_signal_index=8, to_signal_index=8, argv=0xbfce2278) at kernel/qobject.cpp:3113
#27 0x0435bec2 in QMetaObject::activate (sender=0xa10c430, m=0x87daa40, local_signal_index=4, argv=0xbfce2278) at kernel/qobject.cpp:3187
#28 0x08725a25 in UMLDoc::sigObjectCreated (this=0xa10c430, _t1=0xa480238) at ./umldoc.moc:147
#29 0x086c2689 in UMLEntity:...

Revision history for this message
In , Dario Andres (andresbajotierra) wrote :

Thank you

Revision history for this message
P (p92) wrote :
Revision history for this message
P (p92) wrote :

also try to copy then paste the sessions entity ==> crash

Revision history for this message
P (p92) wrote :
Revision history for this message
Jonathan Thomas (echidnaman) wrote :

Hi there!

Thanks for reporting this bug! Your bug seems to be a problem with the KDE program itself, and not with our KDE packages. While we appreciate your issue, it would be better if it was tracked at https://bugs.kde.org, so that the KDE developers can deal with this speedily and have direct communication with you as the reporter for more effective debugging.

Thanks!

Changed in kdesdk (Ubuntu):
status: New → Invalid
Revision history for this message
In , P (p92) wrote :

Created attachment 40065
model that crashes umbrello

I also have this problem with umbrello 2.3.4

try to add a foreign key constraint to "evenements" entity on the "sessions" entity ==> crash

also try to copy then paste the "sessions" entity ==> crash

Revision history for this message
In , P (p92) wrote :

Created attachment 40067
stacktrace + threadtrace

Revision history for this message
In , P (p92) wrote :

so be it

Revision history for this message
In , Ralf Habacker (ralf-habacker) wrote :

One can see that UMLObject::getDoc get's an invalid pointer - 0x20 seems not to be in the regular data section

In Thread 1 (Thread 27796):
 #0 QString (this=0x20) at /usr/include/qt4/QtCore/qstring.h:711
 No locals.
 #1 UMLObject::getDoc (this=0x20)
     at ../../../umbrello/umbrello/umlobject.cpp:408

at this level listItem ist set to 0x20 - seems not to be valid too

 #2 0x080a4ac5 in ClassifierListPage::slotActivateItem (this=0x9843520,
     item=0x98f8aa0)
     at ../../../umbrello/umbrello/dialogs/classifierlistpage.cpp:350
         listItem = 0x20

and some levels above there is an invalid QEvent pointer (=0x20)

#62 0x011bf3ee in QAbstractButton::event (this=0x979a320, e=0x20)
     at widgets/qabstractbutton.cpp:1077

In the next level one can see that there is a QPushButton with an invalid d pointer (=0x20)

 #63 0x0126966d in QPushButton::event (this=0x979a320, e=0xbfcf7890)
     at widgets/qpushbutton.cpp:662
         d = 0x20

Changed in kdesdk:
status: Unknown → New
Revision history for this message
In , Samuel-gilbert (samuel-gilbert) wrote :

I get the exact same problem. It's 100% reproducible. I tried the same action sequence on the same file with Umbrello 2.3.4 and with 2.3.2 and both crashed exactly the same way.

Description of the actions taken :
- Create 2 entities : variable and unit
- Add a "id" attribute of type "SERIAL" to both entities and set it as the Primary Key
- Add a attribute named "unit" to variable
- Create a Foreign Key Constraint on referencing the id attribute of the unit variable with the unit attribute in the variable entity
- Click on "OK" and get the crash

Revision history for this message
In , Eric Janz (eric-janz) wrote :

Created attachment 51386
New crash information added by DrKonqi

Same problem on Ubuntu 10.04 running Umbrello on Gnome
After creating two entities, when creating a foreign key, Umbrello crashes when you press apply or save.

Changed in kdesdk:
importance: Unknown → High
Revision history for this message
In , adaptee (adaptee) wrote :

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

Changed in kdesdk:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.