aframe icon indicating copy to clipboard operation
aframe copied to clipboard

a-scene memory leak on chrome

Open Dirk-27 opened this issue 4 years ago • 6 comments

Description:

  • A-Frame Version: 1.2.0 and master
  • Platform / Device: Chrome Desktop (Version 92.0.4515.131 (64-Bit))
  • Reproducible Code Snippet or URL: https://jsfiddle.net/neomatt/4jw6xyhe/8/

Creating an a-scene allocates memory that is not released. This behaviour can be observed in the chrome browser (not in firefox). The amount of memory used depends on the size of the browser window. The memory used seems to be associated with the browser window even after removing the a-scene tag. So if you increase the size of the window after running the jsfiddle script, you can observe a higher memory usage in Chrome.

Dirk-27 avatar Aug 09 '21 08:08 Dirk-27

Hi, I also have a big problem with chrome about memory. With Firefox it is fine, but with chrome the memory increases very quickly, it is more than 5 times the memory allocated on FF. There is a thread here https://github.com/aframevr/aframe/issues/3137 But this is a problem relative to chrome.

Hope you'll find a solution, thanks again !

Benjy763 avatar Dec 08 '21 18:12 Benjy763

There's a proposed solution here https://github.com/aframevr/aframe/issues/3137#issuecomment-990201997

dmarcos avatar Jan 07 '22 12:01 dmarcos

Right. Only for clarification: This issue here (#4899) exists independent from models in the scene.

Dirk-27 avatar Jan 07 '22 12:01 Dirk-27

Any ideas why the behavior is different between Firefox and Chrome?

dmarcos avatar Jan 07 '22 12:01 dmarcos

No. I think it is webgl related. Interesting is: 'The amount of memory used depends on the size of the browser window.' So the bug has perhaps to do with the use of some graphic buffers?

I found a chrome issue that fits to this issue: https://bugs.chromium.org/p/chromium/issues/detail?id=811220

Dirk-27 avatar Jan 07 '22 12:01 Dirk-27

Thanks. I leave this opened as a reference

dmarcos avatar Jan 07 '22 16:01 dmarcos