Summary: | umbrello stopped working to the open a file try open another | ||
---|---|---|---|
Product: | [Applications] umbrello | Reporter: | Mario Fernando <mariofernando535> |
Component: | general | Assignee: | Umbrello Development Group <umbrello-devel> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | ralf.habacker |
Priority: | NOR | Keywords: | drkonqi |
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Fedora RPMs | ||
OS: | Linux | ||
Latest Commit: | http://commits.kde.org/umbrello/793ca536f67b59bed882f280ec7c9bcd1fffdb4f | Version Fixed In: | 2.20.1 (KDE Applications 16.08.1) |
Attachments: | DiseñoClases.xmi |
Description
Mario Fernando
2015-11-07 23:19:36 UTC
(In reply to Mario Fernando from comment #0) Please provide a testcase xmi file because it looks data specific. Created attachment 95413 [details] DiseñoClases.xmi This is the XML file with which to work, to have this open and try to open another umbrello stops. 2015-11-09 6:53 GMT-05:00 Ralf Habacker via KDE Bugzilla < bugzilla_noreply@kde.org>: > https://bugs.kde.org/show_bug.cgi?id=355009 > > Ralf Habacker <ralf.habacker@freenet.de> changed: > > What |Removed |Added > > ---------------------------------------------------------------------------- > CC| |ralf.habacker@freenet.de > > --- Comment #1 from Ralf Habacker <ralf.habacker@freenet.de> --- > (In reply to Mario Fernando from comment #0) > Please provide a testcase xmi file because it looks data specific. > > -- > You are receiving this mail because: > You reported the bug. > Git commit 211f1d5e0b242414ece60b35aa8078c3ded5cb0d by Ralf Habacker. Committed on 30/08/2016 at 04:48. Pushed by habacker into branch 'Applications/16.08'. Add missing attribute 'font' and 'seqnum' for xml tag 'assocwidget' to umbrello-diagrams.dtd M +3 -1 doc/xml/umbrello-diagrams.dtd http://commits.kde.org/umbrello/211f1d5e0b242414ece60b35aa8078c3ded5cb0d >#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. Git commit 793ca536f67b59bed882f280ec7c9bcd1fffdb4f by Ralf Habacker. Committed on 30/08/2016 at 07:42. Pushed by habacker into branch 'Applications/16.08'. Fix 'umbrello stopped working to the open a file try open another'. There is still room for improvements in the case where the result from dynamic_cast is 0 and used unconditional. FIXED-IN:2.20.1 (KDE Applications 16.08.1) M +2 -2 umbrello/umlwidgets/artifactwidget.cpp M +8 -8 umbrello/umlwidgets/associationwidget.cpp M +1 -1 umbrello/umlwidgets/categorywidget.cpp M +1 -1 umbrello/umlwidgets/classifierwidget.cpp M +3 -3 umbrello/umlwidgets/componentwidget.cpp M +8 -8 umbrello/umlwidgets/entitywidget.cpp M +4 -4 umbrello/umlwidgets/enumwidget.cpp M +1 -1 umbrello/umlwidgets/messagewidget.cpp M +2 -1 umbrello/umlwidgets/widgetbase.h http://commits.kde.org/umbrello/793ca536f67b59bed882f280ec7c9bcd1fffdb4f |