Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

The following program crashes when compiling and rendering CGCAL #212

Closed
siegeld opened this Issue · 3 comments

3 participants

@siegeld

It works fine under simple "Compile". Any obvious reason for this?

levels=5;
side=5;

for (h=[1 : levels]) {
for (i = [1 : side]) {
for (j = [1 : side]) {
if ((h == 1) || (i == 1 || j == 1 || i == side || j == side)) {
translate([i5, j5, h*5]) {
sphere(r=3, center=false, $fn=50);
}
}
}
}
}

for (h=[1 : 12]) {
translate([h+1.5, 5, 20+(levels+h-1)]) {
cube([3, 20, 2]);
}
}

translate([30,0,0]) { mirror([1,0,0]) {
for (h=[1 : 12]) {
translate([h+1.5, 5, 20+(levels+h-1)]) {
cube([3, 20, 2]);
}
}
}}

@donbright
Collaborator

Thanks for the bug report.

I have run this on a sever with a lot of RAM and it seems to run OK, although I get this warning:

  WARNING: CGAL Evaluator: Root node didn't fit into cache

This comes from Cache.h which is essentially copied from QT. See here:

http://harmattan-dev.nokia.com/docs/library/html/qt4/qcache.html#details

My guess is that this code might hitting some kind of memory limit on your machine. How much RAM do you have?

$fn=50 for the sphere()s might be the culprit.... With $fn=5 it works ok for me. I'm not sure what level of $fn you need for your application.... perhaps more insight and suggestions could be found on the mailing list.

@siegeld

Are you running under linux or windows? Also, are you using the 64 bit or 32 bit version? I crash under windows w/32 bit.

Does anyone know if there are 64 bit binaries for windows, by the way - I could try that.

@kintel
Owner

Duplicated by #342. Keeping that one as it has more activity.

@kintel kintel closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.