java.lang.IllegalStateException: The display list is not valid. 错误分析

错误log:

11-13 10:00:40.346: E/AndroidRuntime(19762): java.lang.IllegalStateException: The display list is not valid.
11-13 10:00:40.346: E/AndroidRuntime(19762): 	at android.view.GLES20DisplayList.getNativeDisplayList(GLES20DisplayList.java:41)
11-13 10:00:40.346: E/AndroidRuntime(19762): 	at android.view.GLES20Canvas.drawDisplayList(GLES20Canvas.java:367)
11-13 10:00:40.346: E/AndroidRuntime(19762): 	at android.view.HardwareRenderer$GlRenderer.draw(HardwareRenderer.java:865)
11-13 10:00:40.346: E/AndroidRuntime(19762): 	at android.view.ViewRootImpl.draw(ViewRootImpl.java:2098)
11-13 10:00:40.346: E/AndroidRuntime(19762): 	at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1796)
11-13 10:00:40.346: E/AndroidRuntime(19762): 	at android.view.ViewRootImpl.handleMessage(ViewRootImpl.java:2651)
11-13 10:00:40.346: E/AndroidRuntime(19762): 	at android.os.Handler.dispatchMessage(Handler.java:99)
11-13 10:00:40.346: E/AndroidRuntime(19762): 	at android.os.Looper.loop(Looper.java:154)
11-13 10:00:40.346: E/AndroidRuntime(19762): 	at android.app.ActivityThread.main(ActivityThread.java:4642)
11-13 10:00:40.346: E/AndroidRuntime(19762): 	at java.lang.reflect.Method.invokeNative(Native Method)
11-13 10:00:40.346: E/AndroidRuntime(19762): 	at java.lang.reflect.Method.invoke(Method.java:511)
11-13 10:00:40.346: E/AndroidRuntime(19762): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:809)
11-13 10:00:40.346: E/AndroidRuntime(19762): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:576)
11-13 10:00:40.346: E/AndroidRuntime(19762): 	at dalvik.system.NativeStart.main(Native Method)

错误手机信息:

java.lang.IllegalStateException: The display list is not valid. 错误分析_第1张图片


错误原因分析:

初步认定是硬件加速引起,有种说话安卓4.0默认全部应用开启了硬件加速,而此款手机对硬件加速支持不好,或应用中有不支持硬件加速的代码


解决办法:

在引起该崩溃的界面Activity清单文件配置中,加入如下属性

android:hardwareAccelerated="false"

即可

你可能感兴趣的:(android,硬件加速)