question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Multiple objects leaks when loading assets with scene loader

See original GitHub issue

Repro

  1. Open https://playground.babylonjs.com/#WV6GBY in Chromium-based browser. (It’s easier to repro with localDev to avoid playground specific issues)
  2. Open the development console.
  3. Type queryObjects(Promise)

Current result: image (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:closed
  • Created 2 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
bghgarycommented, May 28, 2021

@deltakosh and I are working on this already. We’ve already discovered the things you mentioned. 😃

0reactions
Popov72commented, May 28, 2021

Ah too bad…

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found