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 & HelpOpenGL and 3D Libraries › OpenGL Argument Type Mismatch
Page Index Toggle Pages: 1
OpenGL Argument Type Mismatch (Read 1450 times)
OpenGL Argument Type Mismatch
Apr 19th, 2009, 2:14pm
 
Hi,

I've recently been dusting off a few older sketches and updated to the new Processing version. Any of my older sketches using OpenGL now throw Runtime Exceptions citing an argument mismatch, seemingly within the processing OpenGL library. I'm using the latest NVidia drivers.

Code:

Exception in thread "Animation Thread" java.lang.RuntimeException: java.lang.IllegalArgumentException: argument type mismatch
at com.sun.opengl.impl.JAWT_DrawingSurfaceInfo.newPlatformInfo(JAWT_DrawingSurfaceInfo.java:86)
at com.sun.opengl.impl.JAWT_DrawingSurfaceInfo.platformInfo(JAWT_DrawingSurfaceInfo.java:52)
at com.sun.opengl.impl.windows.WindowsOnscreenGLDrawable.lockSurface(WindowsOnscreenGLDrawable.java:189)
at com.sun.opengl.impl.windows.WindowsOnscreenGLContext.makeCurrentImpl(WindowsOnscreenGLContext.java:57)
at com.sun.opengl.impl.GLContextImpl.makeCurrent(GLContextImpl.java:134)
at processing.opengl.PGraphicsOpenGL.detainContext(PGraphicsOpenGL.java:226)
at processing.opengl.PGraphicsOpenGL.beginDraw(PGraphicsOpenGL.java:271)
at processing.core.PApplet.handleDraw(PApplet.java:1393)
at processing.core.PApplet.run(PApplet.java:1328)
at java.lang.Thread.run(Thread.java:619)


Anyone run across this before?

Ryan
Re: OpenGL Argument Type Mismatch
Reply #1 - Apr 20th, 2009, 12:31pm
 
Resolved: a JDK version issue.
Re: OpenGL Argument Type Mismatch
Reply #2 - Jun 3rd, 2009, 8:59am
 
Hi Ryan,
I keep on getting the same message. Can you tell me what you fixed, version-wise? I switched back to 1.5 after reading about it, but it didn't help either.
Thanks!
Nic
Re: OpenGL Argument Type Mismatch
Reply #3 - Nov 22nd, 2009, 3:00pm
 
I just started having this problem. I do not know how it started? Everything was working fine and now I am having the exact same error. Ryan what exactly did you do to solve your problem. I tried many different things it refuses to get solved.

Page Index Toggle Pages: 1