-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plugin removal causes crash of Gazebo #58
Comments
I completely agree. Our plugin segfaults when its destructor is called, this is the reason of gazebo crash. |
We discussed with @francesco-romano , the first things to fix (for all three plugins) are to properly close the yarp driver in the gazebo plugin destructor, and to properly remove the WorldUpdate callback in yarp driver close function. |
Commit cda7722 solves this issue on the normal iCub, but in my case crashes are still constant when removing iCubLegs (just saying to aid the debugging, I don't know if it is reproducible). |
I cleaned the code a bit, but the issue still remains. |
@francesco-romano the situation is definitely improved now. For a more definite debug in the future we can try to use Gazebo compile in debug mode. |
It seems some issues are caused by EDIT: removing the torque plugin from the sdf file did not solve completely the problem, but it improved the behaviour... @traversaro I will need your help here (and of your gazebo-sources) |
Apparently (one) problem was with gazebo_yarp_forcetorque plugin removal. It is probably a gazebo bug, already reported to upstream : |
By the way it would be nice for gazebo_yarp_plugins if this bug could be fixed before the release of Gazebo 3.0, so it would be good if we could vote the issue [1] to gain upstream attention. For voting we need a bitbucket account, but if you already have a github account you can log through it. cc @EnricoMingo @emingo @barbalberto @arocchi @MirkoFerrati @iron76 @alessandrosettimi @DanielePucci @jeljaik https://bitbucket.org/osrf/gazebo/issue/1112/joint-destructor-are-never-called-after |
Removing a model using gazebo_yarp_controlboard, gazebo_yarp_imu or gazebo_yarp_forcetorque using the GUI frequently (always?) causes the crash of Gazebo.
I don't have a clear idea of where the bug is, but I presume this can be solved by appropriately handling the removal event in the plugins.
The text was updated successfully, but these errors were encountered: