Screen turns black and nothing shows up

I was coding a game and when I saved the game turned completely black and nothing is showing up.

I tried running it in the editor, the stage went black and my entire browser went black half a second later. A few seconds passed and the browser showed up again with the page completely white. Then a couple of things loaded in the top left corner of the page and I was able to drag a block around to see more of the page:


My mouse interacted with elements as though they were normal size, rather than being shrunk to 1/4 of the size.

I've seen this happen a few times, not entirely sure what causes it though. The best thing to do is save (ctrl + s) and then reload.

Here is a screen capture of my experience.
Screen Recording 2025-06-10 140119.mp4 [video-to-gif output image]

How large is the project file? Sometimes that happens for me when I load really big projects, like I'm talking over 9.5 MB.

When I ran it from the community site on my phone, the page crashed due to not enough memory. I think you may want to try and see if there's something that might use a lot of memory, such as infinite recursion or large lists.

I suppose you just need enough memory for whatever initialization your project runs.
I managed to get by without crashing or any artifacts, thanks to having a 10 GB swap file and ZRAM enabled.

I don't know if the creator of this game fixed it yet, but my browser didn't suffer a substantial performance slowdown. It did generate lots of lag at the start, but in the end all it did was hide the stage.

Windows 11, Google Chrome 137

Also, you should probably organize your scripts. This would make hunting bugs far easier than it is.


What browser and machine did you run this on?

Yes, can confirm. I was on Chromebook on Chrome

Windows 11, Google Chrome 137

Looking at Task Manager while this is happening, my memory went up from 62% to 84% usage and back down when the page broke.

PS: My computer has 15.3 GB of memory.

Thanks for all the help. I decided to export all the sprites to a new project and that worked.