Posted by
meltbox360 on
Mar 13, 2013; 6:29pm
URL: https://forum.jogamp.org/JOGL-X11-Error-On-GLProfile-getDefault-tp4028611.html
Hey everyone, I'm new here and to JOGL. I decided to try and set up a project following the JOGL wiki tutorial found here:
http://jogamp.org/wiki/index.php/Setting_up_a_JogAmp_project_in_your_favorite_IDEI followed the eclipse guide. Just as a note I used Gluegen-rt.jar and got rid of Gluegen.jar when setting it up. Don't know if that was a mistake or if I should use Gluegen-rt.jar
Next I followed this tutorial:
http://jogamp.org/wiki/index.php/Using_JOGL_in_AWT_SWT_and_SwingNOTE: The code uses an OpenGL 2.0 context.
I copied the code that uses awt into eclipse and hit run. I got the following error:
Info: Nativewindow X11 Error: 1 - BadRequest (invalid request code or no such operation), dpy 0x8b003d78, id 17, # 16: 153:19 Unknown
Info: Nativewindow X11 Error: 1 - BadRequest (invalid request code or no such operation), dpy 0x8b003d78, id 17, # 17: 153:19 Unknown
Info: Nativewindow X11 Error: 1 - BadRequest (invalid request code or no such operation), dpy 0x8b003d78, id 17, # 18: 153:14 Unknown
Info: Nativewindow X11 Error: 1 - BadRequest (invalid request code or no such operation), dpy 0x8b003d78, id 17, # 20: 153:19 Unknown
Info: Nativewindow X11 Error: 1 - BadRequest (invalid request code or no such operation), dpy 0x8b003d78, id 17, # 21: 153:19 Unknown
Info: Nativewindow X11 Error: 1 - BadRequest (invalid request code or no such operation), dpy 0x8b003d78, id 17, # 22: 153:14 Unknown
Exception in thread "main" javax.media.opengl.GLException: Profile GL_DEFAULT is not available on null, but: []
at javax.media.opengl.GLProfile.get(GLProfile.java:771)
at javax.media.opengl.GLProfile.getDefault(GLProfile.java:555)
at javax.media.opengl.GLProfile.getDefault(GLProfile.java:566)
at OneTriangleAWT.main(OneTriangleAWT.java:19)
X11Util.Display: Shutdown (JVM shutdown: true, open (no close attempt): 1/1, reusable (open, marked uncloseable): 0, pending (open in creation order): 1)
X11Util: Open X11 Display Connections: 1
X11Util: Open[0]: NamedX11Display[:0.0, 0xffffffff8b003d78, refCount 1, unCloseable false]
So I decided to run it in debug which led me to the following line in the awt example being executed in my project:
"GLProfile glprofile = GLProfile.getDefault();"
The last thing eclipse took me to was:
"throw new GLException("Profile "+profile+" is not available on "+device+", but: "+glpMap.values());"
in GLProfile.class. That makes sense but I have no idea what to do with this information.
I am running Ubuntu 12.10 off of an external drive. I have the proprietary AMD drivers installed for my 7950 when I work at home. I use gnome as my desktop environment. Thanks for looking!
EDIT: The computer this happened on has intel graphics. I will try again on my AMD machine, perhaps it will somehow work there?
lspci output for it:
00:02.0 VGA compatible controller: Intel Corporation 82Q35 Express Integrated Graphics Controller (rev 02) (prog-if 00 [VGA controller])
Subsystem: Dell OptiPlex 755
Flags: bus master, fast devsel, latency 0, IRQ 44
Memory at fea00000 (32-bit, non-prefetchable) [size=512K]
I/O ports at ec90 [size=8]
Memory at d0000000 (32-bit, prefetchable) [size=256M]
Memory at feb00000 (32-bit, non-prefetchable) [size=1M]
Expansion ROM at <unassigned> [disabled]
Capabilities: <access denied>
Kernel driver in use: i915
Kernel modules: i915