Multiple objects leaks when loading assets with scene loader
See original GitHub issueRepro
- Open https://playground.babylonjs.com/#WV6GBY in Chromium-based browser. (It’s easier to repro with localDev to avoid playground specific issues)
- Open the development console.
- Type
queryObjects(Promise)
Current result:
(Note that some pending ones are leaks from the calling queryObjects
itself)
Expected result:
- No TypedArray, AssetContainer, or any other objects from scene loader should be leaked via leaked Promises
See forum for more context: https://forum.babylonjs.com/t/i-discovered-the-worst-and-most-insidious-memory-leak-in-babylonjs-history/21170
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
Texture leaks when loading scenes additively - Unity Forum
We are encountering an issue with textures leaking, and i am not sure this is a bug, or some form or expected behaviour...
Read more >I discovered the worst and most insidious memory leak in ...
In my BabylonJS project, I used the queryObjects(Promise) command and found that several thousand Promise objects were leaking memory.
Read more >How to lessen the memory spike in between loading scenes
The memory spike seems to around 'unload' statement at the beginning of Scene B. Maybe because of 359 assets unused assets were unloaded?...
Read more >LoadLevel memory leak [SOLVED] - PlayMaker
Hi all, Im running the latest version of playmaker + unity 5.2.1 and building for iPhone 6. when using LoadLevel to switch through...
Read more >Find memory leaks | Memory Profiler | 1.0.0 - Unity - Manual
There are multiple ways that memory leaks happen. ... UnloadUnusedAssets or load into two new Scenes (e.g. Load Empty Scene twice).
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@deltakosh and I are working on this already. We’ve already discovered the things you mentioned. 😃
Ah too bad…