Testing features breaking when a script is killed after play solo has been stopped during an infinite loop

So I make a script that has an infinite loop with no yield, start play solo and wait for the loop to start, then before studio becomes fully unresponsive I stop the test (however studio is still stuck in the infinite loop apparently).

I get the option to pause/kill the script. I select ‘kill script’, studio will seem to return back to normal except for the test to to still be running apparently:

Screenshot_538

If I pause it, the in-window test functions become active again, but not anything else. Using the test features doesn’t do anything, either, and just returns to the above image.
Screenshot_539

Repo:

  • Open studio and create a new Script
  • Make the script wait 5 seconds, then do an infinite while loop with no yield
  • Start Play Solo
  • As soon as the test becomes unresponsive, stop it
  • Studio should go unresponsive when you click the stop button
  • When studio returns to normal and the break/kill script popup shows, choose to kill
2 Likes

Ah, that’s a good catch. This is most likely related to our debugger changes. We’ll investigate and see if we can fix this.

3 Likes