Cannot launch Gazebo 2 or 7
Hello,
I'm trying to install Gazebo, preferably version 2. I have tried installing both version 2 and version 7 and they both give the same error (both when running command gazebo and command gzserver)
> gazebo
terminate called after throwing an instance of 'Ogre::IOException'
what(): OGRE EXCEPTION(0:IOException): Could create output files in the given shader cache path '/tmp/gazebo-....-rtshaderlibcache/ in ShaderGenerator::setShaderCachePath at /build/buildd/ogre-1.8-1.8.1+dfsg/Components/RTShaderSystem/src/OgreShaderGenerator.cpp (line 1382)
terminate called after throwing an instance of 'Ogre::IOException'
what(): OGRE EXCEPTION(0:IOException): Could create output files in the given shader cache path '/tmp/gazebo-...-rtshaderlibcache/ in ShaderGenerator::setShaderCachePath at /build/buildd/ogre-1.8-1.8.1+dfsg/Components/RTShaderSystem/src/OgreShaderGenerator.cpp (line 1382)> gzserver
terminate called after throwing an instance of 'Ogre::IOException'
what(): OGRE EXCEPTION(0:IOException): Could create output files in the given shader cache path '/tmp/gazebo-...-rtshaderlibcache/ in ShaderGenerator::setShaderCachePath at /build/buildd/ogre-1.8-1.8.1+dfsg/Components/RTShaderSystem/src/OgreShaderGenerator.cpp (line 1382)
Aborted (core dumped)
To install Gazebo2 I simply ran
> sudo aptitude install ros-indigo-desktop-full
Then I uninstalled the whole thing with
> sudo apt-get remove ros-indigo-*
> sudo apt-get remove gazebo*
> sudo apt-get remove libogre-1.8*
And for the grand finale I installed Gazebo straight from the website downloading from there.
As extra information, rviz works fine.
I have changed my graphics driver to the recommended by ubuntu - Nvidia v 352.63
Any help will be much appreciated.
On permissions: I didn't find any permissions issues, the folder is owned by my user and it has rw permissions for the owner.
C\m@hwpc:/tmp/gazebo/build$ ls -l /tmp
total ...
drwx------ 2 C\m C\usuarios^d 4096 jun 15 14:08 gazebo-C\m-rtshaderlibcache
As a note, the output says that it COULD create the output files. This in general is not a problem, didn't understand the message.
Asked by kotoko on 2016-06-15 07:12:38 UTC
Answers
The OGRE output seems to say that it cannot write to /tmp
. This is a strange error. Could you check the permissions on /tmp
?
What operating system are you using?
Asked by nkoenig on 2016-06-15 10:54:41 UTC
Comments
I added some details in the original question. Thanks for the reply.
Asked by kotoko on 2016-06-16 02:14:28 UTC
I had same issue, setting chmod permission on /tmp/gazebo* works !!!
Asked by dwijaybane on 2019-12-16 19:54:29 UTC
Your ubuntu username "C\M" has a "\" in it and the gazebo startup program seems cannot distinguish "\" and "/", so it goes to the C/M-rtshaderlibcache (M-rtshaderlibcache folder in C folder) which is in fact C\M-rtshaderlibcache. What you need to do is just mkdir C/M-rtshaderlibcache (M-rtshaderlibcache folder in C folder) in /tmp.
Asked by zeyu zhang on 2021-07-09 02:53:11 UTC
Comments