[Uml-devel] [Bug 174397] Going back in Command History after deleting a datatype causes crash

Ralf Habacker ralf.habacker at freenet.de
Thu Dec 1 07:23:22 UTC 2011


https://bugs.kde.org/show_bug.cgi?id=174397





--- Comment #9 from Ralf Habacker <ralf habacker freenet de>  2011-12-01 07:23:22 ---
The problem is that the related widget point to by m_widget has been destroyed. 

A breakpoint in UMLWidget destructor shows that the object has been deleted by
a DeferedDelete event probably initiated by a call to deleteLater(). 

deleteLater() is used in 

void UMLView::removeWidget(UMLWidget * o)

and 

void UMLPackage::removeAllObjects().

probably initiated by the following method. 

    // Suppress the UMLObject
    void CmdCreateUMLObject::undo()
    {
        UMLDoc *doc = UMLApp::app()->document();
        doc->removeUMLObject(m_obj);
    }

m_obj is a reference to the real UMLObject, see 

    CmdCreateUMLObject::CmdCreateUMLObject(UMLObject* o)
      : m_obj(o)

so when the the real object is destroyed, the reference points to nomansland. 

No idea yet how to solve this problem.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.




More information about the umbrello-devel mailing list