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:
- 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 - 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
- Open the attached
MemoryRunaway_Repro.rbxlin Studio. It’s a baseplate with one ModuleScript,ReplicatedStorage.Palettes. - Don’t open the script or press Play. Open Task Manager → Details and add the “Commit size” column.
- Within a few seconds
RobloxStudioBeta.exestarts growing by hundreds of MB per second and keeps going. Close Studio before it uses up your RAM and page file. - 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.