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 warning from ClassLoader in sequential compression reader and writer #1299

Merged
merged 1 commit into from
May 3, 2023

Conversation

MichaelOrlov
Copy link
Contributor

RCA:
It was incorrect order of objects destruction.
First should be destructed child objects produced by compression_factory such as compressor and decompressor since inside compression_factory destructor will be called ClassLoader destructor which will generate such warning.

- Fix for warning messages "Warning: class_loader.ClassLoader:
SEVERE WARNING!!! Attempting to unload library while objects
created by this loader exist in the heap!"

Signed-off-by: Michael Orlov <michael.orlov@apex.ai>
@MichaelOrlov
Copy link
Contributor Author

Gist: https://gist.githubusercontent.com/MichaelOrlov/4c8aa0c122501a4120e6d8a0f53c50a3/raw/df1c6de050bd4e9fd7aa2d567796fc64f3d880b1/ros2.repos
BUILD args: --packages-above-and-dependencies rosbag2_compression
TEST args: --packages-above rosbag2_compression
ROS Distro: rolling
Job: ci_launcher
ci_launcher ran: https://ci.ros2.org/job/ci_launcher/11940

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Windows Build Status

@MichaelOrlov MichaelOrlov merged commit dded5cf into rolling May 3, 2023
@delete-merged-branch delete-merged-branch bot deleted the morlov/fix_warnings_from_class_loader branch May 3, 2023 03:18
@MichaelOrlov
Copy link
Contributor Author

https://github.com/Mergifyio backport humble

@mergify
Copy link

mergify bot commented May 3, 2023

backport humble

✅ Backports have been created

mergify bot pushed a commit that referenced this pull request May 3, 2023
…ter (#1299)

- Fix for warning messages "Warning: class_loader.ClassLoader:
SEVERE WARNING!!! Attempting to unload library while objects
created by this loader exist in the heap!"

Signed-off-by: Michael Orlov <michael.orlov@apex.ai>
(cherry picked from commit dded5cf)
@MichaelOrlov
Copy link
Contributor Author

https://github.com/Mergifyio backport iron

@mergify
Copy link

mergify bot commented May 3, 2023

backport iron

✅ Backports have been created

mergify bot pushed a commit that referenced this pull request May 3, 2023
…ter (#1299)

- Fix for warning messages "Warning: class_loader.ClassLoader:
SEVERE WARNING!!! Attempting to unload library while objects
created by this loader exist in the heap!"

Signed-off-by: Michael Orlov <michael.orlov@apex.ai>
(cherry picked from commit dded5cf)
MichaelOrlov added a commit that referenced this pull request May 4, 2023
…ter (#1299) (#1316)

- Fix for warning messages "Warning: class_loader.ClassLoader:
SEVERE WARNING!!! Attempting to unload library while objects
created by this loader exist in the heap!"

Signed-off-by: Michael Orlov <michael.orlov@apex.ai>
(cherry picked from commit dded5cf)

Co-authored-by: Michael Orlov <michael.orlov@apex.ai>
@ros-discourse
Copy link

This pull request has been mentioned on ROS Discourse. There might be relevant details there:

https://discourse.ros.org/t/ros-2-tsc-meeting-minutes-2023-05-18/31587/1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants