discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

puzzling hang

JB
Jon Bondy
Sat, Sep 13, 2025 12:54 PM

If you F5 the program, below, it should run without error.  Then change
the "h = 1" to "h = 10" at the "<<<<" comment, and you get this

======

Parsing design (AST generation)...

Saved backup file: C:/Users/jon/OneDrive/Documents/OpenSCAD/backups/Pick
Holder-backup-agrqbqpZ.scad

Compiling design (CSG Tree generation)...

Compiling design (CSG Products generation)...

Geometries in cache: 6

Geometry cache size in bytes: 48096

CGAL Polyhedrons in cache: 0

CGAL cache size in bytes: 0

Compiling design (CSG Products normalization)...

WARNING: Normalized tree is growing past 200000 elements. Aborting
normalization.

Execution aborted

======

I am puzzled by the tree being too big (any recommendations?), but after
this happens, if I change h back to 1, and press F5, nothing happens.  I
have to quite out of OpenSCAD and re-start it in order to try again. 
That is, OpenSCAD is essentially dead.

I am running OpenSCAD https://www.openscad.org/version 2025.09.12

========

eps = 0.01;
$fa = 3;
$fs = 0.2;
inches = 25.4;

di = 15.3 - 1;
th = 2;
ht = 100;

difference() {
    union() {
        cylinder(h = ht, d = di + 2th);
        translate([-1.4
di, 0, 0])
            scale([2, 1, 1])
                rotate([0, 0, -45])
                    cube([0.9di, 0.9di, ht]);
        }
    rotate([0, 0, -45])
        cube(110);
    cylinder(h = ht + eps, d = di);
    for (z = [0:0.2:100]) {
        le = 0.5 * sin(60*z);
        translate([-di, le, z])
            rotate([0, 90, 0])
                cylinder(h = 1, d = 1);  // <<<<<
            }
    }

--
This email has been checked for viruses by AVG antivirus software.
www.avg.com

If you F5 the program, below, it should run without error.  Then change the "h = 1" to "h = 10" at the "<<<<" comment, and you get this ====== Parsing design (AST generation)... Saved backup file: C:/Users/jon/OneDrive/Documents/OpenSCAD/backups/Pick Holder-backup-agrqbqpZ.scad Compiling design (CSG Tree generation)... Compiling design (CSG Products generation)... Geometries in cache: 6 Geometry cache size in bytes: 48096 CGAL Polyhedrons in cache: 0 CGAL cache size in bytes: 0 Compiling design (CSG Products normalization)... WARNING: Normalized tree is growing past 200000 elements. Aborting normalization. Execution aborted ====== I am puzzled by the tree being too big (any recommendations?), but after this happens, if I change h back to 1, and press F5, nothing happens.  I have to quite out of OpenSCAD and re-start it in order to try again.  That is, OpenSCAD is essentially dead. I am running OpenSCAD <https://www.openscad.org/>version 2025.09.12 ======== eps = 0.01; $fa = 3; $fs = 0.2; inches = 25.4; di = 15.3 - 1; th = 2; ht = 100; difference() {     union() {         cylinder(h = ht, d = di + 2*th);         translate([-1.4*di, 0, 0])             scale([2, 1, 1])                 rotate([0, 0, -45])                     cube([0.9*di, 0.9*di, ht]);         }     rotate([0, 0, -45])         cube(110);     cylinder(h = ht + eps, d = di);     for (z = [0:0.2:100]) {         le = 0.5 * sin(60*z);         translate([-di, le, z])             rotate([0, 90, 0])                 cylinder(h = 1, d = 1);  // <<<<<             }     } -- This email has been checked for viruses by AVG antivirus software. www.avg.com
NH
nop head
Sat, Sep 13, 2025 1:22 PM

Increase the limit in the preferences. I have it set to 10 million.

On Sat, 13 Sept 2025 at 13:54, Jon Bondy via Discuss <
discuss@lists.openscad.org> wrote:

If you F5 the program, below, it should run without error.  Then change
the "h = 1" to "h = 10" at the "<<<<" comment, and you get this

======

Parsing design (AST generation)...

Saved backup file: C:/Users/jon/OneDrive/Documents/OpenSCAD/backups/Pick Holder-backup-agrqbqpZ.scad

Compiling design (CSG Tree generation)...

Compiling design (CSG Products generation)...

Geometries in cache: 6

Geometry cache size in bytes: 48096

CGAL Polyhedrons in cache: 0

CGAL cache size in bytes: 0

Compiling design (CSG Products normalization)...

WARNING: Normalized tree is growing past 200000 elements. Aborting normalization.

Execution aborted

======

I am puzzled by the tree being too big (any recommendations?), but after
this happens, if I change h back to 1, and press F5, nothing happens.  I
have to quite out of OpenSCAD and re-start it in order to try again.  That
is, OpenSCAD is essentially dead.

I am running OpenSCAD https://www.openscad.org/ version 2025.09.12

========

eps = 0.01;
$fa = 3;
$fs = 0.2;
inches = 25.4;

di = 15.3 - 1;
th = 2;
ht = 100;

difference() {
union() {
cylinder(h = ht, d = di + 2th);
translate([-1.4
di, 0, 0])
scale([2, 1, 1])
rotate([0, 0, -45])
cube([0.9di, 0.9di, ht]);
}
rotate([0, 0, -45])
cube(110);
cylinder(h = ht + eps, d = di);
for (z = [0:0.2:100]) {
le = 0.5 * sin(60*z);
translate([-di, le, z])
rotate([0, 90, 0])
cylinder(h = 1, d = 1);  // <<<<<
}
}

http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient
Virus-free.www.avg.com
http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient
<#m_-7671437648204620332_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

Increase the limit in the preferences. I have it set to 10 million. On Sat, 13 Sept 2025 at 13:54, Jon Bondy via Discuss < discuss@lists.openscad.org> wrote: > If you F5 the program, below, it should run without error. Then change > the "h = 1" to "h = 10" at the "<<<<" comment, and you get this > > ====== > > Parsing design (AST generation)... > > Saved backup file: C:/Users/jon/OneDrive/Documents/OpenSCAD/backups/Pick Holder-backup-agrqbqpZ.scad > > Compiling design (CSG Tree generation)... > > Compiling design (CSG Products generation)... > > Geometries in cache: 6 > > Geometry cache size in bytes: 48096 > > CGAL Polyhedrons in cache: 0 > > CGAL cache size in bytes: 0 > > Compiling design (CSG Products normalization)... > > WARNING: Normalized tree is growing past 200000 elements. Aborting normalization. > > Execution aborted > > ====== > > I am puzzled by the tree being too big (any recommendations?), but after > this happens, if I change h back to 1, and press F5, nothing happens. I > have to quite out of OpenSCAD and re-start it in order to try again. That > is, OpenSCAD is essentially dead. > > I am running OpenSCAD <https://www.openscad.org/> version 2025.09.12 > > ======== > > eps = 0.01; > $fa = 3; > $fs = 0.2; > inches = 25.4; > > di = 15.3 - 1; > th = 2; > ht = 100; > > difference() { > union() { > cylinder(h = ht, d = di + 2*th); > translate([-1.4*di, 0, 0]) > scale([2, 1, 1]) > rotate([0, 0, -45]) > cube([0.9*di, 0.9*di, ht]); > } > rotate([0, 0, -45]) > cube(110); > cylinder(h = ht + eps, d = di); > for (z = [0:0.2:100]) { > le = 0.5 * sin(60*z); > translate([-di, le, z]) > rotate([0, 90, 0]) > cylinder(h = 1, d = 1); // <<<<< > } > } > > > > > <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient> > Virus-free.www.avg.com > <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient> > <#m_-7671437648204620332_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org
JB
Jon Bondy
Sat, Sep 13, 2025 1:58 PM

Thank you.

My main concern was that OpenSCAD became useless after this error.

Jon

On 9/13/2025 9:22 AM, nop head via Discuss wrote:

Increase the limit in the preferences. I have it set to 10 million.

On Sat, 13 Sept 2025 at 13:54, Jon Bondy via Discuss
discuss@lists.openscad.org wrote:

 If you F5 the program, below, it should run without error.  Then
 change the "h = 1" to "h = 10" at the "<<<<" comment, and you get this

 ======

 Parsing design (AST generation)...

 Saved backup file:
 C:/Users/jon/OneDrive/Documents/OpenSCAD/backups/Pick
 Holder-backup-agrqbqpZ.scad

 Compiling design (CSG Tree generation)...

 Compiling design (CSG Products generation)...

 Geometries in cache: 6

 Geometry cache size in bytes: 48096

 CGAL Polyhedrons in cache: 0

 CGAL cache size in bytes: 0

 Compiling design (CSG Products normalization)...

 WARNING: Normalized tree is growing past 200000 elements. Aborting
 normalization.

 Execution aborted

 ======

 I am puzzled by the tree being too big (any recommendations?), but
 after this happens, if I change h back to 1, and press F5, nothing
 happens.  I have to quite out of OpenSCAD and re-start it in order
 to try again. That is, OpenSCAD is essentially dead.

 I am running OpenSCAD
 <https://urldefense.proofpoint.com/v2/url?u=https-3A__www.openscad.org_&d=DwMFaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=AsrE-c7ZR7B2Kyr3qgfvvppkCEBVsNmwEMndcrRSuOI&m=foGTpGcFH_5hvMYHm1xdlKHZX1cdgGhNIfdUQvLLyCSrE4No1Zn3HbulXFyZsw5K&s=YXa8zB8H0O8ViOOmYI-utGMabg4dUkBxY0Bekl1Ajcs&e=>version
 2025.09.12

 ========

 eps = 0.01;
 $fa = 3;
 $fs = 0.2;
 inches = 25.4;

 di = 15.3 - 1;
 th = 2;
 ht = 100;

 difference() {
     union() {
         cylinder(h = ht, d = di + 2*th);
         translate([-1.4*di, 0, 0])
             scale([2, 1, 1])
                 rotate([0, 0, -45])
                     cube([0.9*di, 0.9*di, ht]);
         }
     rotate([0, 0, -45])
         cube(110);
     cylinder(h = ht + eps, d = di);
     for (z = [0:0.2:100]) {
         le = 0.5 * sin(60*z);
         translate([-di, le, z])
             rotate([0, 90, 0])
                 cylinder(h = 1, d = 1);  // <<<<<
             }
     }



 <https://urldefense.proofpoint.com/v2/url?u=http-3A__www.avg.com_email-2Dsignature-3Futm-5Fmedium-3Demail-26utm-5Fsource-3Dlink-26utm-5Fcampaign-3Dsig-2Demail-26utm-5Fcontent-3Demailclient&d=DwMFaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=AsrE-c7ZR7B2Kyr3qgfvvppkCEBVsNmwEMndcrRSuOI&m=foGTpGcFH_5hvMYHm1xdlKHZX1cdgGhNIfdUQvLLyCSrE4No1Zn3HbulXFyZsw5K&s=5SKJ2ZraWC16b6uWpi9nGHUoOStzb970X__XZ1FTKiE&e=>
 	Virus-free.www.avg.com
 <https://urldefense.proofpoint.com/v2/url?u=http-3A__www.avg.com_email-2Dsignature-3Futm-5Fmedium-3Demail-26utm-5Fsource-3Dlink-26utm-5Fcampaign-3Dsig-2Demail-26utm-5Fcontent-3Demailclient&d=DwMFaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=AsrE-c7ZR7B2Kyr3qgfvvppkCEBVsNmwEMndcrRSuOI&m=foGTpGcFH_5hvMYHm1xdlKHZX1cdgGhNIfdUQvLLyCSrE4No1Zn3HbulXFyZsw5K&s=5SKJ2ZraWC16b6uWpi9nGHUoOStzb970X__XZ1FTKiE&e=>


 <#m_-7671437648204620332_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
 _______________________________________________
 OpenSCAD mailing list
 To unsubscribe send an email to discuss-leave@lists.openscad.org

OpenSCAD mailing list
To unsubscribe send an email todiscuss-leave@lists.openscad.org

--
This email has been checked for viruses by AVG antivirus software.
www.avg.com

Thank you. My main concern was that OpenSCAD became useless after this error. Jon On 9/13/2025 9:22 AM, nop head via Discuss wrote: > Increase the limit in the preferences. I have it set to 10 million. > > On Sat, 13 Sept 2025 at 13:54, Jon Bondy via Discuss > <discuss@lists.openscad.org> wrote: > > If you F5 the program, below, it should run without error.  Then > change the "h = 1" to "h = 10" at the "<<<<" comment, and you get this > > ====== > > Parsing design (AST generation)... > > Saved backup file: > C:/Users/jon/OneDrive/Documents/OpenSCAD/backups/Pick > Holder-backup-agrqbqpZ.scad > > Compiling design (CSG Tree generation)... > > Compiling design (CSG Products generation)... > > Geometries in cache: 6 > > Geometry cache size in bytes: 48096 > > CGAL Polyhedrons in cache: 0 > > CGAL cache size in bytes: 0 > > Compiling design (CSG Products normalization)... > > WARNING: Normalized tree is growing past 200000 elements. Aborting > normalization. > > Execution aborted > > ====== > > I am puzzled by the tree being too big (any recommendations?), but > after this happens, if I change h back to 1, and press F5, nothing > happens.  I have to quite out of OpenSCAD and re-start it in order > to try again. That is, OpenSCAD is essentially dead. > > I am running OpenSCAD > <https://urldefense.proofpoint.com/v2/url?u=https-3A__www.openscad.org_&d=DwMFaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=AsrE-c7ZR7B2Kyr3qgfvvppkCEBVsNmwEMndcrRSuOI&m=foGTpGcFH_5hvMYHm1xdlKHZX1cdgGhNIfdUQvLLyCSrE4No1Zn3HbulXFyZsw5K&s=YXa8zB8H0O8ViOOmYI-utGMabg4dUkBxY0Bekl1Ajcs&e=>version > 2025.09.12 > > ======== > > eps = 0.01; > $fa = 3; > $fs = 0.2; > inches = 25.4; > > di = 15.3 - 1; > th = 2; > ht = 100; > > difference() { >     union() { >         cylinder(h = ht, d = di + 2*th); >         translate([-1.4*di, 0, 0]) >             scale([2, 1, 1]) >                 rotate([0, 0, -45]) >                     cube([0.9*di, 0.9*di, ht]); >         } >     rotate([0, 0, -45]) >         cube(110); >     cylinder(h = ht + eps, d = di); >     for (z = [0:0.2:100]) { >         le = 0.5 * sin(60*z); >         translate([-di, le, z]) >             rotate([0, 90, 0]) >                 cylinder(h = 1, d = 1);  // <<<<< >             } >     } > > > > <https://urldefense.proofpoint.com/v2/url?u=http-3A__www.avg.com_email-2Dsignature-3Futm-5Fmedium-3Demail-26utm-5Fsource-3Dlink-26utm-5Fcampaign-3Dsig-2Demail-26utm-5Fcontent-3Demailclient&d=DwMFaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=AsrE-c7ZR7B2Kyr3qgfvvppkCEBVsNmwEMndcrRSuOI&m=foGTpGcFH_5hvMYHm1xdlKHZX1cdgGhNIfdUQvLLyCSrE4No1Zn3HbulXFyZsw5K&s=5SKJ2ZraWC16b6uWpi9nGHUoOStzb970X__XZ1FTKiE&e=> > Virus-free.www.avg.com > <https://urldefense.proofpoint.com/v2/url?u=http-3A__www.avg.com_email-2Dsignature-3Futm-5Fmedium-3Demail-26utm-5Fsource-3Dlink-26utm-5Fcampaign-3Dsig-2Demail-26utm-5Fcontent-3Demailclient&d=DwMFaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=AsrE-c7ZR7B2Kyr3qgfvvppkCEBVsNmwEMndcrRSuOI&m=foGTpGcFH_5hvMYHm1xdlKHZX1cdgGhNIfdUQvLLyCSrE4No1Zn3HbulXFyZsw5K&s=5SKJ2ZraWC16b6uWpi9nGHUoOStzb970X__XZ1FTKiE&e=> > > > <#m_-7671437648204620332_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org > > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email todiscuss-leave@lists.openscad.org -- This email has been checked for viruses by AVG antivirus software. www.avg.com
AM
Adrian Mariano
Sat, Sep 13, 2025 1:59 PM

Increasing the limit does seem to work, but the behavior here seems strange
and broken.  I confirmed that in both 2021.01 and a recent snapshot that it
fails with the warning about too many elements.  If you increase the limit
to 10 million then it succeeds and displays a message:

Normalized tree has 1020 elements!

which is a lot fewer than the 200k that triggered the problem. And like Jon
said, after you get that warning, OpenSCAD is useless. Clearing the cache
has no effect. Nothing will run, not even other simple files. So these
questions call out for answers::

  1. Why do we get a warning about too many elements when there aren't very
    many elements?

  2. Why does OpenSCAD go into a hung state after this warning?

On Sat, Sep 13, 2025 at 9:23 AM nop head via Discuss <
discuss@lists.openscad.org> wrote:

Increase the limit in the preferences. I have it set to 10 million.

On Sat, 13 Sept 2025 at 13:54, Jon Bondy via Discuss <
discuss@lists.openscad.org> wrote:

If you F5 the program, below, it should run without error.  Then change
the "h = 1" to "h = 10" at the "<<<<" comment, and you get this

======

Parsing design (AST generation)...

Saved backup file: C:/Users/jon/OneDrive/Documents/OpenSCAD/backups/Pick Holder-backup-agrqbqpZ.scad

Compiling design (CSG Tree generation)...

Compiling design (CSG Products generation)...

Geometries in cache: 6

Geometry cache size in bytes: 48096

CGAL Polyhedrons in cache: 0

CGAL cache size in bytes: 0

Compiling design (CSG Products normalization)...

WARNING: Normalized tree is growing past 200000 elements. Aborting normalization.

Execution aborted

======

I am puzzled by the tree being too big (any recommendations?), but after
this happens, if I change h back to 1, and press F5, nothing happens.  I
have to quite out of OpenSCAD and re-start it in order to try again.  That
is, OpenSCAD is essentially dead.

I am running OpenSCAD https://www.openscad.org/ version 2025.09.12

========

eps = 0.01;
$fa = 3;
$fs = 0.2;
inches = 25.4;

di = 15.3 - 1;
th = 2;
ht = 100;

difference() {
union() {
cylinder(h = ht, d = di + 2th);
translate([-1.4
di, 0, 0])
scale([2, 1, 1])
rotate([0, 0, -45])
cube([0.9di, 0.9di, ht]);
}
rotate([0, 0, -45])
cube(110);
cylinder(h = ht + eps, d = di);
for (z = [0:0.2:100]) {
le = 0.5 * sin(60*z);
translate([-di, le, z])
rotate([0, 90, 0])
cylinder(h = 1, d = 1);  // <<<<<
}
}

http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient
Virus-free.www.avg.com
http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient
<#m_3532377620774460456_m_-7671437648204620332_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

Increasing the limit does seem to work, but the behavior here seems strange and broken. I confirmed that in both 2021.01 and a recent snapshot that it fails with the warning about too many elements. If you increase the limit to 10 million then it succeeds and displays a message: Normalized tree has 1020 elements! which is a lot fewer than the 200k that triggered the problem. And like Jon said, after you get that warning, OpenSCAD is useless. Clearing the cache has no effect. Nothing will run, not even other simple files. So these questions call out for answers:: 1. Why do we get a warning about too many elements when there aren't very many elements? 2. Why does OpenSCAD go into a hung state after this warning? On Sat, Sep 13, 2025 at 9:23 AM nop head via Discuss < discuss@lists.openscad.org> wrote: > Increase the limit in the preferences. I have it set to 10 million. > > On Sat, 13 Sept 2025 at 13:54, Jon Bondy via Discuss < > discuss@lists.openscad.org> wrote: > >> If you F5 the program, below, it should run without error. Then change >> the "h = 1" to "h = 10" at the "<<<<" comment, and you get this >> >> ====== >> >> Parsing design (AST generation)... >> >> Saved backup file: C:/Users/jon/OneDrive/Documents/OpenSCAD/backups/Pick Holder-backup-agrqbqpZ.scad >> >> Compiling design (CSG Tree generation)... >> >> Compiling design (CSG Products generation)... >> >> Geometries in cache: 6 >> >> Geometry cache size in bytes: 48096 >> >> CGAL Polyhedrons in cache: 0 >> >> CGAL cache size in bytes: 0 >> >> Compiling design (CSG Products normalization)... >> >> WARNING: Normalized tree is growing past 200000 elements. Aborting normalization. >> >> Execution aborted >> >> ====== >> >> I am puzzled by the tree being too big (any recommendations?), but after >> this happens, if I change h back to 1, and press F5, nothing happens. I >> have to quite out of OpenSCAD and re-start it in order to try again. That >> is, OpenSCAD is essentially dead. >> >> I am running OpenSCAD <https://www.openscad.org/> version 2025.09.12 >> >> ======== >> >> eps = 0.01; >> $fa = 3; >> $fs = 0.2; >> inches = 25.4; >> >> di = 15.3 - 1; >> th = 2; >> ht = 100; >> >> difference() { >> union() { >> cylinder(h = ht, d = di + 2*th); >> translate([-1.4*di, 0, 0]) >> scale([2, 1, 1]) >> rotate([0, 0, -45]) >> cube([0.9*di, 0.9*di, ht]); >> } >> rotate([0, 0, -45]) >> cube(110); >> cylinder(h = ht + eps, d = di); >> for (z = [0:0.2:100]) { >> le = 0.5 * sin(60*z); >> translate([-di, le, z]) >> rotate([0, 90, 0]) >> cylinder(h = 1, d = 1); // <<<<< >> } >> } >> >> >> >> >> <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient> >> Virus-free.www.avg.com >> <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient> >> <#m_3532377620774460456_m_-7671437648204620332_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> >> _______________________________________________ >> OpenSCAD mailing list >> To unsubscribe send an email to discuss-leave@lists.openscad.org > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org
NH
nop head
Sat, Sep 13, 2025 3:13 PM

With it set to 10 million I never see the error. It does seem a bug if it
stops OpenSCAD working though.

On Sat, 13 Sept 2025, 15:00 Adrian Mariano via Discuss, <
discuss@lists.openscad.org> wrote:

Increasing the limit does seem to work, but the behavior here seems
strange and broken.  I confirmed that in both 2021.01 and a recent snapshot
that it fails with the warning about too many elements.  If you increase
the limit to 10 million then it succeeds and displays a message:

Normalized tree has 1020 elements!

which is a lot fewer than the 200k that triggered the problem. And like
Jon said, after you get that warning, OpenSCAD is useless. Clearing the
cache has no effect. Nothing will run, not even other simple files. So
these questions call out for answers::

  1. Why do we get a warning about too many elements when there aren't very
    many elements?

  2. Why does OpenSCAD go into a hung state after this warning?

On Sat, Sep 13, 2025 at 9:23 AM nop head via Discuss <
discuss@lists.openscad.org> wrote:

Increase the limit in the preferences. I have it set to 10 million.

On Sat, 13 Sept 2025 at 13:54, Jon Bondy via Discuss <
discuss@lists.openscad.org> wrote:

If you F5 the program, below, it should run without error.  Then change
the "h = 1" to "h = 10" at the "<<<<" comment, and you get this

======

Parsing design (AST generation)...

Saved backup file: C:/Users/jon/OneDrive/Documents/OpenSCAD/backups/Pick Holder-backup-agrqbqpZ.scad

Compiling design (CSG Tree generation)...

Compiling design (CSG Products generation)...

Geometries in cache: 6

Geometry cache size in bytes: 48096

CGAL Polyhedrons in cache: 0

CGAL cache size in bytes: 0

Compiling design (CSG Products normalization)...

WARNING: Normalized tree is growing past 200000 elements. Aborting normalization.

Execution aborted

======

I am puzzled by the tree being too big (any recommendations?), but after
this happens, if I change h back to 1, and press F5, nothing happens.  I
have to quite out of OpenSCAD and re-start it in order to try again.  That
is, OpenSCAD is essentially dead.

I am running OpenSCAD https://www.openscad.org/ version 2025.09.12

========

eps = 0.01;
$fa = 3;
$fs = 0.2;
inches = 25.4;

di = 15.3 - 1;
th = 2;
ht = 100;

difference() {
union() {
cylinder(h = ht, d = di + 2th);
translate([-1.4
di, 0, 0])
scale([2, 1, 1])
rotate([0, 0, -45])
cube([0.9di, 0.9di, ht]);
}
rotate([0, 0, -45])
cube(110);
cylinder(h = ht + eps, d = di);
for (z = [0:0.2:100]) {
le = 0.5 * sin(60*z);
translate([-di, le, z])
rotate([0, 90, 0])
cylinder(h = 1, d = 1);  // <<<<<
}
}

http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient
Virus-free.www.avg.com
http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient
<#m_7424113970590188521_m_3532377620774460456_m_-7671437648204620332_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

With it set to 10 million I never see the error. It does seem a bug if it stops OpenSCAD working though. On Sat, 13 Sept 2025, 15:00 Adrian Mariano via Discuss, < discuss@lists.openscad.org> wrote: > Increasing the limit does seem to work, but the behavior here seems > strange and broken. I confirmed that in both 2021.01 and a recent snapshot > that it fails with the warning about too many elements. If you increase > the limit to 10 million then it succeeds and displays a message: > > > Normalized tree has 1020 elements! > > which is a lot fewer than the 200k that triggered the problem. And like > Jon said, after you get that warning, OpenSCAD is useless. Clearing the > cache has no effect. Nothing will run, not even other simple files. So > these questions call out for answers:: > > 1. Why do we get a warning about too many elements when there aren't very > many elements? > > 2. Why does OpenSCAD go into a hung state after this warning? > > > > On Sat, Sep 13, 2025 at 9:23 AM nop head via Discuss < > discuss@lists.openscad.org> wrote: > >> Increase the limit in the preferences. I have it set to 10 million. >> >> On Sat, 13 Sept 2025 at 13:54, Jon Bondy via Discuss < >> discuss@lists.openscad.org> wrote: >> >>> If you F5 the program, below, it should run without error. Then change >>> the "h = 1" to "h = 10" at the "<<<<" comment, and you get this >>> >>> ====== >>> >>> Parsing design (AST generation)... >>> >>> Saved backup file: C:/Users/jon/OneDrive/Documents/OpenSCAD/backups/Pick Holder-backup-agrqbqpZ.scad >>> >>> Compiling design (CSG Tree generation)... >>> >>> Compiling design (CSG Products generation)... >>> >>> Geometries in cache: 6 >>> >>> Geometry cache size in bytes: 48096 >>> >>> CGAL Polyhedrons in cache: 0 >>> >>> CGAL cache size in bytes: 0 >>> >>> Compiling design (CSG Products normalization)... >>> >>> WARNING: Normalized tree is growing past 200000 elements. Aborting normalization. >>> >>> Execution aborted >>> >>> ====== >>> >>> I am puzzled by the tree being too big (any recommendations?), but after >>> this happens, if I change h back to 1, and press F5, nothing happens. I >>> have to quite out of OpenSCAD and re-start it in order to try again. That >>> is, OpenSCAD is essentially dead. >>> >>> I am running OpenSCAD <https://www.openscad.org/> version 2025.09.12 >>> >>> ======== >>> >>> eps = 0.01; >>> $fa = 3; >>> $fs = 0.2; >>> inches = 25.4; >>> >>> di = 15.3 - 1; >>> th = 2; >>> ht = 100; >>> >>> difference() { >>> union() { >>> cylinder(h = ht, d = di + 2*th); >>> translate([-1.4*di, 0, 0]) >>> scale([2, 1, 1]) >>> rotate([0, 0, -45]) >>> cube([0.9*di, 0.9*di, ht]); >>> } >>> rotate([0, 0, -45]) >>> cube(110); >>> cylinder(h = ht + eps, d = di); >>> for (z = [0:0.2:100]) { >>> le = 0.5 * sin(60*z); >>> translate([-di, le, z]) >>> rotate([0, 90, 0]) >>> cylinder(h = 1, d = 1); // <<<<< >>> } >>> } >>> >>> >>> >>> >>> <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient> >>> Virus-free.www.avg.com >>> <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient> >>> <#m_7424113970590188521_m_3532377620774460456_m_-7671437648204620332_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> >>> _______________________________________________ >>> OpenSCAD mailing list >>> To unsubscribe send an email to discuss-leave@lists.openscad.org >> >> _______________________________________________ >> OpenSCAD mailing list >> To unsubscribe send an email to discuss-leave@lists.openscad.org > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org
GH
gene heskett
Sat, Sep 13, 2025 4:10 PM

On 9/13/25 11:14, nop head via Discuss wrote:

With it set to 10 million I never see the error. It does seem a bug if it
stops OpenSCAD working though.

On Sat, 13 Sept 2025, 15:00 Adrian Mariano via Discuss, <
discuss@lists.openscad.org> wrote:

Increasing the limit does seem to work, but the behavior here seems
strange and broken.  I confirmed that in both 2021.01 and a recent snapshot
that it fails with the warning about too many elements.  If you increase
the limit to 10 million then it succeeds and displays a message:

Normalized tree has 1020 elements!

which is a lot fewer than the 200k that triggered the problem. And like
Jon said, after you get that warning, OpenSCAD is useless. Clearing the
cache has no effect. Nothing will run, not even other simple files. So
these questions call out for answers::

  1. Why do we get a warning about too many elements when there aren't very
    many elements?

  2. Why does OpenSCAD go into a hung state after this warning?

On Sat, Sep 13, 2025 at 9:23 AM nop head via Discuss <
discuss@lists.openscad.org> wrote:

Increase the limit in the preferences. I have it set to 10 million.

On Sat, 13 Sept 2025 at 13:54, Jon Bondy via Discuss <
discuss@lists.openscad.org> wrote:

If you F5 the program, below, it should run without error.  Then change
the "h = 1" to "h = 10" at the "<<<<" comment, and you get this

======

Parsing design (AST generation)...

Saved backup file: C:/Users/jon/OneDrive/Documents/OpenSCAD/backups/Pick Holder-backup-agrqbqpZ.scad

Compiling design (CSG Tree generation)...

Compiling design (CSG Products generation)...

Geometries in cache: 6

Geometry cache size in bytes: 48096

CGAL Polyhedrons in cache: 0

CGAL cache size in bytes: 0

Compiling design (CSG Products normalization)...

WARNING: Normalized tree is growing past 200000 elements. Aborting normalization.

Execution aborted

======

I am puzzled by the tree being too big (any recommendations?), but after
this happens, if I change h back to 1, and press F5, nothing happens.  I
have to quite out of OpenSCAD and re-start it in order to try again.  That
is, OpenSCAD is essentially dead.

I am running OpenSCADhttps://www.openscad.org/ version 2025.09.12

whereas I am running an earlier 2025.04.28.ai25192 from before all this
hullabaloo started. So as a small help, the following code renders for
both F5 with a dirty base and F6 is clean, I could print it if I so
desired but it would take quite a bite out of a $22 roll of petg. What
is it intended to be?

========

eps = 0.01;
$fa = 3;
$fs = 0.2;
inches = 25.4;

di = 15.3 - 1;
th = 2;
ht = 100;

difference() {
union() {
cylinder(h = ht, d = di + 2th);
translate([-1.4
di, 0, 0])
scale([2, 1, 1])
rotate([0, 0, -45])
cube([0.9di, 0.9di, ht]);
}
rotate([0, 0, -45])
cube(110);
cylinder(h = ht + eps, d = di);
for (z = [0:0.2:100]) {
le = 0.5 * sin(60*z);
translate([-di, le, z])
rotate([0, 90, 0])
cylinder(h = 1, d = 1);  // <<<<<
}
}

http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient
Virus-free.www.avg.com
http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient
<#m_7424113970590188521_m_3532377620774460456_m_-7671437648204620332_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>


OpenSCAD mailing list
To unsubscribe send an email todiscuss-leave@lists.openscad.org


OpenSCAD mailing list
To unsubscribe send an email todiscuss-leave@lists.openscad.org


OpenSCAD mailing list
To unsubscribe send an email todiscuss-leave@lists.openscad.org


OpenSCAD mailing list
To unsubscribe send an email todiscuss-leave@lists.openscad.org

Cheers, Gene Heskett, CET.

"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.

  • Louis D. Brandeis
On 9/13/25 11:14, nop head via Discuss wrote: > With it set to 10 million I never see the error. It does seem a bug if it > stops OpenSCAD working though. > > On Sat, 13 Sept 2025, 15:00 Adrian Mariano via Discuss, < > discuss@lists.openscad.org> wrote: > >> Increasing the limit does seem to work, but the behavior here seems >> strange and broken. I confirmed that in both 2021.01 and a recent snapshot >> that it fails with the warning about too many elements. If you increase >> the limit to 10 million then it succeeds and displays a message: >> >> >> Normalized tree has 1020 elements! >> >> which is a lot fewer than the 200k that triggered the problem. And like >> Jon said, after you get that warning, OpenSCAD is useless. Clearing the >> cache has no effect. Nothing will run, not even other simple files. So >> these questions call out for answers:: >> >> 1. Why do we get a warning about too many elements when there aren't very >> many elements? >> >> 2. Why does OpenSCAD go into a hung state after this warning? >> >> >> >> On Sat, Sep 13, 2025 at 9:23 AM nop head via Discuss < >> discuss@lists.openscad.org> wrote: >> >>> Increase the limit in the preferences. I have it set to 10 million. >>> >>> On Sat, 13 Sept 2025 at 13:54, Jon Bondy via Discuss < >>> discuss@lists.openscad.org> wrote: >>> >>>> If you F5 the program, below, it should run without error. Then change >>>> the "h = 1" to "h = 10" at the "<<<<" comment, and you get this >>>> >>>> ====== >>>> >>>> Parsing design (AST generation)... >>>> >>>> Saved backup file: C:/Users/jon/OneDrive/Documents/OpenSCAD/backups/Pick Holder-backup-agrqbqpZ.scad >>>> >>>> Compiling design (CSG Tree generation)... >>>> >>>> Compiling design (CSG Products generation)... >>>> >>>> Geometries in cache: 6 >>>> >>>> Geometry cache size in bytes: 48096 >>>> >>>> CGAL Polyhedrons in cache: 0 >>>> >>>> CGAL cache size in bytes: 0 >>>> >>>> Compiling design (CSG Products normalization)... >>>> >>>> WARNING: Normalized tree is growing past 200000 elements. Aborting normalization. >>>> >>>> Execution aborted >>>> >>>> ====== >>>> >>>> I am puzzled by the tree being too big (any recommendations?), but after >>>> this happens, if I change h back to 1, and press F5, nothing happens. I >>>> have to quite out of OpenSCAD and re-start it in order to try again. That >>>> is, OpenSCAD is essentially dead. >>>> >>>> I am running OpenSCAD<https://www.openscad.org/> version 2025.09.12 whereas I am running an earlier 2025.04.28.ai25192 from before all this hullabaloo started. So as a small help, the following code renders for both F5 with a dirty base and F6 is clean, I could print it if I so desired but it would take quite a bite out of a $22 roll of petg. What is it intended to be? >>>> >>>> ======== >>>> >>>> eps = 0.01; >>>> $fa = 3; >>>> $fs = 0.2; >>>> inches = 25.4; >>>> >>>> di = 15.3 - 1; >>>> th = 2; >>>> ht = 100; >>>> >>>> difference() { >>>> union() { >>>> cylinder(h = ht, d = di + 2*th); >>>> translate([-1.4*di, 0, 0]) >>>> scale([2, 1, 1]) >>>> rotate([0, 0, -45]) >>>> cube([0.9*di, 0.9*di, ht]); >>>> } >>>> rotate([0, 0, -45]) >>>> cube(110); >>>> cylinder(h = ht + eps, d = di); >>>> for (z = [0:0.2:100]) { >>>> le = 0.5 * sin(60*z); >>>> translate([-di, le, z]) >>>> rotate([0, 90, 0]) >>>> cylinder(h = 1, d = 1); // <<<<< >>>> } >>>> } >>>> >>>> >>>> >>>> >>>> <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient> >>>> Virus-free.www.avg.com >>>> <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient> >>>> <#m_7424113970590188521_m_3532377620774460456_m_-7671437648204620332_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> >>>> _______________________________________________ >>>> OpenSCAD mailing list >>>> To unsubscribe send an email todiscuss-leave@lists.openscad.org >>> _______________________________________________ >>> OpenSCAD mailing list >>> To unsubscribe send an email todiscuss-leave@lists.openscad.org >> _______________________________________________ >> OpenSCAD mailing list >> To unsubscribe send an email todiscuss-leave@lists.openscad.org > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email todiscuss-leave@lists.openscad.org Cheers, Gene Heskett, CET. -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author, 1940) If we desire respect for the law, we must first make the law respectable. - Louis D. Brandeis
L
larry
Sat, Sep 13, 2025 7:33 PM

On Sat, 2025-09-13 at 12:10 -0400, gene heskett via Discuss wrote:

I am running OpenSCAD https://www.openscad.org/ version
2025.09.12

 whereas I am running an earlier 2025.04.28.ai25192 from before all
this hullabaloo started. So as a small help, the following code
renders for both F5 with a dirty base and F6 is clean, I could print
it if I so desired but it would take quite a bite out  of a $22 roll
of petg.  What is it intended to be?

That's weird.

I'm running OpenSCAD version 2025.08.19.ai26698.
When I slice it in Bambu Studio, ie tells me it will take 14.5g of
filament.

I tried a test on the 'h=' changes. If I set 10 million in preferences
and change h=1 to h=1000000 (yes, 1 million) then preview with the # in
that line, it shows the million on the x axis. That's an assumption, I
scrolled as far as I had patience for.

========

eps = 0.01;
$fa = 3;
$fs = 0.2;
inches = 25.4;

di = 15.3 - 1;
th = 2;
ht = 100;

difference() {
    union() {
        cylinder(h = ht, d = di + 2th);
        translate([-1.4
di, 0, 0])
            scale([2, 1, 1])
                rotate([0, 0, -45])
                    cube([0.9di, 0.9di, ht]);
        }
    rotate([0, 0, -45])
        cube(110);
    cylinder(h = ht + eps, d = di);
    for (z = [0:0.2:100]) {
        le = 0.5 * sin(60*z);
        translate([-di, le, z])
            rotate([0, 90, 0])
                cylinder(h = 1, d = 1);  // <<<<<
            }
    }

<
http://www.avg.com/email-signature?utm_medium=email&utm_source
=link&utm_campaign=sig-email&utm_content=emailclient>
Virus-free.www.avg.com
<
http://www.avg.com/email-signature?utm_medium=email&utm_source
=link&utm_campaign=sig-email&utm_content=emailclient>
<#m_7424113970590188521_m_3532377620774460456_m_-
7671437648204620332_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>


OpenSCAD mailing list
To unsubscribe send an email to
discuss-leave@lists.openscad.org


OpenSCAD mailing list
To unsubscribe send an email to
discuss-leave@lists.openscad.org


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

  
 


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

 
Cheers, Gene Heskett, CET.


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

On Sat, 2025-09-13 at 12:10 -0400, gene heskett via Discuss wrote: > > > > > I am running OpenSCAD <https://www.openscad.org/> version > > > > > 2025.09.12 >  whereas I am running an earlier 2025.04.28.ai25192 from before all > this hullabaloo started. So as a small help, the following code > renders for both F5 with a dirty base and F6 is clean, I could print > it if I so desired but it would take quite a bite out of a $22 roll > of petg. What is it intended to be? > > > > That's weird. I'm running OpenSCAD version 2025.08.19.ai26698. When I slice it in Bambu Studio, ie tells me it will take 14.5g of filament. I tried a test on the 'h=' changes. If I set 10 million in preferences and change h=1 to h=1000000 (yes, 1 million) then preview with the # in that line, it shows the million on the x axis. That's an assumption, I scrolled as far as I had patience for. > > > > > ======== > > > > > > > > > > eps = 0.01; > > > > > $fa = 3; > > > > > $fs = 0.2; > > > > > inches = 25.4; > > > > > > > > > > di = 15.3 - 1; > > > > > th = 2; > > > > > ht = 100; > > > > > > > > > > difference() { > > > > >     union() { > > > > >         cylinder(h = ht, d = di + 2*th); > > > > >         translate([-1.4*di, 0, 0]) > > > > >             scale([2, 1, 1]) > > > > >                 rotate([0, 0, -45]) > > > > >                     cube([0.9*di, 0.9*di, ht]); > > > > >         } > > > > >     rotate([0, 0, -45]) > > > > >         cube(110); > > > > >     cylinder(h = ht + eps, d = di); > > > > >     for (z = [0:0.2:100]) { > > > > >         le = 0.5 * sin(60*z); > > > > >         translate([-di, le, z]) > > > > >             rotate([0, 90, 0]) > > > > >                 cylinder(h = 1, d = 1); // <<<<< > > > > >             } > > > > >     } > > > > > > > > > > > > > > > > > > > > > > > > > < > > > > > http://www.avg.com/email-signature?utm_medium=email&utm_source > > > > > =link&utm_campaign=sig-email&utm_content=emailclient> > > > > > Virus-free.www.avg.com > > > > > < > > > > > http://www.avg.com/email-signature?utm_medium=email&utm_source > > > > > =link&utm_campaign=sig-email&utm_content=emailclient> > > > > > <#m_7424113970590188521_m_3532377620774460456_m_- > > > > > 7671437648204620332_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> > > > > > _______________________________________________ > > > > > OpenSCAD mailing list > > > > > To unsubscribe send an email to > > > > > discuss-leave@lists.openscad.org > > > > _______________________________________________ > > > > OpenSCAD mailing list > > > > To unsubscribe send an email to > > > > discuss-leave@lists.openscad.org > > > _______________________________________________ > > > OpenSCAD mailing list > > > To unsubscribe send an email to discuss-leave@lists.openscad.org > >    > >   > > _______________________________________________ > > OpenSCAD mailing list > > To unsubscribe send an email to discuss-leave@lists.openscad.org >   > Cheers, Gene Heskett, CET. > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org
GH
gene heskett
Sat, Sep 13, 2025 11:13 PM

On 9/13/25 15:34, larry via Discuss wrote:

On Sat, 2025-09-13 at 12:10 -0400, gene heskett via Discuss wrote:

I am running OpenSCADhttps://www.openscad.org/ version
2025.09.12

 whereas I am running an earlier 2025.04.28.ai25192 from before all
this hullabaloo started. So as a small help, the following code
renders for both F5 with a dirty base and F6 is clean, I could print
it if I so desired but it would take quite a bite out  of a $22 roll
of petg.  What is it intended to be?

F6 render time was

Total rendering time: 0:00:00.122

So as posted, this code is good. No errors logged. So we have a valid
beginning point to do a bisect to nail down the failing commit. But my
box is not totally happy with bookworm so I'll defer to somebody with a
dead stable bookworm or trixie install.

That's weird.

I'm running OpenSCAD version 2025.08.19.ai26698.
When I slice it in Bambu Studio, ie tells me it will take 14.5g of
filament.

No knowledge of the bamboo studio at all, I'm doing this basically to
put an it works anchor point earlier that the current month issue.. If I
were to print it, I'd feed it to prusaslicer 2.8.1 which still works on
my bookworm.  prusa has switched to flatpak and I've tried 2 or three
versions (2.9.0, 2.9.1, 2.9.2 since that locks up tight, requiring a
reboot to recover a functional machine.

I tried a test on the 'h=' changes. If I set 10 million in preferences
and change h=1 to h=1000000 (yes, 1 million) then preview with the # in
that line, it shows the million on the x axis. That's an assumption, I
scrolled as far as I had patience for.

========

eps = 0.01;
$fa = 3;
$fs = 0.2;
inches = 25.4;

di = 15.3 - 1;
th = 2;
ht = 100;

difference() {
    union() {
        cylinder(h = ht, d = di + 2th);
        translate([-1.4
di, 0, 0])
            scale([2, 1, 1])
                rotate([0, 0, -45])
                    cube([0.9di, 0.9di, ht]);
        }
    rotate([0, 0, -45])
        cube(110);
    cylinder(h = ht + eps, d = di);
    for (z = [0:0.2:100]) {
        le = 0.5 * sin(60*z);
        translate([-di, le, z])
            rotate([0, 90, 0])
                cylinder(h = 1, d = 1);  // <<<<<
            }
    }

< http://www.avg.com/email-signature?utm_medium=email&utm_source
=link&utm_campaign=sig-email&utm_content=emailclient>
Virus-free.www.avg.com
< http://www.avg.com/email-signature?utm_medium=email&utm_source
=link&utm_campaign=sig-email&utm_content=emailclient>
<#m_7424113970590188521_m_3532377620774460456_m_-
7671437648204620332_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>


OpenSCAD mailing list
To unsubscribe send an email to
discuss-leave@lists.openscad.org


OpenSCAD mailing list
To unsubscribe send an email to
discuss-leave@lists.openscad.org


OpenSCAD mailing list
To unsubscribe send an email todiscuss-leave@lists.openscad.org


OpenSCAD mailing list
To unsubscribe send an email todiscuss-leave@lists.openscad.org

Cheers, Gene Heskett, CET.


OpenSCAD mailing list
To unsubscribe send an email todiscuss-leave@lists.openscad.org


OpenSCAD mailing list
To unsubscribe send an email todiscuss-leave@lists.openscad.org

Cheers, Gene Heskett, CET.

"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.

  • Louis D. Brandeis
On 9/13/25 15:34, larry via Discuss wrote: > On Sat, 2025-09-13 at 12:10 -0400, gene heskett via Discuss wrote: >>>>>> I am running OpenSCAD<https://www.openscad.org/> version >>>>>> 2025.09.12 >>  whereas I am running an earlier 2025.04.28.ai25192 from before all >> this hullabaloo started. So as a small help, the following code >> renders for both F5 with a dirty base and F6 is clean, I could print >> it if I so desired but it would take quite a bite out of a $22 roll >> of petg. What is it intended to be? F6 render time was Total rendering time: 0:00:00.122 So as posted, this code is good. No errors logged. So we have a valid beginning point to do a bisect to nail down the failing commit. But my box is not totally happy with bookworm so I'll defer to somebody with a dead stable bookworm or trixie install. > That's weird. > > I'm running OpenSCAD version 2025.08.19.ai26698. > When I slice it in Bambu Studio, ie tells me it will take 14.5g of > filament. No knowledge of the bamboo studio at all, I'm doing this basically to put an it works anchor point earlier that the current month issue.. If I were to print it, I'd feed it to prusaslicer 2.8.1 which still works on my bookworm.  prusa has switched to flatpak and I've tried 2 or three versions (2.9.0, 2.9.1, 2.9.2 since that locks up tight, requiring a reboot to recover a functional machine. > > I tried a test on the 'h=' changes. If I set 10 million in preferences > and change h=1 to h=1000000 (yes, 1 million) then preview with the # in > that line, it shows the million on the x axis. That's an assumption, I > scrolled as far as I had patience for. > >>>>>> ======== >>>>>> >>>>>> eps = 0.01; >>>>>> $fa = 3; >>>>>> $fs = 0.2; >>>>>> inches = 25.4; >>>>>> >>>>>> di = 15.3 - 1; >>>>>> th = 2; >>>>>> ht = 100; >>>>>> >>>>>> difference() { >>>>>>     union() { >>>>>>         cylinder(h = ht, d = di + 2*th); >>>>>>         translate([-1.4*di, 0, 0]) >>>>>>             scale([2, 1, 1]) >>>>>>                 rotate([0, 0, -45]) >>>>>>                     cube([0.9*di, 0.9*di, ht]); >>>>>>         } >>>>>>     rotate([0, 0, -45]) >>>>>>         cube(110); >>>>>>     cylinder(h = ht + eps, d = di); >>>>>>     for (z = [0:0.2:100]) { >>>>>>         le = 0.5 * sin(60*z); >>>>>>         translate([-di, le, z]) >>>>>>             rotate([0, 90, 0]) >>>>>>                 cylinder(h = 1, d = 1); // <<<<< >>>>>>             } >>>>>>     } >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> < http://www.avg.com/email-signature?utm_medium=email&utm_source >>>>>> =link&utm_campaign=sig-email&utm_content=emailclient> >>>>>> Virus-free.www.avg.com >>>>>> < http://www.avg.com/email-signature?utm_medium=email&utm_source >>>>>> =link&utm_campaign=sig-email&utm_content=emailclient> >>>>>> <#m_7424113970590188521_m_3532377620774460456_m_- >>>>>> 7671437648204620332_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> >>>>>> _______________________________________________ >>>>>> OpenSCAD mailing list >>>>>> To unsubscribe send an email to >>>>>> discuss-leave@lists.openscad.org >>>>> _______________________________________________ >>>>> OpenSCAD mailing list >>>>> To unsubscribe send an email to >>>>> discuss-leave@lists.openscad.org >>>> _______________________________________________ >>>> OpenSCAD mailing list >>>> To unsubscribe send an email todiscuss-leave@lists.openscad.org >>> >>> >>> _______________________________________________ >>> OpenSCAD mailing list >>> To unsubscribe send an email todiscuss-leave@lists.openscad.org >> >> Cheers, Gene Heskett, CET. >> _______________________________________________ >> OpenSCAD mailing list >> To unsubscribe send an email todiscuss-leave@lists.openscad.org > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email todiscuss-leave@lists.openscad.org Cheers, Gene Heskett, CET. -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author, 1940) If we desire respect for the law, we must first make the law respectable. - Louis D. Brandeis
LM
Leonard Martin Struttmann
Sat, Sep 13, 2025 11:41 PM

Coincidentally, tonight I was working on a model with the default number of
elements and received the error:

WARNING: Normalized tree is growing past 200000 elements. Aborting
normalization.

Execution aborted

I, too, found that OpenSCAD was then dead and needed to be restarted.

It appears that a github issue has already been generated for thi: #3504

Len

On Sat, Sep 13, 2025 at 6:13 PM gene heskett via Discuss <
discuss@lists.openscad.org> wrote:

On 9/13/25 15:34, larry via Discuss wrote:

On Sat, 2025-09-13 at 12:10 -0400, gene heskett via Discuss wrote:

I am running OpenSCAD https://www.openscad.org/ https://www.openscad.org/ version
2025.09.12

whereas I am running an earlier 2025.04.28.ai25192 from before all
this hullabaloo started. So as a small help, the following code
renders for both F5 with a dirty base and F6 is clean, I could print
it if I so desired but it would take quite a bite out  of a $22 roll
of petg.  What is it intended to be?

F6 render time was

Total rendering time: 0:00:00.122

So as posted, this code is good. No errors logged. So we have a valid
beginning point to do a bisect to nail down the failing commit. But my box
is not totally happy with bookworm so I'll defer to somebody with a dead
stable bookworm or trixie install.

That's weird.

I'm running OpenSCAD version 2025.08.19.ai26698.
When I slice it in Bambu Studio, ie tells me it will take 14.5g of
filament.

No knowledge of the bamboo studio at all, I'm doing this basically to put
an it works anchor point earlier that the current month issue.. If I were
to print it, I'd feed it to prusaslicer 2.8.1 which still works on my
bookworm.  prusa has switched to flatpak and I've tried 2 or three versions
(2.9.0, 2.9.1, 2.9.2 since that locks up tight, requiring a reboot to
recover a functional machine.

I tried a test on the 'h=' changes. If I set 10 million in preferences
and change h=1 to h=1000000 (yes, 1 million) then preview with the # in
that line, it shows the million on the x axis. That's an assumption, I
scrolled as far as I had patience for.

========

eps = 0.01;
$fa = 3;
$fs = 0.2;
inches = 25.4;

di = 15.3 - 1;
th = 2;
ht = 100;

difference() {
union() {
cylinder(h = ht, d = di + 2th);
translate([-1.4
di, 0, 0])
scale([2, 1, 1])
rotate([0, 0, -45])
cube([0.9di, 0.9di, ht]);
}
rotate([0, 0, -45])
cube(110);
cylinder(h = ht + eps, d = di);
for (z = [0:0.2:100]) {
le = 0.5 * sin(60*z);
translate([-di, le, z])
rotate([0, 90, 0])
cylinder(h = 1, d = 1);  // <<<<<
}
}

<
http://www.avg.com/email-signature?utm_medium=email&utm_source
=link&utm_campaign=sig-email&utm_content=emailclient> http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclientVirus-free.www.avg.com<
http://www.avg.com/email-signature?utm_medium=email&utm_source
=link&utm_campaign=sig-email&utm_content=emailclient> http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient
<#m_7424113970590188521_m_3532377620774460456_m_-
7671437648204620332_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>


OpenSCAD mailing list
To unsubscribe send an email todiscuss-leave@lists.openscad.org


OpenSCAD mailing list
To unsubscribe send an email todiscuss-leave@lists.openscad.org


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

Cheers, Gene Heskett, CET.


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

Cheers, Gene Heskett, CET.

"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.

  • Louis D. Brandeis

OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

Coincidentally, tonight I was working on a model with the default number of elements and received the error: WARNING: Normalized tree is growing past 200000 elements. Aborting normalization. Execution aborted I, too, found that OpenSCAD was then dead and needed to be restarted. It appears that a github issue has already been generated for thi: #3504 Len On Sat, Sep 13, 2025 at 6:13 PM gene heskett via Discuss < discuss@lists.openscad.org> wrote: > On 9/13/25 15:34, larry via Discuss wrote: > > On Sat, 2025-09-13 at 12:10 -0400, gene heskett via Discuss wrote: > > I am running OpenSCAD <https://www.openscad.org/> <https://www.openscad.org/> version > 2025.09.12 > > whereas I am running an earlier 2025.04.28.ai25192 from before all > this hullabaloo started. So as a small help, the following code > renders for both F5 with a dirty base and F6 is clean, I could print > it if I so desired but it would take quite a bite out of a $22 roll > of petg. What is it intended to be? > > F6 render time was > > Total rendering time: 0:00:00.122 > > So as posted, this code is good. No errors logged. So we have a valid > beginning point to do a bisect to nail down the failing commit. But my box > is not totally happy with bookworm so I'll defer to somebody with a dead > stable bookworm or trixie install. > > That's weird. > > I'm running OpenSCAD version 2025.08.19.ai26698. > When I slice it in Bambu Studio, ie tells me it will take 14.5g of > filament. > > No knowledge of the bamboo studio at all, I'm doing this basically to put > an it works anchor point earlier that the current month issue.. If I were > to print it, I'd feed it to prusaslicer 2.8.1 which still works on my > bookworm. prusa has switched to flatpak and I've tried 2 or three versions > (2.9.0, 2.9.1, 2.9.2 since that locks up tight, requiring a reboot to > recover a functional machine. > > I tried a test on the 'h=' changes. If I set 10 million in preferences > and change h=1 to h=1000000 (yes, 1 million) then preview with the # in > that line, it shows the million on the x axis. That's an assumption, I > scrolled as far as I had patience for. > > > ======== > > eps = 0.01; > $fa = 3; > $fs = 0.2; > inches = 25.4; > > di = 15.3 - 1; > th = 2; > ht = 100; > > difference() { > union() { > cylinder(h = ht, d = di + 2*th); > translate([-1.4*di, 0, 0]) > scale([2, 1, 1]) > rotate([0, 0, -45]) > cube([0.9*di, 0.9*di, ht]); > } > rotate([0, 0, -45]) > cube(110); > cylinder(h = ht + eps, d = di); > for (z = [0:0.2:100]) { > le = 0.5 * sin(60*z); > translate([-di, le, z]) > rotate([0, 90, 0]) > cylinder(h = 1, d = 1); // <<<<< > } > } > > > > < > http://www.avg.com/email-signature?utm_medium=email&utm_source > =link&utm_campaign=sig-email&utm_content=emailclient> <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient>Virus-free.www.avg.com< > http://www.avg.com/email-signature?utm_medium=email&utm_source > =link&utm_campaign=sig-email&utm_content=emailclient> <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient> > <#m_7424113970590188521_m_3532377620774460456_m_- > 7671437648204620332_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email todiscuss-leave@lists.openscad.org > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email todiscuss-leave@lists.openscad.org > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org > > > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org > > > Cheers, Gene Heskett, CET. > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org > > > Cheers, Gene Heskett, CET. > -- > "There are four boxes to be used in defense of liberty: > soap, ballot, jury, and ammo. Please use in that order." > -Ed Howdershelt (Author, 1940) > If we desire respect for the law, we must first make the law respectable. > - Louis D. Brandeis > > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org
JB
Jordan Brown
Sun, Sep 14, 2025 4:28 AM

Not duplicated on 2025.09.12 on Windows.

But there is a related weird behavior.

With that h=1, it reports that the normalized tree has 507 elements. 
With h>5, it reports 1008 elements.

And indeed, the "CSG Products Dump Dump" [sic] grows from ~23K to ~38K.

That behavior I see in 2025.09.12, and in 2021.01.

I don't understand that end of the program, so I don't know why that
would be, but it seems strange.  And it's not new.

Not duplicated on 2025.09.12 on Windows. But there *is* a related weird behavior. With that h=1, it reports that the normalized tree has 507 elements.  With h>5, it reports 1008 elements. And indeed, the "CSG Products Dump Dump" [sic] grows from ~23K to ~38K. *That* behavior I see in 2025.09.12, and in 2021.01. I don't understand that end of the program, so I don't know why that would be, but it seems strange.  And it's not new.
JJ
jon jonbondy.com
Sun, Sep 14, 2025 11:33 AM

Interesting that others have replicated this while you cannot.  I
installed the latest build before posting to the list.

On 9/14/2025 12:28 AM, Jordan Brown wrote:

Not duplicated on 2025.09.12 on Windows.

But there is a related weird behavior.

With that h=1, it reports that the normalized tree has 507 elements. 
With h>5, it reports 1008 elements.

And indeed, the "CSG Products Dump Dump" [sic] grows from ~23K to ~38K.

That behavior I see in 2025.09.12, and in 2021.01.

I don't understand that end of the program, so I don't know why that
would be, but it seems strange.  And it's not new.

Interesting that others have replicated this while you cannot.  I installed the latest build before posting to the list. On 9/14/2025 12:28 AM, Jordan Brown wrote: > Not duplicated on 2025.09.12 on Windows. > > But there *is* a related weird behavior. > > With that h=1, it reports that the normalized tree has 507 elements.  > With h>5, it reports 1008 elements. > > And indeed, the "CSG Products Dump Dump" [sic] grows from ~23K to ~38K. > > *That* behavior I see in 2025.09.12, and in 2021.01. > > I don't understand that end of the program, so I don't know why that > would be, but it seems strange.  And it's not new.
AM
Adrian Mariano
Sun, Sep 14, 2025 1:16 PM

Jon, you don't say which OS you're running on.  I'm running on Linux and my
snapshot is 2025.8.17.  And as noted, with the default limit of 100k I get
the warning and hang in both that version and in 2021.01.  I noticed that
the number of elements changed, which seemed odd to me.  But also, if the
number of elements is around 1000, how is it over 200k?  I didn't
understand that.

On Sun, Sep 14, 2025 at 7:34 AM jon jonbondy.com via Discuss <
discuss@lists.openscad.org> wrote:

Interesting that others have replicated this while you cannot.  I
installed the latest build before posting to the list.

On 9/14/2025 12:28 AM, Jordan Brown wrote:

Not duplicated on 2025.09.12 on Windows.

But there is a related weird behavior.

With that h=1, it reports that the normalized tree has 507 elements.
With h>5, it reports 1008 elements.

And indeed, the "CSG Products Dump Dump" [sic] grows from ~23K to ~38K.

That behavior I see in 2025.09.12, and in 2021.01.

I don't understand that end of the program, so I don't know why that
would be, but it seems strange.  And it's not new.


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

Jon, you don't say which OS you're running on. I'm running on Linux and my snapshot is 2025.8.17. And as noted, with the default limit of 100k I get the warning and hang in both that version and in 2021.01. I noticed that the number of elements changed, which seemed odd to me. But also, if the number of elements is around 1000, how is it over 200k? I didn't understand that. On Sun, Sep 14, 2025 at 7:34 AM jon jonbondy.com via Discuss < discuss@lists.openscad.org> wrote: > Interesting that others have replicated this while you cannot. I > installed the latest build before posting to the list. > > > On 9/14/2025 12:28 AM, Jordan Brown wrote: > > Not duplicated on 2025.09.12 on Windows. > > > > But there *is* a related weird behavior. > > > > With that h=1, it reports that the normalized tree has 507 elements. > > With h>5, it reports 1008 elements. > > > > And indeed, the "CSG Products Dump Dump" [sic] grows from ~23K to ~38K. > > > > *That* behavior I see in 2025.09.12, and in 2021.01. > > > > I don't understand that end of the program, so I don't know why that > > would be, but it seems strange. And it's not new. > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org
JB
Jon Bondy
Sun, Sep 14, 2025 1:23 PM

Windows 11

On 9/14/2025 9:16 AM, Adrian Mariano via Discuss wrote:

Jon, you don't say which OS you're running on.  I'm running on Linux
and my snapshot is 2025.8.17.   And as noted, with the default limit
of 100k I get the warning and hang in both that version and in
2021.01.  I noticed that the number of elements changed, which seemed
odd to me.  But also, if the number of elements is around 1000, how is
it over 200k?  I didn't understand that.

On Sun, Sep 14, 2025 at 7:34 AM jon jonbondy.com
https://urldefense.proofpoint.com/v2/url?u=http-3A__jonbondy.com&d=DwMFaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=AsrE-c7ZR7B2Kyr3qgfvvppkCEBVsNmwEMndcrRSuOI&m=J0TH421qmFpS9OwAvKK1G8leRWCL8ewYb6kkSsDIqxNMSFjTvQUJVEEspiXcDm7F&s=NVPsqP7dXbdzjVYSFjJpjZ8sz6PZ4hZXBsGL-1h4MzA&e=
via Discuss discuss@lists.openscad.org wrote:

 Interesting that others have replicated this while you cannot.  I
 installed the latest build before posting to the list.


 On 9/14/2025 12:28 AM, Jordan Brown wrote:

Not duplicated on 2025.09.12 on Windows.

But there is a related weird behavior.

With that h=1, it reports that the normalized tree has 507

 elements.

With h>5, it reports 1008 elements.

And indeed, the "CSG Products Dump Dump" [sic] grows from ~23K

 to ~38K.

That behavior I see in 2025.09.12, and in 2021.01.

I don't understand that end of the program, so I don't know why

 that

would be, but it seems strange.  And it's not new.

 _______________________________________________
 OpenSCAD mailing list
 To unsubscribe send an email to discuss-leave@lists.openscad.org

OpenSCAD mailing list
To unsubscribe send an email todiscuss-leave@lists.openscad.org

--
This email has been checked for viruses by AVG antivirus software.
www.avg.com

Windows 11 On 9/14/2025 9:16 AM, Adrian Mariano via Discuss wrote: > Jon, you don't say which OS you're running on.  I'm running on Linux > and my snapshot is 2025.8.17.   And as noted, with the default limit > of 100k I get the warning and hang in both that version and in > 2021.01.  I noticed that the number of elements changed, which seemed > odd to me.  But also, if the number of elements is around 1000, how is > it over 200k?  I didn't understand that. > > > On Sun, Sep 14, 2025 at 7:34 AM jon jonbondy.com > <https://urldefense.proofpoint.com/v2/url?u=http-3A__jonbondy.com&d=DwMFaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=AsrE-c7ZR7B2Kyr3qgfvvppkCEBVsNmwEMndcrRSuOI&m=J0TH421qmFpS9OwAvKK1G8leRWCL8ewYb6kkSsDIqxNMSFjTvQUJVEEspiXcDm7F&s=NVPsqP7dXbdzjVYSFjJpjZ8sz6PZ4hZXBsGL-1h4MzA&e=> > via Discuss <discuss@lists.openscad.org> wrote: > > Interesting that others have replicated this while you cannot.  I > installed the latest build before posting to the list. > > > On 9/14/2025 12:28 AM, Jordan Brown wrote: > > Not duplicated on 2025.09.12 on Windows. > > > > But there *is* a related weird behavior. > > > > With that h=1, it reports that the normalized tree has 507 > elements. > > With h>5, it reports 1008 elements. > > > > And indeed, the "CSG Products Dump Dump" [sic] grows from ~23K > to ~38K. > > > > *That* behavior I see in 2025.09.12, and in 2021.01. > > > > I don't understand that end of the program, so I don't know why > that > > would be, but it seems strange.  And it's not new. > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org > > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email todiscuss-leave@lists.openscad.org -- This email has been checked for viruses by AVG antivirus software. www.avg.com
AM
Adrian Mariano
Sun, Sep 14, 2025 2:38 PM

Jon, do you get the error and hang in 2021.01 under Windows?

I deleted lines from Jon's example to obtain this minimal case:

$fn=8;
difference() {
union() {
cylinder(h = 1, d = 2);
cube(2);
}
for (z = [1:446]) cylinder(h = 11, d = 3);
}

If you change the number of overlapping cylinders to 445 there is no
error.  Original code had the cylinders translated so they didn't all
overlap.  You can add back a small translation based on z and the error
still occurs.

On Sat, Sep 13, 2025 at 11:14 AM nop head nop.head@gmail.com wrote:

With it set to 10 million I never see the error. It does seem a bug if it
stops OpenSCAD working though.

On Sat, 13 Sept 2025, 15:00 Adrian Mariano via Discuss, <
discuss@lists.openscad.org> wrote:

Increasing the limit does seem to work, but the behavior here seems
strange and broken.  I confirmed that in both 2021.01 and a recent snapshot
that it fails with the warning about too many elements.  If you increase
the limit to 10 million then it succeeds and displays a message:

Normalized tree has 1020 elements!

which is a lot fewer than the 200k that triggered the problem. And like
Jon said, after you get that warning, OpenSCAD is useless. Clearing the
cache has no effect. Nothing will run, not even other simple files. So
these questions call out for answers::

  1. Why do we get a warning about too many elements when there aren't very
    many elements?

  2. Why does OpenSCAD go into a hung state after this warning?

On Sat, Sep 13, 2025 at 9:23 AM nop head via Discuss <
discuss@lists.openscad.org> wrote:

Increase the limit in the preferences. I have it set to 10 million.

On Sat, 13 Sept 2025 at 13:54, Jon Bondy via Discuss <
discuss@lists.openscad.org> wrote:

If you F5 the program, below, it should run without error.  Then change
the "h = 1" to "h = 10" at the "<<<<" comment, and you get this

======

Parsing design (AST generation)...

Saved backup file: C:/Users/jon/OneDrive/Documents/OpenSCAD/backups/Pick Holder-backup-agrqbqpZ.scad

Compiling design (CSG Tree generation)...

Compiling design (CSG Products generation)...

Geometries in cache: 6

Geometry cache size in bytes: 48096

CGAL Polyhedrons in cache: 0

CGAL cache size in bytes: 0

Compiling design (CSG Products normalization)...

WARNING: Normalized tree is growing past 200000 elements. Aborting normalization.

Execution aborted

======

I am puzzled by the tree being too big (any recommendations?), but
after this happens, if I change h back to 1, and press F5, nothing
happens.  I have to quite out of OpenSCAD and re-start it in order to try
again.  That is, OpenSCAD is essentially dead.

I am running OpenSCAD https://www.openscad.org/ version 2025.09.12

========

eps = 0.01;
$fa = 3;
$fs = 0.2;
inches = 25.4;

di = 15.3 - 1;
th = 2;
ht = 100;

difference() {
union() {
cylinder(h = ht, d = di + 2th);
translate([-1.4
di, 0, 0])
scale([2, 1, 1])
rotate([0, 0, -45])
cube([0.9di, 0.9di, ht]);
}
rotate([0, 0, -45])
cube(110);
cylinder(h = ht + eps, d = di);
for (z = [0:0.2:100]) {
le = 0.5 * sin(60*z);
translate([-di, le, z])
rotate([0, 90, 0])
cylinder(h = 1, d = 1);  // <<<<<
}
}

http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient
Virus-free.www.avg.com
http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient
<#m_-4505123097453822859_m_-3208644596519836369_m_7424113970590188521_m_3532377620774460456_m_-7671437648204620332_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

Jon, do you get the error and hang in 2021.01 under Windows? I deleted lines from Jon's example to obtain this minimal case: $fn=8; difference() { union() { cylinder(h = 1, d = 2); cube(2); } for (z = [1:446]) cylinder(h = 11, d = 3); } If you change the number of overlapping cylinders to 445 there is no error. Original code had the cylinders translated so they didn't all overlap. You can add back a small translation based on z and the error still occurs. On Sat, Sep 13, 2025 at 11:14 AM nop head <nop.head@gmail.com> wrote: > With it set to 10 million I never see the error. It does seem a bug if it > stops OpenSCAD working though. > > On Sat, 13 Sept 2025, 15:00 Adrian Mariano via Discuss, < > discuss@lists.openscad.org> wrote: > >> Increasing the limit does seem to work, but the behavior here seems >> strange and broken. I confirmed that in both 2021.01 and a recent snapshot >> that it fails with the warning about too many elements. If you increase >> the limit to 10 million then it succeeds and displays a message: >> >> >> Normalized tree has 1020 elements! >> >> which is a lot fewer than the 200k that triggered the problem. And like >> Jon said, after you get that warning, OpenSCAD is useless. Clearing the >> cache has no effect. Nothing will run, not even other simple files. So >> these questions call out for answers:: >> >> 1. Why do we get a warning about too many elements when there aren't very >> many elements? >> >> 2. Why does OpenSCAD go into a hung state after this warning? >> >> >> >> On Sat, Sep 13, 2025 at 9:23 AM nop head via Discuss < >> discuss@lists.openscad.org> wrote: >> >>> Increase the limit in the preferences. I have it set to 10 million. >>> >>> On Sat, 13 Sept 2025 at 13:54, Jon Bondy via Discuss < >>> discuss@lists.openscad.org> wrote: >>> >>>> If you F5 the program, below, it should run without error. Then change >>>> the "h = 1" to "h = 10" at the "<<<<" comment, and you get this >>>> >>>> ====== >>>> >>>> Parsing design (AST generation)... >>>> >>>> Saved backup file: C:/Users/jon/OneDrive/Documents/OpenSCAD/backups/Pick Holder-backup-agrqbqpZ.scad >>>> >>>> Compiling design (CSG Tree generation)... >>>> >>>> Compiling design (CSG Products generation)... >>>> >>>> Geometries in cache: 6 >>>> >>>> Geometry cache size in bytes: 48096 >>>> >>>> CGAL Polyhedrons in cache: 0 >>>> >>>> CGAL cache size in bytes: 0 >>>> >>>> Compiling design (CSG Products normalization)... >>>> >>>> WARNING: Normalized tree is growing past 200000 elements. Aborting normalization. >>>> >>>> Execution aborted >>>> >>>> ====== >>>> >>>> I am puzzled by the tree being too big (any recommendations?), but >>>> after this happens, if I change h back to 1, and press F5, nothing >>>> happens. I have to quite out of OpenSCAD and re-start it in order to try >>>> again. That is, OpenSCAD is essentially dead. >>>> >>>> I am running OpenSCAD <https://www.openscad.org/> version 2025.09.12 >>>> >>>> ======== >>>> >>>> eps = 0.01; >>>> $fa = 3; >>>> $fs = 0.2; >>>> inches = 25.4; >>>> >>>> di = 15.3 - 1; >>>> th = 2; >>>> ht = 100; >>>> >>>> difference() { >>>> union() { >>>> cylinder(h = ht, d = di + 2*th); >>>> translate([-1.4*di, 0, 0]) >>>> scale([2, 1, 1]) >>>> rotate([0, 0, -45]) >>>> cube([0.9*di, 0.9*di, ht]); >>>> } >>>> rotate([0, 0, -45]) >>>> cube(110); >>>> cylinder(h = ht + eps, d = di); >>>> for (z = [0:0.2:100]) { >>>> le = 0.5 * sin(60*z); >>>> translate([-di, le, z]) >>>> rotate([0, 90, 0]) >>>> cylinder(h = 1, d = 1); // <<<<< >>>> } >>>> } >>>> >>>> >>>> >>>> >>>> <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient> >>>> Virus-free.www.avg.com >>>> <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient> >>>> <#m_-4505123097453822859_m_-3208644596519836369_m_7424113970590188521_m_3532377620774460456_m_-7671437648204620332_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> >>>> _______________________________________________ >>>> OpenSCAD mailing list >>>> To unsubscribe send an email to discuss-leave@lists.openscad.org >>> >>> _______________________________________________ >>> OpenSCAD mailing list >>> To unsubscribe send an email to discuss-leave@lists.openscad.org >> >> _______________________________________________ >> OpenSCAD mailing list >> To unsubscribe send an email to discuss-leave@lists.openscad.org > >
JB
Jon Bondy
Sun, Sep 14, 2025 3:01 PM

Parsing design (AST generation)...

Saved backup file:
C:/Users/jon/OneDrive/Documents/OpenSCAD/backups/unsaved-backup-firnpdqo.scad

Compiling design (CSG Tree generation)...

Compiling design (CSG Products generation)...

Geometries in cache: 3

Geometry cache size in bytes: 3336

CGAL Polyhedrons in cache: 0

CGAL cache size in bytes: 0

Compiling design (CSG Products normalization)...

WARNING: Normalized tree is growing past 200000 elements. Aborting
normalization.

Execution aborted

On 9/14/2025 10:38 AM, Adrian Mariano via Discuss wrote:

Jon, do you get the error and hang in 2021.01 under Windows?

I deleted lines from Jon's example to obtain this minimal case:

$fn=8;
difference() {
     union() {
        cylinder(h = 1, d = 2);
        cube(2);
     }
     for (z = [1:446]) cylinder(h = 11, d = 3);
}

If you change the number of overlapping cylinders to 445 there is no
error.  Original code had the cylinders translated so they didn't all
overlap.  You can add back a small translation based on z and the
error still occurs.

--
This email has been checked for viruses by AVG antivirus software.
www.avg.com

Parsing design (AST generation)... Saved backup file: C:/Users/jon/OneDrive/Documents/OpenSCAD/backups/unsaved-backup-firnpdqo.scad Compiling design (CSG Tree generation)... Compiling design (CSG Products generation)... Geometries in cache: 3 Geometry cache size in bytes: 3336 CGAL Polyhedrons in cache: 0 CGAL cache size in bytes: 0 Compiling design (CSG Products normalization)... WARNING: Normalized tree is growing past 200000 elements. Aborting normalization. Execution aborted On 9/14/2025 10:38 AM, Adrian Mariano via Discuss wrote: > Jon, do you get the error and hang in 2021.01 under Windows? > > I deleted lines from Jon's example to obtain this minimal case: > > $fn=8; > difference() { >      union() { >         cylinder(h = 1, d = 2); >         cube(2); >      } >      for (z = [1:446]) cylinder(h = 11, d = 3); > } > > If you change the number of overlapping cylinders to 445 there is no > error.  Original code had the cylinders translated so they didn't all > overlap.  You can add back a small translation based on z and the > error still occurs. > -- This email has been checked for viruses by AVG antivirus software. www.avg.com
AM
Adrian Mariano
Sun, Sep 14, 2025 3:31 PM

Seems weird that it's happening to you under Windows but not Jordan.  It
seems unlikely it depends on Windows version given that it's also happening
under Linux, which leaves differences in the settings as the explanation
for why Jordan doesn't reproduce it.

On Sun, Sep 14, 2025 at 11:01 AM Jon Bondy jon@jonbondy.com wrote:

Parsing design (AST generation)...

Saved backup file:
C:/Users/jon/OneDrive/Documents/OpenSCAD/backups/unsaved-backup-firnpdqo.scad

Compiling design (CSG Tree generation)...

Compiling design (CSG Products generation)...

Geometries in cache: 3

Geometry cache size in bytes: 3336

CGAL Polyhedrons in cache: 0

CGAL cache size in bytes: 0

Compiling design (CSG Products normalization)...

WARNING: Normalized tree is growing past 200000 elements. Aborting
normalization.

Execution aborted

On 9/14/2025 10:38 AM, Adrian Mariano via Discuss wrote:

Jon, do you get the error and hang in 2021.01 under Windows?

I deleted lines from Jon's example to obtain this minimal case:

$fn=8;
difference() {
union() {
cylinder(h = 1, d = 2);
cube(2);
}
for (z = [1:446]) cylinder(h = 11, d = 3);
}

If you change the number of overlapping cylinders to 445 there is no
error.  Original code had the cylinders translated so they didn't all
overlap.  You can add back a small translation based on z and the error
still occurs.

http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient
Virus-free.www.avg.com
http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient
<#m_-3051569756275543422_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

Seems weird that it's happening to you under Windows but not Jordan. It seems unlikely it depends on Windows version given that it's also happening under Linux, which leaves differences in the settings as the explanation for why Jordan doesn't reproduce it. On Sun, Sep 14, 2025 at 11:01 AM Jon Bondy <jon@jonbondy.com> wrote: > Parsing design (AST generation)... > > Saved backup file: > C:/Users/jon/OneDrive/Documents/OpenSCAD/backups/unsaved-backup-firnpdqo.scad > > Compiling design (CSG Tree generation)... > > Compiling design (CSG Products generation)... > > Geometries in cache: 3 > > Geometry cache size in bytes: 3336 > > CGAL Polyhedrons in cache: 0 > > CGAL cache size in bytes: 0 > > Compiling design (CSG Products normalization)... > > WARNING: Normalized tree is growing past 200000 elements. Aborting > normalization. > > Execution aborted > > > On 9/14/2025 10:38 AM, Adrian Mariano via Discuss wrote: > > Jon, do you get the error and hang in 2021.01 under Windows? > > I deleted lines from Jon's example to obtain this minimal case: > > $fn=8; > difference() { > union() { > cylinder(h = 1, d = 2); > cube(2); > } > for (z = [1:446]) cylinder(h = 11, d = 3); > } > > If you change the number of overlapping cylinders to 445 there is no > error. Original code had the cylinders translated so they didn't all > overlap. You can add back a small translation based on z and the error > still occurs. > > > > <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient> > Virus-free.www.avg.com > <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient> > <#m_-3051569756275543422_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> >
JB
Jon Bondy
Sun, Sep 14, 2025 3:54 PM

Is there any easy way to dump all of my settings into a text file?

On 9/14/2025 11:31 AM, Adrian Mariano via Discuss wrote:

Seems weird that it's happening to you under Windows but not Jordan. 
It seems unlikely it depends on Windows version given that it's also
happening under Linux, which leaves differences in the settings as the
explanation for why Jordan doesn't reproduce it.

On Sun, Sep 14, 2025 at 11:01 AM Jon Bondy jon@jonbondy.com wrote:

 Parsing design (AST generation)...

 Saved backup file:
 C:/Users/jon/OneDrive/Documents/OpenSCAD/backups/unsaved-backup-firnpdqo.scad

 Compiling design (CSG Tree generation)...

 Compiling design (CSG Products generation)...

 Geometries in cache: 3

 Geometry cache size in bytes: 3336

 CGAL Polyhedrons in cache: 0

 CGAL cache size in bytes: 0

 Compiling design (CSG Products normalization)...

 WARNING: Normalized tree is growing past 200000 elements. Aborting
 normalization.

 Execution aborted


 On 9/14/2025 10:38 AM, Adrian Mariano via Discuss wrote:
 Jon, do you get the error and hang in 2021.01 under Windows?

 I deleted lines from Jon's example to obtain this minimal case:

 $fn=8;
 difference() {
      union() {
         cylinder(h = 1, d = 2);
         cube(2);
      }
      for (z = [1:446]) cylinder(h = 11, d = 3);
 }

 If you change the number of overlapping cylinders to 445 there is
 no error.  Original code had the cylinders translated so they
 didn't all overlap.  You can add back a small translation based
 on z and the error still occurs.
 <https://urldefense.proofpoint.com/v2/url?u=http-3A__www.avg.com_email-2Dsignature-3Futm-5Fmedium-3Demail-26utm-5Fsource-3Dlink-26utm-5Fcampaign-3Dsig-2Demail-26utm-5Fcontent-3Demailclient&d=DwMFaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=AsrE-c7ZR7B2Kyr3qgfvvppkCEBVsNmwEMndcrRSuOI&m=cI5OQvjofAcGkyb8nkEn2lygu_l97ybIqlbf4H_7UiRRls5XV_iRbpIzdAxCSamd&s=C_6ofJ9k9o6KWlQHPu26hdtMqXPYACoe755TA1Tjqik&e=>
 	Virus-free.www.avg.com
 <https://urldefense.proofpoint.com/v2/url?u=http-3A__www.avg.com_email-2Dsignature-3Futm-5Fmedium-3Demail-26utm-5Fsource-3Dlink-26utm-5Fcampaign-3Dsig-2Demail-26utm-5Fcontent-3Demailclient&d=DwMFaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=AsrE-c7ZR7B2Kyr3qgfvvppkCEBVsNmwEMndcrRSuOI&m=cI5OQvjofAcGkyb8nkEn2lygu_l97ybIqlbf4H_7UiRRls5XV_iRbpIzdAxCSamd&s=C_6ofJ9k9o6KWlQHPu26hdtMqXPYACoe755TA1Tjqik&e=>


 <#m_-3051569756275543422_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

OpenSCAD mailing list
To unsubscribe send an email todiscuss-leave@lists.openscad.org

--
This email has been checked for viruses by AVG antivirus software.
www.avg.com

Is there any easy way to dump all of my settings into a text file? On 9/14/2025 11:31 AM, Adrian Mariano via Discuss wrote: > Seems weird that it's happening to you under Windows but not Jordan.  > It seems unlikely it depends on Windows version given that it's also > happening under Linux, which leaves differences in the settings as the > explanation for why Jordan doesn't reproduce it. > > On Sun, Sep 14, 2025 at 11:01 AM Jon Bondy <jon@jonbondy.com> wrote: > > Parsing design (AST generation)... > > Saved backup file: > C:/Users/jon/OneDrive/Documents/OpenSCAD/backups/unsaved-backup-firnpdqo.scad > > Compiling design (CSG Tree generation)... > > Compiling design (CSG Products generation)... > > Geometries in cache: 3 > > Geometry cache size in bytes: 3336 > > CGAL Polyhedrons in cache: 0 > > CGAL cache size in bytes: 0 > > Compiling design (CSG Products normalization)... > > WARNING: Normalized tree is growing past 200000 elements. Aborting > normalization. > > Execution aborted > > > On 9/14/2025 10:38 AM, Adrian Mariano via Discuss wrote: >> Jon, do you get the error and hang in 2021.01 under Windows? >> >> I deleted lines from Jon's example to obtain this minimal case: >> >> $fn=8; >> difference() { >>      union() { >>         cylinder(h = 1, d = 2); >>         cube(2); >>      } >>      for (z = [1:446]) cylinder(h = 11, d = 3); >> } >> >> If you change the number of overlapping cylinders to 445 there is >> no error.  Original code had the cylinders translated so they >> didn't all overlap.  You can add back a small translation based >> on z and the error still occurs. >> > > <https://urldefense.proofpoint.com/v2/url?u=http-3A__www.avg.com_email-2Dsignature-3Futm-5Fmedium-3Demail-26utm-5Fsource-3Dlink-26utm-5Fcampaign-3Dsig-2Demail-26utm-5Fcontent-3Demailclient&d=DwMFaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=AsrE-c7ZR7B2Kyr3qgfvvppkCEBVsNmwEMndcrRSuOI&m=cI5OQvjofAcGkyb8nkEn2lygu_l97ybIqlbf4H_7UiRRls5XV_iRbpIzdAxCSamd&s=C_6ofJ9k9o6KWlQHPu26hdtMqXPYACoe755TA1Tjqik&e=> > Virus-free.www.avg.com > <https://urldefense.proofpoint.com/v2/url?u=http-3A__www.avg.com_email-2Dsignature-3Futm-5Fmedium-3Demail-26utm-5Fsource-3Dlink-26utm-5Fcampaign-3Dsig-2Demail-26utm-5Fcontent-3Demailclient&d=DwMFaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=AsrE-c7ZR7B2Kyr3qgfvvppkCEBVsNmwEMndcrRSuOI&m=cI5OQvjofAcGkyb8nkEn2lygu_l97ybIqlbf4H_7UiRRls5XV_iRbpIzdAxCSamd&s=C_6ofJ9k9o6KWlQHPu26hdtMqXPYACoe755TA1Tjqik&e=> > > > <#m_-3051569756275543422_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> > > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email todiscuss-leave@lists.openscad.org -- This email has been checked for viruses by AVG antivirus software. www.avg.com
RW
Raymond West
Sun, Sep 14, 2025 8:00 PM

It doesn't hang or crash for me, but with the h set to 10, iirc, the
pointed end is separated from the other part. Also, a bit of z fighting
for both h's.

On 14/09/2025 16:54, Jon Bondy via Discuss wrote:

Is there any easy way to dump all of my settings into a text file?

On 9/14/2025 11:31 AM, Adrian Mariano via Discuss wrote:

Seems weird that it's happening to you under Windows but not Jordan. 
It seems unlikely it depends on Windows version given that it's also
happening under Linux, which leaves differences in the settings as
the explanation for why Jordan doesn't reproduce it.

On Sun, Sep 14, 2025 at 11:01 AM Jon Bondy jon@jonbondy.com wrote:

 Parsing design (AST generation)...

 Saved backup file:
 C:/Users/jon/OneDrive/Documents/OpenSCAD/backups/unsaved-backup-firnpdqo.scad

 Compiling design (CSG Tree generation)...

 Compiling design (CSG Products generation)...

 Geometries in cache: 3

 Geometry cache size in bytes: 3336

 CGAL Polyhedrons in cache: 0

 CGAL cache size in bytes: 0

 Compiling design (CSG Products normalization)...

 WARNING: Normalized tree is growing past 200000 elements.
 Aborting normalization.

 Execution aborted


 On 9/14/2025 10:38 AM, Adrian Mariano via Discuss wrote:
 Jon, do you get the error and hang in 2021.01 under Windows?

 I deleted lines from Jon's example to obtain this minimal case:

 $fn=8;
 difference() {
      union() {
         cylinder(h = 1, d = 2);
         cube(2);
      }
      for (z = [1:446]) cylinder(h = 11, d = 3);
 }

 If you change the number of overlapping cylinders to 445 there
 is no error.  Original code had the cylinders translated so they
 didn't all overlap. You can add back a small translation based
 on z and the error still occurs.
 <https://urldefense.proofpoint.com/v2/url?u=http-3A__www.avg.com_email-2Dsignature-3Futm-5Fmedium-3Demail-26utm-5Fsource-3Dlink-26utm-5Fcampaign-3Dsig-2Demail-26utm-5Fcontent-3Demailclient&d=DwMFaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=AsrE-c7ZR7B2Kyr3qgfvvppkCEBVsNmwEMndcrRSuOI&m=cI5OQvjofAcGkyb8nkEn2lygu_l97ybIqlbf4H_7UiRRls5XV_iRbpIzdAxCSamd&s=C_6ofJ9k9o6KWlQHPu26hdtMqXPYACoe755TA1Tjqik&e=>
 	Virus-free.www.avg.com
 <https://urldefense.proofpoint.com/v2/url?u=http-3A__www.avg.com_email-2Dsignature-3Futm-5Fmedium-3Demail-26utm-5Fsource-3Dlink-26utm-5Fcampaign-3Dsig-2Demail-26utm-5Fcontent-3Demailclient&d=DwMFaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=AsrE-c7ZR7B2Kyr3qgfvvppkCEBVsNmwEMndcrRSuOI&m=cI5OQvjofAcGkyb8nkEn2lygu_l97ybIqlbf4H_7UiRRls5XV_iRbpIzdAxCSamd&s=C_6ofJ9k9o6KWlQHPu26hdtMqXPYACoe755TA1Tjqik&e=>


 <#m_-3051569756275543422_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

OpenSCAD mailing list
To unsubscribe send an email todiscuss-leave@lists.openscad.org


OpenSCAD mailing list
To unsubscribe send an email todiscuss-leave@lists.openscad.org

It doesn't hang or crash for me, but with the h set to 10, iirc, the pointed end is separated from the other part. Also, a bit of z fighting for both h's. On 14/09/2025 16:54, Jon Bondy via Discuss wrote: > > Is there any easy way to dump all of my settings into a text file? > > > On 9/14/2025 11:31 AM, Adrian Mariano via Discuss wrote: >> Seems weird that it's happening to you under Windows but not Jordan.  >> It seems unlikely it depends on Windows version given that it's also >> happening under Linux, which leaves differences in the settings as >> the explanation for why Jordan doesn't reproduce it. >> >> On Sun, Sep 14, 2025 at 11:01 AM Jon Bondy <jon@jonbondy.com> wrote: >> >> Parsing design (AST generation)... >> >> Saved backup file: >> C:/Users/jon/OneDrive/Documents/OpenSCAD/backups/unsaved-backup-firnpdqo.scad >> >> Compiling design (CSG Tree generation)... >> >> Compiling design (CSG Products generation)... >> >> Geometries in cache: 3 >> >> Geometry cache size in bytes: 3336 >> >> CGAL Polyhedrons in cache: 0 >> >> CGAL cache size in bytes: 0 >> >> Compiling design (CSG Products normalization)... >> >> WARNING: Normalized tree is growing past 200000 elements. >> Aborting normalization. >> >> Execution aborted >> >> >> On 9/14/2025 10:38 AM, Adrian Mariano via Discuss wrote: >>> Jon, do you get the error and hang in 2021.01 under Windows? >>> >>> I deleted lines from Jon's example to obtain this minimal case: >>> >>> $fn=8; >>> difference() { >>>      union() { >>>         cylinder(h = 1, d = 2); >>>         cube(2); >>>      } >>>      for (z = [1:446]) cylinder(h = 11, d = 3); >>> } >>> >>> If you change the number of overlapping cylinders to 445 there >>> is no error.  Original code had the cylinders translated so they >>> didn't all overlap. You can add back a small translation based >>> on z and the error still occurs. >>> >> >> <https://urldefense.proofpoint.com/v2/url?u=http-3A__www.avg.com_email-2Dsignature-3Futm-5Fmedium-3Demail-26utm-5Fsource-3Dlink-26utm-5Fcampaign-3Dsig-2Demail-26utm-5Fcontent-3Demailclient&d=DwMFaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=AsrE-c7ZR7B2Kyr3qgfvvppkCEBVsNmwEMndcrRSuOI&m=cI5OQvjofAcGkyb8nkEn2lygu_l97ybIqlbf4H_7UiRRls5XV_iRbpIzdAxCSamd&s=C_6ofJ9k9o6KWlQHPu26hdtMqXPYACoe755TA1Tjqik&e=> >> Virus-free.www.avg.com >> <https://urldefense.proofpoint.com/v2/url?u=http-3A__www.avg.com_email-2Dsignature-3Futm-5Fmedium-3Demail-26utm-5Fsource-3Dlink-26utm-5Fcampaign-3Dsig-2Demail-26utm-5Fcontent-3Demailclient&d=DwMFaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=AsrE-c7ZR7B2Kyr3qgfvvppkCEBVsNmwEMndcrRSuOI&m=cI5OQvjofAcGkyb8nkEn2lygu_l97ybIqlbf4H_7UiRRls5XV_iRbpIzdAxCSamd&s=C_6ofJ9k9o6KWlQHPu26hdtMqXPYACoe755TA1Tjqik&e=> >> >> >> <#m_-3051569756275543422_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> >> >> >> _______________________________________________ >> OpenSCAD mailing list >> To unsubscribe send an email todiscuss-leave@lists.openscad.org > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email todiscuss-leave@lists.openscad.org
JB
Jordan Brown
Sun, Sep 14, 2025 9:44 PM

On 9/14/2025 4:33 AM, jon jonbondy.com wrote:

Interesting that others have replicated this while you cannot.  I
installed the latest build before posting to the list.

Ah... it looks like I set the limit to 200K at some point in the dim
past, while the default is 100K.  The true limit is (for some unknown
reason) twice the parameter setting, so I saw the 200K in your error
message and it matched the 200K in my settings, so I thought we had the
same settings.

Indeed, for the h=1 case it fails if the parameter is set less than
about 65K, and for the h=10 case it fails if the parameter is less than
about 130K.

Sorry for the bad evidence.

On 9/14/2025 4:33 AM, jon jonbondy.com wrote: > Interesting that others have replicated this while you cannot.  I > installed the latest build before posting to the list. Ah... it looks like I set the limit to 200K at some point in the dim past, while the default is 100K.  The true limit is (for some unknown reason) twice the parameter setting, so I saw the 200K in your error message and it matched the 200K in my settings, so I thought we had the same settings. Indeed, for the h=1 case it fails if the parameter is set less than about 65K, and for the h=10 case it fails if the parameter is less than about 130K. Sorry for the bad evidence.
JB
Jordan Brown
Sun, Sep 14, 2025 9:46 PM

On 9/14/2025 2:44 PM, Jordan Brown via Discuss wrote:

On 9/14/2025 4:33 AM, jon jonbondy.com wrote:

Interesting that others have replicated this while you cannot.  I
installed the latest build before posting to the list.

Ah... it looks like I set the limit to 200K at some point in the dim
past, while the default is 100K.  The true limit is (for some unknown
reason) twice the parameter setting, so I saw the 200K in your error
message and it matched the 200K in my settings, so I thought we had
the same settings.

Indeed, for the h=1 case it fails if the parameter is set less than
about 65K, and for the h=10 case it fails if the parameter is less
than about 130K.

Sorry for the bad evidence.

But I still don't see a hang, just the unexplained variation in the tree
size (507 vs 1008) and the unexplained failure (growing past 200K when
it only ever reaches ~1K).

On 9/14/2025 2:44 PM, Jordan Brown via Discuss wrote: > On 9/14/2025 4:33 AM, jon jonbondy.com wrote: >> Interesting that others have replicated this while you cannot.  I >> installed the latest build before posting to the list. > > Ah... it looks like I set the limit to 200K at some point in the dim > past, while the default is 100K.  The true limit is (for some unknown > reason) twice the parameter setting, so I saw the 200K in your error > message and it matched the 200K in my settings, so I thought we had > the same settings. > > Indeed, for the h=1 case it fails if the parameter is set less than > about 65K, and for the h=10 case it fails if the parameter is less > than about 130K. > > Sorry for the bad evidence. But I still don't see a hang, just the unexplained variation in the tree size (507 vs 1008) and the unexplained failure (growing past 200K when it only ever reaches ~1K).
JB
Jordan Brown
Sun, Sep 14, 2025 9:56 PM

On 9/14/2025 8:54 AM, Jon Bondy via Discuss wrote:

Is there any easy way to dump all of my settings into a text file?

From a Windows command prompt:

reg query HKCU\Software\OpenSCAD\OpenSCAD /s

Or from regedit (the Registry Editor), navigate to
HKEY_CURRENT_USER\Software\OpenSCAD\OpenSCAD and then File/Export.

On 9/14/2025 8:54 AM, Jon Bondy via Discuss wrote: > > Is there any easy way to dump all of my settings into a text file? > From a Windows command prompt: reg query HKCU\Software\OpenSCAD\OpenSCAD /s Or from regedit (the Registry Editor), navigate to HKEY_CURRENT_USER\Software\OpenSCAD\OpenSCAD and then File/Export.
MM
Michael Marx (spintel)
Mon, Sep 15, 2025 12:53 AM

Note the reported figure is Normalized, ie removing duplicates. The trigger value is during normalisation.


From: Jordan Brown via Discuss [mailto:discuss@lists.openscad.org]

But I still don't see a hang, just the unexplained variation in the tree size (507 vs 1008) and the unexplained failure (growing past 200K when it only ever reaches ~1K).

Note the reported figure is Normalized, ie removing duplicates. The trigger value is during normalisation. _____ From: Jordan Brown via Discuss [mailto:discuss@lists.openscad.org] But I still don't see a hang, just the unexplained variation in the tree size (507 vs 1008) and the unexplained failure (growing past 200K when it only ever reaches ~1K).
JJ
jon jonbondy.com
Wed, Sep 17, 2025 4:47 PM

D:\Jon>reg query HKCU\Software\OpenSCAD\OpenSCAD /s

HKEY_CURRENT_USER\Software\OpenSCAD\OpenSCAD
    recentFileList    REG_MULTI_SZ    D:/Jon/Spike Ring.scad\0
    lastOpenDirName    REG_SZ    D:/Jon

HKEY_CURRENT_USER\Software\OpenSCAD\OpenSCAD\advanced
    enableHardwarnings    REG_SZ    true
    forceGoldfeather    REG_SZ    false
    enableSoundNotification    REG_SZ    true
    timeThresholdOnRenderCompleteSound    REG_SZ    30

HKEY_CURRENT_USER\Software\OpenSCAD\OpenSCAD\design
    autoReload    REG_SZ    false

HKEY_CURRENT_USER\Software\OpenSCAD\OpenSCAD\editor
    syntaxhighlight    REG_SZ    For Light Background
    indentStyle    REG_SZ    Tabs

HKEY_CURRENT_USER\Software\OpenSCAD\OpenSCAD\feature
    manifold    REG_SZ    true

HKEY_CURRENT_USER\Software\OpenSCAD\OpenSCAD\view
    hideEditor    REG_SZ    false
    hideConsole    REG_SZ    false
    hideErrorLog    REG_SZ    false
    hideCustomizer    REG_SZ    true
    hideAnimate    REG_SZ    true
    hideViewportControl    REG_SZ    true
    hideEditorToolbar    REG_SZ    false
    hide3DViewToolbar    REG_SZ    false
    showAxes    REG_SZ    true
    showScaleProportional    REG_SZ    true
    orthogonalProjection    REG_SZ    true
    showEdges    REG_SZ    false
    showCrosshairs    REG_SZ    true

HKEY_CURRENT_USER\Software\OpenSCAD\OpenSCAD\window
    size    REG_SZ    @Size(2397 1336)
    position    REG_SZ    @Point(143 19)
    state    REG_BINARY
40004200790074006500410072007200610079002800000000000000FF000000000000000000FD000000000000000300000000000000000000000000030083000000000004009800FC0002000000000000000100FB0000000000000014000000650000006400000069000000740000006F00000072000000440000006F000000630000006B000100000000000000130000000000040098000000000000009D000000FF00FF00FF0000000000000001000000000003000E000000000000000000FC0002000000000000000200FB000000000000001A000000700000006100000072000000610000006D00000065000000740000006500000072000000440000006F000000630000006B0000000000000000002400000000000000940000000000000094000000FF00FF00FF00FB000000000000002600000076000000690000006500000077000000700000006F0000007200000074000000430000006F0000006E00000074000000720000006F0000006C000000440000006F000000630000006B0000000000000000002400000000000000C6000000000000006F000000FF00FF00FF0000000000000003000000000005001B00000000000000D900FC0001000000000000000400FB0000000000000016000000630000006F0000006E000000730000006F0000006C00000065000000440000006F000000630000006B00010000000000030087000000000002007E000000000000003C000000FF00FF00FF00FB0000000000000016000000610000006E000000690000006D000000610000007400000065000000440000006F000000630000006B0000000000000004006D0000000000000064000000000000005B000000FF00FF00FF00FB00000000000000180000006500000072000000720000006F000000720000004C0000006F00000067000000440000006F000000630000006B000100000000000600090000000000020099000000000000003C000000FF00FF00FF00FB0000000000000018000000660000006F0000006E000000740000004C000000690000007300000074000000440000006F000000630000006B0000000000000000000000FF00FF00FF00FF0000000000010075000000FF00FF00FF000000000005001B00000000000300BB000000000000000100000000000000020000000000000001000000000000000200FC000000000000000100000000000000020000000000000000002900
    geometry    REG_BINARY
400042007900740065004100720072006100790028000100D900D000CB0000000300000000000000000001001C000000000000002000000000000900BF00000000000400FC000000000001001D000000000000003F00000000000900BE00000000000400FB00000000000000000000000000000000000A0000000000000001001D000000000000003F00000000000900BE00000000000400FB002900

D:\Jon>

On 9/14/2025 5:56 PM, Jordan Brown wrote:

reg query HKCU\Software\OpenSCAD\OpenSCAD /s

D:\Jon>reg query HKCU\Software\OpenSCAD\OpenSCAD /s HKEY_CURRENT_USER\Software\OpenSCAD\OpenSCAD     recentFileList    REG_MULTI_SZ    D:/Jon/Spike Ring.scad\0     lastOpenDirName    REG_SZ    D:/Jon HKEY_CURRENT_USER\Software\OpenSCAD\OpenSCAD\advanced     enableHardwarnings    REG_SZ    true     forceGoldfeather    REG_SZ    false     enableSoundNotification    REG_SZ    true     timeThresholdOnRenderCompleteSound    REG_SZ    30 HKEY_CURRENT_USER\Software\OpenSCAD\OpenSCAD\design     autoReload    REG_SZ    false HKEY_CURRENT_USER\Software\OpenSCAD\OpenSCAD\editor     syntaxhighlight    REG_SZ    For Light Background     indentStyle    REG_SZ    Tabs HKEY_CURRENT_USER\Software\OpenSCAD\OpenSCAD\feature     manifold    REG_SZ    true HKEY_CURRENT_USER\Software\OpenSCAD\OpenSCAD\view     hideEditor    REG_SZ    false     hideConsole    REG_SZ    false     hideErrorLog    REG_SZ    false     hideCustomizer    REG_SZ    true     hideAnimate    REG_SZ    true     hideViewportControl    REG_SZ    true     hideEditorToolbar    REG_SZ    false     hide3DViewToolbar    REG_SZ    false     showAxes    REG_SZ    true     showScaleProportional    REG_SZ    true     orthogonalProjection    REG_SZ    true     showEdges    REG_SZ    false     showCrosshairs    REG_SZ    true HKEY_CURRENT_USER\Software\OpenSCAD\OpenSCAD\window     size    REG_SZ    @Size(2397 1336)     position    REG_SZ    @Point(143 19)     state    REG_BINARY 40004200790074006500410072007200610079002800000000000000FF000000000000000000FD000000000000000300000000000000000000000000030083000000000004009800FC0002000000000000000100FB0000000000000014000000650000006400000069000000740000006F00000072000000440000006F000000630000006B000100000000000000130000000000040098000000000000009D000000FF00FF00FF0000000000000001000000000003000E000000000000000000FC0002000000000000000200FB000000000000001A000000700000006100000072000000610000006D00000065000000740000006500000072000000440000006F000000630000006B0000000000000000002400000000000000940000000000000094000000FF00FF00FF00FB000000000000002600000076000000690000006500000077000000700000006F0000007200000074000000430000006F0000006E00000074000000720000006F0000006C000000440000006F000000630000006B0000000000000000002400000000000000C6000000000000006F000000FF00FF00FF0000000000000003000000000005001B00000000000000D900FC0001000000000000000400FB0000000000000016000000630000006F0000006E000000730000006F0000006C00000065000000440000006F000000630000006B00010000000000030087000000000002007E000000000000003C000000FF00FF00FF00FB0000000000000016000000610000006E000000690000006D000000610000007400000065000000440000006F000000630000006B0000000000000004006D0000000000000064000000000000005B000000FF00FF00FF00FB00000000000000180000006500000072000000720000006F000000720000004C0000006F00000067000000440000006F000000630000006B000100000000000600090000000000020099000000000000003C000000FF00FF00FF00FB0000000000000018000000660000006F0000006E000000740000004C000000690000007300000074000000440000006F000000630000006B0000000000000000000000FF00FF00FF00FF0000000000010075000000FF00FF00FF000000000005001B00000000000300BB000000000000000100000000000000020000000000000001000000000000000200FC000000000000000100000000000000020000000000000000002900     geometry    REG_BINARY 400042007900740065004100720072006100790028000100D900D000CB0000000300000000000000000001001C000000000000002000000000000900BF00000000000400FC000000000001001D000000000000003F00000000000900BE00000000000400FB00000000000000000000000000000000000A0000000000000001001D000000000000003F00000000000900BE00000000000400FB002900 D:\Jon> On 9/14/2025 5:56 PM, Jordan Brown wrote: > reg query HKCU\Software\OpenSCAD\OpenSCAD /s