Studio crashing after typing a letter/number

After typing a letter at the end of a line in a certain script, Roblox studio will just crash without any error message.

The script
local NewComponent = function()
	local data = {}
	data.Tab = {}
	return data
end

comp = NewComponent()
comp.Tab.
--Error occurs when trying to type a letter at the end of the above line

comp = NewComponent()

I’ve never been able to do it without it crashing. A friend, @Aresko, didn’t run into the problem at first, but later started crashing as well. The two other people I asked to try reproducing it both said that they crashed.

Attached is a place file that demonstrates the crash (or just copy paste the script above into a new map, either works).

Below is a gif demonstrating it, however it probably isn’t too useful considering you can’t see what I’m typing.

https://i.gyazo.com/7d75ae82a190331939c7c512a37d4b77.mp4

I’m thinking it has something to do with Intellisense. Typing a character that isn’t alphanumeric causes it to respond like normal (with a red line showing an error). And deleting the last line of the script will cause the red line to appear on the comment.

With last line

Without last line

With the last line deleted, the script will still crash like normal. However if you close and open the script back up again, you’ll be able to modify the line without any problems. However, if you add it back in, and try to add another character at the end of the problematic line again, it’ll crash as expected.

https://i.gyazo.com/d106da5a776d40dc8826e49f72f7d72c.mp4

Also, trying to add another line after line 3, i.e.

	data.Tab2 = {}

will crash studio as well as soon as you enter the ‘.’ after data.

https://i.gyazo.com/7f0b94cd16a2ce1c1a05bebf794ab55f.mp4

Finally, copy pasting something instead of pressing a letter/number won’t crash. But if you press something to add onto whatever you copy pasted, it’ll crash.

https://i.gyazo.com/0b9210d16728655efc02d9e2f2d6439f.mp4

4 Likes

Crashed too, but I got “not responding” instead of just immediately closing.

I was also able to reproduce this issue with the given script. Studio closes immediately.

2 Likes

Rather than closing immediately, it crashed for a couple seconds and then an alert popped up saying “RobloxStudio has stopped working”

Really odd bug.

1 Like

this kind of bug also happens to me.

In my case, the crash happens alongside with this flow:

  • You open the place;
  • You press F5 to play/test it;
  • You exit test mode when you’re done;
  • You attempt to edit the script but Studio crashes once you type anything in the editor.

This has an huge impact on developer’s workflow, because that way we end up spending more than half of the time reopening places.

2 Likes

I got this bug after making a script in DataModel and typing in it, but I couldn’t reproduce it 100% of the time so I didn’t post it.

This is still a problem and is making development rather annoying. Could we get an update on it?

Fix is going through the release pipeline and should be out next Wednesday

3 Likes

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