discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Failure with recent release

J
jon
Fri, Mar 17, 2023 8:49 PM

With the attached SCAD file, when I open Version 2021.01 and immediately
do F6, it runs fine:

Parsing design (AST generation)...

Compiling design (CSG Tree generation)...

Rendering Polygon Mesh using CGAL...

Geometries in cache: 21

Geometry cache size in bytes: 246272

CGAL Polyhedrons in cache: 29

CGAL cache size in bytes: 80794856

Total rendering time: 0:01:53.682

Top level object is a 3D object:

Simple:        yes

Vertices:     7982

Halfedges:   24480

Edges:       12240

Halffacets:   8592

Facets:       4296

Volumes:        17

Rendering finished.

and looks like this:

When I open version 2023.02.23 (git a23badf34) [with fast-csg and
fast-csg-trust-corefinement and lazy-unions checked] and immediately do
F6, I get this:

Parsing design (AST generation)...

Compiling design (CSG Tree generation)...

Rendering Polygon Mesh using CGAL...

WARNING: Warning: mesh is not closed!

WARNING: Warning: mesh is not closed!

WARNING: Warning: mesh is not closed!

Geometries in cache: 22

Geometry cache size in bytes: 2222488

CGAL Polyhedrons in cache: 28

CGAL cache size in bytes: 11545512

Total rendering time: 0:02:52.772

Top level object is a 3D object:

Facets: 25812

Rendering finished.

And it looks like this:

Jon

With the attached SCAD file, when I open Version 2021.01 and immediately do F6, it runs fine: Parsing design (AST generation)... Compiling design (CSG Tree generation)... Rendering Polygon Mesh using CGAL... Geometries in cache: 21 Geometry cache size in bytes: 246272 CGAL Polyhedrons in cache: 29 CGAL cache size in bytes: 80794856 Total rendering time: 0:01:53.682 Top level object is a 3D object: Simple: yes Vertices: 7982 Halfedges: 24480 Edges: 12240 Halffacets: 8592 Facets: 4296 Volumes: 17 Rendering finished. and looks like this: When I open version 2023.02.23 (git a23badf34) [with fast-csg and fast-csg-trust-corefinement and lazy-unions checked] and immediately do F6, I get this: Parsing design (AST generation)... Compiling design (CSG Tree generation)... Rendering Polygon Mesh using CGAL... WARNING: Warning: mesh is not closed! WARNING: Warning: mesh is not closed! WARNING: Warning: mesh is not closed! Geometries in cache: 22 Geometry cache size in bytes: 2222488 CGAL Polyhedrons in cache: 28 CGAL cache size in bytes: 11545512 Total rendering time: 0:02:52.772 Top level object is a 3D object: Facets: 25812 Rendering finished. And it looks like this: Jon
JB
Jordan Brown
Fri, Mar 17, 2023 9:30 PM

On 3/17/2023 1:49 PM, jon wrote:

When I open version 2023.02.23 (git a23badf34) [with fast-csg and
fast-csg-trust-corefinement and lazy-unions checked] and immediately
do F6, I get this:

How is it with the fast-csg and lazy unions options turned off?

On 3/17/2023 1:49 PM, jon wrote: > When I open version 2023.02.23 (git a23badf34) [with fast-csg and > fast-csg-trust-corefinement and lazy-unions checked] and immediately > do F6, I get this: How is it with the fast-csg and lazy unions options turned off?
J
jon
Fri, Mar 17, 2023 9:39 PM

works fine!

Parsing design (AST generation)...

Compiling design (CSG Tree generation)...

Rendering Polygon Mesh using CGAL...

Geometries in cache: 21

Geometry cache size in bytes: 246272

CGAL Polyhedrons in cache: 29

CGAL cache size in bytes: 79977704

Total rendering time: 0:01:06.915

Top level object is a 3D object:

Simple: yes

Vertices: 7830

Halfedges: 24024

Edges: 12012

Halffacets: 8440

Facets: 4220

Volumes: 17

Rendering finished.

On 3/17/2023 5:30 PM, Jordan Brown wrote:

On 3/17/2023 1:49 PM, jon wrote:

When I open version 2023.02.23 (git a23badf34) [with fast-csg and
fast-csg-trust-corefinement and lazy-unions checked] and immediately
do F6, I get this:

How is it with the fast-csg and lazy unions options turned off?

works fine! Parsing design (AST generation)... Compiling design (CSG Tree generation)... Rendering Polygon Mesh using CGAL... Geometries in cache: 21 Geometry cache size in bytes: 246272 CGAL Polyhedrons in cache: 29 CGAL cache size in bytes: 79977704 Total rendering time: 0:01:06.915 Top level object is a 3D object: Simple: yes Vertices: 7830 Halfedges: 24024 Edges: 12012 Halffacets: 8440 Facets: 4220 Volumes: 17 Rendering finished. On 3/17/2023 5:30 PM, Jordan Brown wrote: > On 3/17/2023 1:49 PM, jon wrote: >> When I open version 2023.02.23 (git a23badf34) [with fast-csg and >> fast-csg-trust-corefinement and lazy-unions checked] and immediately >> do F6, I get this: > > How is it with the fast-csg and lazy unions options turned off? >
JB
Jordan Brown
Fri, Mar 17, 2023 9:55 PM

On 3/17/2023 2:39 PM, jon wrote:

works fine!

This suggests that the problem is with the fast-csg feature or the lazy
union feature.

I suggest that you:

  • Try each of the three options separately to see which one causes the
    problem.
  • Simplify the problematic OpenSCAD program as much as possible, to
    the minimum required to demonstrate the problem.  For instance,
    based on a quick skim it looks like "Everything" is not used in the
    case you're demonstrating, so delete it.  Then, does "Bottom" alone
    demonstrate the problem?  "Top" alone?  "Back" alone?  If so, delete
    everything else.  Et cetera.  It's usually possible to get a problem
    like this down to two or three primitives and a couple of other
    operations.
  • File a GitHub issue, supplying the simplified program and the exact
    OpenSCAD options that demonstrate the problem.  Additional
    information about variations that do not cause the problem, like
    turning a particular option on or off, or removing a component from
    the model, is also helpful.

Going through this exercise will both help to get somebody's attention
on the problem and may you to understand it so that you can work around
it or, in some cases, discover that it's actually a problem with your model.

In this particular case it does seem likely to be a bug, since the same
model works with some OpenSCAD options and not with others.

On 3/17/2023 2:39 PM, jon wrote: > > works fine! > This suggests that the problem is with the fast-csg feature or the lazy union feature. I suggest that you: * Try each of the three options separately to see which one causes the problem. * Simplify the problematic OpenSCAD program as much as possible, to the minimum required to demonstrate the problem.  For instance, based on a quick skim it looks like "Everything" is not used in the case you're demonstrating, so delete it.  Then, does "Bottom" alone demonstrate the problem?  "Top" alone?  "Back" alone?  If so, delete everything else.  Et cetera.  It's usually possible to get a problem like this down to two or three primitives and a couple of other operations. * File a GitHub issue, supplying the simplified program and the exact OpenSCAD options that demonstrate the problem.  Additional information about variations that do *not* cause the problem, like turning a particular option on or off, or removing a component from the model, is also helpful. Going through this exercise will both help to get somebody's attention on the problem and may you to understand it so that you can work around it or, in some cases, discover that it's actually a problem with your model. In this particular case it does seem likely to be a bug, since the same model works with some OpenSCAD options and not with others.