MacOS Studio crashes when loading file containing specific luau code

Reproduction Steps
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)
		-- ...
	Result.fromVoidPromise = TS.async(function(self, p)
		-- ...

Specifically 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.

Expected Behavior
For the file to load without crashing.

Actual Behavior
Attempting to open the given file will cause studio to crash instead of opening the file.

Issue Area: Studio
Issue Type: Crashing
Impact: High
Frequency: Constantly

This doesn’t crash studio anymore, but it does cause typechecking to fail:

Hello everyone! So the issue should be resolved by now so I’m just gonna close the topic. If you encounter a new issue make sure to file a new report on the forum!
@Inconcludable You can file a new report for the specific issue you’re having and we’ll take a look over it! Thanks!

1 Like

This topic was automatically closed after 2 days. New replies are no longer allowed.