I never had this issue before but today the preview just stopped working.
I was adding the lines and when testing this was working fine, then I added one function and one sprite and text object, and now when I press preview I have only a black screen. I've tried using Chrome as I'm normally working on Firefox, tried a remote preview, restarted the computer, and still have the same issue.
I've even disabled the lines I've added but this didn't change anything.
Also after I close the preview window when I press anything like object, layout, or event sheet nothing is happening as well, it's like it is all frozen. But when I load a very old version of the same project the preview is fine and working.