[umbrello] [Bug 355009] umbrello stopped working to the open a file try open another

Ralf Habacker via KDE Bugzilla bugzilla_noreply at kde.org
Tue Aug 30 05:28:48 UTC 2016


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

--- Comment #4 from Ralf Habacker <ralf.habacker at freenet.de> ---
>#7 0xffffffff in __dynamic_cast () at /lib/libstdc++.so.6 
>#8 0x082bd338 in ClassifierWidget::paint(QPainter*, QStyleOptionGraphicsItem const*, QWidget*) ()
The callstack indicates that the crash happens somewhere in
ClassifierWidget::paint() performing an invalid dynamic cast. 
An invalid cast is performed in classifier() called at line 672:
    UMLClassifier *umlc = this->classifier();
which expands to 
    return dynamic_cast<UMLClassifier*>(m_umlObject);

Stackoverflow mentioned several reasons for crashing dynamic cast here
http://stackoverflow.com/questions/278429/what-could-cause-a-dynamic-cast-to-crash. 

The most common reason for such issues is that the related m_umlObject has been
destroyed, which we can catch with QPointer.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the umbrello-devel mailing list