Gazebo | Ignition | Community
Ask Your Question
0

Cannot launch Gazebo 2 or 7

asked 2016-06-15 08:09:19 -0500

kotoko gravatar image

updated 2016-06-16 03:04:20 -0500

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.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2021-07-09 02:53:11 -0500

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.

edit flag offensive delete link more
0

answered 2016-06-15 10:54:41 -0500

nkoenig gravatar image

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?

edit flag offensive delete link more

Comments

I added some details in the original question. Thanks for the reply.

kotoko gravatar imagekotoko ( 2016-06-16 02:14:28 -0500 )edit

I had same issue, setting chmod permission on /tmp/gazebo* works !!!

dwijaybane gravatar imagedwijaybane ( 2019-12-16 18:54:29 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2016-06-15 07:12:38 -0500

Seen: 587 times

Last updated: Jun 16 '16