Hi there,
I have just installed Ubuntu and ROS and gazebo-1.0.0-RC2 but when I run the gzserver command this is what I get:
Gazebo multi-robot simulator, version 1.0.0-RC2
Copyright (C) 2011 Nate Koenig, John Hsu, Andrew Howard, and contributors.
Released under the Apache 2 License.
http://gazebosim.org
Warning: no world filename specified, using default world
Msg Waiting for master
Msg Connected to gazebo master @ http://localhost:11345
Segmentation fault
Is there any log or anything else where I can try and figure out what's causing the Segmentation fault?
Previous to this I was having problems, gzserver repeated this message several times:
Xlib: extension “GLX” missing on display “:0.0″. Insufficient GL support
I solved it by installing OpenGL... and that's when the Segfault appeared. So now I don't know if this introduced the current error or it has nothing to do.
Thanks for your time! Miguel.
Update: My Ubuntu installation died and I had to reinstall everything... Now I'm not getting any Xlib errors or segfaults, but instead this is what's happening:
Gazebo multi-robot simulator, version 1.0.0-RC2
Copyright (C) 2011 Nate Koenig, John Hsu, Andrew Howard, and contributors.
Released under the Apache 2 License.
http://gazebosim.org
Warning: no world filename specified, using default world
Msg Waiting for master
Msg Connected to gazebo master @ http://localhost:11345
Exception [RenderEngine.cc:473] unable to find rendering system
Error [Rendering.cc:37] Failed to load the Rendering engine subsystem
unable to find rendering system
Exception [RenderEngine.cc:473] unable to find rendering system
Exception [RenderEngine.cc:473] unable to find rendering system
Exception [Sensors.cc:38] Unable to load the rendering engine
terminate called after throwing an instance of 'gazebo::common::Exception'
Aborted
I'm going to investigate, but I wanted to post it here first.
Thanks again! Miguel.
Update 2:
I tried everything that I could think of, and I'm still getting those errors about the rendering system... Any ideas? :(
Thanks, Miguel.
The instructions on gazebosim.org are for standalone system install of gazebo. (see my comment below about the ros-ified gazebo stack). Your problem above might be fixed by the updated step 2 in quick_start
source /usr/share/gazebo-[gazebo version]/setup.sh
should configure environment variables necessary for things to work correctly. In this case, your system is missing the correct OGRE_RESOURCE_PATH.
On another note, it looks like you are trying to install gazebo simulator directly on your system (outside of ros context) for using it with ROS. Let me try to clarify a little bit about the difference between the ros simulator_gazebo stack and the gazebosim project.
The ros simulator_gazebo stack wraps a hand-picked stable version of gazebo from the gazebo simulator project, and provides additional ros plugins/tools for using gazebo inside the ros environment. By installing ros-fuerte-simulator-gazebo, you don't have to worry about installing gazebo via instructions on gazebosim.org, but rather, just follow along the ros wiki tutorials. However, if you are interested in helping out with testing/developing the underlying simulator software, then proceed with the system install as described on the gazebo simulator project installation instruction page and try out the quick start steps. Note the two installs can exist side by side with some careful finessing of installation locations and system paths.
Hope this is not too confusing.
@hsu if anyone installs ros-fuerte-simulator-gazebo should they also install ros-fuerte-desktop*? and/or ros-electric-desktop? Also, the link you posted to the simulator_gazebo tutorials are way different than the ones at gazebosim... isn't ros-fuerte-simulator-gazebo the same as gazebosim?
Capelare (Mar 02)editOk, I figured it out myself, but please tell me if I'm right/wrong. In order to use the simulator as it's explained at the gazebosim wiki, one should source <ros-fuerte-dir>/setup.sh and then <ros-fuerte-dir>/stacks/simulator_gazebo/gazebo/setup.bash. After that gzserver and gzclient work fine. (?)
Capelare (Mar 02)editsorry, I realized my earlier answer might be too confusing, so I removed the seconds part. I'll try to put this information on gazebo wiki instead. The basics are explained in the update gazebo package manifest (https://code.ros.org/svn/ros-pkg/stacks/simulator_gazebo/trunk/gazebo/manifest.xml)
hsu (Mar 02)editThanks! Anyway I decided to go with the ros-wrapped gazebo version because I think it'd be easier to upgrade :) So what I'm doing now is setting up the environment for ros-fuerte and for simulator_gazebo, and then I launch "rosrun gazebo gzserver" instead of gzserver directly ;-)
Capelare (Mar 02)editIt's not confusing at all, don't worry. It's just I don't know what I really want to do, so I'm trying things out. What I want to accomplish is a Lego NXT simulator, and I thought it'd be a good idea to write plugins for gazebo (and use the NXT stack probably). So you tell me, do I want to use ROS?
Capelare (Mar 02)editThe segmentation fault as described in ticket: compiler flag -Bsymbolic-functions has been fixed, so
sudo apt-get update
sudo apt-get upgrade
to get the latest versions of ros and simulator_gazebo which do not have the boost related segmentation fault.
One thing would be that Gazebo takes a commandline argument that specifies the world file to launch. You can find them in $(gazebo_worlds)/worlds. So:
gzserver /opt/ros/electric/simulator_gazebo/gazebo_worlds/worlds/empty.world
or something along those lines.
There is a know bug where nvidia driver 295.20 appears to also cause segfault on forking when starting gazebo, below is the backtrace for reference. By downgrading to an earlier version of nvidia driver (< 290.10) fixed it for me:
$ roslaunch pr2_gazebo pr2_empth_world.launch
....
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7f51f91c7700 (LWP 30795)]
0x00007f5239dc7c0f in _nv022tls () from /usr/lib/tls/libnvidia-tls.so.295.20
(gdb) bt
#0 0x00007f5239dc7c0f in _nv022tls () from /usr/lib/tls/libnvidia-tls.so.295.20
#1 0x00007f523ceb4a01 in ?? () from /usr/lib/libGL.so.1
#2 0x00007f52475ab5a5 in __libc_fork () at ../nptl/sysdeps/unix/sysv/linux/x86_64/../fork.c:95
#3 0x00007f52475687ab in _IO_new_proc_open (fp=0x7f522c307b20, command=0x7f522c4a0478 "ret=\"/opt/ros/electric/stacks/arm_navigation/joint_normalization_filters/default_plugins.xml\" && echo $ret", mode=<optimized out>)
at iopopen.c:191
#4 0x00007f5247568b01 in _IO_new_popen (command=0x7f522c4a0478 "ret=\"/opt/ros/electric/stacks/arm_navigation/joint_normalization_filters/default_plugins.xml\" && echo $ret", mode=0x7f52463ccb51 "r") at iopopen.c:312
#5 0x00007f52463b85df in rospack::Package::direct_flags (this=0x7f522c07f9b0, lang=..., attrib=...) at /tmp/buildd/ros-electric-ros-1.6.8/debian/ros-electric-ros/opt/ros/electric/ros/tools/rospack/rospack.cpp:584
#6 0x00007f52463bf800 in rospack::Package::plugins (this=0x7f522c441d10) at /tmp/buildd/ros-electric-ros-1.6.8/debian/ros-electric-ros/opt/ros/electric/ros/tools/rospack/rospack.cpp:304
#7 0x00007f52463c0062 in rospack::ROSPack::cmd_plugins (this=0x7f51f91c57e0) at /tmp/buildd/ros-electric-ros-1.6.8/debian/ros-electric-ros/opt/ros/electric/ros/tools/rospack/rospack.cpp:1164
#8 0x00007f52463c2fd7 in rospack::ROSPack::run (this=0x7f51f91c57e0, argc=4, argv=0x7f522c513200) at /tmp/buildd/ros-electric-ros-1.6.8/debian/ros-electric-ros/opt/ros/electric/ros/tools/rospack/rospack.cpp:1438
#9 0x00007f52463c3826 in rospack::ROSPack::run (this=0x7f51f91c57e0, cmd=<optimized out>) at /tmp/buildd/ros-electric-ros-1.6.8/debian/ros-electric-ros/opt/ros/electric/ros/tools/rospack/rospack.cpp:1206
#10 0x00007f5248e43f03 in ros::package::command (_cmd=...) at /tmp/buildd/ros-electric-ros-1.6.8/debian/ros-electric-ros/opt/ros/electric/ros/core/roslib/src/package.cpp:55
#11 0x00007f5248e44245 in ros::package::command (cmd=<optimized out>, output=...) at /tmp/buildd/ros-electric-ros-1.6.8/debian/ros-electric-ros/opt/ros/electric/ros/core/roslib/src/package.cpp:73
#12 0x00007f5248e4478b in ros::package::getPlugins (package=..., attribute=<optimized out>, plugins=...) at /tmp/buildd/ros-electric-ros-1.6.8/debian/ros-electric-ros/opt/ros/electric/ros/core/roslib/src/package.cpp:125
#13 0x00007f5248e4537c in ros::package::getPlugins (package=<optimized out>, attribute=<optimized out>, plugins=...) at /tmp/buildd/ros-electric-ros-1.6.8/debian/ros-electric-ros/opt/ros/electric/ros/core/roslib/src/package.cpp:113
#14 0x00007f51f6733cae in pluginlib::ClassLoader<filters::FilterBase<double> >::ClassLoader (this=0x7f522c485828, package=..., base_class=..., attrib_name=...)
at /opt/ros/electric/stacks/pluginlib/include/pluginlib/class_loader_imp.h:51
#15 0x00007f51f6726f0d in FilterChain (data_type=..., this=0x7f522c485828) at /opt/ros/electric/stacks/filters/include/filters/filter_chain.h:53
#16 controller::LaserScannerTrajController::LaserScannerTrajController (this=0x7f522c485670)
at /tmp/buildd/ros-electric-pr2-controllers-1.6.2/debian/ros-electric-pr2-controllers/opt/ros/electric/stacks/pr2_controllers/pr2_mechanism_controllers/src/laser_scanner_traj_controller.cpp:47
#17 0x00007f51f67274e8 in controller::LaserScannerTrajControllerNode::LaserScannerTrajControllerNode (this=0x7f522c485560)
at /tmp/buildd/ros-electric-pr2-controllers-1.6.2/debian/ros-electric-pr2-controllers/opt/ros/electric/stacks/pr2_controllers/pr2_mechanism_controllers/src/laser_scanner_traj_controller.cpp:399
#18 0x00007f51f6734e3a in Poco::MetaObject<controller::LaserScannerTrajControllerNode, pr2_controller_interface::Controller>::create (this=<optimized out>) at /opt/ros/electric/stacks/pluginlib/include/Poco/MetaObject.h:165
#19 0x00007f52057abc57 in create (className=..., this=0x7f522431b9b8) at /opt/ros/electric/stacks/pluginlib/include/Poco/ClassLoader.h:360
#20 pluginlib::ClassLoader<pr2_controller_interface::Controller>::createClassInstance (this=0x7f522431b950, lookup_name=..., auto_load=<optimized out>) at /opt/ros/electric/stacks/pluginlib/include/pluginlib/class_loader_imp.h:277
#21 0x00007f520578d68f in pr2_controller_manager::ControllerManager::loadController (this=<optimized out>, name=...)
at /tmp/buildd/ros-electric-pr2-mechanism-1.5.4/debian/ros-electric-pr2-mechanism/opt/ros/electric/stacks/pr2_mechanism/pr2_controller_manager/src/controller_manager.cpp:289
#22 0x00007f520578ee02 in pr2_controller_manager::ControllerManager::loadControllerSrv (this=0x7f522e917090, req=..., resp=...)
at /tmp/buildd/ros-electric-pr2-mechanism-1.5.4/debian/ros-electric-pr2-mechanism/opt/ros/electric/stacks/pr2_mechanism/pr2_controller_manager/src/controller_manager.cpp:799
#23 0x00007f52057b4f8b in operator() (a1=<optimized out>, a0=<optimized out>, this=0x7f522430dd98) at /usr/include/boost/function/function_template.hpp:1013
#24 call (params=..., cb=...) at /opt/ros/electric/stacks/ros_comm/clients/cpp/roscpp/include/ros/service_callback_helper.h:142
#25 ros::ServiceCallbackHelperT<ros::ServiceSpec<pr2_mechanism_msgs::LoadControllerRequest_<std::allocator<void> >, pr2_mechanism_msgs::LoadControllerResponse_<std::allocator<void> > > >::call (this=0x7f522430dd90, params=...)
at /opt/ros/electric/stacks/ros_comm/clients/cpp/roscpp/include/ros/service_callback_helper.h:200
#26 0x00007f5249bbd232 in ros::ServiceCallback::call (this=0x7f522c53aca0)
at /tmp/buildd/ros-electric-ros-comm-1.6.6/debian/ros-electric-ros-comm/opt/ros/electric/stacks/ros_comm/clients/cpp/roscpp/src/libros/service_publication.cpp:123
#27 0x00007f5249bccc59 in ros::CallbackQueue::callOneCB (this=0x2355b20, tls=0x62f2120)
at /tmp/buildd/ros-electric-ros-comm-1.6.6/debian/ros-electric-ros-comm/opt/ros/electric/stacks/ros_comm/clients/cpp/roscpp/src/libros/callback_queue.cpp:381
#28 0x00007f5249bce74b in ros::CallbackQueue::callAvailable (this=0x2355b20, timeout=<optimized out>)
at /tmp/buildd/ros-electric-ros-comm-1.6.6/debian/ros-electric-ros-comm/opt/ros/electric/stacks/ros_comm/clients/cpp/roscpp/src/libros/callback_queue.cpp:333
#29 0x00007f5249b6b42a in ros::spinOnce () at /tmp/buildd/ros-electric-ros-comm-1.6.6/debian/ros-electric-ros-comm/opt/ros/electric/stacks/ros_comm/clients/cpp/roscpp/src/libros/init.cpp:518
#30 0x00007f52059e72bf in gazebo::GazeboRosControllerManager::ControllerManagerROSThread (this=0x7f522e9158b0)
at /tmp/buildd/ros-electric-pr2-simulator-1.6.0/debian/ros-electric-pr2-simulator/opt/ros/electric/stacks/pr2_simulator/pr2_gazebo_plugins/src/gazebo_ros_controller_manager.cpp:509
#31 0x00007f5249280ba9 in thread_proxy () from /usr/lib/libboost_thread.so.1.46.1
#32 0x00007f524a29aefc in start_thread (arg=0x7f51f91c7700) at pthread_create.c:304
#33 0x00007f52475df89d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#34 0x0000000000000000 in ?? ()
(gdb)
Asked: Feb 08
Seen: 358 times
Last updated: Mar 02
ROS Answers is licensed under Creative Commons Attribution 3.0 Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.