UI Text Memory Leak?

Hi,

I noticed that the UI Text field is leaking memory. The amount of memory leaked rises with the text length. I created a small example project (25k zip) that shows the problem.

The example project instantiates 200 text fields / second and immediately destroys them. You can see in the Profiler or with the script “AllocMem” (free at Unity website) that the amount of memory keeps climbing up until the whole machine is no longer usable.

If I replace the Text UI element by an image, the problem disappears.

Best,

Nils

1912900–123393–textleaktest.zip (25 KB)

1 Like

Report it!!!

Yes! LyvelG, what he means is: use the Unity Bug Reporter in your Unity editor to report this issue along with your sample project, please.

1 Like

Thanks, I reported it last friday and it was accepted as a reproduceable bug.

1 Like