Script editor gets stuck and consumes memory infinitely with certain code

When you put the following code:

pcall(table.unpack({pcall}))

into any script or the command bar, studio will begin to consume memory on-end and the script editor will stop providing hints for the code, even if it’s removed afterwards. This appears to happen both with and without the new incremental type checking beta feature.

1 Like

Thanks for the report. We are looking into it.

Just tested it right now, didn’t get the bug. Has this been knowingly fixed?

Thanks for the report, the underlying cause was some missing iteration limits in the type inference engine that allowed this to spin off as an infinite loop (the expression has essentially an “infinite” type if you actually try to keep unrolling it). It has been fixed in the most recent release! :slight_smile:

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