View Issue Details

IDProjectCategoryView StatusLast Update
0003668Slicer4Core: GUIpublic2017-09-27 10:45
ReporterfinetjulAssigned Tofinetjul 
PrioritynormalSeverityminorReproducibilityhave not tried
Status assignedResolutionopen 
Product Version 
Target VersionbacklogFixed in Version 
Summary0003668: QMenu memory leaks
Description

Below are some memory leaks found with Valgrind (lots of other memory leaks have been fixed in a not-yet-merged branch).

==10459== 22,108 (80 direct, 22,028 indirect) bytes in 2 blocks are definitely lost in loss record 6,759 of 6,823
==10459== at 0x4C2B1C7: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==10459== by 0x6052F4C: qMRMLSliceControllerWidgetPrivate::setupLightboxMenu() (qMRMLSliceControllerWidget.cxx:453)
==10459== by 0x6051A10: qMRMLSliceControllerWidgetPrivate::setupPopupUi() (qMRMLSliceControllerWidget.cxx:229)
==10459== by 0x6087C60: qMRMLViewControllerBarPrivate::init() (qMRMLViewControllerBar.cxx:98)
==10459== by 0x6052280: qMRMLSliceControllerWidgetPrivate::init() (qMRMLSliceControllerWidget.cxx:329)
==10459== by 0x6057BE9: qMRMLSliceControllerWidget::qMRMLSliceControllerWidget(QWidget) (qMRMLSliceControllerWidget.cxx:1238)
==10459== by 0x606CE39: Ui_qMRMLSliceWidget::setupUi(qMRMLWidget
) (ui_qMRMLSliceWidget.h:43)
==10459== by 0x606BEDC: qMRMLSliceWidgetPrivate::init() (qMRMLSliceWidget.cxx:59)
==10459== by 0x606C18C: qMRMLSliceWidget::qMRMLSliceWidget(QWidget) (qMRMLSliceWidget.cxx:110)
==10459== by 0x600F8B2: qMRMLLayoutManagerPrivate::createSliceWidget(vtkMRMLSliceNode
) (qMRMLLayoutManager.cxx:258)
==10459== by 0x5B42BDD: qSlicerLayoutManagerPrivate::createSliceWidget(vtkMRMLSliceNode*) (qSlicerLayoutManager.cxx:75)
==10459== by 0x6010B39: qMRMLLayoutManagerPrivate::updateWidgetsFromViewNodes() (qMRMLLayoutManager.cxx:586)

==10459== 13,984 (40 direct, 13,944 indirect) bytes in 1 blocks are definitely lost in loss record 6,738 of 6,823
==10459== at 0x4C2B1C7: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==10459== by 0x605438B: qMRMLSliceControllerWidgetPrivate::setupSliceModelMenu() (qMRMLSliceControllerWidget.cxx:576)
==10459== by 0x6051A3D: qMRMLSliceControllerWidgetPrivate::setupPopupUi() (qMRMLSliceControllerWidget.cxx:232)
==10459== by 0x6087C60: qMRMLViewControllerBarPrivate::init() (qMRMLViewControllerBar.cxx:98)
==10459== by 0x6052280: qMRMLSliceControllerWidgetPrivate::init() (qMRMLSliceControllerWidget.cxx:329)
==10459== by 0x6057BE9: qMRMLSliceControllerWidget::qMRMLSliceControllerWidget(QWidget) (qMRMLSliceControllerWidget.cxx:1238)
==10459== by 0x606CE39: Ui_qMRMLSliceWidget::setupUi(qMRMLWidget
) (ui_qMRMLSliceWidget.h:43)
==10459== by 0x606BEDC: qMRMLSliceWidgetPrivate::init() (qMRMLSliceWidget.cxx:59)
==10459== by 0x606C18C: qMRMLSliceWidget::qMRMLSliceWidget(QWidget) (qMRMLSliceWidget.cxx:110)
==10459== by 0x600F8B2: qMRMLLayoutManagerPrivate::createSliceWidget(vtkMRMLSliceNode
) (qMRMLLayoutManager.cxx:258)
==10459== by 0x5B42BDD: qSlicerLayoutManagerPrivate::createSliceWidget(vtkMRMLSliceNode*) (qSlicerLayoutManager.cxx:75)
==10459== by 0x6010B39: qMRMLLayoutManagerPrivate::updateWidgetsFromViewNodes() (qMRMLLayoutManager.cxx:586)

Additional Information

a QMenu deriving from another menu is NOT deleted when the menu is deleted.

TagsNo tags attached.

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2014-04-21 04:33 finetjul New Issue
2014-06-04 06:06 jcfr Status new => assigned
2014-06-04 06:06 jcfr Assigned To => finetjul
2014-06-04 06:06 jcfr Target Version => Slicer 4.4.0
2014-07-29 11:55 jcfr Target Version Slicer 4.4.0 => Slicer 4.5.0-1
2015-11-02 11:26 jcfr Target Version Slicer 4.5.0-1 => Slicer 4.5.1
2016-10-13 01:57 jcfr Target Version Slicer 4.5.1 => Slicer 4.7.0
2017-09-27 10:45 lassoan Target Version Slicer 4.7.0 => backlog