Skip to content

"modeling_affine" compiling and segfault issues #3

@neurodiverseEsoteric

Description

@neurodiverseEsoteric

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...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions