pxt-arcade icon indicating copy to clipboard operation
pxt-arcade copied to clipboard

Extremely easy way to freeze makecode

Open Brohann3214 opened this issue 5 months ago • 0 comments

Describe the bug I found this bug on accident while commenting out a background image in javascript. It happened to me on accident. It happens when you comment out the top and bottom lines of a setBackgroundImage function when it is collapsed. It causes the site to no longer accept any input, things cannot be clicked or typed To Reproduce Steps to reproduce the behavior:

  1. open a new project
  2. go to javascript
  3. drag in a setBackgroundImage function
  4. open up the background image in the editor
  5. click done
  6. comment out the top line of the 2
  7. there should now be 6000 errors
  8. start to comment out the bottom line and the entire site will no longer accept any user input until the page is reloaded.

Expected behavior I expect it to comment out the entire collapsed part when I comment out the top line Screenshots Screenshot 2024-09-16 162356 ScreenRecording2024-09-15120613-ezgif com-video-to-gif-converter Screenshot 2024-09-16 162533

Desktop (please complete the following information):

  • OS: windows
  • Browser chrome, web app

Additional context there's a second bug that you can see in the 3rd picture, also described here: https://forum.makecode.com/t/is-it-normal/30282/2

Brohann3214 avatar Sep 16 '24 21:09 Brohann3214