tu-darmstadt-ros-pkg / hector_gazebo

hector_gazebo provides packages related to the simulation of robots using gazebo (gazebo plugins, world files etc.).
http://www.ros.org/wiki/hector_gazebo
181 stars 155 forks source link

Humble Gazebo crash, caused by hector_gazebo_worlds #101

Open PaddyCube opened 6 months ago

PaddyCube commented 6 months ago

Hi,

I'm on ROS2 Humble and was able to build the entire package without issue. I need a GPS plugin and I added it to my xacro file. As soon as I start gazebo, it fails with this error.

[gzclient-6] gzclient: /usr/include/boost/smart_ptr/shared_ptr.hpp:728: typename boost::detail::sp_member_access<T>::type 
boost::shared_ptr<T>::operator->() const [with T = gazebo::rendering::Camera; 
typename boost::detail::sp_member_access<T>::type = gazebo::rendering::Camera*]: Assertion `px != 0' failed.
[ERROR] [gzclient-6]: process has died [pid 37293, exit code -6, cmd 'gzclient'].

This also occurs if I uncomment the hector plugin. I removed some packages from my install folder and discovered that it gets caused by the package

hector_gazebo_worlds

Right after removing this package from my install folder, gazebo runs without issue and I get GPS data. I don't know what inside the hector_gazebo_worlds package causes this. Also I don't use any world of this package. However removing it from install or src before build, the plugins seems to work.