[OpenSCAD] slow render, need help
mebrown at michaels-house.net
Thu Oct 27 07:14:22 CEST 2011
I did get it to render without crashing, finally, by adding render() to the
front of the toplevel object, but that's not exactly a good solution as it
takes about 15 minutes to render.
So, is there a bug in openscad that can be fixed?
Regarding "small decimal differences", I tried to make sure that everything
(as far as I am able to tell) is at least .1 away from anything else.
On Wed, Oct 26, 2011 at 10:53 PM, Don Bright <hugh.m.bright at gmail.com>wrote:
> i have similar problems.
> i was able to debug the scad file a little bit by commenting out a
> bunch of 'difference()' lines, reducing $fn to 10, and increasing all
> of your basic parameters by a factor of 10 (i.e. box_height=700
> instead of 70..... sometimes the drawing code crashes on small decimal
> differences that dont exist when you deal with larger numbers. )
> anyways, when i add the diff() back in it freezes as described.
> running git openscad.
> i also run
> nice -n 19 ionice -c 3 openscad
> so i am able to kill it without having to hard-reset my machine.
> On Wed, Oct 26, 2011 at 10:03 PM, Don Bright <hugh.m.bright at gmail.com>
> > branch openscad-memleak doesnt appear to be uploaded to github
> > On Wed, Oct 26, 2011 at 9:31 PM, Michael Brown
> > <mebrown at michaels-house.net> wrote:
> >> Ok, two things:
> >> 1) The assertion error is gone! I can call openscad from the command
> line to
> >> build my stl files.
> >> 2) When I try to open up my scad files in openscad gui mode, it
> >> *immediately* (within about 5 seconds) consumes all available RAM and
> >> killed by the OOM killer.
> >> I have tagged the offending code: openscad-memleak
> >> git clone git://github.com/superchalupa/container-round-decorative.git
> >> cd container-round-decorative
> >> git checkout openscad-memleak
> >> openscad ./box.scad
> >> I suggest having 'top' running and kill it when you see it get above a
> >> couple gigs, or you risk crashing your machine (I've already done that a
> >> couple times now).
> >> I tried wrapping the toplevel object with render(), but that didnt help.
> >> --
> >> Michael
> >> On Wed, Oct 26, 2011 at 5:50 PM, Marius Kintel <marius at kintel.net>
> >>> On Oct 26, 2011, at 09:52 AM, Michael Brown wrote:
> >>> > Unfortunately, I'm still running into assertion errors and/or
> >>> I've fixed the assertion error. It was a bug in the caching code which
> >>> introduced in September.
> >>> -Marius
> >>> _______________________________________________
> >>> OpenSCAD mailing list
> >>> OpenSCAD at rocklinux.org
> >>> http://rocklinux.net/mailman/listinfo/openscad
> >> _______________________________________________
> >> OpenSCAD mailing list
> >> OpenSCAD at rocklinux.org
> >> http://rocklinux.net/mailman/listinfo/openscad
> OpenSCAD mailing list
> OpenSCAD at rocklinux.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the OpenSCAD