Posted by
Peter F on
Sep 02, 2014; 4:06pm
URL: https://forum.jogamp.org/TextureNames-creation-failed-when-calling-GLMediaPlayer-initGL-tp4033009.html
Hello there,
I've 4 media players playing different videos at the same time, in a very basic app where they are the only graphics I have.
When starting them up I get the following:
javax.media.opengl.GLException: Error initializing GL resources
at jogamp.opengl.util.av.GLMediaPlayerImpl.initGL(GLMediaPlayerImpl.java:659)
Caused by: java.lang.RuntimeException: TextureNames creation failed (num: 4): err 0x500
at jogamp.opengl.util.av.GLMediaPlayerImpl.createTexFrames(GLMediaPlayerImpl.java:693)
at jogamp.opengl.util.av.GLMediaPlayerImpl.initGL(GLMediaPlayerImpl.java:633)
But this only happens around 80% of the time, sometimes I can start all 4 media players and they work fine.
It looks like glGenTextures is throwing an exception, but the only help I can find in the reference pages for that method:
http://www.khronos.org/opengles/sdk/docs/man/is that it throws 'GL_INVALID_VALUE is generated if n is negative'.
But as the print out shows it's 4, I've call initStream using GLMediaPlayer.TEXTURE_COUNT_DEFAULT.
I'm baffled as to the cause of this exception, particularly as it only happens 'often' but not 'always'..
I'm running JOGL 2.2.0, with GL2ES2 profile, on a Linux machine using Intel Graphics with the Mesa driver 10.1.0.
Many thanks for any help as always :)