Memory leak on GetAttribute/SetAttribute

If you call GetAttribute/SetAttribute repeatedly, Studio’s memory usage will increase and never decrease, not even if you start/stop play solo, or close and open a new game. This leads to eventually crashing Studio + everything else on the system.

This happens for both Set and Get.

To reproduce:

  • Run this:
for i=0,500000 do
	script:GetAttribute("Test")
	--script:SetAttribute("Test", "a")
end
  • Observe task manager’s memory graph.

image

13 Likes

Can reproduce, crashed and froze computer.

4 Likes

Thanks for the report, I’ll take a look into this and get back to you when I know more.

3 Likes

I have identified the cause, it should be fixed later today.

8 Likes

I have enabled the fix. As a bonus, you should also notice a slight performance improvement too!

8 Likes

Roblox staff provided solution :slight_smile: If this reoccurs please create a new topic for us to investigate!