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!
palain
Posts: 6
Joined: Tue Sep 25, 2018 12:29 pm

memory leak

Post by palain »

FreeCad 0.17 and 0.18 dev
Using windows or linux made very little difference
STL was made with OpenScad with $fn default (30)
memory leaks making freecad path workshop difficult to work with. It appears to be even worse when the facets of the mesh are increased.

phpBB [video]


I love the path / cam ability. as it stands, it is only good for the very small jobs.
Alain Pelletier
chrisb
Veteran
Posts: 54313
Joined: Tue Mar 17, 2015 9:14 am

Re: memory leak

Post by chrisb »

Hi Alain, welcome to the forum.
The memory leak seems to be a serious problem for larger jobs.
Besides that I have the feeling that your model is by far not a small one as far as milling is concerned; the reason is the way you get your model: An STL ist usually a degradation due to its tesselation. Here this becomes a real issue, because all the letters are tesselated too. If you model this directly in FreeCAD you have only a small fraction of edges for each letter compared to the STL.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
mlampert
Veteran
Posts: 1772
Joined: Fri Sep 16, 2016 9:28 pm

Re: memory leak

Post by mlampert »

I'm not convinced there actually is a memory leak. Can you post your file please?

The slowdown is not due to memory consumption - whenever you select anything the system is looking if it can "close the loop", which, given the size of your model seems to take a long time.
palain
Posts: 6
Joined: Tue Sep 25, 2018 12:29 pm

Re: memory leak

Post by palain »

The model was made with openScad but could not be imported directly because FreeCad does not like the text from OpenScad.

The model was NOT degraded by OpenScad.

I don't know how to attatch a file to the post. can someone help me to do that?

If you are not convinced of a memory leak. How do you explain having to completely close FreeCad to release the memory? It may not cause the slowdown but it can be a manifestation of the problem.

this was a small block.... larger models would eat my 6 GIG of available ram.
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: memory leak

Post by Kunda1 »

palain wrote: Tue Oct 09, 2018 7:08 pm I don't know how to attatch a file to the post. can someone help me to do that?
Dropbox, google drive, some 3rd party hosting etc..
Also please always post your Help > About FreeCAD > Copy to clipboard info when asking for help.
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
palain
Posts: 6
Joined: Tue Sep 25, 2018 12:29 pm

Re: memory leak

Post by palain »

here are the files
http://www.alain-pelletier.com/atv-spor ... late.FCStd
and STL
http://www.alain-pelletier.com/atv-spor ... dplate.stl

note: stable release 0.17 and linux / windows 10 make no difference

OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.14426 (Git)
Build type: Release
Branch: master
Hash: 3927a2ed8b009ab4dfdca53fbebf0060193b67b4
Python version: 2.7.14
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.2.0
Locale: English/UnitedStates (en_US)
keithsloan52
Veteran
Posts: 2764
Joined: Mon Feb 27, 2012 5:31 pm

Re: memory leak

Post by keithsloan52 »

palain wrote: Tue Oct 09, 2018 7:08 pm The model was made with openScad but could not be imported directly because FreeCad does not like the text from OpenScad.

The model was NOT degraded by OpenScad.

I don't know how to attatch a file to the post. can someone help me to do that?

If you are not convinced of a memory leak. How do you explain having to completely close FreeCad to release the memory? It may not cause the slowdown but it can be a manifestation of the problem.

this was a small block.... larger models would eat my 6 GIG of available ram.
Are you saying that before creating an STL in OpenSCAD you tried to import the SCAD file into FreeCAD and it failed?
If yes please could you supply the SCAD file and what error message you got?

Obviously, that would be a different problem than the memory leak, but I am interested in your initial problem
palain
Posts: 6
Joined: Tue Sep 25, 2018 12:29 pm

Re: memory leak

Post by palain »

FreeCad does not support import of opneScad text that is why it failed.
keithsloan52
Veteran
Posts: 2764
Joined: Mon Feb 27, 2012 5:31 pm

Re: memory leak

Post by keithsloan52 »

palain wrote: Tue Oct 16, 2018 12:15 pm FreeCad does not support import of opneScad text that is why it failed.
@palain Not true. ImportCSG.py has code for dealing with a Text command. Sounds like it is not working properly, please could you supply a problem file.
palain
Posts: 6
Joined: Tue Sep 25, 2018 12:29 pm

Re: memory leak

Post by palain »

you don't really need a file for testing that.

you can make a one line file

linear_extrude(height=0.7*25.4) text("a",size=25);

that does not import anything.

thanks
Post Reply