View Issue Details

IDProjectCategoryView StatusLast Update
0003340DraftBugpublic2020-06-15 17:17
Reporterwmayer Assigned Toyorik  
Status assignedResolutionopen 
Product Version0.17 
Target Version0.19 
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 Information
TagsNo tags attached.
FreeCAD Information


related to 0003993 closedwmayer FreeCAD Memory leak with Python3 



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


2018-03-08 15:50

administrator   ~0011025

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


2018-03-08 17:32

administrator   ~0011026

Try this


2018-03-08 20:19

administrator   ~0011027

See this:


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...


2020-06-14 21:17

developer   ~0014547

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


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.


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?

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