This is likely an issue with the Luau type checker.
On a Macbook Pro with an M1 chip (several cases of this being problematic with different macbooks, but same processor) the following repro file will straight up crash if you try to load it.
System info of the machine this was tested on:
Model Name: MacBook Pro
Model Identifier: MacBookPro18,3
Chip: Apple M1 Pro
Total Number of Cores: 8 (6 performance and 2 efficiency)
Memory: 16 GB
System Firmware Version: 7429.61.2
OS Loader Version: 7429.61.2
repro.rbxl (40.6 KB)
The probematic code is under
ReplicatedStorage.rbxts_include.node_modules.rust-classes.out.classes.Result and I’ve pinned it down to
Result.fromPromise = TS.async(function(self, p) -- ... end) Result.fromVoidPromise = TS.async(function(self, p) -- ... end)
TS.async, which is odd because we have other libraries that use this and don’t cause this crash. If that’s removed the crash doesn’t happen.
For the file to load without crashing.
Attempting to open the given file will cause studio to crash instead of opening the file.
Issue Area: Studio
Issue Type: Crashing