Disposing a scene before effects are ready creates memory leak and infinite setTimeout

This is another one I have stumbled across while looking at memory leaks in our app. Looks like there is an infinite setTimeout loop that fails to stop if the scene becomes disposed. Looks like it is originating here: Babylon.js/effect.ts at master · BabylonJS/Babylon.js · GitHub

Maybe we could check for isDisposed in there as well?

1 Like

GOOOOD catch :slight_smile:
fix memory leak by deltakosh · Pull Request #12594 · BabylonJS/Babylon.js (github.com)

2 Likes

Please keep sending them!

2 Likes