Bug 141183 - Undo button messes up all data types
Summary: Undo button messes up all data types
Status: RESOLVED WORKSFORME
Alias: None
Product: umbrello
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Umbrello Development Group
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-04 17:13 UTC by Thorsten Hirsch
Modified: 2009-08-09 16:03 UTC (History)
1 user (show)

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 Thorsten Hirsch 2007-02-04 17:13:59 UTC
Version:           1.5.6 (using KDE 3.5.6, Arch Linux)
Compiler:          Target: i686-pc-linux-gnu
OS:                Linux (i686) release 2.6.19-ARCH

Pressing undo in an ER model will cause many datatypes to become "5xfGdSHwljSF". Most of these datatypes aren't displayed  anymore in the diagram.
Comment 1 Thorsten Hirsch 2007-02-04 17:15:29 UTC
Steps to reproduce:

1.) create a new ER model with some entities
2.) define some entries in the entities
3.) press undo button or ctrl+z
Comment 2 Bram Schoenmakers 2007-02-04 19:15:36 UTC
Let's change the summary to something like it has been written by a grown up.
Comment 3 Haeber 2007-04-10 00:19:37 UTC
I can confirm this bug. You can reproduce it if you create some entiries, add items to them and save and load it. Then there are strange strings like "kGdDWstMGcxs" as item datatypes.

some debug output:

start, create and save:

umbrello: WorkToolBar::loadPixmaps: n_buttonInfos = 43
umbrello: UMLListViewItem::init: s_pListView still NULL, setting it now
umbrello: ERROR: UMLApp::setCurrentView: m_viewStack is NULL
umbrello: UMLPackage::addObject: Datatypes is already there
umbrello: ERROR: UMLApp::setCurrentView: m_viewStack is NULL
umbrello: ERROR: UMLApp::setCurrentView: m_viewStack is NULL
umbrello: ERROR: UMLApp::setCurrentView: m_viewStack is NULL
umbrello: UMLListView::slotObjectCreated(Logical View, id= Logical View): item already exists.
umbrello: UMLListView::slotObjectCreated(Datatypes, id= Datatypes): item already exists.
umbrello: UMLListView::slotObjectCreated(Use Case View, id= Use Case View): item already exists.
umbrello: UMLListView::slotObjectCreated(Component View, id= Component View): item already exists.
umbrello: UMLListView::slotObjectCreated(Deployment View, id= Deployment View): item already exists.
umbrello: UMLListView::slotObjectCreated(Entity Relationship Model, id= Entity Relationship Model): item already exists.
umbrello: UMLObject::resolveRef: Creating new type for TeJwo1k3oLXk
umbrello: Object_Factory::createUMLObject(TeJwo1k3oLXk): parentPkg is not set, assuming Model_Type 0
umbrello: UMLObject::resolveRef: Creating new type for JGnWsg7zsxFw
umbrello: Object_Factory::createUMLObject(JGnWsg7zsxFw): parentPkg is not set, assuming Model_Type 0
umbrello: UMLObject::resolveRef: Creating new type for MSUDmXt6JZFO
umbrello: Object_Factory::createUMLObject(MSUDmXt6JZFO): parentPkg is not set, assuming Model_Type 0
umbrello: ERROR: UMLApp::setCurrentView: m_viewStack is NULL
umbrello: ERROR: UMLApp::setCurrentView: m_viewStack is NULL
umbrello: ERROR: UMLApp::setCurrentView: m_viewStack is NULL
umbrello: ERROR: UMLApp::setCurrentView: m_viewStack is NULL
umbrello: ERROR: UMLApp::setCurrentView: m_viewStack is NULL
umbrello: ERROR: UMLApp::setCurrentView: m_viewStack is NULL
umbrello: Object_Factory::createUMLObject(): parentPkg is not set, assuming Model_Type 4
umbrello: Object_Factory::createUMLObject(int): parentPkg is not set, assuming Model_Type 0
umbrello: ERROR: UMLClassifier::setBaseType: cannot set to type 118
umbrello: UMLListView::slotObjectCreated(neues_feld, id= JBTDDTzO3x21): item already exists.
umbrello: ERROR: UMLClassifier::saveToXMI() internal error: basetype is 118
umbrello: ERROR: UMLClassifier::saveToXMI() internal error: basetype is 118
umbrello: ERROR: UMLClassifier::saveToXMI() internal error: basetype is 118
umbrello: ERROR: UMLApp::setCurrentView: m_viewStack is NULL
umbrello: ERROR: UMLApp::setCurrentView: m_viewStack is NULL
umbrello: ERROR: UMLApp::setCurrentView: m_viewStack is NULL


start and load:

umbrello: WorkToolBar::loadPixmaps: n_buttonInfos = 43
umbrello: UMLListViewItem::init: s_pListView still NULL, setting it now
umbrello: ERROR: UMLApp::setCurrentView: m_viewStack is NULL
umbrello: UMLPackage::addObject: Datatypes is already there
umbrello: ERROR: UMLApp::setCurrentView: m_viewStack is NULL
umbrello: ERROR: UMLApp::setCurrentView: m_viewStack is NULL
umbrello: ERROR: UMLApp::setCurrentView: m_viewStack is NULL
umbrello: ERROR: UMLApp::setCurrentView: m_viewStack is NULL
umbrello: ERROR: UMLApp::setCurrentView: m_viewStack is NULL
umbrello: ERROR: UMLApp::setCurrentView: m_viewStack is NULL
umbrello: ERROR: UMLApp::setCurrentView: m_viewStack is NULL
umbrello: UMLListView::slotObjectCreated(Logical View, id= Logical View): item already exists.
umbrello: UMLListView::slotObjectCreated(Datatypes, id= Datatypes): item already exists.
umbrello: UMLListView::slotObjectCreated(Use Case View, id= Use Case View): item already exists.
umbrello: UMLListView::slotObjectCreated(Component View, id= Component View): item already exists.
umbrello: UMLListView::slotObjectCreated(Deployment View, id= Deployment View): item already exists.
umbrello: UMLListView::slotObjectCreated(Entity Relationship Model, id= Entity Relationship Model): item already exists.
umbrello: UMLObject::resolveRef: Creating new type for kGdDWstMGcxs
umbrello: Object_Factory::createUMLObject(kGdDWstMGcxs): parentPkg is not set, assuming Model_Type 0
umbrello: UMLListView::slotObjectCreated(neues_feld, id= JBTDDTzO3x21): item already exists.
umbrello: ERROR: UMLListView::loadChildrenFromXMI: INTERNAL ERROR: findItem(id kGdDWstMGcxs) returns NULL
umbrello: WARNING: unused list view item kGdDWstMGcxs of lvtype 813
umbrello: ERROR: UMLApp::setCurrentView: m_viewStack is NULL
umbrello: ERROR: UMLApp::setCurrentView: m_viewStack is NULL
umbrello: ERROR: UMLApp::setCurrentView: m_viewStack is NULL
umbrello: ERROR: UMLApp::setCurrentView: m_viewStack is NULL
umbrello: ERROR: UMLApp::setCurrentView: m_viewStack is NULL
Comment 4 Haeber 2007-04-10 00:21:13 UTC
By the Way, tested with 1.5.7 svn-version from sunday.
Comment 5 FiNeX 2009-08-09 16:03:32 UTC
Cannot reproduce on KDE 4.3 and current trunk version.