Potential memory leak problem with the vision sensor

Report crashes, strange behaviour, or apparent bugs
Post Reply
Uio96
Posts: 18
Joined: 09 May 2019, 20:08

Potential memory leak problem with the vision sensor

Post 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.

coppelia
Site Admin
Posts: 10339
Joined: 14 Dec 2012, 00:25

Re: Potential memory leak problem with the vision sensor

Post 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

Post Reply