DataStore service crashes when a string with too many characters is passed *sometimes*

Reproduction Steps

I recommend not crashing Roblox servers with this as this could bloat any type of error tracking Roblox has set up for anybody reading this

System Information
Intel Core i9 9900K
16GB DDR5 RAM
Nvidia GeForce RTX 2080Ti

Run any of these files with api services enabled in studio and studio/server will crash. Only some very high numbers will crash and others will throw a 4mb error.

local datastore = game:GetService("DataStoreService"):GetDataStore("TESTING_SCOPE", "Scope_1_Unused") 
datastore:SetAsync("UNUSED_TEST_KEY_001", string.rep("abc", 64000 * 4000))
local datastore = game:GetService("DataStoreService"):GetDataStore("TESTING_SCOPE", "Scope_1_Unused") 
datastore:SetAsync("UNUSED_TEST_KEY_001", string.rep("a", 768000001))
local datastore = game:GetService("DataStoreService"):GetDataStore("TESTING_SCOPE", "Scope_1_Unused") 
datastore:SetAsync("UNUSED_TEST_KEY_001", string.rep("a", 844800001))

Expected Behavior

Roblox should not crash and throw a 4mb limit error.

Actual Behavior

Roblox crashes with a StartProcessException




Issue Area: Engine
Issue Type: Crashing
Impact: Very High
Frequency: Rarely

1 Like

Thanks for the report. The issue is being investigated.

2 Likes