studio icon indicating copy to clipboard operation
studio copied to clipboard

[Dashboard] 'requestAnimationFrame' handler took <N>ms and memory leak

Open dong-king opened this issue 1 year ago • 2 comments

Describe the bug when i run JSON.eez-project in eez-studio exmaple, the messages('requestAnimationFrame' handler took <N>ms) are continuously output in DevTools.

And there is a memory leak in this example. when running this example for a while, the memory usage keeps rising.

I feel that the message's generation is related to the defined CountryCity structure.

Screenshots image

Desktop (please complete the following information):

  • OS: win10
  • Version: eez-studio v0.14.2

dong-king avatar Jul 27 '24 16:07 dong-king

I didn't notice any memory leak while running this dashboard for about 30 minutes. Memory can go up for a period of time, but it will go down again after garbage collector cycle.

As for this warning message, it's a performance issue and I've made some optimizations so it should run faster now and probably won't show this warning anymore.

mvladic avatar Jul 27 '24 17:07 mvladic

It is not a memory leak. The memory usage keeps increasing because DevTools has been open, and the memory it occupies continues to rise.

dong-king avatar Jul 28 '24 03:07 dong-king