Skip to content

Offscreen WebGL Rendering Throws Error #5000

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
2 of 17 tasks
choxi opened this issue Jan 18, 2021 · 3 comments · Fixed by #5003
Closed
2 of 17 tasks

Offscreen WebGL Rendering Throws Error #5000

choxi opened this issue Jan 18, 2021 · 3 comments · Fixed by #5003
Labels
Area:Accessibility Supporting web accessibility (a11y) Area:WebGL Bug

Comments

@choxi
Copy link
Contributor

choxi commented Jan 18, 2021

Most appropriate sub-area of p5.js?

  • Accessibility (Web Accessibility)
  • Build tools and processes
  • Color
  • Core/Environment/Rendering
  • Data
  • DOM
  • Events
  • Friendly error system
  • Image
  • IO (Input/Output)
  • Localization
  • Math
  • Unit Testing
  • Typography
  • Utilities
  • WebGL
  • Other (specify if possible)

Details about the bug:

  • p5.js version: 1.2.0
  • Web browser and version: Safari 14.0.2
  • Operating System: macOS
  • Steps to reproduce this:

Here's a reproduction of the error: https://editor.p5js.org/choxi/sketches/Fu0DWOT1R

If you try to render offscreen with WEBGL, it throws an error:

function setup() {
  createCanvas(400, 400, WEBGL);
  buffer = createGraphics(400, 400, WEBGL)
  buffer.fill(0, 255, 255)
  buffer.rect(-200, -200, 400, 400)
  image(buffer, -200, -200)
}

This throws the error: undefined is not an object (evaluating 'this._accessibleOutputs.grid'). It seems to work on version 1.1.9 but is broken on 1.2.0.

@choxi choxi added the Bug label Jan 18, 2021
@welcome
Copy link

welcome bot commented Jan 18, 2021

Welcome! 👋 Thanks for opening your first issue here! And to ensure the community is able to respond to your issue, be sure to follow the issue template if you haven't already.

@stalgiag stalgiag added Area:Accessibility Supporting web accessibility (a11y) Area:WebGL labels Jan 18, 2021
@stalgiag
Copy link
Contributor

Thank you @choxi !

@lm-n do you have any thoughts on what might be causing this?

@lm-n
Copy link
Member

lm-n commented Jan 19, 2021

@choxi thanks for the quick fix! @stalgiag we might find more WebGL related issues with accessibility since it was designed to support 2d shapes. let's keep an eye on those 👀 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area:Accessibility Supporting web accessibility (a11y) Area:WebGL Bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants