Hello,
I have a simple Python script that read images from a scene's camera:
import vrep, b0RemoteApi
client = b0RemoteApi.RemoteApiClient('b0RemoteApi_pythonClient','b0RemoteApiAddOn')
wall_camera = client.simxGetObjectHandle('camera_1_rgb', client.simxServiceCall())
while True:
a,resolution,image = client.simxGetVisionSensorImage(wall_camera[1], False, client.simxServiceCall())
d = client.simxGetVisionSensorDepthBuffer(wall_camera[1],True, True, client.simxServiceCall())
that continually increases its memory footprint in the system
The scene has a Vision Sensor in it.
Am I doing something wrong?
Thanks
Memory leak with b0-based simxGetVisionSensorImage
Re: Memory leak with b0-based simxGetVisionSensorImage
Hello,
I think you found a bug... can you add:
just before the function return in function Subscriber:read, near line 202, and in function ServiceClient:call, near line 235, in file b0.py?
Let me know if that solves your memory usage problem.
Cheers
I think you found a bug... can you add:
Code: Select all
b0_buffer_delete(outbuf)
Let me know if that solves your memory usage problem.
Cheers
Re: Memory leak with b0-based simxGetVisionSensorImage
Thank you very much,
it works fantastic now, no memory leaks.
Pablo
it works fantastic now, no memory leaks.
Pablo