ControlP5 - OpenGL - addGroups
in
Contributed Library Questions
•
1 year ago
Hi. I just getting crazy to create a GROUP using the newest version of ControlP5 and Processing 2.08a.
Any ideas to fix it? (btw. the old version runs -> 0.5.4)
Here is a minimum example to point out the problem:
- import controlP5.*;
- ControlP5 cp5;
- void setup(){
- size(200,200, OPENGL); // remove OPENGL and the example works
- cp5 = new ControlP5(this);
- cp5.addGroup("test");
- }
- void draw() {
- background(0);
- stroke(255);
- line(100, 100, 800, 1000);
- }
ControlP5 0.7.6 infos, comments, questions at http://www.sojamo.de/libraries/controlP5java.lang.reflect.InvocationTargetExceptionat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)at java.lang.reflect.Method.invoke(Method.java:597)at processing.core.PImage.loadPixels(PImage.java:493)at processing.core.PImage.mask(PImage.java:926)at controlP5.BitFontRenderer.write(Unknown Source)at controlP5.ControlFont$BitFontLabel.calculateHeight(Unknown Source)at controlP5.ControlFont$BitFontLabel.adjustTexture(Unknown Source)at controlP5.ControlFont$BitFontLabel.adjust(Unknown Source)at controlP5.ControlFont.adjust(Unknown Source)at controlP5.Label$SinglelineLabel.draw(Unknown Source)at controlP5.Label.draw(Unknown Source)at controlP5.ControllerGroup.draw(Unknown Source)at controlP5.ControllerGroup.drawControllers(Unknown Source)at controlP5.ControllerGroup.draw(Unknown Source)at controlP5.ControlWindow.draw(Unknown Source)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)at java.lang.reflect.Method.invoke(Method.java:597)at processing.core.PApplet$RegisteredMethods.handle(PApplet.java:1078)at processing.core.PApplet$RegisteredMethods.handle(PApplet.java:1071)at processing.core.PApplet.handleDraw(PApplet.java:2003)at processing.opengl.PGL$PGLListener.display(PGL.java:2501)at jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:189)at jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:177)at javax.media.opengl.awt.GLCanvas$DisplayAction.run(GLCanvas.java:928)at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:425)at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:364)at javax.media.opengl.awt.GLCanvas$DisplayOnEventDispatchThreadAction.run(GLCanvas.java:945)at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:641)at java.awt.EventQueue.access$000(EventQueue.java:84)at java.awt.EventQueue$1.run(EventQueue.java:602)at java.awt.EventQueue$1.run(EventQueue.java:600)at java.security.AccessController.doPrivileged(Native Method)at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)at java.awt.EventQueue.dispatchEvent(EventQueue.java:611)at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)Caused by: java.lang.RuntimeException: PFramebuffer: GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT (8cd6)at processing.opengl.PGL.validateFramebuffer(PGL.java:2453)at processing.opengl.FrameBuffer.setColorBuffers(FrameBuffer.java:266)at processing.opengl.FrameBuffer.setColorBuffer(FrameBuffer.java:234)at processing.opengl.Texture.get(Texture.java:439)at processing.opengl.Texture.loadPixels(Texture.java:467)... 45 morejava.lang.reflect.InvocationTargetExceptionat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)at java.lang.reflect.Method.invoke(Method.java:597)at processing.core.PImage.loadPixels(PImage.java:493)at processing.core.PImage.mask(PImage.java:908)at processing.core.PImage.mask(PImage.java:927)at controlP5.BitFontRenderer.write(Unknown Source)at controlP5.ControlFont$BitFontLabel.calculateHeight(Unknown Source)at controlP5.ControlFont$BitFontLabel.adjustTexture(Unknown Source)at controlP5.ControlFont$BitFontLabel.adjust(Unknown Source)at controlP5.ControlFont.adjust(Unknown Source)at controlP5.Label$SinglelineLabel.draw(Unknown Source)at controlP5.Label.draw(Unknown Source)at controlP5.ControllerGroup.draw(Unknown Source)at controlP5.ControllerGroup.drawControllers(Unknown Source)at controlP5.ControllerGroup.draw(Unknown Source)at controlP5.ControlWindow.draw(Unknown Source)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)at java.lang.reflect.Method.invoke(Method.java:597)at processing.core.PApplet$RegisteredMethods.handle(PApplet.java:1078)at processing.core.PApplet$RegisteredMethods.handle(PApplet.java:1071)at processing.core.PApplet.handleDraw(PApplet.java:2003)at processing.opengl.PGL$PGLListener.display(PGL.java:2501)at jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:189)at jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:177)at javax.media.opengl.awt.GLCanvas$DisplayAction.run(GLCanvas.java:928)at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:425)at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:364)at javax.media.opengl.awt.GLCanvas$DisplayOnEventDispatchThreadAction.run(GLCanvas.java:945)at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:641)at java.awt.EventQueue.access$000(EventQueue.java:84)at java.awt.EventQueue$1.run(EventQueue.java:602)at java.awt.EventQueue$1.run(EventQueue.java:600)at java.security.AccessController.doPrivileged(Native Method)at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)at java.awt.EventQueue.dispatchEvent(EventQueue.java:611)at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)Caused by: java.lang.RuntimeException: PFramebuffer: GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT (8cd6)at processing.opengl.PGL.validateFramebuffer(PGL.java:2453)at processing.opengl.FrameBuffer.setColorBuffers(FrameBuffer.java:266)at processing.opengl.FrameBuffer.setColorBuffer(FrameBuffer.java:234)at processing.opengl.Texture.get(Texture.java:439)at processing.opengl.Texture.loadPixels(Texture.java:467)... 46 moreOpenGL error 1281 at top endDraw(): invalid valueOpenGL error 1286 at bot endDraw(): invalid framebuffer operationOpenGL error 1282 at top beginDraw(): invalid operationOpenGL error 1286 at bot beginDraw(): invalid framebuffer operationOpenGL error 1286 at top endDraw(): invalid framebuffer operation
Any ideas to fix it? (btw. the old version runs -> 0.5.4)
Cheers, Micha
PS: ControlP5 is great piece of work!
1