Could not lock surface java.lang.IllegalArgumentException

08-07 14:46:33.795: E/Surface(4927): dequeueBuffer failed (Invalid argument)
08-07 14:46:33.800: E/ViewRootImpl(4927): Could not lock surface
08-07 14:46:33.800: E/ViewRootImpl(4927): java.lang.IllegalArgumentException
08-07 14:46:33.800: E/ViewRootImpl(4927): 	at android.view.Surface.nativeLockCanvas(Native Method)
08-07 14:46:33.800: E/ViewRootImpl(4927): 	at android.view.Surface.lockCanvas(Surface.java:266)
08-07 14:46:33.800: E/ViewRootImpl(4927): 	at android.view.ViewRootImpl.drawSoftware(ViewRootImpl.java:2555)
08-07 14:46:33.800: E/ViewRootImpl(4927): 	at android.view.ViewRootImpl.draw(ViewRootImpl.java:2507)
08-07 14:46:33.800: E/ViewRootImpl(4927): 	at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:2343)
08-07 14:46:33.800: E/ViewRootImpl(4927): 	at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1966)
08-07 14:46:33.800: E/ViewRootImpl(4927): 	at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1058)
08-07 14:46:33.800: E/ViewRootImpl(4927): 	at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5974)
08-07 14:46:33.800: E/ViewRootImpl(4927): 	at android.view.Choreographer$CallbackRecord.run(Choreographer.java:780)
08-07 14:46:33.800: E/ViewRootImpl(4927): 	at android.view.Choreographer.doCallbacks(Choreographer.java:593)
08-07 14:46:33.800: E/ViewRootImpl(4927): 	at android.view.Choreographer.doFrame(Choreographer.java:562)
08-07 14:46:33.800: E/ViewRootImpl(4927): 	at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:766)
08-07 14:46:33.800: E/ViewRootImpl(4927): 	at android.os.Handler.handleCallback(Handler.java:733)
08-07 14:46:33.800: E/ViewRootImpl(4927): 	at android.os.Handler.dispatchMessage(Handler.java:95)
08-07 14:46:33.800: E/ViewRootImpl(4927): 	at android.os.Looper.loop(Looper.java:136)
08-07 14:46:33.800: E/ViewRootImpl(4927): 	at android.app.ActivityThread.main(ActivityThread.java:5314)
08-07 14:46:33.800: E/ViewRootImpl(4927): 	at java.lang.reflect.Method.invokeNative(Native Method)
08-07 14:46:33.800: E/ViewRootImpl(4927): 	at java.lang.reflect.Method.invoke(Method.java:515)
08-07 14:46:33.800: E/ViewRootImpl(4927): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:864)
08-07 14:46:33.800: E/ViewRootImpl(4927): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:680)
08-07 14:46:33.800: E/ViewRootImpl(4927): 	at dalvik.system.NativeStart.main(Native Method)
08-07 14:46:33.805: E/InputChannel-JNI(4927): Error 24 dup channel fd 133.

  

 

 安卓系统级别的bug ,在4.4 和 4.4.2中,其中的一个解决方案:

 

android:hardwareAccelerated="false"
in the Manifest fixes the crash. Nevertheless this causes other strange behaviours in my App.
时间: 2024-08-02 10:19:38

Could not lock surface java.lang.IllegalArgumentException的相关文章

java.lang.IllegalArgumentException 错误异常求解

问题描述 java.lang.IllegalArgumentException 错误异常求解 上面是代码的日志 求大神指点 解决方案 有一个方法传参或者是什么,参数类型错了 看看提示在哪一行 解决方案二: 解决spring的java.lang.IllegalArgumentException异常.hibernate中java.lang.IllegalArgumentException异常可能的原因

生成javadoc报错java.lang.IllegalArgumentException

问题描述 生成javadoc报错java.lang.IllegalArgumentException 绝对不是什么字符编码 path=%JAVA_HOME%in;(改成绝对路径也没用) CLASSPATH=E:JAVAjdk1.6.0_45lib 正在装入软件包 com.zpark.cms.service 的源文件... 正在装入软件包 com.zpark.cms.entity 的源文件... 正在装入软件包 com.zpark.cms.dao 的源文件... 正在构造 Javadoc 信息..

Eclipse报错java.lang.IllegalArgumentException: already added和jar mismatch

报错: java.lang.IllegalArgumentException: already added: Landroid/opengl/GLUES; jar mismatch!fix your dependencies 原因: 引用了facebook官方SDK同时在自己的工程里面有一个包名字com.facebook 导致这样的冲突 解决: 修改自己的包名,避免重复

Tomcat的异常 之 java.lang.IllegalArgumentException:Document base *** does not exist or is not a readable

这个异常是经常遇到的异常情况. Tomcat的异常 之 java.lang.IllegalArgumentException: Document base 有些刚开始使用的Tomcat的朋友会出现的问题,明明已经将某个web应用从tomcat下的webapps下移除了,为什么还会抛这样的异常呢? ? java.lang.IllegalArgumentException: Document base *** does not exist or is not a readable directory

java.lang.IllegalArgumentException: argument type mismatch

问题描述 我建了一个添加新生的表单,属性中有一个时间.我用的是My97DatePicker控件.我的ACTION是以下publicclassAddStudentActionextendsAction{privateManagerDAOmanagerDAO=null;publicAddStudentAction(){this.managerDAO=newManagerDAO();}publicActionForwardexecute(ActionMappingmapping,ActionFormf

Tomcat启动报错:java.lang.IllegalArgumentException: Can't convert argument:null

一.发现问题为了避免导入的项目重名,我先修改了前一个项目的名称. 重新启动该项目至tomcat,报错:java.lang.IllegalArgumentException: Can't convert argument: null   二.发现问题因为MyEclipse在修改项目名时候,自动更新部署了web.xml文件 并且重新生成了xml文件的头部声明. 新增了java的命名把这个javaee去掉就可以了,一般情况下他会修改servlet的配置. <filter>      <filt

java.lang.IllegalArgumentException: Request header is too large

tomcat运行项目时,有一个请求过去后,后台报这样的错java.lang.IllegalArgumentException: Request header is too large原因:请求头超过了tomcat的限值.本来post请求是没有参数大小限制,但是服务器有自己的默认大小.解决:处理办法:在server.xml中 <Connector connectionTimeout="20000" port="8080" protocol="HTTP/

反射-java.lang.IllegalArgumentException: object is not an instance of declaring class

问题描述 java.lang.IllegalArgumentException: object is not an instance of declaring class 目的:将目标xml的内容解析到一个java对象里边(xml的各个标签有对应的java类,并且有包含关系). NginxCache配置文件: <?xml version="1.0" encoding="utf-8"?> XXXAction/getXXX.rdm XXXBction/get

java.lang.IllegalArgumentException 异常,求大牛说下解决方案

问题描述 java.lang.IllegalArgumentException 异常,求大牛说下解决方案 解决方案 java.lang.IllegalArgumentException的解决方案java.lang.IllegalArgumentException:(读取配置文件异常) 解决方案二: 这是用了spring框架吧,报是非法的参数错误,你看一下配置文件中是否有不存在的类,或者其它地方有不存在的一些类或者其它的内容.还有同样问题的参考:http://bbs.csdn.net/topics