Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On Linux gzserver does not start as RenderSystem_GL Ogre plugin is not found #31

Closed
traversaro opened this issue Oct 4, 2020 · 8 comments

Comments

@traversaro
Copy link
Contributor

Using the latest miniforge ( Miniforge3-4.8.5-1) on Ubuntu 20.04 (via WSL2) and installing the gazebo package, starting gzserver --verbose fails with:

(base) traversaro@IITICUBLAP102:~$ gzserver --verbose
Gazebo multi-robot simulator, version 11.0.0
Copyright (C) 2012 Open Source Robotics Foundation.
Released under the Apache 2 License.
http://gazebosim.org

[Msg] Waiting for master.
[Msg] Connected to gazebo master @ http://127.0.0.1:11345
[Msg] Publicized address: 172.17.163.171
[Err] [RenderEngine.cc:455] Unable to load Ogre Plugin[/home/traversaro/miniforge3/lib/OGRE/RenderSystem_GL]. Rendering will not be possible.Make sure you have installed OGRE and Gazebo properly.
[Err] [RenderEngine.cc:681] EXCEPTION: unable to find OpenGL rendering system. OGRE is probably installed incorrectly. Double check the OGRE cmake output, and make sure OpenGL is enabled.

[Err] [RenderingIface.cc:39] Failed to load the Rendering engine subsystem
unable to find OpenGL rendering system. OGRE is probably installed incorrectly. Double check the OGRE cmake output, and make sure OpenGL is enabled.
[Err] [gazebo.cc:81] Unable to load sensors
[Err] [Server.cc:287] Unable to load gazebo

The problem is similar to the one discussed in conda-forge/ogre-feedstock#15, but I guess that the Gazebo package forces the system to install the old ogre 1.10.12, while the problem was solved in conda-forge/ogre-feedstock#16 for Ogre 1.12.5 .


Environment (conda list):
$ conda list
(base) traversaro@IITICUBLAP102:~$ conda list
# packages in environment at /home/traversaro/miniforge3:
#
# Name                    Version                   Build  Channel
_libgcc_mutex             0.1                 conda_forge    conda-forge
_openmp_mutex             4.5                       1_gnu    conda-forge
ace                       6.5.11               h84b9e52_1    conda-forge
alsa-lib                  1.2.3                h516909a_0    conda-forge
asio                      1.14.1               he1b5a44_0    conda-forge
binutils                  2.35                 h2122c62_9    conda-forge
binutils_impl_linux-64    2.35                 h18a2f87_9    conda-forge
binutils_linux-64         2.35                heab0d09_28    conda-forge
boost                     1.74.0           py38hd103949_0    conda-forge
boost-cpp                 1.74.0               h9359b55_0    conda-forge
brotlipy                  0.7.0           py38h1e0a361_1000    conda-forge
bzip2                     1.0.8                h516909a_3    conda-forge
c-ares                    1.16.1               h516909a_3    conda-forge
c-compiler                1.1.1                h516909a_0    conda-forge
ca-certificates           2020.6.20            hecda079_0    conda-forge
cairo                     1.16.0            h3fc0475_1005    conda-forge
certifi                   2020.6.20        py38h32f6830_0    conda-forge
cffi                      1.14.3           py38h5bae8af_0    conda-forge
chardet                   3.0.4           py38h32f6830_1007    conda-forge
cmake                     3.18.2               h5c55442_0    conda-forge
conda                     4.8.5            py38h32f6830_1    conda-forge
conda-package-handling    1.7.0            py38h1e0a361_5    conda-forge
console_bridge            1.0.1                hc9558a2_0    conda-forge
cppzmq                    4.6.0                hc9558a2_1    conda-forge
cryptography              3.1              py38h766eaa4_0    conda-forge
curl                      7.71.1               he644dc0_8    conda-forge
cxx-compiler              1.1.1                hc9558a2_0    conda-forge
dbus                      1.13.6               he372182_0    conda-forge
eigen                     3.3.7             hc9558a2_1001    conda-forge
expat                     2.2.9                he1b5a44_2    conda-forge
ffmpeg                    4.3.1                h167e202_0    conda-forge
fontconfig                2.13.1            h1056068_1002    conda-forge
freeglut                  3.0.0             hf484d3e_1005    conda-forge
freeimage                 3.18.0               h775acd0_3    conda-forge
freetype                  2.10.2               he06d7ca_0    conda-forge
gazebo                    11.0.0              h32bde7a_11    conda-forge
gcc_impl_linux-64         7.5.0               hd9e1a51_17    conda-forge
gcc_linux-64              7.5.0               hf34d7eb_28    conda-forge
gettext                   0.19.8.1          hc5be6a0_1002    conda-forge
glew                      2.1.0                he1b5a44_0    conda-forge
glfw                      3.3.2                h516909a_1    conda-forge
glib                      2.66.1               h680cd38_0    conda-forge
gmp                       6.2.0                he1b5a44_2    conda-forge
gnutls                    3.6.13               h79a8f9a_0    conda-forge
graphite2                 1.3.13            he1b5a44_1001    conda-forge
gsl                       2.6                  h294904e_0    conda-forge
gst-plugins-base          1.14.5               h0935bb2_2    conda-forge
gstreamer                 1.14.5               h36ae1b5_2    conda-forge
gts                       0.7.6                h08bb679_0    conda-forge
gxx_impl_linux-64         7.5.0               h7ea4de1_17    conda-forge
gxx_linux-64              7.5.0               ha781d05_28    conda-forge
harfbuzz                  2.7.2                hee91db6_0    conda-forge
hdf5                      1.10.6          nompi_h3c11f04_101    conda-forge
icu                       67.1                 he1b5a44_0    conda-forge
idna                      2.10               pyh9f0ad1d_0    conda-forge
ilmbase                   2.5.3                h8b12597_0    conda-forge
jasper                    1.900.1           h07fcdf6_1006    conda-forge
jpeg                      9d                   h516909a_0    conda-forge
jsoncpp                   1.8.4             hc9558a2_1002    conda-forge
jxrlib                    1.1                  h516909a_2    conda-forge
kernel-headers_linux-64   2.6.32              h77966d4_13    conda-forge
krb5                      1.17.1               hfafb76e_3    conda-forge
lame                      3.100             h14c3975_1001    conda-forge
lcms2                     2.9                  hbd6801e_2    conda-forge
ld_impl_linux-64          2.35                 h769bd43_9    conda-forge
libblas                   3.8.0               17_openblas    conda-forge
libcblas                  3.8.0               17_openblas    conda-forge
libccd                    2.1                  he1b5a44_1    conda-forge
libclang                  10.0.1          default_hde54327_1    conda-forge
libcurl                   7.71.1               hcdd3856_8    conda-forge
libedit                   3.1.20191231         he28a2e2_2    conda-forge
libev                     4.33                 h516909a_1    conda-forge
libevent                  2.1.10               hcdb4288_2    conda-forge
libffi                    3.2.1             he1b5a44_1007    conda-forge
libgcc-devel_linux-64     7.5.0               h42c25f5_17    conda-forge
libgcc-ng                 9.3.0               h24d8f2e_16    conda-forge
libgfortran-ng            7.5.0               hae1eefd_17    conda-forge
libgfortran4              7.5.0               hae1eefd_17    conda-forge
libglu                    9.0.0             he1b5a44_1001    conda-forge
libgomp                   9.3.0               h24d8f2e_16    conda-forge
libiconv                  1.16                 h516909a_0    conda-forge
libignition-cmake2        2.5.0                he1b5a44_0    conda-forge
libignition-common3       3.5.0                hf10cc52_2    conda-forge
libignition-fuel-tools4   4.1.0                hc81f71f_2    conda-forge
libignition-math6         6.4.0                he1b5a44_2    conda-forge
libignition-msgs5         5.3.0                ha44d269_1    conda-forge
libignition-transport8    8.1.0                h1322465_0    conda-forge
libjpeg-turbo             2.0.5                h516909a_0    conda-forge
liblapack                 3.8.0               17_openblas    conda-forge
liblapacke                3.8.0               17_openblas    conda-forge
libllvm10                 10.0.1               he513fc3_3    conda-forge
libmatio                  1.5.18               hf54d351_0    conda-forge
libnghttp2                1.41.0               h8cfc5f6_2    conda-forge
libode                    0.16                 he1b5a44_0    conda-forge
libopenblas               0.3.10          pthreads_hb3c22a3_4    conda-forge
libopencv                 4.4.0                    py38_2    conda-forge
libpng                    1.6.37               hed695b0_2    conda-forge
libpq                     12.3                 h5513abc_0    conda-forge
libprotobuf               3.13.0               h8b12597_0    conda-forge
libraw                    0.19.5               hefcb256_2    conda-forge
libsdformat               9.3.0                h833df14_0    conda-forge
libsodium                 1.0.18               h516909a_1    conda-forge
libssh2                   1.9.0                hab1572f_5    conda-forge
libstdcxx-devel_linux-64  7.5.0               h4084dd6_17    conda-forge
libstdcxx-ng              9.3.0               hdf63c60_16    conda-forge
libtar                    1.2.20            h14c3975_1001    conda-forge
libtiff                   4.1.0                hc7e4089_6    conda-forge
libuuid                   2.32.1            h14c3975_1000    conda-forge
libuv                     1.40.0               h516909a_0    conda-forge
libwebp-base              1.1.0                h516909a_3    conda-forge
libxcb                    1.13              h14c3975_1002    conda-forge
libxkbcommon              0.10.0               he1b5a44_0    conda-forge
libxml2                   2.9.10               h68273f3_2    conda-forge
libzip                    1.5.1             h1a52d62_1005    conda-forge
lz4-c                     1.9.2                he1b5a44_3    conda-forge
mysql-common              8.0.21                        2    conda-forge
mysql-libs                8.0.21               hf3661c5_2    conda-forge
ncurses                   6.2                  he1b5a44_1    conda-forge
nettle                    3.4.1             h1bed415_1002    conda-forge
nspr                      4.29                 he1b5a44_0    conda-forge
nss                       3.57                 he751ad9_0    conda-forge
numpy                     1.19.1           py38hbc27379_2    conda-forge
ogre                      1.10.12              hc56bac0_2    conda-forge
opencv                    4.4.0                    py38_2    conda-forge
openexr                   2.5.3                he513fc3_0    conda-forge
openh264                  2.1.1                h8b12597_0    conda-forge
openjpeg                  2.3.1                h981e76c_3    conda-forge
openssl                   1.1.1h               h516909a_0    conda-forge
pcre                      8.44                 he1b5a44_0    conda-forge
pip                       20.2.3                     py_0    conda-forge
pixman                    0.38.0            h516909a_1003    conda-forge
pkg-config                0.29.2            h516909a_1006    conda-forge
portaudio                 19.6.0               h1398938_3    conda-forge
protobuf                  3.13.0           py38h950e882_0    conda-forge
pthread-stubs             0.4               h14c3975_1001    conda-forge
py-opencv                 4.4.0            py38h23f93f0_2    conda-forge
pycosat                   0.6.3           py38h1e0a361_1004    conda-forge
pycparser                 2.20               pyh9f0ad1d_2    conda-forge
pyopenssl                 19.1.0                     py_1    conda-forge
pysocks                   1.7.1            py38h32f6830_1    conda-forge
python                    3.8.5           h1103e12_8_cpython    conda-forge
python_abi                3.8                      1_cp38    conda-forge
qt                        5.12.9               h1f2b2cb_0    conda-forge
qwt                       6.1.5                h73816c6_0    conda-forge
readline                  8.0                  he28a2e2_2    conda-forge
requests                  2.24.0             pyh9f0ad1d_0    conda-forge
rhash                     1.3.6             h14c3975_1001    conda-forge
ruamel_yaml               0.15.80         py38h1e0a361_1002    conda-forge
sdl                       1.2.15               he1b5a44_1    conda-forge
sdl2                      2.0.10               he1b5a44_0    conda-forge
setuptools                49.6.0           py38h32f6830_1    conda-forge
six                       1.15.0             pyh9f0ad1d_0    conda-forge
sqlite                    3.33.0               h4cf870e_0    conda-forge
sysroot_linux-64          2.12                h77966d4_13    conda-forge
tbb                       2020.2               hc9558a2_0    conda-forge
tbb-devel                 2020.2               hc9558a2_0    conda-forge
tinyxml                   2.6.2                hc9558a2_1    conda-forge
tinyxml2                  8.0.0                he1b5a44_1    conda-forge
tk                        8.6.10               hed695b0_0    conda-forge
tqdm                      4.49.0             pyh9f0ad1d_0    conda-forge
urdfdom                   2.3.2                hc9558a2_0    conda-forge
urdfdom_headers           1.0.5                hc9558a2_1    conda-forge
urllib3                   1.25.10                    py_0    conda-forge
wheel                     0.35.1             pyh9f0ad1d_0    conda-forge
x264                      1!152.20180806       h14c3975_0    conda-forge
xorg-fixesproto           5.0               h14c3975_1002    conda-forge
xorg-inputproto           2.3.2             h14c3975_1002    conda-forge
xorg-kbproto              1.0.7             h14c3975_1002    conda-forge
xorg-libice               1.0.10               h516909a_0    conda-forge
xorg-libsm                1.2.3             h84519dc_1000    conda-forge
xorg-libx11               1.6.12               h516909a_0    conda-forge
xorg-libxau               1.0.9                h14c3975_0    conda-forge
xorg-libxaw               1.0.13            h516909a_1002    conda-forge
xorg-libxcursor           1.2.0                h516909a_0    conda-forge
xorg-libxdmcp             1.1.3                h516909a_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-libxinerama          1.1.4             hf484d3e_1000    conda-forge
xorg-libxmu               1.1.3                h516909a_0    conda-forge
xorg-libxpm               3.5.13               h516909a_0    conda-forge
xorg-libxrandr            1.5.2                h516909a_1    conda-forge
xorg-libxrender           0.9.10            h516909a_1002    conda-forge
xorg-libxt                1.1.5             h516909a_1003    conda-forge
xorg-randrproto           1.5.0             h516909a_1001    conda-forge
xorg-renderproto          0.11.1            h14c3975_1002    conda-forge
xorg-xextproto            7.3.0             h14c3975_1002    conda-forge
xorg-xproto               7.0.31            h14c3975_1007    conda-forge
xz                        5.2.5                h516909a_1    conda-forge
yaml                      0.2.5                h516909a_0    conda-forge
zeromq                    4.3.3                he1b5a44_1    conda-forge
zlib                      1.2.11            h516909a_1009    conda-forge
zstd                      1.4.5                h6597ccf_2    conda-forge

Details about conda and system ( conda info ):
$ conda info
(base) traversaro@IITICUBLAP102:~$ conda info

     active environment : base
    active env location : /home/traversaro/miniforge3
            shell level : 1
       user config file : /home/traversaro/.condarc
 populated config files : /home/traversaro/miniforge3/.condarc
                          /home/traversaro/.condarc
          conda version : 4.8.5
    conda-build version : not installed
         python version : 3.8.5.final.0
       virtual packages : __glibc=2.31
       base environment : /home/traversaro/miniforge3  (writable)
           channel URLs : https://conda.anaconda.org/conda-forge/linux-64
                          https://conda.anaconda.org/conda-forge/noarch
          package cache : /home/traversaro/miniforge3/pkgs
                          /home/traversaro/.conda/pkgs
       envs directories : /home/traversaro/miniforge3/envs
                          /home/traversaro/.conda/envs
               platform : linux-64
             user-agent : conda/4.8.5 requests/2.24.0 CPython/3.8.5 Linux/4.19.104-microsoft-standard ubuntu/20.04 glibc/2.31
                UID:GID : 1000:1000
             netrc file : None
           offline mode : False
@wolfv
Copy link
Member

wolfv commented Oct 4, 2020

We do have a rebuild of ogre 1.10 that properly enables the gl backend. Maybe we should move the previous versions to broken so that they cannot be installed.

BTW we're close to have Moveit, cartographer, OpenSlam and desktop-full on OS X, Windows and Linux (including arm64) and we will make sure that gazebo works fine before publishing a blog post, soon!

@Tobias-Fischer
Copy link
Contributor

Is that still an issue with the most recent ogre 1.10 build?

@wolfv
Copy link
Member

wolfv commented Nov 7, 2020

This works fine when sourcing share/gazebo-9/setup.sh

That file sets some ogre_plugin_directory variable which seems to be necessary

@Tobias-Fischer
Copy link
Contributor

Hi @traversaro, could you please check whether this is still an issue with win-64/ogre-1.10.12-h71cedee_6? I think we can close this, this particular issue should be fixed with that build.

@Tobias-Fischer
Copy link
Contributor

Actually, it's on WSL so ogre-1.10.12-hb844067_6 should do the job

@Tobias-Fischer
Copy link
Contributor

Just tried this, the error still occurs. Oddly enough the file exists (however .so is missing, not sure whether that's a problem). I noticed that some fixes were not pulled in on unix - see #41 which could be a potential fix for this issue.

@Tobias-Fischer
Copy link
Contributor

Actually it works fine now - I must not have sourced the environment properly. Could you please confirm @traversaro?

@traversaro
Copy link
Contributor Author

Actually it works fine now - I must not have sourced the environment properly. Could you please confirm @traversaro?

I am on WSL2 and now I have a different error related to the X server (even if I have it on the Windows side and I should have it properly configured), so I guess the RenderSystem_GL problem was indeed solved!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants