gazebosim / gazebo-classic

Gazebo classic. For the latest version, see https://github.com/gazebosim/gz-sim
http://classic.gazebosim.org/
Other
1.2k stars 484 forks source link

Transportation and ROS Delete Model Service Crashes Gzserver #2631

Open osrf-migration opened 5 years ago

osrf-migration commented 5 years ago

Original report (archived issue) by Doğukan Altay (Bitbucket: dogukan_selvitech).


Using both transportation service or ROS service calls for deleting a model inside a sensor plugin crashes the gzserver. Does not occur in static models. Only when trying to remove a complex model.

error: “gzclient: /usr/include/boost/smart_ptr/shared_ptr.hpp:648: typename boost::detail::sp_member_access::type boost::shared_ptr::operator->() const [with T = gazebo::msgs::Response; typename boost::detail::sp_member_access::type = gazebo::msgs::Response*]: Assertion `px != 0' failed.”

osrf-migration commented 5 years ago

Original comment by Louise Poubel (Bitbucket: chapulina, GitHub: chapulina).


Are you trying to delete the model which contains the sensor? I can see how that could be a problem.

osrf-migration commented 5 years ago

Original comment by Doğukan Altay (Bitbucket: dogukan_selvitech).


@chapulina Yes.

osrf-migration commented 5 years ago

Original comment by Louise Poubel (Bitbucket: chapulina, GitHub: chapulina).


I would recommend not deleting from within the model that's going to be deleted. Try using an external program to make the delete request, or a world plugin.