We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpPrograms › Processing 116 and direct access to g
Page Index Toggle Pages: 1
Processing 116 and direct access to g (Read 667 times)
Processing 116 and direct access to g
Sep 29th, 2006, 4:49pm
 
Hi there,

There's one thing that has also come up while porting my sketches to 116.

I was using the following code to "try" to force VSync:

Code:

try{
smooth();
((PGraphicsGL)g).gl.setSwapInterval(1);
}catch(Exception e){}


But it stops my sketches giving the following error.

Code:

java.lang.VerifyError: class processing.core.PGraphics3 overrides final method
.

at java.lang.ClassLoader.defineClass0(Native Method)

java.lang.RuntimeException: java.lang.VerifyError: class processing.core.PGraphics3 overrides final method
.

at processing.opengl.PGraphicsOpenGL.requestDisplay(PGraphicsOpenGL.java:245)

at processing.core.PApplet.run(PApplet.java:1406)

at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.VerifyError: class processing.core.PGraphics3 overrides final method
.

at java.lang.ClassLoader.defineClass0(Native Method)

at java.lang.ClassLoader.defineClass(Unknown Source)

at java.security.SecureClassLoader.defineClass(Unknown Source)

at java.net.URLClassLoader.defineClass(Unknown Source)

at java.net.URLClassLoader.access$100(Unknown Source)

at java.net.URLClassLoader$1.run(Unknown Source)

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

at java.lang.ClassLoader.loadClassInternal(Unknown Source)

at java.lang.ClassLoader.defineClass0(Native Method)

at java.lang.ClassLoader.defineClass(Unknown Source)

at java.security.SecureClassLoader.defineClass(Unknown Source)

at java.net.URLClassLoader.defineClass(Unknown Source)

at java.net.URLClassLoader.access$100(Unknown Source)

at java.net.URLClassLoader$1.run(Unknown Source)

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

at java.lang.ClassLoader.loadClassInternal(Unknown Source)

at Temporary_3409_259.setup(Temporary_3409_259.java:207)

at processing.core.PApplet.handleDisplay(PApplet.java:1237)

at processing.opengl.PGraphicsOpenGL$1.display(PGraphicsOpenGL.java:124)

at com.sun.opengl.impl.GLDrawableHelper.display(GLDrawableHelper.java:78)

at javax.media.opengl.GLCanvas$DisplayAction.run(GLCanvas.java:281)

at com.sun.opengl.impl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:194)

at javax.media.opengl.GLCanvas$DisplayOnEventDispatchThreadAction.run(GLCanvas.java:298)

at java.awt.event.InvocationEvent.dispatch(Unknown Source)

at java.awt.EventQueue.dispatchEvent(Unknown Source)

at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

at java.awt.EventDispatchThread.run(Unknown Source)



I didn't know if considering this as a bug or an API incompatibility.
Re: Processing 116 and direct access to g
Reply #1 - Sep 29th, 2006, 5:20pm
 
PGraphics3 does not exist anymore, so you have a version of core.jar somewhere in your CLASSPATH or sketchbook or something that's causing this conflict.
Re: Processing 116 and direct access to g
Reply #2 - Sep 29th, 2006, 5:32pm
 
going to check that out now.
thanks
Re: Processing 116 and direct access to g
Reply #3 - Sep 29th, 2006, 8:09pm
 
I see what was happening. In 116:

PGraphicsGL -> PGraphicsOpenGL

Is this right?

In case it helps anyone else.
Re: Processing 116 and direct access to g
Reply #4 - Sep 29th, 2006, 10:06pm
 
yes, and unfortunately i now see that i left that out of the PGraphics section of the revisions files. grr.
Page Index Toggle Pages: 1