Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

"modeling_affine" compiling and segfault issues #3

Open
neurodiverseEsoteric opened this issue Feb 24, 2018 · 2 comments
Open

"modeling_affine" compiling and segfault issues #3

neurodiverseEsoteric opened this issue Feb 24, 2018 · 2 comments

Comments

@neurodiverseEsoteric
Copy link

When I first tried to compile the affine modelling example under Manjaro Linux, I ran into another issue that seemed to be a typo, where line 57 seems to be missing the "extend" argument:
"hedra::point_spheres(bc, sphereRadius, sphereGreens, 10, false, sphereV, sphereT, sphereTC);"
After adding that argument, the compiler completes successfully. However the moment I press any mouse button aside from the left, the program crashes with this:

Program received signal SIGSEGV, Segmentation fault.
0x000055555585f613 in void Eigen::DenseCoeffsBase<Eigen::Matrix<double, 1, 3, 1, 1, 3>, 1>::copyCoeff<Eigen::CwiseUnaryOp<Eigen::internal::scalar_cast_op<float, double>, Eigen::Matrix<float, 1, 3, 1, 1, 3> const> >(long, Eigen::DenseBase<Eigen::CwiseUnaryOp<Eigen::internal::scalar_cast_op<float, double>, Eigen::Matrix<float, 1, 3, 1, 1, 3> const> > const&) ()

GDB's backtrace shows this:

0x000055555585f613 in void Eigen::DenseCoeffsBase<Eigen::Matrix<double, 1, 3, 1, 1, 3>, 1>::copyCoeff<Eigen::CwiseUnaryOp<Eigen::internal::scalar_cast_op<float, double>, Eigen::Matrix<float, 1, 3, 1, 1, 3> const> >(long, Eigen::DenseBase<Eigen::CwiseUnaryOp<Eigen::internal::scalar_cast_op<float, double>, Eigen::Matrix<float, 1, 3, 1, 1, 3> const> > const&) ()
(gdb) bt
#0 0x000055555585f613 in void Eigen::DenseCoeffsBase<Eigen::Matrix<double, 1, 3, 1, 1, 3>, 1>::copyCoeff<Eigen::CwiseUnaryOp<Eigen::internal::scalar_cast_op<float, double>, Eigen::Matrix<float, 1, 3, 1, 1, 3> const> >(long, Eigen::DenseBase<Eigen::CwiseUnaryOp<Eigen::internal::scalar_cast_op<float, double>, Eigen::Matrix<float, 1, 3, 1, 1, 3> const> > const&) ()
#1 0x0000555555852f92 in Eigen::internal::assign_LinearTraversal_CompleteUnrolling<Eigen::Matrix<double, 1, 3, 1, 1, 3>, Eigen::CwiseUnaryOp<Eigen::internal::scalar_cast_op<float, double>, Eigen::Matrix<float, 1, 3, 1, 1, 3> const>, 0, 3>::run(Eigen::Matrix<double, 1, 3, 1, 1, 3>&, Eigen::CwiseUnaryOp<Eigen::internal::scalar_cast_op<float, double>, Eigen::Matrix<float, 1, 3, 1, 1, 3> const> const&) ()
#2 0x000055555584547d in Eigen::internal::assign_impl<Eigen::Matrix<double, 1, 3, 1, 1, 3>, Eigen::CwiseUnaryOp<Eigen::internal::scalar_cast_op<float, double>, Eigen::Matrix<float, 1, 3, 1, 1, 3> const>, 1, 2, 0>::run(Eigen::Matrix<double, 1, 3, 1, 1, 3>&, Eigen::CwiseUnaryOp<Eigen::internal::scalar_cast_op<float, double>, Eigen::Matrix<float, 1, 3, 1, 1, 3> const> const&) ()
#3 0x0000555555834fb6 in Eigen::Matrix<double, 1, 3, 1, 1, 3>& Eigen::DenseBase<Eigen::Matrix<double, 1, 3, 1, 1, 3> >::lazyAssign<Eigen::CwiseUnaryOp<Eigen::internal::scalar_cast_op<float, double>, Eigen::Matrix<float, 1, 3, 1, 1, 3> const> >(Eigen::DenseBase<Eigen::CwiseUnaryOp<Eigen::internal::scalar_cast_op<float, double>, Eigen::Matrix<float, 1, 3, 1, 1, 3> const> > const&) ()
#4 0x00005555558257a9 in Eigen::Matrix<double, 1, 3, 1, 1, 3>& Eigen::PlainObjectBase<Eigen::Matrix<double, 1, 3, 1, 1, 3> >::lazyAssign<Eigen::CwiseUnaryOp<Eigen::internal::scalar_cast_op<float, double>, Eigen::Matrix<float, 1, 3, 1, 1, 3> const> >(Eigen::DenseBase<Eigen::CwiseUnaryOp<Eigen::internal::scalar_cast_op<float, double>, Eigen::Matrix<float, 1, 3, 1, 1, 3> const> > const&) ()
#5 0x0000555555816467 in Eigen::internal::assign_selector<Eigen::Matrix<double, 1, 3, 1, 1, 3>, Eigen::CwiseUnaryOp<Eigen::internal::scalar_cast_op<float, double>, Eigen::Matrix<float, 1, 3, 1, 1, 3>

...This happens whether or not I use true or false on that second boolean, so this might be unrelated to the compiler error...

@avaxman
Copy link
Owner

avaxman commented Feb 25, 2018

Hello,

Thank you for bringing this into my attention. Please use the tutorial version (202) rather than the examples, which are deprecated and will disappear. The tutorial examples will always be operative---just checked this one and it's good (with VS2017). I promise to update the documentation soon. meanwhile, the readme.md does contain instruction on compiling the tutorials.

@neurodiverseEsoteric
Copy link
Author

VS2017? I'm on Linux...But I'll check how the tutorial examples fare...thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants