Gazebo | Ignition | Community
Ask Your Question

Unable to launch Gazebo simulation, showing error "[spawn_gazebo_model-4] process has died..."

asked 2021-05-05 07:28:37 -0500

ckashis gravatar image

I am using ROS melodic in Ubuntu 18.04. I have created one robot model in Gazebo and it was working fine. But now it is showing the following error.

[spawn_gazebo_model-4] process has died [pid 14674, exit code 1, cmd /opt/ros/melodic/lib/gazebo_ros/spawn_model -urdf -param robot_description -model robot -x 0 -y 0 -z 0 __name:=spawn_gazebo_model __log:=/home/vstnhwstn-11/.ros/log/bec072fe-ad8d-11eb-ad67-18c04db5f615/spawn_gazebo_model-4.log].

I did not change anything. I tried to fix the issue by executing killall gzserver && killall gzclient but it was showing

gzserver: no process found 
gzclient: no process found

I ran the simulation on another computer and it worked fine. So I created another workspace and tried to run the simulation. But the same error came again. I tired to kill the pid process but I couldn't find the number. I am confused now. It is working on another Laptop but not working on my system. Before the main error, terminal is showing as follows.

[INFO] [1620209671.250744, 0.000000]: Controller Spawner: Waiting for service controller_manager/load_controller                                                                                      Traceback (most recent call last):                                                                 File "/opt/ros/melodic/lib/gazebo_ros/spawn_model", line 34, in <module>                                      from tf.transformations import quaternion_from_euler                                                         File "/opt/ros/melodic/lib/python2.7/dist-packages/tf/", line 31, in <module>                                                                        from .listener import Transformer, TransformListener, TransformerROS                                                           File "/opt/ros/melodic/lib/python2.7/dist-packages/tf/", line 29, in <module>                      import numpy                                                                                       File "/home/vstnhwstn-11/.local/lib/python2.7/site-packages/numpy/", line 142, in <module>                                                                                                   from . import core                                                                                 File "/home/vstnhwstn-11/.local/lib/python2.7/site-packages/numpy/core/", line 91, in <module>                                                                                              raise ImportError(msg.format(path))                                                                ImportError: Something is wrong with the numpy installation. While importing we detected an older version of numpy in ['/home/vstnhwstn-11/.local/lib/python2.7/site-packages/numpy']. One method of fixing this is to repeatedly uninstall numpy until none is found, then reinstall this version.

I uninstalled numpy and installed again using pip uninstall numpy and pip install numpy. A warning is also coming and it is as follows.

[WARN] [1620214529.805213, 6.389000]: Controller Spawner couldn't find the expected controller_manager ROS interface.

I am confused whether the issue is relate to graphics card or not. Somebody please help me to solve this issue.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2021-05-10 01:20:42 -0500

ckashis gravatar image

I solved the issue. It was an error with numpy. I uninstalled numpy using the command pip uninstall numpy repeatedly until I got the message

Not uninstalling numpy at /usr/lib/python2.7/dist-packages, outside environment /usr

Then I installed numpy again using pip install numpy. Then execute the command sudo pip install --upgrade numpy. This will solve the issue.

The controller Spawner warning is described here.

edit flag offensive delete link more


thanks. that worked for me

Sogensava gravatar imageSogensava ( 2022-09-25 14:09:02 -0500 )edit

Question Tools

1 follower


Asked: 2021-05-05 07:09:50 -0500

Seen: 3,074 times

Last updated: May 10 '21