Skip to content

Conversation

bijoua29
Copy link

Description

To fix "SEVERE WARNING" from class loader in moveit_servo, created the class loader as a member variable instead of creating it on the stack.

This fixes the following error:

[servo_node-20] Warning: class_loader.ClassLoader: SEVERE WARNING!!! Attempting to unload library while objects created by this loader exist in the heap! You should delete your objects before attempting to unload the library or destroying the ClassLoader. The library will NOT be unloaded.

Comment on lines +232 to +233
// Plugin loader
std::unique_ptr<pluginlib::ClassLoader<online_signal_smoothing::SmoothingBaseClass>> smoother_loader_;
Copy link
Member

Choose a reason for hiding this comment

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

Hi Bijou, long time no see. Thanks for fixing this, it's been annoying for too long.

I don't think it needs to be a unique_ptr? But I'll still approve the PR either way.

Suggested change
// Plugin loader
std::unique_ptr<pluginlib::ClassLoader<online_signal_smoothing::SmoothingBaseClass>> smoother_loader_;
// Plugin loader
pluginlib::ClassLoader<online_signal_smoothing::SmoothingBaseClass> smoother_loader_;

@AndyZe AndyZe added backport-humble Mergify label that triggers a PR backport to Humble backport-jazzy Mergify label that triggers a PR backport to Jazzy labels Sep 14, 2025
@AndyZe
Copy link
Member

AndyZe commented Sep 14, 2025

I pushed a small commit to satisfy the linter

@AndyZe
Copy link
Member

AndyZe commented Sep 14, 2025

Blocked pending #3567 I think

Copy link

codecov bot commented Sep 14, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 0.00%. Comparing base (4fc5c82) to head (6becd9d).

Additional details and impacted files
@@          Coverage Diff          @@
##            main   #3577   +/-   ##
=====================================
  Coverage   0.00%   0.00%           
=====================================
  Files        180     181    +1     
  Lines      22601   22649   +48     
  Branches    3099    3108    +9     
=====================================
- Misses     22601   22649   +48     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-humble Mergify label that triggers a PR backport to Humble backport-jazzy Mergify label that triggers a PR backport to Jazzy

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants