robotology / idyntree

Multibody Dynamics Library designed for Free Floating Robots
BSD 3-Clause "New" or "Revised" License
177 stars 67 forks source link

Some tests are failing on Ubuntu 20.04 #694

Closed traversaro closed 4 years ago

traversaro commented 4 years ago
 93% tests passed, 10 tests failed out of 151

Total Test time (real) = 1727.68 sec

The following tests FAILED:
Errors while running CTest
     83 - memcheck_UnitTestConvexHullHelpers (Failed)
     85 - memcheck_UnitTestInverseKinematics (Failed)
     87 - memcheck_UnitTestConstraintsGroup (Failed)
     89 - memcheck_UnitTestIntegrators (Failed)
     91 - memcheck_UnitTestOCProblem (Failed)
     93 - memcheck_UnitTestMultipleShooting (Failed)
     95 - memcheck_UnitTestL2Norm (Failed)
     97 - memcheck_UnitTestIpoptInterface (Failed)
     99 - memcheck_UnitTestOptimalControlIpopt (Failed)
    151 - octave_idyntree_tests (Timeout)
##[error]Process completed with exit code 8.
S-Dafarra commented 4 years ago

I tried to run these tests on my laptop, but they did not fail :thinking:

traversaro commented 4 years ago

Are you using the system IPOPT?

S-Dafarra commented 4 years ago

Actually no, I installed it manually to use the HSL solvers.

traversaro commented 4 years ago

Then I think the issue is a use of non-initialized memory in the system version of IPOPT, similar to https://github.com/robotology/idyntree/issues/456 .

S-Dafarra commented 4 years ago

The strange thing is that some of them do not use Ipopt :thinking:

traversaro commented 4 years ago

cc @GiulioRomualdi that is having similar problems in https://github.com/dic-iit/bipedal-locomotion-framework/runs/851685876 . If the non-initialized memory use of ipopt is harmless (that is not given, in https://github.com/robotology/idyntree/issues/456 that was not the case) we should suppress them with a valgrind suppression file as done in https://github.com/robotology/idyntree/blob/d5bbceab9e8ae52943b31199f6e024d12ff52159/cmake/valgrind-macos.supp and https://github.com/robotology/idyntree/blob/d5bbceab9e8ae52943b31199f6e024d12ff52159/cmake/iDynTreeOptions.cmake#L34 .

traversaro commented 4 years ago

This was probably fixed upstream in Ubuntu (see https://github.com/robotology/idyntree/pull/760), closing.