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.
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.
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.”