[ https://issues.apache.org/jira/browse/CB-5999?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13903356#comment-13903356 ]
Christiaan Rakowski commented on CB-5999: ----------------------------------------- Yes, it would appear so [~cmarcelk] I have not had much time to work in it, but I did get it a slightly more complete stack trace this time: {{{quote} 02-17 17:04:29.791: W/Adreno-EGLSUB(30353): <DequeueBuffer:606>: dequeue native buffer fail: Unknown error 2147483646, buffer=0x0, handle=0x0 02-17 17:04:29.801: W/Adreno-EGLSUB(30353): <SwapBuffers:1382>: Invalid native buffer. Failed to queueBuffer 02-17 17:04:29.801: W/Adreno-EGLSUB(30353): <updater_thread:456>: native buffer is NULL 02-17 17:04:29.811: W/Adreno-EGLSUB(30353): <DequeueBuffer:606>: dequeue native buffer fail: Invalid argument, buffer=0x0, handle=0x0 02-17 17:04:29.811: W/Adreno-ES20(30353): <gl2_surface_swap:43>: GL_OUT_OF_MEMORY 02-17 17:04:29.811: W/Adreno-EGL(30353): <qeglDrvAPI_eglSwapBuffers:3597>: EGL_BAD_SURFACE 02-17 17:04:29.811: W/HardwareRenderer(30353): EGL error: EGL_BAD_SURFACE 02-17 17:04:29.821: W/HardwareRenderer(30353): Mountain View, we've had a problem here. Switching back to software rendering. 02-17 17:04:29.831: E/Surface(30353): dequeueBuffer: IGraphicBufferProducer::requestBuffer failed: -2147483646 02-17 17:04:29.831: E/Surface(30353): dequeueBuffer failed (Unknown error 2147483646) 02-17 17:04:29.831: E/ViewRootImpl(30353): Could not lock surface 02-17 17:04:29.831: E/ViewRootImpl(30353): java.lang.IllegalArgumentException ... {quote}}} So it really appears to be OpenGL related. We did try it on an older Galaxy S2 where it ran fine, so the issue became less high priority. I will see if I can free up more time this/next week to look into it more, but I think/hope removing heavy CSS will help here. [~jrbowers] I thought so too, but I wasn't sure so I provided it as extra information. My build is KOT49H. > App crashes on Nexus 5/Kitkat 4.4.2 with error "Unable to lock surface" > ----------------------------------------------------------------------- > > Key: CB-5999 > URL: https://issues.apache.org/jira/browse/CB-5999 > Project: Apache Cordova > Issue Type: Bug > Components: Android > Affects Versions: 3.3.0 > Environment: Published from Windows 8.1 Professional, using ADT > v22.2.1-833290 and Cordova 3.3.1-0.3.0 > Published to fresh out of box (European) Nexus 5, running KitKat 4.4.2 > Reporter: Christiaan Rakowski > Priority: Minor > > We have a cordova app which was developed for iOS, and runs fine there. > Now we are porting it over to Android and we get the following crash during > start up: > {{{quote} > 02-10 13:39:11.231: E/Surface(31190): dequeueBuffer failed (Invalid argument) > 02-10 13:39:11.241: E/ViewRootImpl(31190): Could not lock surface > 02-10 13:39:11.241: E/ViewRootImpl(31190): java.lang.IllegalArgumentException > 02-10 13:39:11.241: E/ViewRootImpl(31190): at > android.view.Surface.nativeLockCanvas(Native Method) > 02-10 13:39:11.241: E/ViewRootImpl(31190): at > android.view.Surface.lockCanvas(Surface.java:243) > 02-10 13:39:11.241: E/ViewRootImpl(31190): at > android.view.ViewRootImpl.drawSoftware(ViewRootImpl.java:2435) > 02-10 13:39:11.241: E/ViewRootImpl(31190): at > android.view.ViewRootImpl.draw(ViewRootImpl.java:2409) > 02-10 13:39:11.241: E/ViewRootImpl(31190): at > android.view.ViewRootImpl.performDraw(ViewRootImpl.java:2253) > 02-10 13:39:11.241: E/ViewRootImpl(31190): at > android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1883) > 02-10 13:39:11.241: E/ViewRootImpl(31190): at > android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1000) > 02-10 13:39:11.241: E/ViewRootImpl(31190): at > android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5670) > 02-10 13:39:11.241: E/ViewRootImpl(31190): at > android.view.Choreographer$CallbackRecord.run(Choreographer.java:761) > 02-10 13:39:11.241: E/ViewRootImpl(31190): at > android.view.Choreographer.doCallbacks(Choreographer.java:574) > 02-10 13:39:11.241: E/ViewRootImpl(31190): at > android.view.Choreographer.doFrame(Choreographer.java:544) > 02-10 13:39:11.241: E/ViewRootImpl(31190): at > android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:747) > 02-10 13:39:11.241: E/ViewRootImpl(31190): at > android.os.Handler.handleCallback(Handler.java:733) > 02-10 13:39:11.241: E/ViewRootImpl(31190): at > android.os.Handler.dispatchMessage(Handler.java:95) > 02-10 13:39:11.241: E/ViewRootImpl(31190): at > android.os.Looper.loop(Looper.java:136) > 02-10 13:39:11.241: E/ViewRootImpl(31190): at > android.app.ActivityThread.main(ActivityThread.java:5017) > 02-10 13:39:11.241: E/ViewRootImpl(31190): at > java.lang.reflect.Method.invokeNative(Native Method) > 02-10 13:39:11.241: E/ViewRootImpl(31190): at > java.lang.reflect.Method.invoke(Method.java:515) > 02-10 13:39:11.241: E/ViewRootImpl(31190): at > com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779) > 02-10 13:39:11.241: E/ViewRootImpl(31190): at > com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595) > 02-10 13:39:11.241: E/ViewRootImpl(31190): at > dalvik.system.NativeStart.main(Native Method) > {quote}}} > I have tried attaching the Chrome debug bridge, but that gave me no > additional information. > I did some searching online, but in all the posts I found people using OpenGL > directly, but none of them had a real solution either. Most of the posts were > from people running on Snapdragon 800 devices though. > I assume css3 transitions/transforms get translated to OpenGL by the > ChromeWebView, so I think this might be related to the SoC and how it handles > OpenGL. I currently don't have access to a different Android device, so I > can't do more testing with that. > I have tested the Hello World application, and that did run fine on the Nexus > 5. > If you have any tests you would like me to run or need addition information, > please let me know. -- This message was sent by Atlassian JIRA (v6.1.5#6160)