Skip to content

Memory grows overtime when calling service #5690

@chanhhoang99

Description

@chanhhoang99

Bug report

Required Info:

  • Operating System:
    • Ubuntu 24.02
  • Computer:
    • AMD box
  • ROS2 Version:
    • Kilted
  • Version or commit hash:
  • DDS implementation:
    • CycloneDDS

Steps to reproduce issue

Calling isPoseOccupied in a tree xml config(https://github.com/ros-navigation/navigation2/blob/main/nav2_behavior_tree/plugins/condition/is_pose_occupied_condition.cpp)

Expected behavior

Memory consumption should not increase

Actual behavior

Memory consumption increase overtime

Reproduction instructions

Additional information

The background of this behavior is that I am trying to get a cost at a goal pose to check if it is occupied, if it is, I will stop/pause the robot until the obstacle move away. So the plugin is called in a time manner.(1hz)
With 1Hz the memory grow slowly and if I increase to 10 or 100Hz, this will take a lot of memory after a short time.
Below is the heap consumption trace

Image

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions