Bug 891 : GLDrawableFactory.chooseGraphicsConfiguration() error with OpenGL and release 0148
Last modified: 2008-09-02 15:06




Status:
RESOLVED
Resolution:
FIXED -
Priority:
P2
Severity:
normal

 

Reporter:
Gemini
Assigned To:
fry

Attachment Type Created Size Actions

Description:   Opened: 2008-08-21 16:47
In 0148, running an OpenGL sketch does not work. Oddly enough, it works
fine when exported and running the applet version. Everything seems to work
fine in version 0144. I am running it on a 64-bit AMD machine under
openSUSE 10.3

This is the testing code:

import processing.opengl.*;
void setup()
{
size(640, 480, OPENGL);
}

This is the error produced:

java.lang.IllegalArgumentException:
GLDrawableFactory.chooseGraphicsConfiguration() was not used when creating
this Component
at
com.sun.opengl.impl.x11.X11GLDrawableFactory.getGLDrawable(X11GLDrawableFactory.java:238)
at processing.opengl.PGraphicsOpenGL.allocate(PGraphicsOpenGL.java:183)
at processing.core.PGraphics3D.resize(PGraphics3D.java:245)
at processing.core.PGraphics.<init>(PGraphics.java:656)
at processing.core.PGraphics3D.<init>(PGraphics3D.java:220)
at processing.opengl.PGraphicsOpenGL.<init>(PGraphicsOpenGL.java:112)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at processing.core.PApplet.makeGraphics(PApplet.java:1153)
at processing.core.PApplet.size(PApplet.java:1003)
at processing.core.PApplet.size(PApplet.java:947)
at test.setup(test.java:5)
at processing.core.PApplet.handleDraw(PApplet.java:1377)
at processing.core.PApplet.run(PApplet.java:1305)
at java.lang.Thread.run(Thread.java:619)
Exception in thread "Animation Thread" java.lang.RuntimeException:
GLDrawableFactory.chooseGraphicsConfiguration() was not used when creating
this Component
at processing.core.PApplet.makeGraphics(PApplet.java:1171)
at processing.core.PApplet.size(PApplet.java:1003)
at processing.core.PApplet.size(PApplet.java:947)
at test.setup(test.java:5)
at processing.core.PApplet.handleDraw(PApplet.java:1377)
at processing.core.PApplet.run(PApplet.java:1305)
at java.lang.Thread.run(Thread.java:619)
Additional Comment #1 From fry 2008-08-21 16:53
We don't ship with binaries for AMD64, it's not a supported platform (at
least for a few more weeks). You can replace the .so files in
opengl/library/*.so with the amd versions from jogl.dev.java.net if you'd like.

Applets work because we include AMD64 binaries with the applet export.
Additional Comment #2 From fry 2008-09-02 15:06
Not a binaries problem, just an X11 problem. Fixed for release 0149.

(However until 0149, using the SVN version is not recommended until 0149 is
released because of major in-progress changes.)
Additional Comment #3 From fry 2008-09-02 15:06
*** Bug 908 has been marked as a duplicate of this bug. ***