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.
IndexSuggestions & BugsSoftware Bugs › OGL behavior differs
Page Index Toggle Pages: 1
OGL behavior differs? (Read 1445 times)
OGL behavior differs?
Aug 4th, 2006, 5:06pm
 
Hello,

I am pretty new here so please excuse if I'm missing something.  I'm interested in OGL scripting, this looks like an awesome approach, congradulations.

First thing I got confused on is I started putting the examples into OPENGL mode.  I'm curious why the following code which works without the OPENGL flag is hitting runtime exceptions...

Thanks in advance,
Robohaus

----------------------

import processing.opengl.*;

void setup()
{
 size(200, 200, OPENGL);
 noStroke();
 background(255);
 fill(0, 102, 153, 204);
 smooth();
 noLoop();
}

void draw()
{
 circles(40, 80);
 circles(90, 70);
}

void circles(int x, int y) {
 ellipse(x, y, 50, 50);
 ellipse(x+20, y+20, 60, 60);
}
Re: OGL behavior differs?
Reply #1 - Aug 4th, 2006, 5:11pm
 
Here's the error for reference.  I'm a little to new here to know how to interpret this.  I have some coding experience but out of this domain....


java.lang.RuntimeException: java.lang.InterruptedException
at processing.opengl.PGraphicsGL.requestDisplay(PGraphicsGL.java:239)
at processing.core.PApplet.run(PApplet.java:1152)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.InterruptedException
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Unknown Source)
at java.awt.EventQueue.invokeAndWait(Unknown Source)
at javax.media.opengl.Threading.invokeOnOpenGLThread(Threading.java:203)
at javax.media.opengl.GLCanvas.maybeDoSingleThreadedWorkaround(GLCanvas.java:237)
at javax.media.opengl.GLCanvas.display(GLCanvas.java:130)
at processing.opengl.PGraphicsGL.requestDisplay(PGraphicsGL.java:229)
... 2 more

java.lang.RuntimeException: java.lang.InterruptedException

at processing.opengl.PGraphicsGL.requestDisplay(PGraphicsGL.java:239)

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

at java.lang.Thread.run(Unknown Source)

Caused by: java.lang.InterruptedException

at java.lang.Object.wait(Native Method)

at java.lang.Object.wait(Unknown Source)

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

at javax.media.opengl.Threading.invokeOnOpenGLThread(Threading.java:203)

at javax.media.opengl.GLCanvas.maybeDoSingleThreadedWorkaround(GLCanvas.java:237)

at javax.media.opengl.GLCanvas.display(GLCanvas.java:130)

at processing.opengl.PGraphicsGL.requestDisplay(PGraphicsGL.java:229)

... 2 more

Re: OGL behavior differs?
Reply #2 - Aug 5th, 2006, 3:34am
 
noLoop() and OpenGL don't play nicely I think. Try without the noLoop();
Re: OGL behavior differs?
Reply #3 - Sep 13th, 2006, 4:02am
 
known bug:
http://processing.org/discourse/yabb_beta/YaBB.cgi?board=SoftwareBugs;action=display;num=1115330568
fixed for 0116:
http://dev.processing.org/bugs/show_bug.cgi?id=164
Page Index Toggle Pages: 1