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

What is "oh yeah destructuro" #1601

Closed
BriceRenaudeau opened this issue Mar 29, 2021 · 3 comments · Fixed by #1602
Closed

What is "oh yeah destructuro" #1601

BriceRenaudeau opened this issue Mar 29, 2021 · 3 comments · Fixed by #1602
Labels
bug Something isn't working

Comments

@BriceRenaudeau
Copy link
Contributor

BriceRenaudeau commented Mar 29, 2021

Bug report

Useless messages appear when killing a lifecycle node.

Required Info:

  • Operating System:
    Ubuntu
  • Installation type:
    Binary
  • Version or commit hash:
    master
  • DDS implementation:
    Cyclone
  • Client library (if applicable):
    lifecycle_node_interface

Steps to reproduce the issue

When killing my lifecycle node "assisted_teleop" this message appears:

[assisted_teleop-28] [INFO] [1617022166.929935526] [assisted_teleop.local_costmap]: Destroying
[assisted_teleop-28] oh yeah destructuro
[assisted_teleop-28] oh yeah end destructuro
[assisted_teleop-28] oh yeah end destructuro222
[assisted_teleop-28] oh yeah destructuro
[assisted_teleop-28] oh yeah end destructuro
[assisted_teleop-28] oh yeah end destructuro222

Expected behavior

Only the message "Destroying" should appear

Actual behavior

Additional information

Error comes from here:

~LifecycleNodeInterfaceImpl()
{
fprintf(stderr, "oh yeah destructuro\n");
rcl_node_t * node_handle = node_base_interface_->get_rcl_node_handle();
fprintf(stderr, "oh yeah end destructuro\n");
auto ret = rcl_lifecycle_state_machine_fini(&state_machine_, node_handle);
fprintf(stderr, "oh yeah end destructuro222\n");
if (ret != RCL_RET_OK) {
RCUTILS_LOG_FATAL_NAMED(
"rclcpp_lifecycle",
"failed to destroy rcl_state_machine");
}
}

@BriceRenaudeau BriceRenaudeau changed the title What is "https://github.com/ros2/rclcpp" What is "oh yeah destructuro" Mar 29, 2021
@christophebedard
Copy link
Member

It was introduced by #1507. Seems like it was just left behind and no one caught it.

@ivanpauno ivanpauno added the bug Something isn't working label Mar 29, 2021
@Karsten1987
Copy link
Contributor

lol. Now y'all know my advanced debugging techniques ;-)

Thanks @ivanpauno for taking care of it!

@fujitatomoya
Copy link
Collaborator

lol 😆

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants