Login  Register

Re: How to debug "Unable to create ES OpenGL context" error?

Posted by Xerxes Rånby on Jun 17, 2015; 9:25am
URL: https://forum.jogamp.org/How-to-debug-Unable-to-create-ES-OpenGL-context-error-tp4034696p4034723.html

gohai wrote
Hi Xerxes,<br>
<br>
I ran it today again, and got much further without OOMing. This time it does include references to <tt>.hw</tt> devices. Any idea from the log what might be wrong, or which call in particular fails?<br>
<br>
Thanks<br>
Gottfried<br>
test_dbg-new
EGL Capabilities looks good!
        GLCaps[egl cfg 0x2, vid 0x21: rgba 8/8/8/8, opaque, accum-rgba 0/0/0/0, dp/st/ms 0/0/0, dbl, mono  , hw, GLProfile[GL2/GL2.hw], on-scr[fbo, pbuffer, bitmap], [0xd: GL, GLES1, GLES2, VG]]
...
        GLCaps[egl cfg 0xa9, vid 0x22: rgba 8/8/8/0, opaque, accum-rgba 0/0/0/0, dp/st/ms 24/8/0, dbl, mono  , hw, GLProfile[GL2/GL2.hw], on-scr[fbo, pbuffer, bitmap], [0xd: GL, GLES1, GLES2, VG]]

With the above EGL capabilities i would have expected JOGL to map the GL2, GLES2, GLES1, GL2ES2 and GL2ES1 to true, but in the debug log they all map to false.
I cant see why JOGL fails to map these profiles, surely a bug. Sven can you see by looking at the debug log why the mapping fail?

GLProfiles on device X11GraphicsDevice[type .x11, connection :0.0, unitID 0, handle 0x0, owner false, ResourceToolkitLock[obj 0x1ccaa, isOwner false, <1c7db30, 1bb089b>[count 0, qsz 0, owner <NULL>]]]
        Natives
                GL4bc false
                GL4 false
                GLES3 false
                GL3bc false
                GL3 false
                GL2 false
                GLES2 false
                GLES1 false
                Count 0 / 8
        Common
                GL4ES3 false
                GL2GL3 false
                GL2ES2 false
                GL2ES1 false
        Mappings
                default n/a
                Count 0 / 12

without any mapped profiles makes JOGL abort that no default profile is available.

Exception in thread "main" com.jogamp.opengl.GLException: Profile GL_DEFAULT is not available on X11GraphicsDevice[type .x11, connection :0.0, unitID 0, handle 0x0, owner false, ResourceToolkitLock[obj 0x1ccaa, isOwner false, <1c7db30, 1bb089b>[count 0, qsz 0, owner <NULL>]]], but: []
        at com.jogamp.opengl.GLProfile.get(GLProfile.java:990)
        at com.jogamp.opengl.GLProfile.getDefault(GLProfile.java:721)
        at com.jogamp.opengl.GLProfile.getDefault(GLProfile.java:732)
        at com.jogamp.newt.opengl.GLWindow.main(GLWindow.java:996)