Bug 149805 - undo crash use case
Summary: undo crash use case
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: 2007-09-12 15:35 UTC by Ayvind Binde
Modified: 2014-01-04 11:14 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 4.13.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ayvind Binde 2007-09-12 15:35:59 UTC
Version:           1.5.71 (using KDE KDE 3.5.7)
Installed from:    Compiled From Sources
Compiler:          gcc 

When clicking 'ctrl+z' (undo) in use case umbrello crashes. I compiled from source (on arch using kdemod 3.5.7)

(no debugging symbols found)
Using host libthread_db library "/lib/libthread_db.so.1".
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread -1233283360 (LWP 8945)]
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[KCrash handler]
#6  0xb72af1af in QValueList<QGListIterator*>::detachInternal ()
   from /opt/qt/lib/libqt-mt.so.3
#7  0xb72ae52d in QGListIterator::QGListIterator ()
   from /opt/qt/lib/libqt-mt.so.3
#8  0x081865eb in Model_Utils::findObjectInList ()
#9  0x0819a070 in UMLPackage::findObjectById ()
#10 0x081be601 in UMLDoc::findObjectById ()
#11 0x08166686 in UMLFolder::load ()
#12 0x08166490 in UMLFolder::load ()
#13 0x081eb00a in UMLObject::loadFromXMI ()
#14 0x081670ac in UMLFolder::load ()
#15 0x08166490 in UMLFolder::load ()
#16 0x081eb00a in UMLObject::loadFromXMI ()
#17 0x081c6980 in UMLDoc::loadUMLObjectsFromXMI ()
#18 0x081c669d in UMLDoc::loadUMLObjectsFromXMI ()
#19 0x081cbe6b in UMLDoc::loadFromXMI ()
#20 0x081c44c3 in UMLDoc::loadUndoData ()
#21 0x081b45d0 in UMLApp::slotEditUndo ()
#22 0x081b9797 in UMLApp::qt_invoke ()
#23 0xb700950d in QObject::activate_signal () from /opt/qt/lib/libqt-mt.so.3
#24 0xb700a08d in QObject::activate_signal () from /opt/qt/lib/libqt-mt.so.3
#25 0xb786f049 in KAction::activated () from /opt/kde/lib/libkdeui.so.4
#26 0xb78a69c2 in KAction::slotActivated () from /opt/kde/lib/libkdeui.so.4
#27 0xb7967171 in KAction::qt_invoke () from /opt/kde/lib/libkdeui.so.4
#28 0xb700950d in QObject::activate_signal () from /opt/qt/lib/libqt-mt.so.3
#29 0xb700a08d in QObject::activate_signal () from /opt/qt/lib/libqt-mt.so.3
#30 0xb75bfef9 in KAccelPrivate::menuItemActivated ()
   from /opt/kde/lib/libkdecore.so.4
#31 0xb760fc37 in KAccelPrivate::emitActivatedSignal ()
   from /opt/kde/lib/libkdecore.so.4
#32 0xb76a03b8 in KAccelPrivate::eventFilter ()
   from /opt/kde/lib/libkdecore.so.4
#33 0xb7008d2c in QObject::activate_filters () from /opt/qt/lib/libqt-mt.so.3
#34 0xb7008d9b in QObject::event () from /opt/qt/lib/libqt-mt.so.3
#35 0xb70417fc in QWidget::event () from /opt/qt/lib/libqt-mt.so.3
#36 0xb70f7a32 in QMainWindow::event () from /opt/qt/lib/libqt-mt.so.3
#37 0xb6fab8aa in QApplication::internalNotify ()
   from /opt/qt/lib/libqt-mt.so.3
#38 0xb6faca00 in QApplication::notify () from /opt/qt/lib/libqt-mt.so.3
#39 0xb76a61c2 in KApplication::notify () from /opt/kde/lib/libkdecore.so.4
#40 0xb761b1d7 in KAccelEventHandler::x11Event ()
   from /opt/kde/lib/libkdecore.so.4
#41 0xb76a464a in KApplication::x11EventFilter ()
   from /opt/kde/lib/libkdecore.so.4
#42 0xb6f3c7c5 in ?? () from /opt/qt/lib/libqt-mt.so.3
#43 0xbfc611b4 in ?? ()
#44 0xbfc610b8 in ?? ()
#45 0xb6f41ddb in QETWidget::translateKeyEventInternal ()
   from /opt/qt/lib/libqt-mt.so.3
#46 0xb6f4b2fe in QApplication::x11ProcessEvent ()
   from /opt/qt/lib/libqt-mt.so.3
#47 0xb6f5bf6d in QEventLoop::processEvents () from /opt/qt/lib/libqt-mt.so.3
#48 0xb6fc2060 in QEventLoop::enterLoop () from /opt/qt/lib/libqt-mt.so.3
#49 0xb6fc1ef6 in QEventLoop::exec () from /opt/qt/lib/libqt-mt.so.3
#50 0xb6fab4cf in QApplication::exec () from /opt/qt/lib/libqt-mt.so.3
#51 0x08180090 in main ()
Comment 1 Oliver Kellogg 2007-09-17 21:27:54 UTC
Caonnt confirm with current SVN branches/KDE/3.5/kdesdk/umbrello.

It would help if you could:
1) Describe the last few actions that you did before pressing Ctrl-Z
2) Invoke the "configure" script with --enable-debug=full
   so that we see line numbers in your backtrace

Thanks.

Comment 2 Jukka Rantanen 2008-07-24 09:33:57 UTC
I seem to be getting the same kind of crash with the same output, in Umbrello 1.5.8 (Using KDE 3.5.9-5.fc8) on Fedora 8.

The bug appears in every default view, when you
1) add a component, that does not show a dialog box (eg association, box etc...)
2) right click the view field, so the cursor returns to the "select" state
3) ctr-z to undo

Tried it about 10 times in different views, works every time. 
Comment 3 Pedram GANJEH-HADIDI 2010-09-27 11:52:08 UTC
Umbrello crashes everytime when "undo- stack/array" is empty!

It definitely do not depend on kind of diagram, because I can reproduce the crash every time by: Class-, Use-Case-,..., and last but not least Entity-Relationship- Diagram!

It seems to me that the problem is a function call without checking if the data-structure (which contains the done last actions) has any elements, which produces a Null-Pointer-Exception/Error.

Regards