[ROBLOXCRITICAL] Using an improperly defined variable crashes studio (autocomplete)

If autocomplete is on, typing this and other variants of this code will cause studio to cleanly crash (no prompt). Happens on 2 of my Win10 machines.

---
x = -- Definition not finished
x. -- crashes after typing the "."
---

Edit: Since others can reproduce it and it crashes 100% of the time, I’ve changed it to [ROBLOXCRITICAL].

3 Likes

Yeah, I can repo

However, if x is a local, it doesn’t crash

Woah, that’s so weird. This definitely needs to be fixed, people could lose a lot of work otherwise.

Don’t places autosave before running? The only instance in which this would be fatal is if a plugin containing such code was reloaded (possibly via update) during an edit session.

1 Like

Agreed, Roblox Studio has a default 5 minute Auto Save time I believe… so barely any work will be lost along with the Script Recovery function accessable in Studio that allows you to recover the lost scripts.

The crash occurs while in the script editor, not during simulation

Here’s a gif of the issue:MJvvrd

1 Like

I can reproduce this on Win7, this should be [ROBLOX CRITICAL]

1 Like

This is actually rather amusing; I was recently working on a lexer style program for Lua and came across an issue when parsing incomplete global statements.

:eyes:
Wonder if it’s the same issue here.

1 Like

Maybe it’s actually a feature to combat bad coding

15 Likes

Repro’d on Win10Pro, agreed that this should be [ROBLOX CRITICAL]

We’ll have a fix for this in the next release. Thanks for the report!

6 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.