I have a problem with unloading terrain placed on scene. Since the terrain I'm working on is pretty huge I decided to only load fragment of it, do some operations and unload it in order to make space for the next one. The problem is, unloading the terrain seems to not free up memory.
After loading and unloading hundreds of times from script, my memory usage is more than 50 GB and soon enough - CityEngine shows out of memory error. I tried to load and unload manually without the script and the outcome is the same - after doing it 10 times, Windows Task Manager shows the memory not freeing up.
Is this a memory leak? Should I be using ce.delete() or some other method of disposal?
I am working on CityEngine 2021.0.7316. I attached very simple project to replicate the error - open the MemoryTestScene.cej and run simpleMemoryTestScript.py.
Solved! Go to Solution.
Hi @AdamChełstowski,
Thanks a lot for reporting this. It is indeed a merory leak. Until this gets fixed you can try the attached modified version of your simpleMemoryTestScript.py its does not fix the leak but it should be way less bad.
Best
Jonas
Hi @AdamChełstowski,
Thanks a lot for reporting this. It is indeed a merory leak. Until this gets fixed you can try the attached modified version of your simpleMemoryTestScript.py its does not fix the leak but it should be way less bad.
Best
Jonas
Hi Jonas,
Hi @EvelynHsu, we would like to further investigate this but its most likely not directly related to the original thread so I sent you a DM.