Error [sitl-2] process has died

I was using Gazebo with Mavros just fine until yesterday.

Following the next steps was working fine for me:

cd <Firmware_clone>
make posix_sitl_default gazebo
source ~/catkin_ws/devel/setup.bash    // (optional)
source Tools/setup_gazebo.bash $(pwd) $(pwd)/build/posix_sitl_default
export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:$(pwd)
export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:$(pwd)/Tools/sitl_gazebo
roslaunch px4 mavros_posix_sitl.launch

But now I receive this errors and warnings in the middle of the console output:

process[sitl-2]: started with pid [8611]
node name: sitl
data path: /home/nando/src/Firmware
commands file: /home/nando/src/Firmware/posix-configs/SITL/init/lpe/iris
ERROR [Unknown] Error creating symlink /home/nando/src/Firmware/ROMFS -> /home/nando/.ros/ROMFS
Restoring terminal
process[gazebo-3]: started with pid [8612]
process[gazebo_gui-4]: started with pid [8617]
process[vehicle_spawn_nando_laptop_8562_3467847263433643864-5]: started with pid [8619]
[sitl-2] process has died [pid 8611, exit code 255, cmd /home/nando/src/Firmware/build/posix_sitl_default/px4 /home/nando/src/Firmware /home/nando/src/Firmware/posix-configs/SITL/init/lpe/iris __name:=sitl __log:=/home/nando/.ros/log/06fd97fc-e49e-11e7-b032-b05adae3a335/sitl-2.log].
log file: /home/nando/.ros/log/06fd97fc-e49e-11e7-b032-b05adae3a335/sitl-2*.log
process[mavros-6]: started with pid [8623]
[ INFO] [1513675303.865682626]: FCU URL: udp://:14540@localhost:14557
[ WARN] [1513675303.866466995]: init: message from ASLUAV, MSG-ID 201 ignored! Table has different entry.
[ WARN] [1513675303.866722731]: init: message from autoquad, MSG-ID 150 ignored! Table has different entry.
[ WARN] [1513675303.866793495]: init: message from autoquad, MSG-ID 152 ignored! Table has different entry.
[ WARN] [1513675303.867017859]: init: message from matrixpilot, MSG-ID 150 ignored! Table has different entry.
[ WARN] [1513675303.867083255]: init: message from matrixpilot, MSG-ID 151 ignored! Table has different entry.
[ WARN] [1513675303.867143376]: init: message from matrixpilot, MSG-ID 152 ignored! Table has different entry.
[ WARN] [1513675303.867203223]: init: message from matrixpilot, MSG-ID 153 ignored! Table has different entry.
[ WARN] [1513675303.867261856]: init: message from matrixpilot, MSG-ID 155 ignored! Table has different entry.
[ WARN] [1513675303.867320469]: init: message from matrixpilot, MSG-ID 156 ignored! Table has different entry.
[ WARN] [1513675303.867378394]: init: message from matrixpilot, MSG-ID 157 ignored! Table has different entry.
[ WARN] [1513675303.867436799]: init: message from matrixpilot, MSG-ID 158 ignored! Table has different entry.
[ WARN] [1513675303.867494913]: init: message from matrixpilot, MSG-ID 170 ignored! Table has different entry.
[ WARN] [1513675303.867554434]: init: message from matrixpilot, MSG-ID 171 ignored! Table has different entry.
[ WARN] [1513675303.867612283]: init: message from matrixpilot, MSG-ID 172 ignored! Table has different entry.
[ WARN] [1513675303.867669973]: init: message from matrixpilot, MSG-ID 173 ignored! Table has different entry.
[ WARN] [1513675303.867728265]: init: message from matrixpilot, MSG-ID 174 ignored! Table has different entry.
[ WARN] [1513675303.867786021]: init: message from matrixpilot, MSG-ID 175 ignored! Table has different entry.
[ WARN] [1513675303.867844703]: init: message from matrixpilot, MSG-ID 176 ignored! Table has different entry.
[ WARN] [1513675303.867903390]: init: message from matrixpilot, MSG-ID 177 ignored! Table has different entry.
[ WARN] [1513675303.867961659]: init: message from matrixpilot, MSG-ID 178 ignored! Table has different entry.
[ WARN] [1513675303.868019208]: init: message from matrixpilot, MSG-ID 179 ignored! Table has different entry.
[ WARN] [1513675303.868078516]: init: message from matrixpilot, MSG-ID 180 ignored! Table has different entry.
[ WARN] [1513675303.868137528]: init: message from matrixpilot, MSG-ID 181 ignored! Table has different entry.
[ WARN] [1513675303.868195972]: init: message from matrixpilot, MSG-ID 182 ignored! Table has different entry.
[ WARN] [1513675303.868254445]: init: message from matrixpilot, MSG-ID 183 ignored! Table has different entry.
[ WARN] [1513675303.868312200]: init: message from matrixpilot, MSG-ID 184 ignored! Table has different entry.
[ WARN] [1513675303.868369208]: init: message from matrixpilot, MSG-ID 185 ignored! Table has different entry.
[ WARN] [1513675303.868428244]: init: message from matrixpilot, MSG-ID 186 ignored! Table has different entry.
[ WARN] [1513675303.868651960]: init: message from paparazzi, MSG-ID 180 ignored! Table has different entry.
[ WARN] [1513675303.868712862]: init: message from paparazzi, MSG-ID 181 ignored! Table has different entry.
[ WARN] [1513675303.868771478]: init: message from paparazzi, MSG-ID 182 ignored! Table has different entry.
[ WARN] [1513675303.868829544]: init: message from paparazzi, MSG-ID 183 ignored! Table has different entry.
[ WARN] [1513675303.868887658]: init: message from paparazzi, MSG-ID 184 ignored! Table has different entry.
[ WARN] [1513675303.869105445]: init: message from slugs, MSG-ID 170 ignored! Table has different entry.
[ WARN] [1513675303.869169002]: init: message from slugs, MSG-ID 172 ignored! Table has different entry.
[ WARN] [1513675303.869202072]: init: message from slugs, MSG-ID 173 ignored! Table has different entry.
[ WARN] [1513675303.869233735]: init: message from slugs, MSG-ID 176 ignored! Table has different entry.
[ WARN] [1513675303.869265798]: init: message from slugs, MSG-ID 177 ignored! Table has different entry.
[ WARN] [1513675303.869297492]: init: message from slugs, MSG-ID 179 ignored! Table has different entry.
[ WARN] [1513675303.869330473]: init: message from slugs, MSG-ID 180 ignored! Table has different entry.
[ WARN] [1513675303.869363553]: init: message from slugs, MSG-ID 181 ignored! Table has different entry.
[ WARN] [1513675303.869396024]: init: message from slugs, MSG-ID 184 ignored! Table has different entry.
[ WARN] [1513675303.869428092]: init: message from slugs, MSG-ID 185 ignored! Table has different entry.
[ WARN] [1513675303.869460117]: init: message from slugs, MSG-ID 186 ignored! Table has different entry.
[ WARN] [1513675303.869491358]: init: message from slugs, MSG-ID 188 ignored! Table has different entry.
[ WARN] [1513675303.869525989]: init: message from slugs, MSG-ID 191 ignored! Table has different entry.
[ WARN] [1513675303.869558526]: init: message from slugs, MSG-ID 192 ignored! Table has different entry.
[ WARN] [1513675303.869591821]: init: message from slugs, MSG-ID 193 ignored! Table has different entry.
[ WARN] [1513675303.869624772]: init: message from slugs, MSG-ID 194 ignored! Table has different entry.

Gazebo opens just fine but I am unable to communicate sending mavros messages like before.

Any idea?

Reinstalling everything in a virtual machine is giving me the same errors.

Maybe this error after make posix_sitl_default gazebo has something to do with it:

Exiting...
Shutting down
Restoring terminal
ninja: build stopped: interrupted by user.
Makefile:147: recipe for target 'posix_sitl_default' failed
make: *** [posix_sitl_default] Interrupt

It happens after I ctrl + c to close gazebo, but if I don’t do that it will be open forever.
Any help is appreciated.

Your problem is:

ERROR [Unknown] Error creating symlink /home/nando/src/Firmware/ROMFS -> /home/nando/.ros/ROMFS

If the symbolic links already exist, you need to delete them.

Also, if you are doing all this:

cd <Firmware_clone>
make posix_sitl_default gazebo
source ~/catkin_ws/devel/setup.bash    // (optional)
source Tools/setup_gazebo.bash $(pwd) $(pwd)/build/posix_sitl_default
export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:$(pwd)
export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:$(pwd)/Tools/sitl_gazebo
roslaunch px4 mavros_posix_sitl.launch```

Then, remove the `gazebo` in `make posix_sitl_default gazebo` so it is just `make posix_sitl_default`
1 Like

Hi danlvldanlvl,

Have you figured out how to solve this issue? I encountered the same problem as yours but I cannot delete the symbolic link because it said:
bash: /home/shk/.ros/ROMFS: No such file or directory

Thanks!