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

**URL:** <https://discourse.processing.org/t/white-screen-and-error-handling-issues-in-p5-js-online-editor/42437>\
**Category:** Beginners\
**Created:** [July 17, 2023, 10:57am UTC](https://discourse.processing.org/t/white-screen-and-error-handling-issues-in-p5-js-online-editor/42437 "2023-07-17T10:57:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jayzhofen](https://avatars.discourse-cdn.com/v4/letter/j/838e76/32.png) [@jayzhofen](https://discourse.processing.org/u/jayzhofen)\
**Post date:** [July 17, 2023, 10:57am UTC](https://discourse.processing.org/t/white-screen-and-error-handling-issues-in-p5-js-online-editor/42437/1 "2023-07-17T10:57:47Z")

</div>

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

```auto
c
function setup() {
  createCanvas(400, 400);
}

function draw() {
  background(220);
}

```

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:

```auto
[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.

---

<div class="post-metadata">

**Author:** ![sableraph](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/sableraph/32/251_2.png) [@sableraph](https://discourse.processing.org/u/sableraph)\
**Post date:** [July 17, 2023, 10:58am UTC](https://discourse.processing.org/t/white-screen-and-error-handling-issues-in-p5-js-online-editor/42437/2 "2023-07-17T10:58:58Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![mnse](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/mnse/32/16520_2.png) [@mnse](https://discourse.processing.org/u/mnse)\
**Post date:** [July 19, 2023, 8:59am UTC](https://discourse.processing.org/t/white-screen-and-error-handling-issues-in-p5-js-online-editor/42437/3 "2023-07-19T08:59:36Z")

</div>

Hi @jayzhofen,

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

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/6/0/60786cf73a8c5169c52421c7b9decacabad25a77.png)

Cheers  
— mnse
