pathplanner icon indicating copy to clipboard operation
pathplanner copied to clipboard

Memory Leak on ADStar Planning

Open scarmain opened this issue 11 months ago • 1 comments

Describe the bug I was looking at memory usage on the Rio 1 for our robot, and it looks like ADStar planning is going crazy allocating objects. I'm writing this down just to document it, not sure how to diagnose further. It seems to be allocating 4x more objects per second from our robot code

Image

Image

To Reproduce Steps to reproduce the behavior:

  1. I followed the steps to connect to the robot with VisualVM (https://docs.wpilib.org/en/stable/docs/software/advanced-gradlerio/profiling-with-visualvm.html#analyzing-a-heap-dump) This could connect to simulation too, but my screenshots are from the robot.
  2. Code at https://github.com/FRC2832/Robot2832-2025Kitbot, but the snapshots were taken while disabled, no driving started. No team code directly called ADStar to my knowledge (we do have calls to PathPlanner DriveToPose, but not executed yet when this was measured).

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Versions: (please complete the following information):

  • Rio 1
  • PPLib Version: 2025.2.1
  • PPLib Language: Java

Additional context Add any other context about the problem here.

scarmain avatar Jan 18 '25 21:01 scarmain

I also have this, did you ever fix it or are you still waiting for a response?

Baconing avatar Feb 28 '25 21:02 Baconing

my team also has this issue

owen300 avatar Apr 21 '25 17:04 owen300