Android-universal-image-loader: call to OpenGL ES API with no current context (logged once per thread)

Created on 24 Apr 2012  ·  10Comments  ·  Source: nostra13/Android-Universal-Image-Loader

E/libEGL(22343): call to OpenGL ES API with no current context (logged once per thread)
D/ShaderProgram(22343): couldn't load the vertex shader!

Hi, i allway see this line

Is it bug?

Most helpful comment

I find this warning because the following code in class(ImageSizeUtils):
GLES10.glGetIntegerv(GL10.GL_MAX_TEXTURE_SIZE, maxTextureSize, 0);
I find an answer to solve this problem:
http://stackoverflow.com/questions/26985858/gles10-glgetintegerv-returns-0-in-lollipop-only

All 10 comments

Hi, how it applies to Universal Image Loader? Can you tell me when does this line appear?

Hi, i use your example

I don't know. Is this shown as error? Or warning? Can you post more stacktrace info from LogCat?

04-25 19:18:53.187: I/ImageLoader(26484): Cache image in memory [http://xxxxxxxxxxx.net/Files/Subject/3b/bd/0d/46/banh_my_bon_te.jpg_128x128]
04-25 19:18:53.187: I/ImageLoader(26484): Display image in ImageView [http://xxxxxxxxxxx.net/Files/Subject/3b/bd/0d/46/banh_my_bon_te.jpg_128x128]
04-25 19:18:53.187: I/ImageLoader(26484): Start display image task [http://xxxxxxxxxxx.net/Files/Subject/3b/bd/0d/46/cam_mang_ve.jpg_128x128]
04-25 19:18:53.192: I/ImageLoader(26484): Load image from disc cache [http://xxxxxxxxxxx.net/Files/Subject/3b/bd/0d/46/cam_mang_ve.jpg_128x128]
04-25 19:18:53.222: I/ImageLoader(26484): Cache image in memory [http://xxxxxxxxxxx.net/Files/Subject/3b/bd/0d/46/cam_mang_ve.jpg_128x128]
04-25 19:18:53.222: I/ImageLoader(26484): Display image in ImageView [http://xxxxxxxxxxx.net/Files/Subject/3b/bd/0d/46/cam_mang_ve.jpg_128x128]
04-25 19:18:53.227: I/ImageLoader(26484): Start display image task [http://xxxxxxxxxxx.net/Files/Subject/3b/bd/0d/46/viettel.jpg_128x128]
04-25 19:18:53.227: I/ImageLoader(26484): Load image from disc cache [http://xxxxxxxxxxx.net/Files/Subject/3b/bd/0d/46/viettel.jpg_128x128]
04-25 19:18:53.257: D/dalvikvm(26484): GC_FOR_ALLOC freed 1098K, 11% free 13118K/14663K, paused 13ms
04-25 19:18:53.262: I/ImageLoader(26484): Cache image in memory [http://xxxxxxxxxxx.net/Files/Subject/3b/bd/0d/46/viettel.jpg_128x128]
04-25 19:18:53.262: I/ImageLoader(26484): Display image in ImageView [http://xxxxxxxxxxx.net/Files/Subject/3b/bd/0d/46/viettel.jpg_128x128]
04-25 19:18:57.347: E/libEGL(26484): call to OpenGL ES API with no current context (logged once per thread)
04-25 19:18:57.347: D/ShaderProgram(26484): couldn't load the vertex shader!
04-25 19:18:57.347: E/libEGL(26484): call to OpenGL ES API with no current context (logged once per thread)
04-25 19:18:57.347: D/ShaderProgram(26484): couldn't load the vertex shader!
04-25 19:18:57.347: E/libEGL(26484): call to OpenGL ES API with no current context (logged once per thread)
04-25 19:18:57.347: D/ShaderProgram(26484): couldn't load the vertex shader!
04-25 19:18:57.347: E/libEGL(26484): call to OpenGL ES API with no current context (logged once per thread)
04-25 19:18:57.347: D/ShaderProgram(26484): couldn't load the vertex shader!
04-25 19:18:57.347: E/libEGL(26484): call to OpenGL ES API with no current context (logged once per thread)
04-25 19:18:57.347: D/ShaderProgram(26484): couldn't load the vertex shader!

Hi, warning, i see this every time when i use your example

On what device do you test the example? Did you try to run example on other device?

Hi, i use Galaxy s2 Android 4.0.3

I only use my own cellphone!

But i don't see this log in other application, only in your example

REgards

This stuff is showed for high Android version (>4.0) and it's occurred not only during ImageLoader's work. I don't know the reason of it and I think it's not the ImageLoader's fault.

put android:hardwareAccelerated="true" in manifest.

I find this warning because the following code in class(ImageSizeUtils):
GLES10.glGetIntegerv(GL10.GL_MAX_TEXTURE_SIZE, maxTextureSize, 0);
I find an answer to solve this problem:
http://stackoverflow.com/questions/26985858/gles10-glgetintegerv-returns-0-in-lollipop-only

I am also getting the same error. While decoding a video using ijkplayer and streaming it on unity (using easymovietexture)

I am using GLES20.glGetBooleanv(GLES20.GL_DEPTH_TEST, abValue, 0);
@JustForHappy can you please tell me where was the error? I can't open the link.

@nameispriyank I added the line in manifest but it's still not working. Anything else you might suggest?
@nostra13 , you mentioned this as image loader fault, did u find how to get rid of this?

Anyone else has any suggestion please tell me?

Was this page helpful?
0 / 5 - 0 ratings