Studio eats all RAM (~500 MB/s) in edit mode when a ModuleScript loops :ToHSV() over a 40-entry untyped Color3 table

Opening a place that contains one specific kind of ModuleScript makes Studio allocate memory continuously in edit mode, at roughly 400–500 MB per second, using about 3 CPU cores. Nothing has to be clicked, played or opened in the script editor. It never stops on its own. On my machine it reached 232 GB of committed memory in 11 minutes, and Windows logged a low-virtual-memory event (Resource-Exhaustion-Detector, event 2004) naming RobloxStudioBeta.exe. The Studio log shows nothing unusual while this happens.

The trigger is a ModuleScript with:

  1. a large table literal with no type annotations: 40 entries, each holding a list of 5 { color = Color3.fromRGB(...), weight = n, dark = bool } tables, and
  2. a function that looks up one entry and calls a method on each colour:
function Palettes.hues(id)
    local item = Palettes.get(id)   -- returns Palettes.Items[id] or Palettes.Items[0]
    for _, entry in ipairs(item.colors) do
        local h, s, v = entry.color:ToHSV()
    end
end

The code never runs (it’s a ModuleScript nobody requires, in edit mode), so this looks like Studio’s background script analysis (possibly the type solver) getting stuck working out types.

What I measured (fresh baseplate, only this one ModuleScript in ReplicatedStorage, memory sampled every second, process killed at the cap)

Variant Result
40 entries, loop calls entry.color:ToHSV() (attached repro) Runaway: 8 GB after 22 s
30 entries, same code Runaway: 10 GB after 25 s
20 entries, same code Stays flat at ~2.5 GB
10 entries, same code Stays flat at ~2.5 GB
40 entries, loop reads entry.weight instead of calling :ToHSV() Stays flat at ~2.5 GB
40 entries, :ToHSV() loop, with explicit type annotations on the table (attached control) Stays flat at ~2.4 GB
40 entries, --!nocheck at the top of the script Still runs away
Autocomplete turned off in Studio settings Still runs away
Local plugin folder removed (Rojo, Photobooth) Still runs away

I couldn’t unload my marketplace plugins for testing because Studio restores them from my account. None of them analyses code (Building Tools, VFX Suite, AutoScale Lite, RigEditor, Resurface, etc.), and a plugin wouldn’t explain why type annotations stop the growth.

The type annotations used in the control are:

type Entry = { color: Color3, weight: number, dark: boolean }
type Item = { name: string, group: string, colors: { Entry } }
local items: { [number]: Item } = { ... }

Reproduction steps

  1. Open the attached MemoryRunaway_Repro.rbxl in Studio. It’s a baseplate with one ModuleScript, ReplicatedStorage.Palettes.
  2. Don’t open the script or press Play. Open Task Manager → Details and add the “Commit size” column.
  3. Within a few seconds RobloxStudioBeta.exe starts growing by hundreds of MB per second and keeps going. Close Studio before it uses up your RAM and page file.
  4. For comparison, open MemoryRunaway_TypedControl.rbxl, which has the same data and loop with type annotations. Memory settles at the normal level.

Actual behavior

Unbounded memory growth in edit mode for as long as the place is open. 232 GB committed before Windows intervened.

Workaround

Add type annotations to the large table (see above), or keep large data tables under about 20 entries.

System information

  • Studio version 0.744.0.7441077 (first hit on 0.743.0.7431133, Oct 6 2026)
  • Windows 10 Home 22H2 (19045), AMD Ryzen 7 7800X3D, 64 GB RAM, NVIDIA GeForce RTX 3070 Ti
  • Beta features: defaults (“Enable Internal Beta Features” is off)

Frequency: every time. Impact: high (can exhaust all system memory).

Reproduction files

MemoryRunaway_Repro.rbxl (5.0 KB)
MemoryRunaway_TypedControl.rbxl (5.1 KB)

Expected behavior

Studio’s background script analysis should use a bounded amount of memory (or give up) on valid code like this, instead of growing until the system runs out of virtual memory. Opening the repro place should behave the same as opening the typed control place: memory settles at the normal level within a few seconds.

There should be a fix for this going out this week. Please keep an eye out and let us know if it fixes this for you or not.

Thanks for looking into this! I retested today on Studio 0.745.0.7451137 (updated Nov 2) and unfortunately it still reproduces:

  • MemoryRunaway_Repro.rbxl: commit size climbs ~450 MB/s in edit mode, 8.1 GB after 20 s (I killed it at that point), same as on 0.744.
  • MemoryRunaway_TypedControl.rbxl: settles at ~2.3 GB within 8 s and stays flat.

Same machine and setup as the original report, no beta features enabled. Happy to test again once the fix is live. Is it behind a flag that might not be on for me yet?

Hello! Sorry about that, we’ve just rolled a fix that we think should help out here. MemoryRunaway_Repro.rbxl seems to finish type checking on my machine, do you mind checking if you’re still running into this on either the repros or your actual place file?

Just retested and it’s fixed on my end! Same Studio build (0.745.0.7451137), fresh launch:

  • MemoryRunaway_Repro.rbxl: peaks around 2.4 GB, settles within ~8 s and stays flat (checked twice, 90 s and 30 s). CPU drops to idle. Before the fix it hit 8 GB in 20 s.

That matches the typed control now. Thanks for the quick turnaround!