Problem with second example in the User Manual

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Problem with second example in the User Manual

David Goodenough
When I enter the second example in the User Manual:-

difference() {
        cube(30, center=true);
        sphere(20);
 }
 translate([0, 0, 30]) {
        cylinder(h=40, r=10);
 }

and press F5, I get:-

openscad: /usr/include/eigen2/Eigen/src/Core/MatrixStorage.h:44:
Eigen::ei_matrix_array<T, Size, MatrixOptions, Align>::ei_matrix_array() [with
T = double, int Size = 16, int MatrixOptions = 2, bool Align = true]:
Assertion `(reinterpret_cast<size_t>(array) & 0xf) == 0 && "this assertion is
explained here: http://eigen.tuxfamily.org/dox/UnalignedArrayAssert.html  ****
READ THIS WEB PAGE !!! ****"' failed.
Aborted

I am running with a version which I clones from git on the 4th Oct.
I am using Debian (sid), and the OpenCSG deb version 1.3.1-5.

Any ideas how to fix this?

David

Reply | Threaded
Open this post in threaded view
|

Re: Problem with second example in the User Manual

Brad Pitcher
Can you try this commit and see if that helps?
https://github.com/brad/openscad/commit/0407d287b035e4f3aabf718f290eb31365fad26e

On Tue, Oct 11, 2011 at 2:25 AM, David Goodenough <[hidden email]> wrote:
When I enter the second example in the User Manual:-

difference() {
       cube(30, center=true);
       sphere(20);
 }
 translate([0, 0, 30]) {
       cylinder(h=40, r=10);
 }

and press F5, I get:-

openscad: /usr/include/eigen2/Eigen/src/Core/MatrixStorage.h:44:
Eigen::ei_matrix_array<T, Size, MatrixOptions, Align>::ei_matrix_array() [with
T = double, int Size = 16, int MatrixOptions = 2, bool Align = true]:
Assertion `(reinterpret_cast<size_t>(array) & 0xf) == 0 && "this assertion is
explained here: http://eigen.tuxfamily.org/dox/UnalignedArrayAssert.html  ****
READ THIS WEB PAGE !!! ****"' failed.
Aborted

I am running with a version which I clones from git on the 4th Oct.
I am using Debian (sid), and the OpenCSG deb version 1.3.1-5.

Any ideas how to fix this?

David
_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad

Reply | Threaded
Open this post in threaded view
|

Re: Problem with second example in the User Manual

donbright
my solution was very similar to Brad's.

i went into src/linalg.h and src/dxfdata.h , and put this in:

#ifndef __APPLE__
#define EIGEN_DONT_VECTORIZE 1
#define EIGEN_DISABLE_UNALIGNED_ARRAY_ASSERT 1
#endif

before it #includes the Eigen stuff.

The Eigen web page has more info.

-DB

Reply | Threaded
Open this post in threaded view
|

Re: Problem with second example in the User Manual

David Goodenough
In reply to this post by Brad Pitcher
On Wednesday 12 Oct 2011, Brad Pitcher wrote:
> Can you try this commit and see if that helps?
> https://github.com/brad/openscad/commit/0407d287b035e4f3aabf718f290eb31365f
> ad26e
I have applied this fix, and yes it now works.  Thank you.

David

>
> On Tue, Oct 11, 2011 at 2:25 AM, David Goodenough <
>
> [hidden email]> wrote:
> > When I enter the second example in the User Manual:-
> >
> > difference() {
> >
> >        cube(30, center=true);
> >        sphere(20);
> >  
> >  }
> >  translate([0, 0, 30]) {
> >  
> >        cylinder(h=40, r=10);
> >  
> >  }
> >
> > and press F5, I get:-
> >
> > openscad: /usr/include/eigen2/Eigen/src/Core/MatrixStorage.h:44:
> > Eigen::ei_matrix_array<T, Size, MatrixOptions, Align>::ei_matrix_array()
> > [with
> > T = double, int Size = 16, int MatrixOptions = 2, bool Align = true]:
> > Assertion `(reinterpret_cast<size_t>(array) & 0xf) == 0 && "this
> > assertion is
> > explained here: http://eigen.tuxfamily.org/dox/UnalignedArrayAssert.html
> > **** READ THIS WEB PAGE !!! ****"' failed.
> > Aborted
> >
> > I am running with a version which I clones from git on the 4th Oct.
> > I am using Debian (sid), and the OpenCSG deb version 1.3.1-5.
> >
> > Any ideas how to fix this?
> >
> > David
> > _______________________________________________
> > OpenSCAD mailing list
> > [hidden email]
> > http://rocklinux.net/mailman/listinfo/openscad