View Issue Details

IDProjectCategoryView StatusLast Update
0003340DraftBugpublic2021-04-12 06:14
Reporterwmayer Assigned Toyorik  
PriorityhighSeverityblockReproducibilityalways
Status assignedResolutionopen 
Product Version0.17 
Target Version0.20 
Summary0003340: Massive memory leak in Draft
DescriptionWhen using e.g. the dimension tool and hovering over a shape causes a huge memory leak. A user reported that the total memory consumption went up to 11 GB (!!!)
Additional Informationhttps://forum.freecadweb.org/viewtopic.php?f=10&t=26784
TagsNo tags attached.
FreeCAD Information

Relationships

related to 0003993 closedwmayer FreeCAD Memory leak with Python3 

Activities

yorik

2018-03-08 15:15

administrator   ~0011023

This is now reduced as much as we can on the FreeCAD side I think. There is still some memory leak somewhere in pivy, though. But this has ow been minimized as much as possible.

I suggest we either close this now, as there is AFAICS not much more we can do in the FreeCAD code itself, or leave it open, removing the 0.17 target, in case someone wants to dig into the pivy code later, as after all, it has become more or less our baby (or Looo's :) ) now...

In any case I'll remove the 0.17 tag

wmayer

2018-03-08 15:50

administrator   ~0011025

Out of curiosity what makes you believe that there is a leak in pivy?

yorik

2018-03-08 17:32

administrator   ~0011026

Try this https://forum.freecadweb.org/viewtopic.php?f=10&t=26784&start=20#p216270

wmayer

2018-03-08 20:19

administrator   ~0011027

See this: https://forum.freecadweb.org/viewtopic.php?f=10&t=26784&start=30#p219240

yorik

2019-02-16 22:27

administrator   ~0012668

This one fell far below my radar... In any case the problem is not big anymore, more several optimizations to do, so better to reschedule for 0.19...

carlopav

2020-06-14 21:17

developer   ~0014547

@yorik, what's the status of this? is that something that could be done now?

yorik

2020-06-15 08:13

administrator   ~0014548

It needs testing again, basically. I have not observed this anymore, but it needs to be metered precisely to make sure.

carlopav

2020-06-15 17:17

developer   ~0014554

I think i've observed a huge augmenting of memory used when changing from 2d to 3d and back into 2d several times on the dimension object... Do you experience the same?

Kunda1

2020-10-10 12:53

administrator   ~0014816

Last edited: 2020-10-10 12:53

Is this the memory leak solved in FreeCAD master ab4ab444 ?
thread: https://forum.freecadweb.org/viewtopic.php?f=15&t=50583

Kunda1

2020-10-10 12:58

administrator   ~0014817

Tracking in https://forum.freecadweb.org/viewtopic.php?f=8&t=51016

wmayer

2021-04-12 06:14

administrator   ~0015610

When building FreeCAD with -fsanitize=address then this build reports that an SoSeparator isn't deleted. The node contains an SoCoordinate3 and an SoLineSet.
The amount of memory is only a few KB.

yorik

2022-03-03 13:55

administrator   ~0016596

This ticket has been migrated to GitHub as issue 5761.

Related Changesets

FreeCAD: master ab4ab444

2020-10-04 17:43:54

wmayer

Details Diff
Path: [skip ci] fix memory leak in CommandPy::getParameters()

For some background information see: https://forum.freecadweb.org/viewtopic.php?f=15&t=50583
Affected Issues
0003340
mod - src/Mod/Path/App/CommandPyImp.cpp Diff File

Issue History

Date Modified Username Field Change
2018-02-07 12:44 wmayer New Issue
2018-02-09 11:01 yorik Assigned To => yorik
2018-02-09 11:01 yorik Status new => assigned
2018-03-03 11:23 Kunda1 Target Version => 0.17
2018-03-08 15:15 yorik Note Added: 0011023
2018-03-08 15:15 yorik Target Version 0.17 =>
2018-03-08 15:50 wmayer Note Added: 0011025
2018-03-08 17:32 yorik Note Added: 0011026
2018-03-08 20:19 wmayer Note Added: 0011027
2018-05-31 00:19 Kunda1 Target Version => 0.18
2019-02-16 22:27 yorik Note Added: 0012668
2019-02-16 22:27 yorik Target Version 0.18 => 0.19
2019-06-20 01:49 Kunda1 Severity major => block
2019-06-20 13:16 Kunda1 Relationship added related to 0003993
2020-06-14 21:17 carlopav Note Added: 0014547
2020-06-15 08:13 yorik Note Added: 0014548
2020-06-15 17:17 carlopav Note Added: 0014554
2020-10-10 12:53 Kunda1 Note Added: 0014816
2020-10-10 12:53 Kunda1 Note Edited: 0014816
2020-10-10 12:58 Kunda1 Note Added: 0014817
2020-11-21 16:36 Kunda1 Changeset attached => FreeCAD master ab4ab444
2021-02-06 06:45 abdullah Target Version => 0.20
2021-04-12 06:14 wmayer Note Added: 0015610