White Screen and Error Handling Issues in p5.js Online Editor

I’m encountering an issue with the p5.js online editor (https://editor.p5js.org). When I input the following code:

function setup() {
  createCanvas(400, 400);

function draw() {

I receive a series of errors, which I found by inspecting the webpage elements as the editor screen turned white (blank). The errors are as follows:

[Error] Error while parsing the 'sandbox' attribute: 'allow-downloads' is an invalid sandbox flag.
[Error] ReferenceError: Can't find variable: backgound
[Error] ReferenceError: Can't find variable: c
[Error] TypeError: undefined is not an object (evaluating 'a.replaceAll')
[Error] TypeError: undefined is not an object (evaluating 'e.data[0].toString')

Under normal circumstances, these errors should appear in the console, but instead, the screen just goes white. I intentionally input some incorrect code to test if the console would display errors correctly, but the screen still turns white. I’m using Google Chrome and the issue persists.

I can’t seem to reproduce the error. Which version of Chrome and which Operating System are you using?


Hi @jayzhofen,

also can’t reproduce it and the behaviour seems correct… even for the error …

— mnse