gazebo is crashing:Segmentation fault
Hi, i have been trying to run gazebo7.0.0. with turtlebot3 burger simulation using ubuntu 16.04 and ros kinetic.When i do roslaunch it is throwing this error:
ROS_MASTER_URI=http://localhost:11311
process[gazebo-1]: started with pid [9109]
process[gazebo_gui-2]: started with pid [9114]
process[spawn_urdf-3]: started with pid [9119]
[ INFO] [1517391849.942038025]: Finished loading Gazebo ROS API Plugin.
[ INFO] [1517391849.944605688]: waitForService: Service [/gazebo/set_physics_properties] has not been advertised, waiting...
Segmentation fault (core dumped)
[gazebo-1] process has died
[pid 9109, exit code 139, cmd /opt/ros/kinetic/lib/gazebo_ros/gzserver -e ode /home/az/catkin_ws/src/turtlebot3_simulations/turtlebot3_gazebo/models/empty.world __name:=gazebo __log:=/home/az/.ros/log/b5f081e4-05e5-11e8-b31b-001aa0c71fa4/gazebo-1.log].
log file: /home/az/.ros/log/b5f081e4-05e5-11e8-b31b-001aa0c71fa4/gazebo-1*.log
I have read on few locations that it can be due to poor graphics card.Is there any way to confirm it or any other thing i should check? Also when i just write gazebo in terminal it doesnt throw any error but GUI doesnt come up either.i tried gazebo --verbose which looks fine with following output:
Gazebo multi-robot simulator, version 7.0.0
Copyright (C) 2012-2016 Open Source Robotics Foundation.
Released under the Apache 2 License.
http://gazebosim.org
[Msg] Waiting for master.
Gazebo multi-robot simulator, version 7.0.0
Copyright (C) 2012-2016 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.11.4
Thanks
Asked by az on 2018-01-31 04:53:08 UTC
Answers
I'm assuming you're using a non-NIVIDIA graphics chipset.
Gazebo seems to work best with NVIDIA graphics cards. That is because it was tested against NVIDIA graphics cards in development.
Some thing you can try:
1) Ctrl-C roslaunch window, then roslaunch again (repeat) (this would work most of the time for me using an AMD graphics card).
2) Install updates
$ sudo apt-get dist-upgrade
$ sudo apt-get update
$ sudo apt-get upgrade
3) Use the proprietary driver for your graphics card (if available)
4) Get a NVIDIA graphics card - an older-ish one is fine. You're only using it to render the scene.
Additional Info:
Gazebo Answers is generally the best resource for Gazebo-related questions.
Asked by josephcoombe on 2018-01-31 10:03:42 UTC
Comments
Thankyou for your answer,but it doesnt work.This is my system specifications. VGA compatible controller: Intel Corporation 82Q35 Express Integrated Graphics Controller (rev 02) (prog-if 00 [VGA controller]) Some of my friends claimed that it worked for them without a dedicated graphics card.
Asked by az on 2018-01-31 12:56:07 UTC
Yeah, Gazebo is really flaky with non-NVIDIA graphics cards. I'd say switching to a NVIDIA is your best bet. Alternatively you could try a AMD card if you have one - I used an AMD card for a few months and it was OK (other than having to roslaunch/ctrl-c things 2-3 times before they worked).
Asked by josephcoombe on 2018-01-31 13:02:46 UTC
Thanks josephcoombe. Trying to run 2-3 times worked!
Asked by spacewandererer on 2018-04-26 14:11:29 UTC
hello, I tried to run 5 times, but it doesn't work! Has it any other solutions??
Asked by lyz on 2019-02-17 21:59:11 UTC
What happens when you get this error AND you already have an NVIDA card though...
Asked by liamr0y on 2022-03-12 00:56:40 UTC
Comments
roslaunch
works fine. Gazebo is crashing.Please update your question title to reflect that.
Asked by gvdhoorn on 2018-01-31 05:08:49 UTC