GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — `set()` method throws `NullPointerException` for `PGraphicsOpenGL` objects · Issue #1520 · processing/processing4 Closed Labels bugSomething isn't workingSomething isn't working DescriptionMost appropriate sub-area of Processing 4?Core/Environment/Rendering Processing version4.5.2 Operating systemLinux (Unbuntu) and MacOS Tahoe Bug descriptionI get a null pointer exception when I pass a For some reason the PDE doesn't display the stack trace, I just see this: NullPointerException NullPointerException Steps to reproduce thisThe example code below reproduces the bug. snippetPGraphics g; void setup() { size(300, 300, P3D); g = createGraphics(width, height, P2D); g.beginDraw(); g.background(0, 255, 0); g.endDraw(); } void draw() { background(g); } I am able to get a stack trace when I use the equivalent code in py5. I traced the problem to the One possible workaround is to insert a PGraphics g; PImage img; void setup() { size(300, 300, P3D); g = createGraphics(width, height, P2D); g.beginDraw(); g.background(0, 255, 0); g.endDraw(); img = g.get(); } void draw() { background(img); } Additional contextEither workaround suggests a solution. I'm happy to make a PR to fix this, you can assign it to me. Would you like to work on the issue?Yes, I’d like to help with this Activity
MetadataMetadataAssigneesLabelsbugSomething isn't workingSomething isn't working TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |