View Revisions: Issue #3191

Summary 0003191: Readily reproducible memory leak - FreeCAD doesn't reclaim memory on object deletion / project close.
Revision 2017-09-30 11:27 by Kunda1
Steps To Reproduce 1. Save the attached .dae file in /tmp
2. Run the attached python workflow in the console (you'll see some errors at the end due to a different bug related to unicode, but they don't matter)
3. Note the memory usage in top.
4. Close the project (without closing FreeCAD) and go back to step 2.

Each time, on my system at least, it consumes an additional ~ 10% memory. And right now I'm using a rather simplified model.

In addition to closing projects not freeing memory, manually deleting individual objects doesn't appear to free memory either. The only thing that ever seems to get the memory back is closing and restarting FreeCAD.
Revision 2017-09-17 15:12 by KarenRei
Steps To Reproduce 1. Save the attached .dae file in /tmp
2. Run the attached python workflow in the console (you'll see some errors at the end due to a different bug related to unicode, but they don't matter)
3. Note the memory usage in top.
4. Close the project (without closing FreeCAD) and go back to step 2.

Each time, on my system at least, it consumes an additional 0000009:0000010% memory. And right now I'm using a rather simplified model.

In addition to closing projects not freeing memory, manually deleting individual objects doesn't appear to free memory either. The only thing that ever seems to get the memory back is closing and restarting FreeCAD.