Log in or register to post comments

MaliEGL Error on Android/Unity

December 18, 2013 - 5:04am #1

Hey Guys,

 

A wierd error start to annoy me. I did realize it until yesterday. This is my situation:

An Activity A extends QCARPlayerActivity, which render the Unity Layer (works perfectly).

An second Activity B runs on TOP of the Activity A, with a transparent background (for views and stuff). Now, within the Activity B, I want to animate some Views (RotateAnimation). When I do it, it seems to work, but SOMETIMES, I get following errors:

E/MaliEGL(3297): void __egl_platform_dequeue_buffer(egl_surface*):1099 [EGL-ERROR] failed to dequeue buffer from native window (0x4fa65218); err = -16, buf = 0x0
 
D/OpenGLRenderer(3297): GL error from OpenGLRenderer: 0x501
 
E/OpenGLRenderer(3297):   GL_INVALID_VALUE
 

Sometimes it even crashes with the Exception:

12-18 13:52:32.230: E/SurfaceTextureClient(3297): dequeueBuffer failed (Operation not permitted)
12-18 13:52:32.250: E/ViewRootImpl(3297): Could not lock surface
12-18 13:52:32.250: E/ViewRootImpl(3297): java.lang.IllegalArgumentException
12-18 13:52:32.250: E/ViewRootImpl(3297): at android.view.Surface.lockCanvasNative(Native Method)
12-18 13:52:32.250: E/ViewRootImpl(3297): at android.view.Surface.lockCanvas(Surface.java:88)
12-18 13:52:32.250: E/ViewRootImpl(3297): at android.view.ViewRootImpl.drawSoftware(ViewRootImpl.java:2319)
12-18 13:52:32.250: E/ViewRootImpl(3297): at android.view.ViewRootImpl.draw(ViewRootImpl.java:2282)
12-18 13:52:32.250: E/ViewRootImpl(3297): at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:2150)
12-18 13:52:32.250: E/ViewRootImpl(3297): at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1961)
12-18 13:52:32.250: E/ViewRootImpl(3297): at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1115)
12-18 13:52:32.250: E/ViewRootImpl(3297): at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:4526)
12-18 13:52:32.250: E/ViewRootImpl(3297): at android.view.Choreographer$CallbackRecord.run(Choreographer.java:725)
12-18 13:52:32.250: E/ViewRootImpl(3297): at android.view.Choreographer.doCallbacks(Choreographer.java:555)
12-18 13:52:32.250: E/ViewRootImpl(3297): at android.view.Choreographer.doFrame(Choreographer.java:525)
12-18 13:52:32.250: E/ViewRootImpl(3297): at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:711)
12-18 13:52:32.250: E/ViewRootImpl(3297): at android.os.Handler.handleCallback(Handler.java:615)
12-18 13:52:32.250: E/ViewRootImpl(3297): at android.os.Handler.dispatchMessage(Handler.java:92)
12-18 13:52:32.250: E/ViewRootImpl(3297): at android.os.Looper.loop(Looper.java:137)
12-18 13:52:32.250: E/ViewRootImpl(3297): at android.app.ActivityThread.main(ActivityThread.java:4921)
12-18 13:52:32.250: E/ViewRootImpl(3297): at java.lang.reflect.Method.invokeNative(Native Method)
12-18 13:52:32.250: E/ViewRootImpl(3297): at java.lang.reflect.Method.invoke(Method.java:511)
12-18 13:52:32.250: E/ViewRootImpl(3297): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1027)
12-18 13:52:32.250: E/ViewRootImpl(3297): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:794)
12-18 13:52:32.250: E/ViewRootImpl(3297): at dalvik.system.NativeStart.main(Native Method)
 
 
I tried the animations witihout the Unity Activity. It works perfectly.
I trie the Unity Activity without the Animations, it works perfectly.
 
I am pretty sure it has something to do with the interaction of the Animations in Android and the Rendering in Vuforia.
 
Could you help me please?
 
Best Regards
Hans Hardmeier
 

MaliEGL Error on Android/Unity

December 18, 2013 - 6:25am #3

Good Point. I have not tried it without Vuforia. I will post these question in the Unity forum too.

Thanks.

MaliEGL Error on Android/Unity

December 18, 2013 - 5:49am #2

You tried UnityActivity without Animations and Animations without UnityActivity;

but have you tried Unity with and without Vuforia ? Does it make  difference ? 

It would be good to know, as the rendering issue might come from Unity itself, not necessarily from Vuforia.

\

Log in or register to post comments