defold / editor2-issues

DEPRECATED
44 stars 4 forks source link

Memory Leak in Editor 2 #2830

Open leotada opened 4 years ago

leotada commented 4 years ago

Expected behaviour

Don't increase memory usage doing nothing.

Actual behaviour

If you let the editor opened after a while it increases memory usage exponentially.

Steps to reproduce

Open one project, open one file in the script editor, wait for a while, and the editor start to memory leaking until your OS freeze completely.


Build time2019-10-07T10:10:38.592737
Defold channelstable
Defold editor sha13261949f45c333806c8aac8bd5b08124ca2810f
Defold engine sha13261949f45c333806c8aac8bd5b08124ca2810f
Defold version1.2.163
GPURadeon RX Vega (VEGA10, DRM 3.33.0, 5.3.8-300.fc31.x86_64, LLVM 9.0.0)
GPU Driver4.5 (Compatibility Profile) Mesa 19.2.2
Java version11.0.1+13
OS archamd64
OS nameLinux
OS version5.3.8-300.fc31.x86_64
leotada commented 4 years ago

You can see in the image below the system monitor, the start of memory leaking and when I closed the editor. defold memory use

britzl commented 4 years ago

And if you wait you run out of memory? Or does it garbage collect and generate a saw-tooth kind of pattern showing cycles of producing garbage and garbage collection kicking in?

britzl commented 4 years ago

Does this happen with an empty project with a single script component open? Does it happen with all projects?

leotada commented 4 years ago

And if you wait you run out of memory? Or does it garbage collect and generate a saw-tooth kind of pattern showing cycles of producing garbage and garbage collection kicking in?

If I wait freeze the OS and I need to reboot using the physical button.

leotada commented 4 years ago

Does this happen with an empty project with a single script component open? Does it happen with all projects?

I made a test here starting with Empty template, added a single script to a game object and put in the collection, made some builds and the memory increases in every action until starting to increase automatically. Captura de tela de 2019-11-12 09-57-01

leotada commented 4 years ago

This always happen if I bundle to Android too. Is it other way to reproduce.