RLBench icon indicating copy to clipboard operation
RLBench copied to clipboard

RuntimeError: Handle cam_over_shoulder_left_mask does not exist.

Open xiangbaihan opened this issue 10 months ago • 5 comments

when I running "python task_builder.py",I got those error: ############################################### Traceback (most recent call last): File "task_builder.py", line 289, in scene = Scene(pr, robot, obs_config) File "/home/xbh/RLBench/tools/../rlbench/backend/scene.py", line 50, in init self._cam_over_shoulder_left_mask = VisionSensor( File "/home/xbh/.local/lib/python3.8/site-packages/pyrep/objects/vision_sensor.py", line 14, in init super().init(name_or_handle) File "/home/xbh/.local/lib/python3.8/site-packages/pyrep/objects/object.py", line 24, in init self._handle = sim.simGetObjectHandle(name_or_handle) File "/home/xbh/.local/lib/python3.8/site-packages/pyrep/backend/sim.py", line 94, in simGetObjectHandle raise RuntimeError('Handle %s does not exist.' % objectName) RuntimeError: Handle cam_over_shoulder_left_mask does not exist. QObject::~QObject: Timers cannot be stopped from another thread QMutex: destroying locked mutex ############################################# what should I do?

xiangbaihan avatar Mar 11 '25 15:03 xiangbaihan

To me, I reinstalled the RLBench.

joonsu0109gh avatar Mar 28 '25 08:03 joonsu0109gh

To me, I reinstalled the RLBench.

@joonsu0109gh, I tried reinstalling PyRep and RLBench using pip3 install .. I still get the error despite this change. Did you clear any caches or take any additional steps?

b-karthiknair avatar Mar 28 '25 15:03 b-karthiknair

I mean, try removing the RLBench directory and reinstalling it by following the installation guide from this work. I hope this works for you too.

joonsu0109gh avatar Mar 28 '25 15:03 joonsu0109gh

Thank you for the suggestion. I guess it was an issue with the specific commit that I was working on. I switched to master and reinstalled RLBench again, and now it is working again!

b-karthiknair avatar Mar 28 '25 16:03 b-karthiknair

Perhaps the issue is saving changes in Coppeliasim's GUI. It can apparently result in missing components.

b-karthiknair avatar Mar 28 '25 17:03 b-karthiknair