Examples website is a bit broken

If I go to https://playcanvas.github.io/, any time an example appears (either from first visit, where it shows the spinning cube, or by clicking quickly on any other example), the render window appears and then the whole browser windows goes black after about 1 second.

This error appears in the console:

react-dom.production.min.js:216
TypeError: Cannot read property 'addEventListener' of null
    at menu.tsx:46
    at Rl (react-dom.production.min.js:262)
    at t.unstable_runWithPriority (scheduler.production.min.js:18)
    at zi (react-dom.production.min.js:122)
    at Pl (react-dom.production.min.js:261)
    at pl (react-dom.production.min.js:243)
    at react-dom.production.min.js:123
    at t.unstable_runWithPriority (scheduler.production.min.js:18)
    at zi (react-dom.production.min.js:122)
    at Hi (react-dom.production.min.js:123)

menu.tsx:46 Uncaught (in promise) TypeError: Cannot read property 'addEventListener' of null
    at menu.tsx:46
    at Rl (react-dom.production.min.js:262)
    at t.unstable_runWithPriority (scheduler.production.min.js:18)
    at zi (react-dom.production.min.js:122)
    at Pl (react-dom.production.min.js:261)
    at pl (react-dom.production.min.js:243)
    at react-dom.production.min.js:123
    at t.unstable_runWithPriority (scheduler.production.min.js:18)
    at zi (react-dom.production.min.js:122)
    at Hi (react-dom.production.min.js:123)

I can stop the error from occurring by quickly clicking on the play button in the render window before the screen disappears. This happens on two computers in Chrome and Vivaldi (which is Chromium-based), but is okay in Firefox and Edge.

Cleared caches and tested in Chrome 92.0.4515.159 (latest). Unable to reproduce.

1 Like

@Elliott Something to potentially be aware of?

It looks like the application is unable to find the iframe that’s used to render the PlayCanvas example. I haven’t came across the error before, i’ll have to investigate further.