memory leak

Here's the place for discussion related to CAM/CNC and the development of the Path module.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
keithsloan52
Veteran
Posts: 2764
Joined: Mon Feb 27, 2012 5:31 pm

Re: memory leak

Post by keithsloan52 »

@palpin Works just fine for me see attached files.

OS: Mac OS X
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.13519 (Git)
Build type: Release
Branch: (HEAD detached at 1a8b868)
Hash: 1a8b868018f45ea486c0023fdbfeb06febc1fb89
Python version: 2.7.14
Qt version: 5.10.1
Coin version: 4.0.0a
OCC version: 7.2.0
Locale: English/UnitedKingdom (en_GB)
textTest.scad
(51 Bytes) Downloaded 35 times
testText.FCStd
(63.16 KiB) Downloaded 33 times
keithsloan52
Veteran
Posts: 2764
Joined: Mon Feb 27, 2012 5:31 pm

Re: memory leak

Post by keithsloan52 »

Note: FreeCAD's support of OpenSCAD text command required use of DXF.
Maybe you do not have the right options for dealing with DXF files.

If I go to preferences and then Import/Export
For DXF I have the following options set

Use legacy DXF importer
Allow FreeCAD to automatically download and update the DXF libraries
palain
Posts: 6
Joined: Tue Sep 25, 2018 12:29 pm

Re: memory leak

Post by palain »

DXF library failed to import - had to import by hand DXF library ...
still no text imported even in CSG

but that doesn't help the dysfunctional memory leak.

I can do the same operations in blendercam without the memory leak. Selecting faces doesn't take minutes and large memory chunks there.

I am wondering if I should ditch freecad path because of it. It is obviously not able to deal with any STL model with medium complexity. Great if you want to cut a few holes and a square. Even then, DXF2GCODE would perform for simple cuts.
keithsloan52
Veteran
Posts: 2764
Joined: Mon Feb 27, 2012 5:31 pm

Re: memory leak

Post by keithsloan52 »

palain wrote: Sat Oct 27, 2018 12:49 pm DXF library failed to import - had to import by hand DXF library ...
still no text imported even in CSG
Hi @palain In that case you have something wrong with your installation. Have you tried FreeCAD 0.17 under Linux?
You should not have to import by hand and it sounds like importing by hand did not work properly
palain wrote: Sat Oct 27, 2018 12:49 pm but that doesn't help the dysfunctional memory leak
I assume that means you have some problem with the path workbench.

Given the nature of STL files being just meshes then I am not surprised that the Path workbench
struggles with them

Sorry, don't know anything about the path workbench so cannot help there.
I am just one of the developers of the OpenSCAD workbench. In fact the only one left
as Sebastian Hoogen is no longer around.

If you want to provide me with a test text string I can create a FreeCAD file for you
Or if you let me have a SCAD or CSG file I again can produce a FreeCAD file that you can then use
with the Path workbench and see if that is okay.
cyou
Posts: 4
Joined: Sat Nov 21, 2020 6:32 am

Re: memory leak

Post by cyou »

palain wrote: Sat Oct 27, 2018 12:49 pm DXF library failed to import - had to import by hand DXF library ...
still no text imported even in CSG

but that doesn't help the dysfunctional memory leak.

I can do the same operations in blendercam without the memory leak. Selecting faces doesn't take minutes and large memory chunks there.

I am wondering if I should ditch freecad path because of it. It is obviously not able to deal with any STL model with medium complexity. Great if you want to cut a few holes and a square. Even then, DXF2GCODE would perform for simple cuts.
I observed the similar phenomenon in Part workbench.
This seems to be the memory leak in FreeCAD.
https://forum.freecadweb.org/viewtopic.php?t=18332
chrisb
Veteran
Posts: 54144
Joined: Tue Mar 17, 2015 9:14 am

Re: memory leak

Post by chrisb »

Without additional information, this post is rather useless. You answered to a post from 2018 and refer to a topic from 2016 and you don't give any further information except that it occurs in Part workbench, while this is the path forum. So what is this about? :roll: .
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
janc.linders
Posts: 52
Joined: Sat Jul 25, 2020 2:36 pm

Re: memory leak

Post by janc.linders »

Is it possible to upgrade to 019 Git version .
The PATH WB has several changes regarding Memory Consumption.
I've come across a similar issue where memory went up to 12 Gb.
Closing the model does not release the memory.
Restarting FC does.

In the latest Git release memory use is far less.
Post Reply