Closed
Description
p5.js version
v1.7.0
What is your operating system?
Windows
Web browser and version
Chrome -114.0.5735.199
Actual Behavior
An error in javascript or a shader causes a crash to an empty white page with this in the console:
Uncaught TypeError: Failed to execute 'useProgram' on 'WebGL2RenderingContext': parameter 1 is not of type 'WebGLProgram'
Expected Behavior
An error in the console which is visible on the page.
Steps to reproduce
Steps:
- Create new project
- Add this to draw() or anything that will cause an error like using an integer like
1
instead of1.0
in a shader:throw new Error("Test");
- Hit the play button