You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running the tests with PYTHONWARNINGS='error' pixi run test, I get segmentation faults on PythonGeomtryTests, PythonJointTests, PythonHelperTests, PythonModelLoaderTests and PythonExtWrenchesAndJointTorquesEstimatorUnitTest. By re-running the failed tests in verbose mode I get:
PYTHONWARNINGS='error' pixi run test --rerun-failed --output-on-failure
conda:jaxsim
✨Pixitask(configure): cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$CMAKE_INSTALL_PREFIX -DBUILD_TESTING:BOOL=ON -DIDYNTREE_USES_PYTHON:BOOL=ON -DIDYNTREE_USES_PYTHON_PYBIND11:BOOL=ON -DIDYNTREE_DETECT_ACTIVE_PYTHON_SITEPACKAGES:BOOL=ON -G Ninja -S . -B .build
--FoundYARP: /home/fferretti-iit.local/git/idyntree/.pixi/envs/default/lib/cmake/YARP (found version "3.9.0~dev")
--FoundYCM: /home/fferretti-iit.local/git/idyntree/.pixi/envs/default/share/cmake/YCM (found version "0.16.9")
--FoundYARP: /home/fferretti-iit.local/git/idyntree/.pixi/envs/default/lib/cmake/YARP (found version "3.9.0~dev")
-- Linking SWIG Python bindings against NumPy '2.1.2'
--Foundpybind11: /home/fferretti-iit.local/git/idyntree/.pixi/envs/default/include (found version "2.13.6")
--CouldNOTfindDoxygen(missing: DOXYGEN_EXECUTABLE)
-- Configuring done (0.5s)
CMakeWarning(dev)at.pixi/envs/default/share/cmake-3.30/Modules/UseSWIG.cmake:945 (add_library):
The library that is being linked to, idyntree-sensors, is marked as being
deprecatedbytheowner.Themessageprovidedbythedeveloperis:
LinkingtheiDynTree::idyntree-sensors target is deprecated, please link
iDynTree::idyntree-model that provides the symbols formerly containd in
iDynTree::idyntree-sensors
CallStack(mostrecentcallfirst):
bindings/python/CMakeLists.txt:10 (swig_add_library)
This warning is for project developers. Use -Wno-dev to suppress it.
CMakeWarning(dev)at.pixi/envs/default/share/cmake-3.30/Modules/FindPython/Support.cmake:4239 (add_library):
The library that is being linked to, idyntree-sensors, is marked as being
deprecatedbytheowner.Themessageprovidedbythedeveloperis:
LinkingtheiDynTree::idyntree-sensors target is deprecated, please link
iDynTree::idyntree-model that provides the symbols formerly containd in
iDynTree::idyntree-sensors
CallStack(mostrecentcallfirst):
.pixi/envs/default/share/cmake-3.30/Modules/FindPython3.cmake:606 (__Python3_add_library)
.pixi/envs/default/share/cmake/pybind11/pybind11NewTools.cmake:269 (python3_add_library)
bindings/pybind11/CMakeLists.txt:1 (pybind11_add_module)
This warning is for project developers. Use -Wno-dev to suppress it.
CMakeWarning(dev)at.pixi/envs/default/share/cmake-3.30/Modules/UseSWIG.cmake:945 (add_library):
The library that is being linked to, idyntree-sensors, is marked as being
deprecatedbytheowner.Themessageprovidedbythedeveloperis:
LinkingtheiDynTree::idyntree-sensors target is deprecated, please link
iDynTree::idyntree-model that provides the symbols formerly containd in
iDynTree::idyntree-sensors
CallStack(mostrecentcallfirst):
bindings/python/CMakeLists.txt:10 (swig_add_library)
This warning is for project developers. Use -Wno-dev to suppress it.
CMakeWarning(dev)at.pixi/envs/default/share/cmake-3.30/Modules/FindPython/Support.cmake:4239 (add_library):
The library that is being linked to, idyntree-sensors, is marked as being
deprecatedbytheowner.Themessageprovidedbythedeveloperis:
LinkingtheiDynTree::idyntree-sensors target is deprecated, please link
iDynTree::idyntree-model that provides the symbols formerly containd in
iDynTree::idyntree-sensors
CallStack(mostrecentcallfirst):
.pixi/envs/default/share/cmake-3.30/Modules/FindPython3.cmake:606 (__Python3_add_library)
.pixi/envs/default/share/cmake/pybind11/pybind11NewTools.cmake:269 (python3_add_library)
bindings/pybind11/CMakeLists.txt:1 (pybind11_add_module)
This warning is for project developers. Use -Wno-dev to suppress it.
CMakeWarning(dev)at.pixi/envs/default/share/cmake-3.30/Modules/UseSWIG.cmake:945 (add_library):
The library that is being linked to, idyntree-sensors, is marked as being
deprecatedbytheowner.Themessageprovidedbythedeveloperis:
LinkingtheiDynTree::idyntree-sensors target is deprecated, please link
iDynTree::idyntree-model that provides the symbols formerly containd in
iDynTree::idyntree-sensors
CallStack(mostrecentcallfirst):
bindings/python/CMakeLists.txt:10 (swig_add_library)
This warning is for project developers. Use -Wno-dev to suppress it.
CMakeWarning(dev)at.pixi/envs/default/share/cmake-3.30/Modules/FindPython/Support.cmake:4239 (add_library):
The library that is being linked to, idyntree-sensors, is marked as being
deprecatedbytheowner.Themessageprovidedbythedeveloperis:
LinkingtheiDynTree::idyntree-sensors target is deprecated, please link
iDynTree::idyntree-model that provides the symbols formerly containd in
iDynTree::idyntree-sensors
CallStack(mostrecentcallfirst):
.pixi/envs/default/share/cmake-3.30/Modules/FindPython3.cmake:606 (__Python3_add_library)
.pixi/envs/default/share/cmake/pybind11/pybind11NewTools.cmake:269 (python3_add_library)
bindings/pybind11/CMakeLists.txt:1 (pybind11_add_module)
This warning is for project developers. Use -Wno-dev to suppress it.
CMakeWarning(dev)at.pixi/envs/default/share/cmake-3.30/Modules/UseSWIG.cmake:945 (add_library):
The library that is being linked to, idyntree-sensors, is marked as being
deprecatedbytheowner.Themessageprovidedbythedeveloperis:
LinkingtheiDynTree::idyntree-sensors target is deprecated, please link
iDynTree::idyntree-model that provides the symbols formerly containd in
iDynTree::idyntree-sensors
CallStack(mostrecentcallfirst):
bindings/python/CMakeLists.txt:10 (swig_add_library)
This warning is for project developers. Use -Wno-dev to suppress it.
CMakeWarning(dev)at.pixi/envs/default/share/cmake-3.30/Modules/UseSWIG.cmake:945 (add_library):
The library that is being linked to, idyntree-sensors, is marked as being
deprecatedbytheowner.Themessageprovidedbythedeveloperis:
LinkingtheiDynTree::idyntree-sensors target is deprecated, please link
iDynTree::idyntree-model that provides the symbols formerly containd in
iDynTree::idyntree-sensors
CallStack(mostrecentcallfirst):
bindings/python/CMakeLists.txt:10 (swig_add_library)
This warning is for project developers. Use -Wno-dev to suppress it.
CMakeWarning(dev)at.pixi/envs/default/share/cmake-3.30/Modules/FindPython/Support.cmake:4239 (add_library):
The library that is being linked to, idyntree-sensors, is marked as being
deprecatedbytheowner.Themessageprovidedbythedeveloperis:
LinkingtheiDynTree::idyntree-sensors target is deprecated, please link
iDynTree::idyntree-model that provides the symbols formerly containd in
iDynTree::idyntree-sensors
CallStack(mostrecentcallfirst):
.pixi/envs/default/share/cmake-3.30/Modules/FindPython3.cmake:606 (__Python3_add_library)
.pixi/envs/default/share/cmake/pybind11/pybind11NewTools.cmake:269 (python3_add_library)
bindings/pybind11/CMakeLists.txt:1 (pybind11_add_module)
This warning is for project developers. Use -Wno-dev to suppress it.
CMakeWarning(dev)at.pixi/envs/default/share/cmake-3.30/Modules/FindPython/Support.cmake:4239 (add_library):
The library that is being linked to, idyntree-sensors, is marked as being
deprecatedbytheowner.Themessageprovidedbythedeveloperis:
LinkingtheiDynTree::idyntree-sensors target is deprecated, please link
iDynTree::idyntree-model that provides the symbols formerly containd in
iDynTree::idyntree-sensors
CallStack(mostrecentcallfirst):
.pixi/envs/default/share/cmake-3.30/Modules/FindPython3.cmake:606 (__Python3_add_library)
.pixi/envs/default/share/cmake/pybind11/pybind11NewTools.cmake:269 (python3_add_library)
bindings/pybind11/CMakeLists.txt:1 (pybind11_add_module)
This warning is for project developers. Use -Wno-dev to suppress it.
CMakeWarning(dev)at.pixi/envs/default/share/cmake-3.30/Modules/UseSWIG.cmake:945 (add_library):
The library that is being linked to, idyntree-sensors, is marked as being
deprecatedbytheowner.Themessageprovidedbythedeveloperis:
LinkingtheiDynTree::idyntree-sensors target is deprecated, please link
iDynTree::idyntree-model that provides the symbols formerly containd in
iDynTree::idyntree-sensors
CallStack(mostrecentcallfirst):
bindings/python/CMakeLists.txt:10 (swig_add_library)
This warning is for project developers. Use -Wno-dev to suppress it.
CMakeWarning(dev)at.pixi/envs/default/share/cmake-3.30/Modules/UseSWIG.cmake:945 (add_library):
The library that is being linked to, idyntree-sensors, is marked as being
deprecatedbytheowner.Themessageprovidedbythedeveloperis:
LinkingtheiDynTree::idyntree-sensors target is deprecated, please link
iDynTree::idyntree-model that provides the symbols formerly containd in
iDynTree::idyntree-sensors
CallStack(mostrecentcallfirst):
bindings/python/CMakeLists.txt:10 (swig_add_library)
This warning is for project developers. Use -Wno-dev to suppress it.
CMakeWarning(dev)at.pixi/envs/default/share/cmake-3.30/Modules/UseSWIG.cmake:945 (add_library):
The library that is being linked to, idyntree-sensors, is marked as being
deprecatedbytheowner.Themessageprovidedbythedeveloperis:
LinkingtheiDynTree::idyntree-sensors target is deprecated, please link
iDynTree::idyntree-model that provides the symbols formerly containd in
iDynTree::idyntree-sensors
CallStack(mostrecentcallfirst):
bindings/python/CMakeLists.txt:10 (swig_add_library)
This warning is for project developers. Use -Wno-dev to suppress it.
CMakeWarning(dev)at.pixi/envs/default/share/cmake-3.30/Modules/UseSWIG.cmake:945 (add_library):
The library that is being linked to, idyntree-sensors, is marked as being
deprecatedbytheowner.Themessageprovidedbythedeveloperis:
LinkingtheiDynTree::idyntree-sensors target is deprecated, please link
iDynTree::idyntree-model that provides the symbols formerly containd in
iDynTree::idyntree-sensors
CallStack(mostrecentcallfirst):
bindings/python/CMakeLists.txt:10 (swig_add_library)
This warning is for project developers. Use -Wno-dev to suppress it.
CMakeWarning(dev)at.pixi/envs/default/share/cmake-3.30/Modules/FindPython/Support.cmake:4239 (add_library):
The library that is being linked to, idyntree-sensors, is marked as being
deprecatedbytheowner.Themessageprovidedbythedeveloperis:
LinkingtheiDynTree::idyntree-sensors target is deprecated, please link
iDynTree::idyntree-model that provides the symbols formerly containd in
iDynTree::idyntree-sensors
CallStack(mostrecentcallfirst):
.pixi/envs/default/share/cmake-3.30/Modules/FindPython3.cmake:606 (__Python3_add_library)
.pixi/envs/default/share/cmake/pybind11/pybind11NewTools.cmake:269 (python3_add_library)
bindings/pybind11/CMakeLists.txt:1 (pybind11_add_module)
This warning is for project developers. Use -Wno-dev to suppress it.
CMakeWarning(dev)at.pixi/envs/default/share/cmake-3.30/Modules/FindPython/Support.cmake:4239 (add_library):
The library that is being linked to, idyntree-sensors, is marked as being
deprecatedbytheowner.Themessageprovidedbythedeveloperis:
LinkingtheiDynTree::idyntree-sensors target is deprecated, please link
iDynTree::idyntree-model that provides the symbols formerly containd in
iDynTree::idyntree-sensors
CallStack(mostrecentcallfirst):
.pixi/envs/default/share/cmake-3.30/Modules/FindPython3.cmake:606 (__Python3_add_library)
.pixi/envs/default/share/cmake/pybind11/pybind11NewTools.cmake:269 (python3_add_library)
bindings/pybind11/CMakeLists.txt:1 (pybind11_add_module)
This warning is for project developers. Use -Wno-dev to suppress it.
-- Generating done (0.1s)
--Buildfileshavebeenwrittento: /home/fferretti-iit.local/git/idyntree/.build
✨Pixitask(build): cmake --build .build --config Release
[1/1] Running utility command for copy_python_tests_in_build
✨Pixitask(test): ctest --test-dir .build --build-config Release --rerun-failed --output-on-failure
Internalctestchangingintodirectory: /home/fferretti-iit.local/git/idyntree/.build
Test project /home/fferretti-iit.local/git/idyntree/.build
Start60: PythonGeometryTests
1/5Test#60: PythonGeometryTests .................................***Exception: SegFault 1.28 sec
Start61: PythonJointTests
2/5Test#61: PythonJointTests ....................................***Exception: SegFault 1.29 sec
Start62: PythonHelperTests
3/5Test#62: PythonHelperTests ...................................***Exception: SegFault 1.27 sec
Start63: PythonModelLoaderTests
4/5Test#63: PythonModelLoaderTests ..............................***Exception: SegFault 1.29 sec
Start64: PythonExtWrenchesAndJointTorquesEstimatorUnitTest
5/5Test#64: PythonExtWrenchesAndJointTorquesEstimatorUnitTest ...***Exception: SegFault 1.28 sec
0% tests passed, 5 tests failed out of 5
Total Test time (real) = 6.42 sec
ThefollowingtestsFAILED:
60 - PythonGeometryTests (SEGFAULT)
61 - PythonJointTests (SEGFAULT)
62 - PythonHelperTests (SEGFAULT)
63 - PythonModelLoaderTests (SEGFAULT)
64 - PythonExtWrenchesAndJointTorquesEstimatorUnitTest (SEGFAULT)
Errors while running CTest
Giving that this is not blocking, nor crucial, I was wondering if suppressing the deprecation warning in cmake/iDynTreeOptions.cmake could help:
# Option to filter deprecation warningsoption(IDYNTREE_FILTER_DEPRECATION_WARNINGS "Filter out deprecation warnings"FALSE)
# Remove deprecation warnings for a specific part of iDynTreemacro(idyntree_disable_deprecation_warnings)
if(IDYNTREE_FILTER_DEPRECATION_WARNINGS)
if(MSVC)
add_definitions(/wd4996)
else()
CHECK_CXX_COMPILER_FLAG("-Wno-deprecated" CXX_HAS_WNO_DEPRECATED)
if(CXX_HAS_WNO_DEPRECATED)
add_definitions(-Wno-deprecated)
endif()
endif()
endif()
endmacro()
Other issues mentioning this problem in SWIG 0.4.3:
When running the tests with
PYTHONWARNINGS='error' pixi run test
, I get segmentation faults onPythonGeomtryTests
,PythonJointTests
,PythonHelperTests
,PythonModelLoaderTests
andPythonExtWrenchesAndJointTorquesEstimatorUnitTest
. By re-running the failed tests in verbose mode I get:PYTHONWARNINGS='error' pixi run test --rerun-failed --output-on-failure
I have encountered a similar behavior also in https://github.com/ami-iit/jaxsim:
pixi run --locked -e tasks-cpu pytest tests/test_api_model.py::test_model_creation_and_reduction
Instead, by only considering the warnings as such, it seems that the cause is due to some
DeprecationWarning
inswig
:pixi run --locked -e tasks-cpu pytest -Werror tests/test_api_model.py::test_model_creation_and_reduction
Giving that this is not blocking, nor crucial, I was wondering if suppressing the deprecation warning in cmake/iDynTreeOptions.cmake could help:
Other issues mentioning this problem in SWIG 0.4.3:
The text was updated successfully, but these errors were encountered: