cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcel Kinard (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-5999) App crashes on Nexus 5/Kitkat 4.4.2 with error "Unable to lock surface"
Date Tue, 11 Feb 2014 16:49:20 GMT

    [ https://issues.apache.org/jira/browse/CB-5999?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13898006#comment-13898006
] 

Marcel Kinard commented on CB-5999:
-----------------------------------

I think lockCanvas is used to permit only a single thread to draw to a canvas. Cordova doesn't
draw directly, it pretty much gives you an empty webview. Looking at the class and package
names in the stack trace, I don't see any Cordova names. That would lead me to believe this
is not Cordova related.

> 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)

Mime
View raw message