Very large Command Bar script history freezes place opening

If you run a very large script (as in megabytes in size) in the command bar in studio, it will execute fine at the time, but if this script then gets saved to the command bar history, a couple things happen

  • Upon opening any place, there’ll be a freeze (about a second per megabyte) while studio opens the place. This freeze can be long enough for it to be impossible to connect to Team Create places
    • Note that this freeze happens even if the Command Bar isn’t enabled in View, though the freeze appears to be shorter (and there’ll be another one when/if it’s first enabled)
  • Trying to view the command bar history in studio is basically a guaranteed crash

I’m aware that “running a multi-megabyte script in the command bar” is a very niche thing, but considering that running it at the time was only a second of lag at most, I feel like this should be a preventable issue, especially considering I had to resort to regedit to clear the history so I could actually use studio again since reinstalling solves nothing

Thank you for the bug report. You’re right that this should be a preventable issue and we will investigate the freeze you reported. In the mean time, I would suggest that if you need to run a large command, you could use the Run Script action. This action allows you to run a .luau file in your current place as if it was run by the command bar without adding it to history. You can find this action in Model → Advanced → Run Script in the old ribbon. It is not in the new ribbon by default but it can be added in a custom tab simply by searching for it.

1 Like