Page 1 of 1

Potential memory leak problem with the vision sensor

Posted: 04 Mar 2020, 20:36
by Uio96
Hi there,

I am using VREP v3.6.2 to generate a bunch of images. It was fine at first but after thousands of rounds, the memory it consumed became so big. Then eventually, the system crashed.

I am currently using python API like vrep.simxGetVisionSensorImage to obtain the raw image. I guess the problem is here. Does anybody have good ideas to release the memory? Thank you so much.

Re: Potential memory leak problem with the vision sensor

Posted: 06 Mar 2020, 08:41
by coppelia
Hello,

there was actually a memory leak with that function and the B0-based remote API. Are you using the legacy remote API?
Also, is the remote API client crashing, or CoppeliaSim?
If using the legacy remote API and you are streaming data, and constantly starting/stopping a simulation (or connecting/disconnecting from CoppeliaSim) from your remote API client, then you should also always disable data streaming before disconnecting from the remote API, using simx_opmode_discontinue.

Cheers