FAQ
Cover
\
Build
\
Source
\
Bugs
\
Reference
\
Libraries
\
Tools
The bugs database has moved
here
.
Bug 908 : Cannot run OpenGL sketches on Linux with Nvidia card
Last modified: 2008-09-21 19:59
P
roject:
processing
trash
Version:
unspecified
Co
m
ponent:
android
book
core
libraries
pde
reference
tools
web
Status:
RESOLVED
Resolution:
DUPLICATE of bug
891
Pr
i
ority:
P2
Severity:
normal
Platform
All
O
S:
All
Windows
Mac OS
Linux
Other
Reporter:
ac
Assigned To:
fry
Attachment
Type
Created
Size
Actions
Description
: Opened: 2008-09-01 23:40
Sketches using OpenGL don't work with version 0148 under Linux (tested on
Ubuntu 8.04), using geforce card (Geforce Go 6400) with latest Nvidia
drivers (169.12).
The following error appears (generated from the SpaceJunk example):
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 SpaceJunk.setup(SpaceJunk.java:28)
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 SpaceJunk.setup(SpaceJunk.java:28)
at processing.core.PApplet.handleDraw(PApplet.java:1377)
at processing.core.PApplet.run(PApplet.java:1305)
at java.lang.Thread.run(Thread.java:619)
However, the applet generated from the same sketch works fine. But the
application doesn't. It throws a similar error when trying to run from console,
This bug seems to be related to
bug 891
:
http://dev.processing.org/bugs/show_bug.cgi?id=891
Additional Comment
#1 From fry 2008-09-02 05:31
Which Java are you using?
Additional Comment
#2 From wayfarer_boy 2008-09-02 08:35
Same problem here:
Ubuntu 8.04 GeForce 8500 GT with latest drivers as above (169.12)
Java 5 (1.5.0)
Error produced when running SpaceJunk example:
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(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
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 SpaceJunk.setup(SpaceJunk.java:28)
at processing.core.PApplet.handleDraw(PApplet.java:1377)
at processing.core.PApplet.run(PApplet.java:1305)
at java.lang.Thread.run(Unknown Source)
com.sun.jdi.AbsentInformationException
at
com.sun.tools.jdi.ReferenceTypeImpl.baseSourceName(ReferenceTypeImpl.java:730)
at com.sun.tools.jdi.BaseLineInfo.liSourceName(BaseLineInfo.java:32)
at com.sun.tools.jdi.LocationImpl.sourceName(LocationImpl.java:173)
at com.sun.tools.jdi.LocationImpl.sourceName(LocationImpl.java:168)
at com.sun.tools.jdi.LocationImpl.sourceName(LocationImpl.java:163)
at processing.app.debug.Runner.exception(Runner.java:618)
at processing.app.debug.EventThread.exceptionEvent(EventThread.java:388)
at processing.app.debug.EventThread.handleEvent(EventThread.java:276)
at processing.app.debug.EventThread.run(EventThread.java:111)
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 SpaceJunk.setup(SpaceJunk.java:28)
at processing.core.PApplet.handleDraw(PApplet.java:1377)
at processing.core.PApplet.run(PApplet.java:1305)
at java.lang.Thread.run(Unknown Source)
And when I export the example as an application, the app spits out the same
error:
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:494)
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 SpaceJunk.setup(SpaceJunk.java:28)
at processing.core.PApplet.handleDraw(PApplet.java:1377)
at processing.core.PApplet.run(PApplet.java:1305)
at java.lang.Thread.run(Thread.java:595)
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 SpaceJunk.setup(SpaceJunk.java:28)
at processing.core.PApplet.handleDraw(PApplet.java:1377)
at processing.core.PApplet.run(PApplet.java:1305)
at java.lang.Thread.run(Thread.java:595)
But, as with the previous poster, the basic applet export works fine.
Additional Comment
#3 From fry 2008-09-02 08:39
but which java 1.5 is that? sun-java or openjdk or something else?
Additional Comment
#4 From fry 2008-09-02 14:35
k, i've managed to reproduce this on ubuntu 8.04 on amd64. it's kinda ugly
but i may have a fix.
Additional Comment
#5 From fry 2008-09-02 15:06
*** This bug has been marked as a duplicate of
891
***
Additional Comment
#6 From wayfarer_boy 2008-09-02 15:17
sorry - it's sun java (1.5.0-15-0ubuntu1)
Additional Comment
#7 From rstets 2008-09-21 19:59
getting the same error trying to run tiction
http://www.tinkthank.net/software/tiction/
1) for Java(TM) SE Runtime Environment (build 1.6.0_06-b02)
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 tiction_sketch.setup(tiction_sketch.java:75)
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 tiction_sketch.setup(tiction_sketch.java:75)
at processing.core.PApplet.handleDraw(PApplet.java:1377)
at processing.core.PApplet.run(PApplet.java:1305)
at java.lang.Thread.run(Thread.java:619)
2) for gij (GNU libgcj) version 4.2.3 (Ubuntu 4.2.3-2ubuntu6)
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 java.lang.reflect.Constructor.newInstance(libgcj.so.81)
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 tiction_sketch.setup(tiction_sketch.java:75)
at processing.core.PApplet.handleDraw(PApplet.java:1377)
at processing.core.PApplet.run(PApplet.java:1305)
at java.lang.Thread.run(libgcj.so.81)
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 tiction_sketch.setup(tiction_sketch.java:75)
at processing.core.PApplet.handleDraw(PApplet.java:1377)
at processing.core.PApplet.run(PApplet.java:1305)
at java.lang.Thread.run(libgcj.so.81)
ubuntu 8.04.1 32-bit, ati radeon xpress1250 drivers installed
I suppose this isn't the right place to ask for help, as long as the problem seems to be in the X
configuration, but just in case you know how to make it work, please, give me some hint.
thank you