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

            Bug ID: 462627
           Summary: Crash on exit when using command line option --export
    Classification: Applications
           Product: umbrello
           Version: Git
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: umbrello-de...@kde.org
          Reporter: okell...@users.sourceforge.net
  Target Milestone: ---

SUMMARY
***
Umbrello crashed on exit when using command line option "--export".
Analysis shows that the crash may also happen in other circumstances.
***


STEPS TO REPRODUCE
1. Start umbrello with options: --export png
2. The export is successful but short before exiting there is the crash (see
OBSERVED).

OBSERVED RESULT

[KCrash Handler]
#5  0x00000000005e83e0 in AssociationWidget::linePathStartsAt(UMLWidget const*)
const (this=this@entry=0x3018f80, widget=widget@entry=0x0) at
/umbrello/master/umbrello/umlwidgets/associationwidget.cpp:1206
#6  0x00000000005eea35 in
AssociationWidget::setStartAndEndPoint(AssociationWidget*, UMLWidget*)
(assocwidget=0x3018f80, pWidget=pWidget@entry=0x2ff9b70) at
/umbrello/master/umbrello/umlwidgets/associationwidget.cpp:3029
#7  0x00000000005ef5ac in AssociationWidget::updateAssociations(UMLWidget*,
QList<QPointer<AssociationWidget> >) (pWidget=0x2ff9b70, list=...) at
/umbrello/master/umbrello/umlwidgets/associationwidget.cpp:3116
#8  0x00000000005efb67 in AssociationWidget::calculateEndingPoints()
(this=0x301ad90) at
/umbrello/master/umbrello/umlwidgets/associationwidget.cpp:1711
#9  0x00000000005f08cd in AssociationWidget::widgetMoved(UMLWidget*, double,
double) (this=0x301ad90, widget=widget@entry=0x2ff9b70, dx=dx@entry=10,
dy=dy@entry=-20) at
/umbrello/master/umbrello/umlwidgets/associationwidget.cpp:1858
#10 0x000000000061cb86 in UMLWidget::adjustAssocs(double, double)
(this=0x2ff9b70, dx=10, dy=-20) at
/umbrello/master/umbrello/umlwidgets/umlwidget.cpp:1335
#11 0x000000000061c137 in UMLWidget::updateGeometry(bool)
(this=this@entry=0x2ff9b70, withAssocs=withAssocs@entry=true) at
/umbrello/master/umbrello/umlwidgets/umlwidget.cpp:1886
#12 0x000000000061ce79 in UMLWidget::removeAssoc(AssociationWidget*)
(this=0x2ff9b70, pAssoc=<optimized out>) at
/umbrello/master/umbrello/umlwidgets/umlwidget.cpp:1304
#13 0x0000000000669d82 in AssociationWidgetRole::cleanup()
(this=this@entry=0x30191e8) at
/umbrello/master/umbrello/umlwidgets/associationwidgetrole.cpp:31
#14 0x00000000005eb321 in AssociationWidget::cleanup()
(this=this@entry=0x3018f80) at
/umbrello/master/umbrello/umlwidgets/associationwidget.cpp:1284
#15 0x0000000000480ece in UMLScene::removeWidgetCmd(AssociationWidget*)
(this=this@entry=0x2fe6fd0, pAssoc=pAssoc@entry=0x3018f80) at
/umbrello/master/umbrello/umlscene.cpp:2269
#16 0x0000000000483634 in UMLScene::removeAssociations(UMLWidget*)
(this=this@entry=0x2fe6fd0, widget=widget@entry=0x2ff7530) at
/umbrello/master/umbrello/umlscene.cpp:2316
#17 0x0000000000488de7 in UMLScene::removeWidgetCmd(UMLWidget*)
(this=this@entry=0x2fe6fd0, o=o@entry=0x2ff7530) at
/umbrello/master/umbrello/umlscene.cpp:1328
#18 0x0000000000488fd3 in UMLScene::removeOwnedWidgets(UMLWidget*)
(this=this@entry=0x2fe6fd0, o=o@entry=0x2fe81b0) at
/umbrello/master/umbrello/umlscene.cpp:1374
#19 0x0000000000488df2 in UMLScene::removeWidgetCmd(UMLWidget*)
(this=this@entry=0x2fe6fd0, o=o@entry=0x2fe81b0) at
/umbrello/master/umbrello/umlscene.cpp:1330
#20 0x000000000048cf0b in UMLScene::removeAllWidgets()
(this=this@entry=0x2fe6fd0) at /umbrello/master/umbrello/umlscene.cpp:2380
#21 0x000000000048cfb9 in UMLScene::~UMLScene() (this=0x2fe6fd0,
__in_chrg=<optimized out>) at /umbrello/master/umbrello/umlscene.cpp:329
#22 0x000000000048d039 in UMLScene::~UMLScene() (this=0x2fe6fd0,
__in_chrg=<optimized out>) at /umbrello/master/umbrello/umlscene.cpp:333
#23 0x0000000000495126 in UMLView::~UMLView() (this=0x2fca150,
__in_chrg=<optimized out>) at /umbrello/master/umbrello/umlview.cpp:45
#24 0x0000000000495149 in UMLView::~UMLView() (this=0x2fca150,
__in_chrg=<optimized out>) at /umbrello/master/umbrello/umlview.cpp:46
#25 0x00000000005c7e9e in qDeleteAll<QList<QPointer<UMLView>
>::const_iterator>(QList<QPointer<UMLView> >::const_iterator,
QList<QPointer<UMLView> >::const_iterator) (begin=..., end=...) at
/usr/include/QtCore/qalgorithms.h:322
#26 0x00000000005c7eed in qDeleteAll<QList<QPointer<UMLView> >
>(QList<QPointer<UMLView> > const&) (c=...) at
/usr/include/QtCore/qalgorithms.h:330
#27 0x00000000005c4dbf in UMLFolder::~UMLFolder() (this=0x2bd8d60,
__in_chrg=<optimized out>) at /umbrello/master/umbrello/umlmodel/folder.cpp:49
#28 0x00000000005c4e09 in UMLFolder::~UMLFolder() (this=0x2bd8d60,
__in_chrg=<optimized out>) at /umbrello/master/umbrello/umlmodel/folder.cpp:51
#29 0x0000000000464c06 in UMLDoc::~UMLDoc() (this=0x2b74fd0,
__in_chrg=<optimized out>) at /umbrello/master/umbrello/umldoc.cpp:205
#30 0x0000000000464ce9 in UMLDoc::~UMLDoc() (this=0x2b74fd0,
__in_chrg=<optimized out>) at /umbrello/master/umbrello/umldoc.cpp:213
#31 0x00000000004536f0 in UMLApp::~UMLApp() (this=0x2897df0,
__in_chrg=<optimized out>, __vtt_parm=<optimized out>) at
/umbrello/master/umbrello/uml.cpp:342
#32 0x0000000000453789 in UMLApp::~UMLApp() (this=0x2897df0,
__in_chrg=<optimized out>, __vtt_parm=<optimized out>) at
/umbrello/master/umbrello/uml.cpp:344
#33 0x0000000000441153 in main(int, char**) (argc=<optimized out>,
argv=<optimized out>) at /umbrello/master/umbrello/main.cpp:240

The trigger of the crash is the call to UMLApp destructor in the main program,
    delete uml;

EXPECTED RESULT
No crash shall happen.

SOFTWARE/OS VERSIONS
Linux: OpenSUSE 13.2 (x86_64)
KDE Frameworks Version: kdelibs 4.14.9
Qt Version: 4.8.6
Umbrello Version : git master @ b38382a4

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to