White Screen of Death when playtesting? (fixed)

Hi everyone
It took me a while to find the solution for this, so I wanted to make it easier to find. Shout outs to Classic Review's thread for helping me solve it.

I had the White Screen of Death appear when playtesting. Turns out it wasn't an OpenGL issue that required reinstallation of the graphics card drivers.

Turns out there is an index.html in each project folder. It contains only a few lines of meta data, your project title, and a javascript command. (If you have file extensions hidden, it may show up as "index")

The index.html file can get wiped accidentally. I expect it happens when you press the "Playtest" button too frequently. In this case, the contents of the file will be wiped. If you inspect the White Screen and it has little to no html, and nothing in console, right click the index.html file and open it with a text editor (Notepad, for example) to confirm it has been wiped.

You can solve the problem by navigating to another project (create a new project if you don't have any others), and opening the file in a text editor to see it's contents. Make sure it's got the meta data and javascript command, then either copy the contents into your file, or copy the file to your folder. You may have to update the game title, but it will probably automatically update the next time you playtest.

Here is the code:
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"> <meta name="viewport" content="user-scalable=no"> <link rel="icon" href="icon/icon.png" type="image/png"> <link rel="apple-touch-icon" href="icon/icon.png"> <link rel="stylesheet" type="text/css" href="css/game.css"> <title>Your Project Title</title> </head> <body style="background-color: black"> <script type="text/javascript" src="js/main.js"></script> </body> </html>

Hope that helps, happy game making!

Original thread: https://forums.rpgmakerweb.com/threads/white-screen-of-death-when-playtesting-fixed.150706/