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 › strange opengl / eclipse problem
Page Index Toggle Pages: 1
strange opengl / eclipse problem (Read 1588 times)
strange opengl / eclipse problem
Nov 20th, 2009, 12:42pm
 
hello,
i've been using opengl in eclipse for a long time, but just recently updated core.jar, jogl.jar, opengl.jar, gluegen-rt.jar and updated the native libraries of jogl. but i have a strange problem. it works fine at a resolution below that of my computer, for example size(1024, 768, OPENGL); works fine but size(1440, 900, OPENGL); generates the following error

javax.media.opengl.GLException: Can not destroy context while it is current

any ideas to this problem?
Re: strange opengl / eclipse problem
Reply #1 - Nov 21st, 2009, 4:20am
 
I assume that the resolution of your computer is 1440 x 900.
Code:
size(1440, 900, OPENGL); 


will create a window with a drawing area 1440 x 900 but the actual window is larger due to application bar, frame etc. Perhaps it is the window being larger than your display that is the problem.

This is just a stab in the dark and I might be completely wrong but whatever...
Smiley
Re: strange opengl / eclipse problem
Reply #2 - Nov 24th, 2009, 9:08am
 
well it used to work fine until i updates all the jars cited before so i don't think that's it. i meant 1400 x 900 which is the native resolution of a mbp. i just can't figure it out. anyone?
Here's the full error.


Exception in thread "Animation Thread" javax.media.opengl.GLException: Can not destroy context while it is current
     at com.sun.opengl.impl.GLContextImpl.destroy(GLContextImpl.java:176)
     at processing.opengl.PGraphicsOpenGL.allocate(PGraphicsOpenGL.java:202)
     at processing.core.PGraphics3D.setSize(PGraphics3D.java:316)
     at processing.core.PApplet.resizeRenderer(PApplet.java:930)
     at processing.core.PApplet.size(PApplet.java:992)
     at processing.core.PApplet.size(PApplet.java:958)
     at guess.disambiguation._mainDisambiguation.setup(_mainDisambiguation.java:29)
     at processing.core.PApplet.handleDraw(PApplet.java:1402)
     at processing.core.PApplet.run(PApplet.java:1327)
     at java.lang.Thread.run(Thread.java:637)
Re: strange opengl / eclipse problem
Reply #3 - Mar 2nd, 2010, 8:25am
 
For a possible temporary solution you can try to go back to the Processing 1.03 libraries. For me the problem was Windows+Java6 only.
See this thread:

http://processing.org/discourse/yabb2/num_1267404540.html
Page Index Toggle Pages: 1