FAQ
Cover
\
Build
\
Source
\
Bugs
\
Reference
\
Libraries
\
Tools
The bugs database has moved
here
.
Bug 676 : OPENGL doesnt work at all for me?
Last modified: 2007-11-07 04:18
P
roject:
processing
trash
Version:
unspecified
Co
m
ponent:
android
book
core
libraries
pde
reference
tools
web
Status:
RESOLVED
Resolution:
INVALID -
Pr
i
ority:
P2
Severity:
normal
Platform
All
O
S:
All
Windows
Mac OS
Linux
Other
Reporter:
kontrol
Assigned To:
fry
Attachment
Type
Created
Size
Actions
Description
: Opened: 2007-11-07 01:59
running this:
import processing.opengl.*;
void setup()
{
size(200, 200, OPENGL);
}
gives me:
java.lang.RuntimeException: java.lang.NoSuchMethodError:
processing.opengl.PGraphicsOpenGL.clearRaw()V
at processing.opengl.PGraphicsOpenGL.requestDisplay(PGraphicsOpenGL.java:172)
at processing.core.PApplet.run(PApplet.java:1454)
at java.lang.Thread.run(Thread.java:613)
Caused by: java.lang.NoSuchMethodError:
processing.opengl.PGraphicsOpenGL.clearRaw()V
at processing.opengl.PGraphicsOpenGL.clear(PGraphicsOpenGL.java:1936)
at processing.core.PGraphics.background(PGraphics.java:3832)
at processing.core.PGraphics.defaults(PGraphics.java:777)
at processing.core.PGraphics3D.defaults(PGraphics3D.java:431)
at processing.core.PGraphics3D.beginDraw(PGraphics3D.java:349)
at processing.opengl.PGraphicsOpenGL.beginDraw(PGraphicsOpenGL.java:339)
at processing.core.PApplet.handleDisplay(PApplet.java:1274)
at processing.opengl.PGraphicsOpenGL$1.display(PGraphicsOpenGL.java:227)
at com.sun.opengl.impl.GLDrawableHelper.display(GLDrawableHelper.java:78)
at javax.media.opengl.GLCanvas$DisplayAction.run(GLCanvas.java:288)
at com.sun.opengl.impl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:194)
at
javax.media.opengl.GLCanvas$DisplayOnEventDispatchThreadAction.run(GLCanvas.java:305)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
java.lang.RuntimeException: java.lang.NoSuchMethodError:
processing.opengl.PGraphicsOpenGL.clearRaw()V
at processing.opengl.PGraphicsOpenGL.requestDisplay(PGraphicsOpenGL.java:172)
at processing.core.PApplet.run(PApplet.java:1454)
at java.lang.Thread.run(Thread.java:613)
Caused by: java.lang.NoSuchMethodError:
processing.opengl.PGraphicsOpenGL.clearRaw()V
at processing.opengl.PGraphicsOpenGL.clear(PGraphicsOpenGL.java:1936)
at processing.core.PGraphics.background(PGraphics.java:3832)
at processing.core.PGraphics.defaults(PGraphics.java:777)
at processing.core.PGraphics3D.defaults(PGraphics3D.java:431)
at processing.core.PGraphics3D.beginDraw(PGraphics3D.java:349)
at processing.opengl.PGraphicsOpenGL.beginDraw(PGraphicsOpenGL.java:339)
at processing.core.PApplet.handleDisplay(PApplet.java:1274)
at processing.opengl.PGraphicsOpenGL$1.display(PGraphicsOpenGL.java:227)
at com.sun.opengl.impl.GLDrawableHelper.display(GLDrawableHelper.java:78)
at javax.media.opengl.GLCanvas$DisplayAction.run(GLCanvas.java:288)
at com.sun.opengl.impl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:194)
at
javax.media.opengl.GLCanvas$DisplayOnEventDispatchThreadAction.run(GLCanvas.java:305)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Exception in thread "AWT-EventQueue-0" java.lang.NoSuchMethodError:
processing.opengl.PGraphicsOpenGL.clearRaw()V
at processing.opengl.PGraphicsOpenGL.clear(PGraphicsOpenGL.java:1936)
at processing.core.PGraphics.background(PGraphics.java:3832)
at processing.core.PGraphics.defaults(PGraphics.java:777)
at processing.core.PGraphics3D.defaults(PGraphics3D.java:431)
at processing.core.PGraphics3D.beginDraw(PGraphics3D.java:349)
at processing.opengl.PGraphicsOpenGL.beginDraw(PGraphicsOpenGL.java:339)
at processing.core.PApplet.handleDisplay(PApplet.java:1274)
at processing.opengl.PGraphicsOpenGL$1.display(PGraphicsOpenGL.java:227)
at com.sun.opengl.impl.GLDrawableHelper.display(GLDrawableHelper.java:78)
at javax.media.opengl.GLCanvas$DisplayAction.run(GLCanvas.java:288)
at com.sun.opengl.impl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:194)
at
javax.media.opengl.GLCanvas.maybeDoSingleThreadedWorkaround(GLCanvas.java:265)
at javax.media.opengl.GLCanvas.display(GLCanvas.java:130)
at javax.media.opengl.GLCanvas.paint(GLCanvas.java:142)
at sun.awt.RepaintArea.paintComponent(RepaintArea.java:276)
at sun.awt.RepaintArea.paint(RepaintArea.java:241)
at apple.awt.ComponentModel.handleEvent(ComponentModel.java:251)
at java.awt.Component.dispatchEventImpl(Component.java:4097)
at java.awt.Component.dispatchEvent(Component.java:3869)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Additional Comment
#1 From fry 2007-11-07 04:18
you have an old version of the opengl library somewhere in your sketchbook
or libraries folder.