Gazebo Crashes regularly and somehow this is related to another package of mine!
This is really weird but I hope I have a useful clue. When I run gazebo on my Ubuntu 16.04 as follows:
roslaunch turtlebot3_gazebo turtlebot3_world.launch
it crashes hard (see below.) When I remove a simple package that I wrote from catkin_ws/src, then the crash goes away. The directory is catkin_ws/src/rosbook. And the package is this one: https://github.com/campusrover/robots.... When I don't have that package, the above command seems to work nicely. When I put that package in, do a catkin_make, then gazebo crashes as below.
How can this be? I reproduced it twice, but who knows, it could still be my error. Here's the log from the Gazebo crash
... logging to /home/pitosalas/.ros/log/35dbb814-2a76-11e9-86dd-002500efe1ca/roslaunch-pitosalasubuntu-8933.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.
started roslaunch server http://localhost:42955/
SUMMARY
========
PARAMETERS
* /robot_description: <?xml version="1....
* /rosdistro: kinetic
* /rosversion: 1.12.14
* /use_sim_time: True
NODES
/
gazebo (gazebo_ros/gzserver)
gazebo_gui (gazebo_ros/gzclient)
spawn_urdf (gazebo_ros/spawn_model)
auto-starting new master
process[master]: started with pid [8946]
ROS_MASTER_URI=http://localhost:11311
setting /run_id to 35dbb814-2a76-11e9-86dd-002500efe1ca
process[rosout-1]: started with pid [8959]
started core service [/rosout]
process[gazebo-2]: started with pid [8970]
process[gazebo_gui-3]: started with pid [8987]
process[spawn_urdf-4]: started with pid [8993]
[ INFO] [1549502283.372710747]: Finished loading Gazebo ROS API Plugin.
[ INFO] [1549502283.373530673]: waitForService: Service [/gazebo/set_physics_properties] has not been advertised, waiting...
[ INFO] [1549502283.433408066]: Finished loading Gazebo ROS API Plugin.
[ INFO] [1549502283.434507411]: waitForService: Service [/gazebo/set_physics_properties] has not been advertised, waiting...
[ INFO] [1549502284.586280719, 0.022000000]: waitForService: Service [/gazebo/set_physics_properties] is now available.
[ INFO] [1549502285.435959925, 0.088000000]: Physics dynamic reconfigure ready.
[ INFO] [1549502285.437266488, 0.088000000]: Laser Plugin: Using the 'robotNamespace' param: '/'
[ INFO] [1549502285.437361972, 0.088000000]: Starting Laser Plugin (ns = /)
[ INFO] [1549502285.439904840, 0.088000000]: Laser Plugin (ns = /) <tf_prefix_>, set to ""
[ INFO] [1549502285.520840304, 0.088000000]: Starting plugin DiffDrive(ns = //)
[ INFO] [1549502285.521008169, 0.088000000]: DiffDrive(ns = //): <rosDebugLevel> = na
[ INFO] [1549502285.522377542, 0.088000000]: DiffDrive(ns = //): <tf_prefix> =
[ INFO] [1549502285.523738811, 0.088000000]: DiffDrive(ns = //): Advertise joint_states
[ INFO] [1549502285.524857474, 0.088000000]: DiffDrive(ns = //): Try to subscribe to cmd_vel
[ INFO] [1549502285.529667552, 0.088000000]: DiffDrive(ns = //): Subscribe to cmd_vel
[ INFO] [1549502285.530878990, 0.088000000]: DiffDrive(ns = //): Advertise odom on odom
[ INFO] [1549502285.563994349, 0.112000000]: waitForService: Service [/gazebo/set_physics_properties] is now available.
Unhandled exception in thread started by
sys.excepthook is missing
lost sys.stderr
[spawn_urdf-4] process has finished cleanly
log file: /home/pitosalas/.ros/log/35dbb814-2a76-11e9-86dd-002500efe1ca/spawn_urdf-4*.log
[ INFO] [1549502285.617775424, 0.165000000]: Physics dynamic reconfigure ready.
Segmentation fault (core dumped)
[gazebo_gui-3] process has died [pid 8987, exit code 139, cmd /opt/ros/kinetic/lib/gazebo_ros/gzclient __name:=gazebo_gui __log:=/home/pitosalas/.ros/log/35dbb814-2a76-11e9-86dd-002500efe1ca/gazebo_gui-3.log].
log file: /home/pitosalas/.ros/log/35dbb814-2a76-11e9-86dd-002500efe1ca/gazebo_gui-3*.log
^C[gazebo-2] killing on exit
[gazebo-2] escalating to SIGTERM
[rosout-1] killing on exit
[master] killing on exit
shutting down processing monitor...
... shutting down processing monitor complete
done