Giter Club home page Giter Club logo

libigl-unit-tests's Introduction

libigl-unit-tests's People

Contributors

alecjacobson avatar danielepanozzo avatar fwilliams avatar jdumas avatar jmespadero avatar qnzhou avatar skoch9 avatar teseoch avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

libigl-unit-tests's Issues

Test fails

I would like to use libigl but get memory errors ("^tetrahedralize: TETGEN CRASHED... KABOOOM!!!
malloc_consolidate(): invalid chunk size").

For debugging I try to run the unit tests but they stop with a failed assertion:

$ GTEST_COLOR=1 ctest --verbose

[...]
1: [ RUN ] all_meshes/upsample.V_comes_first_F_ordering/truck_obj
1: igl_tests: /mnt/ascadian/geomtools/libigl-unit-tests/libigl/external/eigen/Eigen/src/Core/DenseCoeffsBase.h:337: Eigen::DenseCoeffsBase<Derived, 1>::Scalar& Eigen::DenseCoeffsBase<Derived, 1>::operator()(Eigen::DenseCoeffsBase<Derived, 1>::Index, Eigen::DenseCoeffsBase<Derived, 1>::Index) [with Derived = Eigen::Matrix<int, -1, -1>; Eigen::DenseCoeffsBase<Derived, 1>::Scalar = int; Eigen::DenseCoeffsBase<Derived, 1>::Index = long int]: Assertion `row >= 0 && row < rows() && col >= 0 && col < cols()' failed.
1/1 Test #1: run_igl_tests ....................***Exception: Other 17.16 sec

0% tests passed, 1 tests failed out of 1

Total Test time (real) = 17.17 sec

The following tests FAILED:
1 - run_igl_tests (OTHER_FAULT)
Errors while running CTest

I tried to run them on Arch Linux with different compilers and Ubuntu 17.10 with gcc 7.2.

Do you have any idea what could cause the problem or how to debug it better?

Eigen::MatrixBase vs Eigen::PlainObjectBase

Just to make a note here, I noticed igl::point_simplex_squared_distance(...) uses Eigen::MatrixBase<Derived> for some of its output arguments, which is causing qslim unit test to fail because Eigen::MatrixBase<Derived>::resize(...) is actually just an assertion check, and the actual resizing is implemented in Eigen::PlainObjectBase<Derived>::resize().

My eigen is 3.2.9 from macport.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.