Reproduction Steps
What I’m trying to do:
I’m trying to use a Promise library in my code, and opted to use a third party library instead of my own implementation this time around.
However, whenever I add this module to my game in any way whatsoever, studio will crash completely. This locked me out of team created (luckily I was able to clear my drafts cache for that module alone, saving days of work from being lost), and is preventing me from using a fairly ubiquitous library.
Reproduction steps:
- Download the file linked below:
CrashesUponOpen.rbxl (62.2 KB) - Open the ModuleScript located at
game.ReplicatedStorage.Promise
- Roblox will usually instantly crash. If this script was drafted / open by default on a Team Create place, you will crash every time you load into the team create place containing this module.
In some cases, the crash might not be instant, as script analysis is warming up. Try editing part of the script for a brief moment.
This crash happens whether or not certain beta features are enabled (intuitive debugger, scripts are nonstrict by default, etc.)
Device information:
Expected Behavior
Roblox Studio should not crash for any amount of code
Actual Behavior
Studio crashes when this specific code is placed in a module and opened.
Workaround
Use a different promise library, for now.
To fix Team Create from crashing / save days of lost work, I needed to go into the drafts folder and delete the specific draft containing this script.
On Mac:
/Users/[USERNAME]/Documents/Roblox/Sandbox/[PLACE_ID]/[USER_ID]/drafts
Issue Area: Studio
Issue Type: Crashing
Impact: High
Frequency: Constantly
Date First Experienced: 2022-10-24 00:10:00 (-06:00)
Date Last Experienced: 2022-10-24 00:10:00 (-06:00)