[ros-users] Gazebo Error on Ubuntu

Stefan Kohlbrecher stefan.kohlbrecher at googlemail.com
Thu Sep 16 06:50:51 UTC 2010


Hi John,

thanks for catching that, it indeed fixed the error w/ backtrace I
posted earlier. I have to agree that this error message indeed isn't
very helpful though, quite the opposite actually.

So, here's a proper backtrace, with hopefully proper use of
gdb/gazebo/.world file:

stefan at SKnotebook:~/ros/stacks/simulator_gazebo$ gdb ./gazebo/bin/gazebo
GNU gdb (GDB) 7.1-ubuntu
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from
/home/stefan/ros/stacks/simulator_gazebo/gazebo/bin/gazebo...done.
(gdb) run  ./gazebo_worlds/worlds/empty.world
Starting program:
/home/stefan/ros/stacks/simulator_gazebo/gazebo/bin/gazebo
./gazebo_worlds/worlds/empty.world
[Thread debugging using libthread_db enabled]
Gazebo multi-robot simulator, version 0.10.0

Part of the Player/Stage Project [http://playerstage.sourceforge.net].
Copyright (C) 2003 Nate Koenig, Andrew Howard, and contributors.
Released under the GNU General Public License.

[New Thread 0x7fffe1c8c710 (LWP 3981)]
[New Thread 0x7fffe148b710 (LWP 3982)]
directory [/tmp/gazebo-stefan-0] already exists (previous crash?)
but the owner gazebo server (pid=3928) is not running.
deleting the old information of the directory [/tmp/gazebo-stefan-0]

Program received signal SIGSEGV, Segmentation fault.
gazebo::Entity::GetCompleteScopedName (this=0x0) at
/home/stefan/ros/stacks/simulator_gazebo/gazebo/gazebo-svn/server/Entity.cc:309
309       Entity *p = this->parent;
(gdb) bt
#0  gazebo::Entity::GetCompleteScopedName (this=0x0) at
/home/stefan/ros/stacks/simulator_gazebo/gazebo/gazebo-svn/server/Entity.cc:309
#1  0x00007ffff5e7b6e9 in gazebo::Geom::CreateBoundingBox (this=0x0)
    at /home/stefan/ros/stacks/simulator_gazebo/gazebo/gazebo-svn/server/physics/Geom.cc:219
#2  0x00007ffff5e81cc7 in gazebo::Geom::Load (this=0xfb6f00, node=0x8e4ef0)
    at /home/stefan/ros/stacks/simulator_gazebo/gazebo/gazebo-svn/server/physics/Geom.cc:172
#3  0x00007ffff52d57d9 in gazebo::ODEGeom::Load (this=0x7fffffffc2f0, node=0x0)
    at /home/stefan/ros/stacks/simulator_gazebo/gazebo/gazebo-svn/server/physics/ode/ODEGeom.cc:68
#4  0x00007ffff5e59ac5 in gazebo::Body::LoadGeom (this=<value
optimized out>, node=0x8e4ef0)
    at /home/stefan/ros/stacks/simulator_gazebo/gazebo/gazebo-svn/server/physics/Body.cc:516
#5  0x00007ffff5e5ec9b in gazebo::Body::Load (this=0xfaee70, node=0x8e4ea0)
    at /home/stefan/ros/stacks/simulator_gazebo/gazebo/gazebo-svn/server/physics/Body.cc:205
#6  0x00007ffff52d6e19 in gazebo::ODEBody::Load (this=0x7fffffffc2f0, node=0x0)
    at /home/stefan/ros/stacks/simulator_gazebo/gazebo/gazebo-svn/server/physics/ode/ODEBody.cc:79
#7  0x00007ffff7b812a4 in gazebo::Model::LoadBody (this=<value
optimized out>, node=0x8e4ea0)
    at /home/stefan/ros/stacks/simulator_gazebo/gazebo/gazebo-svn/server/Model.cc:886
#8  0x00007ffff7b81b9d in gazebo::Model::LoadPhysical (this=0xfaa6d0,
node=<value optimized out>)
    at /home/stefan/ros/stacks/simulator_gazebo/gazebo/gazebo-svn/server/Model.cc:1247
#9  0x00007ffff7b861e3 in gazebo::Model::Load (this=0xfaa6d0,
node=0x8e4d60, removeDuplicate=<value optimized out>)
    at /home/stefan/ros/stacks/simulator_gazebo/gazebo/gazebo-svn/server/Model.cc:212
#10 0x00007ffff7b588f2 in gazebo::World::LoadModel (this=0xa7d070,
node=0x8e4d60, parent=0x0, removeDuplicate=80, initModel=false)
    at /home/stefan/ros/stacks/simulator_gazebo/gazebo/gazebo-svn/server/World.cc:590
#11 0x00007ffff7b6119a in gazebo::World::LoadEntities (this=0xa7d070,
node=0x8e4d60, parent=0x0, removeDuplicate=6, initModel=false)
    at /home/stefan/ros/stacks/simulator_gazebo/gazebo/gazebo-svn/server/World.cc:467
#12 0x00007ffff7b61123 in gazebo::World::LoadEntities (this=0xa7d070,
node=<value optimized out>, parent=<value optimized out>,
    removeDuplicate=<value optimized out>, initModel=false) at
/home/stefan/ros/stacks/simulator_gazebo/gazebo/gazebo-svn/server/World.cc:475
#13 0x00007ffff7b61bdc in gazebo::World::Load (this=0xa7d070,
rootNode=0xb0a1f0, serverId=<value optimized out>)
    at /home/stefan/ros/stacks/simulator_gazebo/gazebo/gazebo-svn/server/World.cc:223
#14 0x00007ffff7b936c8 in gazebo::Simulator::Load (this=<value
optimized out>, worldFileName=<value optimized out>, serverId=0)
    at /home/stefan/ros/stacks/simulator_gazebo/gazebo/gazebo-svn/server/Simulator.cc:292
#15 0x00000000004de25c in main (argc=2, argv=0x7fffffffe1b8) at
/home/stefan/ros/stacks/simulator_gazebo/gazebo/src/gazeboros.cpp:2003
(gdb)


This is still with my current own-compiled version of gazebo, will
install package-based C-Turtle sometime later.

regards,
Stefan

2010/9/15 John Hsu <johnhsu at willowgarage.com>:
> Hi Stefan,
> ah. I think I figured out one of your problems...
> you need to give *.world files as inputs to gazebo, not launch scripts.
> Alternatively you can roslaunch these launch scripts, e.g.
>
> roslaunch gazebo_worlds debug.launch
>
> I figured that out when I tried:
>
> $ ./gazebo/bin/gazebo  ./gazebo_worlds/launch/empty_world.launch
> Gazebo multi-robot simulator, version 0.10.0
>
> Part of the Player/Stage Project [http://playerstage.sourceforge.net].
> Copyright (C) 2003 Nate Koenig, Andrew Howard, and contributors.
> Released under the GNU General Public License.
>
> gazebo:
> /u/hsu/projects/cturtle_wg_all/stacks/visualization_common/ogre/build/ogre_src_v1-7-1/OgreMain/src/OgreTextureManager.cpp:42:
> static Ogre::TextureManager& Ogre::TextureManager::getSingleton(): Assertion
> `ms_Singleton' failed.
> Aborted
>
> I have to admit, the error message is not very helpful :)
> John
>
> On Wed, Sep 15, 2010 at 1:41 PM, Stefan Kohlbrecher
> <stefan.kohlbrecher at googlemail.com> wrote:
>>
>> Hi John,
>>
>> I´m pretty sure I don´t have different installs of Ogre. I´ll probably
>> just do the package install and try that once I have the time.
>>
>> For running gdb, I just went into the bin directory of gazebo and did
>> "gdb ./gazebo". Then doing "run
>> ~/ros/stacks/simulator_gazebo/gazebo_worlds/launch/debug.launch" is
>> equivalent to  "./gazebo
>> ~/ros/stacks/simulator_gazebo/gazebo_worlds/launch/debug.launch",
>> which is a valid way of starting gazebo with a launch file (at least
>> that´s what I gathered from looking at gazebo´s command line help).
>>
>> regards,
>> Stefan
>>
>> 2010/9/14 John Hsu <johnhsu at willowgarage.com>:
>> > Stefan,
>> >
>> > Do you have multiple installs of Ogre on your system
>> > (Local/Boxturtle/Cturtle)?
>> > Also, can you manually do a make clean and make wipe in gazebo then
>> > rebuild
>> > and try again?
>> >
>> > By the way, this is a gdb question, how did you configure gdb to do
>> > roslaunch by  run?
>> > (gdb) run
>> > ~/ros/stacks/simulator_gazebo/gazebo_worlds/launch/debug.launch
>> >
>> > John
>> >
>> > On Tue, Sep 14, 2010 at 12:45 AM, Stefan Kohlbrecher
>> > <stefan.kohlbrecher at googlemail.com> wrote:
>> >>
>> >> Hi everyone,
>> >>
>> >> I'm having the exact same issues as described by Bert Willaert (quoted
>> >> below) right now.
>> >>
>> >> Platform: Ubuntu 10.04 - Machine x86_64  - Kernel 2.6.32-24-generic -
>> >> Graphic card
>> >> Quadro NVS 160M (nvidia-current drivers [195.36.24] , hardware
>> >> acceleration sure seems to work in other GL applications)
>> >>
>> >> Using C-Turtle compiled from SVN.
>> >>
>> >>
>> >> When starting gazebo in gdb, I get the following:
>> >>
>> >>
>> >> (gdb) run
>> >> ~/ros/stacks/simulator_gazebo/gazebo_worlds/launch/debug.launch
>> >> Starting program:
>> >> /home/stefan/ros/stacks/simulator_gazebo/gazebo/bin/gazebo
>> >> ~/ros/stacks/simulator_gazebo/gazebo_worlds/launch/debug.launch
>> >> [Thread debugging using libthread_db enabled]
>> >> Gazebo multi-robot simulator, version 0.10.0
>> >>
>> >> Part of the Player/Stage Project [http://playerstage.sourceforge.net].
>> >> Copyright (C) 2003 Nate Koenig, Andrew Howard, and contributors.
>> >> Released under the GNU General Public License.
>> >>
>> >> gazebo:
>> >>
>> >> /home/stefan/ros/stacks/visualization_common/ogre/build/ogre_src_v1-7-1/OgreMain/src/OgreTextureManager.cpp:42:
>> >> static Ogre::TextureManager& Ogre::TextureManager::getSingleton():
>> >> Assertion `ms_Singleton' failed.
>> >>
>> >> Program received signal SIGABRT, Aborted.
>> >> 0x00007ffff15c6a75 in *__GI_raise (sig=<value optimized out>) at
>> >> ../nptl/sysdeps/unix/sysv/linux/raise.c:64
>> >> 64      ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or
>> >> directory.
>> >>        in ../nptl/sysdeps/unix/sysv/linux/raise.c
>> >> (gdb) bt
>> >> #0  0x00007ffff15c6a75 in *__GI_raise (sig=<value optimized out>) at
>> >> ../nptl/sysdeps/unix/sysv/linux/raise.c:64
>> >> #1  0x00007ffff15ca5c0 in *__GI_abort () at abort.c:92
>> >> #2  0x00007ffff15bf941 in *__GI___assert_fail
>> >> (assertion=0x7ffff6f57932 "ms_Singleton", file=<value optimized out>,
>> >> line=42,
>> >>    function=0x7ffff6fb9f60 "static Ogre::TextureManager&
>> >> Ogre::TextureManager::getSingleton()") at assert.c:81
>> >> #3  0x00007ffff6f22947 in Ogre::TextureManager::getSingleton ()
>> >>    at
>> >>
>> >> /home/stefan/ros/stacks/visualization_common/ogre/build/ogre_src_v1-7-1/OgreMain/src/OgreTextureManager.cpp:42
>> >> #4  0x00007ffff577e1cc in gazebo::OgreAdaptor::Init (this=0xb0fbe0,
>> >> rootNode=<value optimized out>)
>> >>    at
>> >>
>> >> /home/stefan/ros/stacks/simulator_gazebo/gazebo/gazebo-svn/server/rendering/OgreAdaptor.cc:180
>> >> #5  0x00007ffff7b939d5 in gazebo::Simulator::Load (this=<value
>> >> optimized out>, worldFileName=<value optimized out>, serverId=0)
>> >>    at
>> >>
>> >> /home/stefan/ros/stacks/simulator_gazebo/gazebo/gazebo-svn/server/Simulator.cc:274
>> >> #6  0x00000000004de25c in main (argc=2, argv=0x7fffffffe188) at
>> >> /home/stefan/ros/stacks/simulator_gazebo/gazebo/src/gazeboros.cpp:2003
>> >> (gdb) ^CQuit
>> >> (gdb)
>> >>
>> >>
>> >> thanks in advance for any pointers,
>> >> Stefan
>> >>
>> >>
>> >>
>> >> 2010/7/22 Bert Willaert <bert.willaert at mech.kuleuven.be>:
>> >> >
>> >> > Hey,
>> >> >
>> >> > I am having similar problems when trying the Gazebo tutorials:
>> >> >
>> >> > Platform: Ubuntu 10.04 - Machine x86_64  - Kernel 2.6.32-22 - Graphic
>> >> > card
>> >> > GeForce 9600GT
>> >> >
>> >> > If I command: roslaunch gazebo_worlds empty_world.launch
>> >> > --> Gazebo interface opens and shuts down immediately
>> >> > Message:
>> >> > [gazebo-2] process has died [pid 8384, exit code -11].
>> >> > log files:
>> >> >
>> >> >
>> >> > /home/u0052802/.ros/log/164a5024-95a5-11df-8cda-0023aeb04ff7/gazebo-2*.log
>> >> >
>> >> > If I a command: roslaunch gazebo_worlds empty_world_no_x.launch
>> >> > Message:
>> >> >
>> >> >
>> >> > [/opt/ros/boxturtle/stacks/simulator_gazebo/gazebo/gazebo-svn/server/GazeboConfig.cc:106]
>> >> >  Unable to find the file ~/.gazeborc. Using default paths. This may
>> >> > cause
>> >> > OGRE to fail.
>> >> > directory [/tmp/gazebo-u0052802-0] already exists (previous crash?)
>> >> > but the owner gazebo server (pid=8384) is not running.
>> >> > deleting the old information of the directory
>> >> > [/tmp/gazebo-u0052802-0]
>> >> > Gazebo successfully initialized
>> >> > [ INFO] 0.000000000: Callback thread id=0x95c780
>> >> >
>> >> >
>> >> > Thanks for helping!
>> >> >
>> >> >
>> >> >
>> >> >
>> >> >
>> >> > --
>> >> > View this message in context:
>> >> >
>> >> > http://ros-users.122217.n3.nabble.com/Gazebo-Error-on-Ubuntu-tp464961p987386.html
>> >> > Sent from the ROS-Users mailing list archive at Nabble.com.
>> >> >
>> >> >
>> >> >
>> >> > ------------------------------------------------------------------------------
>> >> > This SF.net email is sponsored by Sprint
>> >> > What will you do first with EVO, the first 4G phone?
>> >> > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
>> >> > _______________________________________________
>> >> > ros-users mailing list
>> >> > ros-users at lists.sourceforge.net
>> >> > https://lists.sourceforge.net/lists/listinfo/ros-users
>> >> > _______________________________________________
>> >> > ros-users mailing list
>> >> > ros-users at code.ros.org
>> >> > https://code.ros.org/mailman/listinfo/ros-users
>> >> >
>> >> _______________________________________________
>> >> ros-users mailing list
>> >> ros-users at code.ros.org
>> >> https://code.ros.org/mailman/listinfo/ros-users
>> >
>> >
>> > _______________________________________________
>> > ros-users mailing list
>> > ros-users at code.ros.org
>> > https://code.ros.org/mailman/listinfo/ros-users
>> >
>> >
>> _______________________________________________
>> ros-users mailing list
>> ros-users at code.ros.org
>> https://code.ros.org/mailman/listinfo/ros-users
>
>
> _______________________________________________
> ros-users mailing list
> ros-users at code.ros.org
> https://code.ros.org/mailman/listinfo/ros-users
>
>



More information about the ros-users mailing list