[
https://issues.apache.org/jira/browse/CB-5999?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13897646#comment-13897646
]
Christiaan Rakowski commented on CB-5999:
-----------------------------------------
While trying to make the repo sample I started by removing all HTML, javascript
and css and found out it still crashed. This pretty much rules out any css3
transition/transform related issues and only leaves plugins as possible
culprits. I don't yet know which one(s), or how they cause an issue that
otherwise seems to relate to OpenGL, but it seems to not be cordova core
related.
Sorry for not testing this is more detail before posting it here, the signs
just seemed too clear.
Would you like me to close the issue now, or change it to a low priority and
document my later findings for future reference?
> 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: Blocker
>
> 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)