cyberbotics / webots

Webots Robot Simulator
https://cyberbotics.com
Apache License 2.0
3.26k stars 1.7k forks source link

RAM is not freed after the world is changed #2776

Open lukicdarkoo opened 3 years ago

lukicdarkoo commented 3 years ago

Steps to Reproduce

  1. Load webots $WEBOTS_HOME/projects/robots/adept/pioneer3/worlds/pioneer3at.wbt (RAM usage should be around 326MB)
  2. Open the spot.wbt sample (RAM usage should be around 1.1GB)
  3. Load pioneer3at.wbt (you should see RAM usage to be around 1GB instead of ~326MB)

Expected behavior The pioneer3at.wbt world should make the Webots use 326MB RAM after loading the spot.wbt world.

System

joachimhgg commented 2 years ago

The issue is still occurring in the R2022a. When loading the worlds alternatively with two supervisors, we can observe that the memory is increasing, which confirm the memory leak.