Skip to content
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

Fix crashes on shutting down (backport #1270) #1271

Merged
merged 1 commit into from
Feb 7, 2025

Conversation

mergify[bot]
Copy link

@mergify mergify bot commented Feb 6, 2025

We did not have the on_shutdown method implemented which gets called by the resource manager when shutting down. This could potentially result in crashes or pipeline overflows when shutting down the control node.

There was an intermediate fix calling on_cleanup in the destructor, which isn't correct either. That got deleted.


This is an automatic backport of pull request #1270 done by Mergify.

We did not have the on_shutdown method implemented which gets called by the
resource manager when shutting down. This could potentially result in crashes
or pipeline overflows when shutting down the control node.

There was an intermediate fix calling on_cleanup in the destructor,
which isn't correct either. That got deleted.

(cherry picked from commit 36b5c3d)
@mergify mergify bot added the humble Relevant for humble and higher ROS versions label Feb 6, 2025
@urfeex
Copy link
Member

urfeex commented Feb 6, 2025

This seems to work, but doesn't have the same effect, since ros-controls/ros2_control#2040 is needed. I'll wait for that and manually test with it before approving.

@urfeex
Copy link
Member

urfeex commented Feb 7, 2025

Upstream got merged. Re-running semi-binary builds and if their output looks good, I will merge this.

Copy link
Member

@urfeex urfeex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes shutdowns cleaner as intended.

@urfeex urfeex merged commit b6e6bac into humble Feb 7, 2025
6 of 7 checks passed
@urfeex urfeex deleted the mergify/bp/humble/pr-1270 branch February 7, 2025 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
humble Relevant for humble and higher ROS versions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant