Login  Register

Re: JOGL X11 Error On "GLProfile.getDefault();"

Posted by Sven Gothel on Mar 13, 2013; 9:15pm
URL: https://forum.jogamp.org/JOGL-X11-Error-On-GLProfile-getDefault-tp4028611p4028623.html

On 03/13/2013 07:29 PM, meltbox360 [via jogamp] wrote:

> 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_IDE
>
> I 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_Swing
>
> NOTE: 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!

Looks similar to
  http://forum.jogamp.org/connection-nil-in-graphics-device-tp4028605.html

since no X11 display connections seems to be accessible ?

Please join the forum thread above and reference this one,
plus do:

+++

Please use on of our new aggregated builds:

https://jogamp.org/wiki/index.php/Downloading_and_installing_JOGL#Downloading_the_latest_aggregated_autobuild

https://jogamp.org/wiki/index.php/Jogl_FAQ#Bugreports_.26_Testing
(updated wiki)

+++

We shall have a bugreport!



signature.asc (911 bytes) Download Attachment