apollo icon indicating copy to clipboard operation
apollo copied to clipboard

Prediction: memory leak of ObstacleClusters member lane_obstacles_

Open johnnyleeRH opened this issue 5 years ago • 3 comments

Describe the bug Apollo 6.0, there is no way to clear or limit the ObstacleClusters::lane_obstacles_ increasement

To Reproduce Just Run Predcition module

Expected behavior lane_obstacles_ memory is limited

Desktop (please complete the following information):

  • OS: ubuntu

johnnyleeRH avatar Jan 07 '21 05:01 johnnyleeRH

It seems that there is no clear operation for lane_obstacles_?

https://github.com/ApolloAuto/apollo/blob/a29a563e95944b603ab9be338cce46e6486a89be/modules/prediction/container/obstacles/obstacle_clusters.h#L126-L131

daohu527 avatar Jan 09 '21 06:01 daohu527

It seems that there is no clear operation for lane_obstacles_?

https://github.com/ApolloAuto/apollo/blob/a29a563e95944b603ab9be338cce46e6486a89be/modules/prediction/container/obstacles/obstacle_clusters.h#L126-L131

Yes, it's true, there is a Init function declaration, but no implementation

johnnyleeRH avatar Jan 11 '21 00:01 johnnyleeRH

@kechxu , would you please help with this issue ?

storypku avatar Jan 11 '21 23:01 storypku