The previous memory leak seemed to be editor only. I found more memory leaks in build on WebGL and iOS.
On safari, I can have just one label in a scene with a camera and the game will continuously rise in memory (watching activity monitor) until it crashes.
It happens on all versions, LTS, Beta, and Alpha.
Report: IN-59273
This is just sitting in the editor with 2 labels and some visual elements on screen:
Is this a known issue? If it isn’t, is there any possible way to work around this? This seems like a major issue that would stop any production app from being released?
Are you sure you’re not continuously recreating the Label and subscribing it to the GeometryChangedEvent (and the others listed in the References panel) without ever unsubscribing it? It’s super easy to accidentally leak memory that way.
You might want to debug (or add log events) to the code where the Label is created/the event subscription is registered.
Why I know how easy it is to leak memory that way? Well, while looking into the original Mesh Leak bug discussed in the other thread and trying to fix it, I temporarily changed it so I leaked via event subscriptions
I am pretty sure what I reported is a static scene with no code. Also, I know 1000% there is no code in the scene with just a single label on webgl and safari.
Here is Activity Monitor on macOS (latest version) showing the memory grow on webGL with a single, static label in the scene, no code at all. This will go up infinitely until it crashes.
Here is a video of it (hard to see since its a thin cut of my screen) /
043rtk