Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android ANR/Crash on 4.4 version

Tags:

android

All,

I am facing a ANR/Crash on Android 4.4 devices. Below are the mention log which I received from device. Still I an not able to debug/relate this issue. Could someone please help me to trace and fixed this issue.

at android.view.GLES20Canvas.nDrawDisplayList(Native Method) at android.view.GLES20Canvas.drawDisplayList(GLES20Canvas.java:420) at android.view.HardwareRenderer$GlRenderer.drawDisplayList(HardwareRenderer.java:1661) at android.view.HardwareRenderer$GlRenderer.draw(HardwareRenderer.java:1484) at android.view.ViewRootImpl.draw(ViewRootImpl.java:2685) at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:2551) at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2157) at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1239) at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6396) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:813) at android.view.Choreographer.doCallbacks(Choreographer.java:613) at android.view.Choreographer.doFrame(Choreographer.java:583) at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:799) at android.os.Handler.handleCallback(Handler.java:733) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:146) at android.app.ActivityThread.main(ActivityThread.java:5511) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1283) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1099) at dalvik.system.NativeStart.main(Native Method)

Please check and help me to fixing this.

Thanks Amit

like image 437
Amit Avatar asked Oct 19 '22 08:10

Amit


1 Answers

Try to disable hardware acceleration for the scrollview at runtime.

View scroll = layout.findViewById(R.id.scrollView1);
scroll.setLayerType(View.LAYER_TYPE_SOFTWARE, null);

I found this for more detailed explanation it may helps you check once

WebView in ScrollView: "View too large to fit into drawing cache" - how to rework layout?

like image 63
Uma Achanta Avatar answered Nov 11 '22 10:11

Uma Achanta