Create Snapshot causes hard crash when a script that is suspended/running contains a table that causes Max lua stack size reached error

Sorry for the eye-wrenching title, but it was pretty hard to cram all that information into a single sentence.
Anyways, as a developer of the game, you are able to access Luau Heap and create snapshots of the game. However, when you have a script that contains the following code:

local tbl = {}
for i = 1, 299 do tbl = {tbl} end

and the script that the table is located inside is suspended (via coroutine.status, just means it’s waiting before doing something):

while task.wait(1) do end – keep the main script thread suspended

what happens is that either the game will hard crash when clicking Create Snapshot, as the video demonstrates:

OR it will generate an error in the devconsole (this is a rarer occurrence):

System Information: 11th Gen Intel(R) Core™ i7-1165G7 @ 2.80GHz, 16.0 GB, Intel(R) Iris(R) Xe Graphics

Place Reproduction File (MUST be the owner/developer):
snapshot_hard_crash_testing_place.rbxl (56.4 KB)

Expected behavior

I expect, when clicking on Create Snapshot, to not hard crash, and for a snapshot to be created without errors.

A private message is associated with this bug report

On another note, it appears that Create Snapshot is misspelled:
image
If that could be fixed too, that would be great. Thanks!

Thank you for the report!

We have a fix for the crash ready to release, but a fix for snapshot creation in this scenario (and a typo) will be made later.