Login  Register

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

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

gohai wrote
Both files attached.

I checked with ldconfig, my custom-build mesa with vc4-goodness (running) seems to be used for both libGL.so.1 and libEGL.so.1. When running the test_dbg.sh, my screen turned black because of a OOM situation with graphics memory - but this did not happen in my program, where it simply errored out at some point. Any thing you can glean from the log still?

Thanks.

test.log
test_dbg.log
It looks like you only have managed to build Mesa3D with only CPU rendering enabled
all profiles ends with .sw
i would have expected these to end with .hw if the Mesa3D driver was using the vc4 hardware acceleration in combination with Glamour.

GLProfile.init map GLProfile[GL4bc/GL4bc.sw] on device decon
GLProfile.init map defaultAny GLProfile[GL4bc/GL4bc.sw] on device decon
GLProfile.init map GLProfile[GL3bc/GL3bc.sw] on device decon
GLProfile.init map GLProfile[GL2/GL2.sw] on device decon
GLProfile.init map GLProfile[GL4/GL4.sw] on device decon
GLProfile.init map GLProfile[GL3/GL3.sw] on device decon
GLProfile.init map GLProfile[GLES3/GLES3.sw] on device decon
GLProfile.init map GLProfile[GL4ES3/GL4bc.sw] on device decon
GLProfile.init map GLProfile[GL2GL3/GL2.sw] on device decon
GLProfile.init map GLProfile[GLES2/GLES2.sw] on device decon
GLProfile.init map GLProfile[GL2ES2/GL2.sw] on device decon
GLProfile.init map GLProfile[GLES1/GLES1.sw] on device decon
GLProfile.init map GLProfile[GL2ES1/GL2.sw] on device decon

Can you post links and instructions to how you have setup and configured your system to use vc4?
Do simple native OpenGL applications work for you using the new vc4-driver-goodness ?

The debug logfile ends with
Nativewindow X11 IOError: Display 0x64a2c250 (:0.0): Resource temporarily unavailable
Nativewindow X11 IOError: Display 0x64a2c250 (:0.0): Resource temporarily unavailable
FATAL ERROR in native method: Nativewindow X11 IOError: Display 0x64a2c250 (:0.0): Resource temporarily unavailable
        at sun.awt.X11.XlibWrapper.XEventsQueued(Native Method)
        at sun.awt.X11.XToolkit.run(XToolkit.java:575)
        at sun.awt.X11.XToolkit.run(XToolkit.java:542)
        at java.lang.Thread.run(Thread.java:744)

not sure about why this happens, do normal Swing applications run on your X11 driver?