How to shut down cuboro cleanly and release all resources #67
-
I have a class which sets up curobo with a robot, does some tasks and then shuts down. I then load another robot into this class and perform more actions. I have been starting and stopping this script during debugging, but have noticed that after about 20 minutes curobo hangs during loading.
I have found a solution is to rebuild the docker image without the docker cache, but this takes a long time and is not ideal. I have tried releasing curobo resources explicilty, but this has not helped;
Is there a more explicit way to release all curobo gpu resources? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
I need some clarification:
If you are not starting a new container every time but only running a new python script for every robot, you don't have to do anything extra as python will take care of clearing resources. If you are not exiting the python script but recreating instances of curobo, you can call If you can provide a minimal example, that would also help in narrowing down the issue. We have had no issues in creating new instance of curobo inside a python script. |
Beta Was this translation helpful? Give feedback.
-
Thanks, that is helpful. Its complicated for me to produce a minimal example, but I think I think I am closing in on the source of the problem and should have a workaround soon. I will update here when I have a confirmed solution, and it should also fix this issue here: |
Beta Was this translation helpful? Give feedback.
The problem was with how I was creating the wheel of curobo. installing via the normal instructions fixed the problem.