gazebosim / gazebo-classic

Gazebo classic. For the latest version, see https://github.com/gazebosim/gz-sim
http://classic.gazebosim.org/
Other
1.18k stars 479 forks source link

gazebo crashing on strating it due to user name with backslash or forwardslash #2583

Open osrf-migration opened 5 years ago

osrf-migration commented 5 years ago

Original report (archived issue) by Ayush Garg (Bitbucket: ayushg6).


My user name in my ubuntu laptop is ABC\ayush.g and the gazebo is crashing with error msg as follows:

#!sh

$ gazebo --verbose
Gazebo multi-robot simulator, version 9.6.0
Copyright (C) 2012 Open Source Robotics Foundation.
Released under the Apache 2 License.
http://gazebosim.org

[Msg] Waiting for master.
Gazebo multi-robot simulator, version 9.6.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: 192.168.13.2
[Err] [server_main.cc:54] Ogre Error:OGRE EXCEPTION(0:IOException): Could create output files in the given shader cache path '/tmp/gazebo-ABC/ayush.g-rtshaderlibcache/ in ShaderGenerator::setShaderCachePath at /build/ogre-1.9-mqY1wq/ogre-1.9-1.9.0+dfsg1/Components/RTShaderSystem/src/OgreShaderGenerator.cpp (line 1392)
osrf-migration commented 5 years ago

Original comment by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters).


Does a folder named /tmp/gazebo-ABC/ayush.g-rtshaderlibcache/ exist on your system?

osrf-migration commented 5 years ago

Original comment by Ayush Garg (Bitbucket: ayushg6).


My user name is ABC\ayush.g. So the folder that exists is

#!sh

/tmp/gazebo-ABC\\ayush.g-rtshaderlibcache
osrf-migration commented 5 years ago

Original comment by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters).


Ok, in the initial post you said the user name is ABC/ayush.g with a forward /, but in the latest comment you say it has a backwards \. Can you confirm which it is?

osrf-migration commented 5 years ago

Original comment by Ayush Garg (Bitbucket: ayushg6).


It is \

osrf-migration commented 5 years ago

Original comment by Ayush Garg (Bitbucket: ayushg6).


osrf-migration commented 4 years ago

Original comment by Goutam Kumar (Embedded) (Bitbucket: Goutam Kumar).


I too had the same issue. Found: '\' is the problem in establishing the path to the directory. Do the following to run gazebo:

inside tmp/ :

mkdir -p gazebo-ABC/ayush.g-rtshaderlibcache/

Now, gazebo will be able o find the path.

Run n enjoy!!! :slight_smile: