Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The following program crashes when compiling and rendering CGCAL #212

Closed
siegeld opened this issue Oct 27, 2012 · 3 comments
Closed

The following program crashes when compiling and rendering CGCAL #212

siegeld opened this issue Oct 27, 2012 · 3 comments

Comments

@siegeld
Copy link

siegeld commented Oct 27, 2012

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([i_5, j_5, 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
Copy link
Sponsor Member

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
Copy link
Author

siegeld commented Oct 28, 2012

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
Copy link
Member

kintel commented May 9, 2013

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

@kintel kintel closed this as completed May 9, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants