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

Graspit! memory leak #8

Open
jvarley opened this issue Aug 8, 2016 · 2 comments
Open

Graspit! memory leak #8

jvarley opened this issue Aug 8, 2016 · 2 comments

Comments

@jvarley
Copy link
Member

jvarley commented Aug 8, 2016

if clearWorld and importGraspableBody and import Hand are called repeatably, there is a memory leak somewhere. I would assume something from the body or hand is not being destroyed properly.

@JSR694 watch for this as well.

@samarth-robo
Copy link

samarth-robo commented Jul 8, 2018

I might be experiencing this too.
I am trying to collect a bunch of grasps for an object from various approach vectors. Here is my pseudocode:

clearWorld()
loadWorld(world_name)  # contains only a graspableBody and a Robot
toggleAllCollisions(True)
for approach_vector in approach_vectors:
  clearWorld()
  loadWorld(world_name)
  pose = pose_from_approach_vector(approach_vector)
  setRobotPose(pose)
  grasps = planGrasps(search_energy='CONTACT_ENERGY', 
    search_space=SearchSpace(SearchSpace.SPACE_APPROACH)).grasps
  save_grasps(grasps)

I find that the Graspit! Interface hangs after a while and becomes unresponsive to mouse-controlled zooming and panning. htop doesn't show exceptionally high memory usage, though. The graspit process was consuming all of a CPU core.

Do you have a better suggested way of going about it? Thanks!

@samarth-robo
Copy link

It seems like my case was an instance of "Neighbor gen loops" as mentioned in graspit-simulator/graspit#131, not a memory leak.

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

No branches or pull requests

2 participants