Closed traversaro closed 2 years ago
This seems similar to https://github.com/conda-forge/libignition-gazebo-feedstock/issues/4 . However, it is on macOS (but perhaps it is also reproducible on Linux) and lower in the stack, so perhaps it is easier to debug.
The same error occurs on Linux as well:
(ignrend) traversaro@IITICUBLAP102:~/ign-rendering/examples/simple_demo/build$ ./simple_demo
[Msg] Loading plugin [ignition-rendering-ogre]
Error while loading the library [/home/traversaro/miniforge3/envs/ignrend/lib/ignition-rendering-ogre]: /home/traversaro/miniforge3/envs/ignrend/lib: cannot read file data: Is a directory
[Err] [RenderEngineManager.cc:470] Failed to load plugin [ignition-rendering-ogre] : couldn't load library on path [/home/traversaro/miniforge3/envs/ignrend/lib].
Engine 'ogre' is not supported
[Msg] Loading plugin [optix]
Error while loading the library [/home/traversaro/miniforge3/envs/ignrend/lib/optix]: /home/traversaro/miniforge3/envs/ignrend/lib: cannot read file data: Is a directory
[Err] [RenderEngineManager.cc:470] Failed to load plugin [optix] : couldn't load library on path [/home/traversaro/miniforge3/envs/ignrend/lib].
Engine 'optix' is not supported
[Err] [GlutWindow.cc:178] No cameras found. Scene will not be rendered
Compiling ignition-rendering from the ign-rendering4 branch the plugin is found, even if then the rendering window does not start:
(ignrenddeps) traversaro@IITICUBLAP102:~/rend-ws/src/ign-rendering/examples/simple_demo/build$ ./simple_demo
[Msg] Loading plugin [ignition-rendering-ogre]
[Err] [OgreRenderEngine.cc:677] Unable to create the rendering window. Attempt [1]. Exception [RenderingAPIException: Unable to create a suitable GLXContext in GLXContext::GLXContext at /home/conda/feedstock_root/build_artifacts/ogre_1618751642257/work/RenderSystems/GLSupport/src/GLX/OgreGLXContext.cpp (line 60)]
[Err] [OgreRenderEngine.cc:677] Unable to create the rendering window. Attempt [2]. Exception [RenderingAPIException: Unable to create a suitable GLXContext in GLXContext::GLXContext at /home/conda/feedstock_root/build_artifacts/ogre_1618751642257/work/RenderSystems/GLSupport/src/GLX/OgreGLXContext.cpp (line 60)]
[Err] [OgreRenderEngine.cc:677] Unable to create the rendering window. Attempt [3]. Exception [RenderingAPIException: Unable to create a suitable GLXContext in GLXContext::GLXContext at /home/conda/feedstock_root/build_artifacts/ogre_1618751642257/work/RenderSystems/GLSupport/src/GLX/OgreGLXContext.cpp (line 60)]
[Err] [OgreRenderEngine.cc:677] Unable to create the rendering window. Attempt [4]. Exception [RenderingAPIException: Unable to create a suitable GLXContext in GLXContext::GLXContext at /home/conda/feedstock_root/build_artifacts/ogre_1618751642257/work/RenderSystems/GLSupport/src/GLX/OgreGLXContext.cpp (line 60)]
[Err] [OgreRenderEngine.cc:677] Unable to create the rendering window. Attempt [5]. Exception [RenderingAPIException: Unable to create a suitable GLXContext in GLXContext::GLXContext at /home/conda/feedstock_root/build_artifacts/ogre_1618751642257/work/RenderSystems/GLSupport/src/GLX/OgreGLXContext.cpp (line 60)]
[Err] [OgreRenderEngine.cc:677] Unable to create the rendering window. Attempt [6]. Exception [RenderingAPIException: Unable to create a suitable GLXContext in GLXContext::GLXContext at /home/conda/feedstock_root/build_artifacts/ogre_1618751642257/work/RenderSystems/GLSupport/src/GLX/OgreGLXContext.cpp (line 60)]
[Err] [OgreRenderEngine.cc:677] Unable to create the rendering window. Attempt [7]. Exception [RenderingAPIException: Unable to create a suitable GLXContext in GLXContext::GLXContext at /home/conda/feedstock_root/build_artifacts/ogre_1618751642257/work/RenderSystems/GLSupport/src/GLX/OgreGLXContext.cpp (line 60)]
[Err] [OgreRenderEngine.cc:677] Unable to create the rendering window. Attempt [8]. Exception [RenderingAPIException: Unable to create a suitable GLXContext in GLXContext::GLXContext at /home/conda/feedstock_root/build_artifacts/ogre_1618751642257/work/RenderSystems/GLSupport/src/GLX/OgreGLXContext.cpp (line 60)]
[Err] [OgreRenderEngine.cc:677] Unable to create the rendering window. Attempt [9]. Exception [RenderingAPIException: Unable to create a suitable GLXContext in GLXContext::GLXContext at /home/conda/feedstock_root/build_artifacts/ogre_1618751642257/work/RenderSystems/GLSupport/src/GLX/OgreGLXContext.cpp (line 60)]
[Err] [OgreRenderEngine.cc:677] Unable to create the rendering window. Attempt [10]. Exception [RenderingAPIException: Unable to create a suitable GLXContext in GLXContext::GLXContext at /home/conda/feedstock_root/build_artifacts/ogre_1618751642257/work/RenderSystems/GLSupport/src/GLX/OgreGLXContext.cpp (line 60)]
[Err] [OgreRenderEngine.cc:685] Unable to create the rendering window after [11] attempts.
[Err] [OgreRenderEngine.cc:620] Failed to create dummy render window.
[Err] [OgreRenderEngine.cc:718] Failed to get capabilities
[Wrn] [OgreRenderEngine.cc:778] Cannot initialize render engine since render path type is NONE. Ignore this warning ifrendering has been turned off on purpose.
Segmentation fault
(ignrenddeps) traversaro@IITICUBLAP102:~/rend-ws/src/ign-rendering/examples/simple_demo/build$ conda list
# packages in environment at /home/traversaro/miniforge3/envs/ignrenddeps:
#
# Name Version Build Channel
_libgcc_mutex 0.1 conda_forge conda-forge
_openmp_mutex 4.5 1_gnu conda-forge
attrs 20.3.0 pyhd3deb0d_0 conda-forge
binutils 2.35.1 hdd6e379_2 conda-forge
binutils_impl_linux-64 2.35.1 h193b22a_2 conda-forge
binutils_linux-64 2.35 h67ddf6f_30 conda-forge
boost 1.75.0 py39h5472131_0 conda-forge
boost-cpp 1.75.0 hc6e9bd1_0 conda-forge
bzip2 1.0.8 h7f98852_4 conda-forge
c-ares 1.17.1 h7f98852_1 conda-forge
c-compiler 1.1.3 h7f98852_0 conda-forge
ca-certificates 2020.12.5 ha878542_0 conda-forge
catkin_pkg 0.4.23 pyh9f0ad1d_0 conda-forge
certifi 2020.12.5 py39hf3d152e_1 conda-forge
cmake 3.20.1 h541d2ed_0 conda-forge
colcon-cmake 0.2.26 py_0 conda-forge
colcon-common-extensions 0.2.1 py39hf3d152e_2 conda-forge
colcon-core 0.6.1 py39hf3d152e_1 conda-forge
colcon-defaults 0.2.5 py_0 conda-forge
colcon-devtools 0.2.2 py_0 conda-forge
colcon-library-path 0.2.1 py_0 conda-forge
colcon-metadata 0.2.5 py_0 conda-forge
colcon-output 0.2.12 py_0 conda-forge
colcon-package-information 0.3.3 py_0 conda-forge
colcon-package-selection 0.2.10 py_0 conda-forge
colcon-parallel-executor 0.2.4 py_0 conda-forge
colcon-pkg-config 0.1.0 py_0 conda-forge
colcon-powershell 0.3.6 py_0 conda-forge
colcon-python-setup-py 0.2.7 py_0 conda-forge
colcon-recursive-crawl 0.2.1 py_0 conda-forge
colcon-ros 0.3.21 py_0 conda-forge
colcon-test-result 0.3.8 py_0 conda-forge
compilers 1.1.3 ha770c72_0 conda-forge
coverage 5.5 py39h3811e60_0 conda-forge
cxx-compiler 1.1.3 h4bd325d_0 conda-forge
distlib 0.3.1 pyh9f0ad1d_0 conda-forge
docutils 0.17.1 py39hf3d152e_0 conda-forge
eigen 3.3.9 h4bd325d_1 conda-forge
empy 3.3.4 pyh9f0ad1d_1 conda-forge
expat 2.3.0 h9c3ff4c_0 conda-forge
expat-cos6-x86_64 2.0.1 h9d98e8f_1104 conda-forge
ffmpeg 4.3.1 hca11adc_2 conda-forge
fortran-compiler 1.1.3 h1990efc_0 conda-forge
freeglut 3.2.1 h9c3ff4c_2 conda-forge
freeimage 3.18.0 h88c329d_7 conda-forge
freetype 2.10.4 h0708190_1 conda-forge
gcc_impl_linux-64 9.3.0 h70c0ae5_19 conda-forge
gcc_linux-64 9.3.0 hf25ea35_30 conda-forge
gdbm 1.18 h0a1914f_2 conda-forge
gettext 0.19.8.1 h0b5b191_1005 conda-forge
gfortran_impl_linux-64 9.3.0 hc4a2995_19 conda-forge
gfortran_linux-64 9.3.0 hdc58fab_30 conda-forge
glew 2.1.0 h9c3ff4c_2 conda-forge
gmp 6.2.1 h58526e2_0 conda-forge
gnutls 3.6.13 h85f3911_1 conda-forge
gts 0.7.6 h64030ff_2 conda-forge
gxx_impl_linux-64 9.3.0 hd87eabc_19 conda-forge
gxx_linux-64 9.3.0 h3fbe746_30 conda-forge
icu 68.1 h58526e2_0 conda-forge
ilmbase 2.5.5 h780b84a_0 conda-forge
iniconfig 1.1.1 pyh9f0ad1d_0 conda-forge
jpeg 9d h36c2ea0_0 conda-forge
jxrlib 1.1 h7f98852_2 conda-forge
kernel-headers_linux-64 2.6.32 h77966d4_13 conda-forge
krb5 1.17.2 h926e7f8_0 conda-forge
lame 3.100 h7f98852_1001 conda-forge
lcms2 2.12 hddcbb42_0 conda-forge
ld_impl_linux-64 2.35.1 hea4e1c9_2 conda-forge
libblas 3.9.0 8_openblas conda-forge
libcblas 3.9.0 8_openblas conda-forge
libcurl 7.76.1 hc4aaa36_1 conda-forge
libdrm-cos6-x86_64 2.4.65 h9d98e8f_1104 conda-forge
libedit 3.1.20191231 he28a2e2_2 conda-forge
libev 4.33 h516909a_1 conda-forge
libffi 3.3 h58526e2_2 conda-forge
libgcc-devel_linux-64 9.3.0 h7864c58_19 conda-forge
libgcc-ng 9.3.0 h2828fa1_19 conda-forge
libgfortran-ng 9.3.0 hff62375_19 conda-forge
libgfortran5 9.3.0 hff62375_19 conda-forge
libglib 2.68.1 h3e27bee_0 conda-forge
libglu 9.0.0 he1b5a44_1001 conda-forge
libgomp 9.3.0 h2828fa1_19 conda-forge
libiconv 1.16 h516909a_0 conda-forge
libignition-cmake2 2.7.0 h9c3ff4c_1 conda-forge
libignition-common3 3.11.1 h4b9f6df_0 conda-forge
libignition-math6 6.8.0 h9c3ff4c_0 conda-forge
libignition-plugin1 1.2.0 h9c3ff4c_0 conda-forge
libignition-tools 0.2.0 had2f1a9_0 conda-forge
libignition-tools1 1.1.0 h33ecc0d_0 conda-forge
liblapack 3.9.0 8_openblas conda-forge
libnghttp2 1.43.0 h812cca2_0 conda-forge
libopenblas 0.3.12 pthreads_h4812303_1 conda-forge
libpng 1.6.37 h21135ba_2 conda-forge
libraw 0.20.2 h10796ff_1 conda-forge
libselinux-cos6-x86_64 2.0.94 h9d98e8f_1104 conda-forge
libsepol-cos6-x86_64 2.0.41 h9d98e8f_1104 conda-forge
libssh2 1.9.0 ha56f1ee_6 conda-forge
libstdcxx-devel_linux-64 9.3.0 hb016644_19 conda-forge
libstdcxx-ng 9.3.0 h6de172a_19 conda-forge
libtiff 4.2.0 hdc55705_0 conda-forge
libuuid 2.32.1 h7f98852_1000 conda-forge
libuv 1.41.0 h7f98852_0 conda-forge
libwebp-base 1.2.0 h7f98852_2 conda-forge
libx11-common-cos6-x86_64 1.6.4 h9d98e8f_1104 conda-forge
libx11-cos6-x86_64 1.6.4 h9d98e8f_1104 conda-forge
libxau-cos6-x86_64 1.0.6 h9d98e8f_1104 conda-forge
libxcb 1.13 h7f98852_1003 conda-forge
libxcb-cos6-x86_64 1.12 h9d98e8f_1104 conda-forge
libxdamage-cos6-x86_64 1.1.3 h9d98e8f_1104 conda-forge
libxext-cos6-x86_64 1.3.3 h9d98e8f_1104 conda-forge
libxfixes-cos6-x86_64 5.0.3 h9d98e8f_1104 conda-forge
libxml2 2.9.10 h72842e0_4 conda-forge
libxslt 1.1.33 h15afd5d_2 conda-forge
libxxf86vm-cos6-x86_64 1.1.3 h9d98e8f_1104 conda-forge
lxml 4.6.3 py39h107f48f_0 conda-forge
lz4-c 1.9.3 h9c3ff4c_0 conda-forge
mesa-dri-drivers-cos6-x86_64 11.0.7 h9d98e8f_1104 conda-forge
mesa-dri1-drivers-cos6-x86_64 7.11 h9d98e8f_1104 conda-forge
mesa-libgl-cos6-x86_64 11.0.7 h9d98e8f_1104 conda-forge
mesa-libgl-devel-cos6-x86_64 11.0.7 h9d98e8f_1104 conda-forge
mesalib 18.3.1 h590aaf7_0 conda-forge
more-itertools 8.7.0 pyhd8ed1ab_0 conda-forge
ncurses 6.2 h58526e2_4 conda-forge
nettle 3.6 he412f7d_0 conda-forge
numpy 1.20.2 py39hdbf815f_0 conda-forge
ogre 1.12.11 h89131c6_0 conda-forge
openexr 2.5.5 hf817b99_0 conda-forge
openh264 2.1.1 h780b84a_0 conda-forge
openjpeg 2.4.0 hf7af979_0 conda-forge
openssl 1.1.1k h7f98852_0 conda-forge
packaging 20.9 pyh44b312d_0 conda-forge
pcre 8.44 he1b5a44_0 conda-forge
pip 21.0.1 pyhd8ed1ab_0 conda-forge
pkg-config 0.29.2 h36c2ea0_1008 conda-forge
pluggy 0.13.1 py39hf3d152e_4 conda-forge
pthread-stubs 0.4 h36c2ea0_1001 conda-forge
pugixml 1.11.4 h9c3ff4c_0 conda-forge
py 1.10.0 pyhd3deb0d_0 conda-forge
pyparsing 2.4.7 pyh9f0ad1d_0 conda-forge
pytest 6.2.3 py39hf3d152e_0 conda-forge
pytest-cov 2.11.1 pyh44b312d_0 conda-forge
pytest-repeat 0.8.0 py_0 conda-forge
pytest-rerunfailures 9.1.1 py_0 conda-forge
pytest-runner 5.3.0 pyh44b312d_0 conda-forge
python 3.9.2 hffdb5ce_0_cpython conda-forge
python-dateutil 2.8.1 py_0 conda-forge
python_abi 3.9 1_cp39 conda-forge
pyyaml 5.4.1 py39h3811e60_0 conda-forge
readline 8.0 he28a2e2_2 conda-forge
rhash 1.4.1 h7f98852_0 conda-forge
ruby 2.7.2 he592edb_3 conda-forge
sdl2 2.0.12 h9c3ff4c_1 conda-forge
setuptools 49.6.0 py39hf3d152e_3 conda-forge
six 1.15.0 pyh9f0ad1d_0 conda-forge
sqlite 3.35.4 h74cdb3f_0 conda-forge
swig 4.0.2 hd3c618e_2 conda-forge
sysroot_linux-64 2.12 h77966d4_13 conda-forge
tinyxml2 8.0.0 h9c3ff4c_1 conda-forge
tk 8.6.10 h21135ba_1 conda-forge
toml 0.10.2 pyhd8ed1ab_0 conda-forge
tzdata 2021a he74cb21_0 conda-forge
wheel 0.36.2 pyhd3deb0d_0 conda-forge
x264 1!161.3030 h7f98852_0 conda-forge
xorg-fixesproto 5.0 h7f98852_1002 conda-forge
xorg-inputproto 2.3.2 h7f98852_1002 conda-forge
xorg-kbproto 1.0.7 h7f98852_1002 conda-forge
xorg-libice 1.0.10 h7f98852_0 conda-forge
xorg-libsm 1.2.3 hd9c2040_1000 conda-forge
xorg-libx11 1.6.12 h516909a_0 conda-forge
xorg-libxau 1.0.9 h7f98852_0 conda-forge
xorg-libxaw 1.0.14 h7f98852_0 conda-forge
xorg-libxdmcp 1.1.3 h7f98852_0 conda-forge
xorg-libxext 1.3.4 h516909a_0 conda-forge
xorg-libxfixes 5.0.3 h516909a_1004 conda-forge
xorg-libxi 1.7.10 h516909a_0 conda-forge
xorg-libxmu 1.1.3 h516909a_0 conda-forge
xorg-libxpm 3.5.13 h516909a_0 conda-forge
xorg-libxt 1.1.5 h516909a_1003 conda-forge
xorg-xextproto 7.3.0 h7f98852_1002 conda-forge
xorg-xproto 7.0.31 h7f98852_1007 conda-forge
xz 5.2.5 h516909a_1 conda-forge
yaml 0.2.5 h516909a_0 conda-forge
zlib 1.2.11 h516909a_1010 conda-forge
zstd 1.4.9 ha95c52a_0 conda-forge
zziplib 0.13.69 h27826a3_1 conda-forge
simple_demo is now running fine on macOS, see https://github.com/conda-forge/libignition-rendering4-feedstock/pull/19#issuecomment-937678806 . The main problem that was creating the problem described in this issue was the one described in https://github.com/conda-forge/libignition-rendering4-feedstock/issues/21#issuecomment-936690710 and fixed in https://github.com/ignitionrobotics/ign-rendering/pull/454 .
To start debugging https://github.com/conda-forge/libignition-rendering4-feedstock/issues/10, I first tried to compile and run the
simple_demo
from https://github.com/ignitionrobotics/ign-rendering/tree/ign-rendering5/examples/simple_demo .Unfortunatly, it does not seem to work, for an issue similar to apparently:
Issue:
Environment (
conda list
):Details about
conda
and system (conda info
):