Android: crash on drawPicture() call? - android

I have an application which displays a series of custom views in a LinearLayout. The LinearLayout is in a ScrollView. The custom views draw a picture, when their onDraw method is called. Generally this works fine. But occasionally the application crashes on a drawPicture() call. When it crashes, no exception seems to be thrown, but I do get this message in logcat: "Wrote stack trace to 'data/anr/traces.txt'".
The contents of traces.txt is below:
DALVIK THREADS:
"main" prio=5 tid=3 NATIVE
| group="main" sCount=1 dsCount=0 s=N obj=0x2aac2250 self=0x84d00
| sysTid=412 nice=0 sched=0/0 cgrp=unknown handle=2130112448
at android.graphics.Canvas.native_drawPicture(Native Method)
at android.graphics.Canvas.drawPicture(Canvas.java:1404)
at com.MyView.onDraw(PDFPageView.java:100)
at android.view.View.draw(View.java:6534)
at android.view.ViewGroup.drawChild(ViewGroup.java:1531)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1258)
at android.view.View.draw(View.java:6537)
at android.view.ViewGroup.drawChild(ViewGroup.java:1531)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1258)
at android.view.View.draw(View.java:6537)
at android.widget.FrameLayout.draw(FrameLayout.java:352)
at android.view.ViewGroup.drawChild(ViewGroup.java:1531)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1258)
at android.view.View.draw(View.java:6537)
at android.widget.FrameLayout.draw(FrameLayout.java:352)
at android.view.ViewGroup.drawChild(ViewGroup.java:1531)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1258)
at android.view.View.draw(View.java:6537)
at android.widget.FrameLayout.draw(FrameLayout.java:352)
at android.view.ViewGroup.drawChild(ViewGroup.java:1531)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1258)
at android.view.ViewGroup.drawChild(ViewGroup.java:1529)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1258)
at android.view.View.draw(View.java:6537)
at android.widget.FrameLayout.draw(FrameLayout.java:352)
at com.android.internal.policy.impl.PhoneWindow$DecorView.draw(PhoneWindow.java:1849)
at android.view.ViewRoot.draw(ViewRoot.java:1349)
at android.view.ViewRoot.performTraversals(ViewRoot.java:1114)
at android.view.ViewRoot.handleMessage(ViewRoot.java:1633)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:123)
at android.app.ActivityThread.main(ActivityThread.java:4325)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:521)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
at dalvik.system.NativeStart.main(Native Method)
"AsyncTask #1" prio=5 tid=17 WAIT
| group="main" sCount=1 dsCount=0 s=N obj=0x2e4262b0 self=0x351ab8
| sysTid=420 nice=10 sched=0/0 cgrp=unknown handle=3480528
at java.lang.Object.wait(Native Method)
- waiting on <0x195468> (a java.lang.VMThread)
at java.lang.Thread.parkFor(Thread.java:1535)
at java.lang.LangAccessImpl.parkFor(LangAccessImpl.java:48)
at sun.misc.Unsafe.park(Unsafe.java:317)
at java.util.concurrent.locks.LockSupport.park(LockSupport.java:131)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:1996)
at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:359)
at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1001)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1061)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:561)
at java.lang.Thread.run(Thread.java:1096)
"Binder Thread #3" prio=5 tid=15 NATIVE
| group="main" sCount=1 dsCount=0 s=N obj=0x2e3e9cc0 self=0x191798
| sysTid=419 nice=0 sched=0/0 cgrp=unknown handle=1738736
at dalvik.system.NativeStart.run(Native Method)
"Binder Thread #2" prio=5 tid=13 NATIVE
| group="main" sCount=1 dsCount=0 s=N obj=0x2e3e9c00 self=0x1a7510
| sysTid=418 nice=0 sched=0/0 cgrp=unknown handle=1792360
at dalvik.system.NativeStart.run(Native Method)
"Binder Thread #1" prio=5 tid=11 NATIVE
| group="main" sCount=1 dsCount=0 s=N obj=0x2e3e9b40 self=0x1aae60
| sysTid=417 nice=0 sched=0/0 cgrp=unknown handle=1738512
at dalvik.system.NativeStart.run(Native Method)
"JDWP" daemon prio=5 tid=9 VMWAIT
| group="system" sCount=1 dsCount=0 s=N obj=0x2e3e82a0 self=0x1b82a0
| sysTid=416 nice=0 sched=0/0 cgrp=unknown handle=1792208
at dalvik.system.NativeStart.run(Native Method)
"Signal Catcher" daemon prio=5 tid=7 RUNNABLE
| group="system" sCount=0 dsCount=0 s=N obj=0x2e3e81e8 self=0x1b9420
| sysTid=415 nice=0 sched=0/0 cgrp=unknown handle=1791968
at dalvik.system.NativeStart.run(Native Method)
"HeapWorker" daemon prio=5 tid=5 VMWAIT
| group="system" sCount=1 dsCount=0 s=N obj=0x2d68c4c8 self=0x1b9968
| sysTid=413 nice=0 sched=0/0 cgrp=unknown handle=1792792
at dalvik.system.NativeStart.run(Native Method)
This is the logcat output:
W/WindowManager( 53): Key dispatching timed out sending to com.mypackage/com.mypackage.MyActivity
W/WindowManager( 53): Dispatch state: {{KeyEvent{action=1 code=82 repeat=0 met
a=0 scancode=229 mFlags=8} to Window{4387d7f8 Keyguard paused=false} # 129122478
0532 lw=Window{4387d7f8 Keyguard paused=false} lb=android.view.ViewRoot$W#4387d4
08 fin=false gfw=true ed=true tts=0 wf=false fp=false mcf=Window{4392eb90 com.mypackage
s/com.mypackage.MyActivity paused=false}}}
W/WindowManager( 53): Current state: {{null to Window{4392eb90 com.mypackage
s/com.mypackage.MyActivity paused=false} # 1291225159009 lw=Window{4
392eb90 com.mypackage/com.mypackage.MyActivity paused=false} lb=an
droid.os.BinderProxy#4392e9b8 fin=false gfw=true ed=true tts=0 wf=false fp=false
mcf=Window{4392eb90
com.mypackage/com.mypackage.MyActivity paused
=false}}}
I/ActivityManager( 53): ANR in process: com.mypackage
(last in com.mypackage)
I/ActivityManager( 53): Annotation: keyDispatchingTimedOut
I/ActivityManager( 53): CPU usage:
I/ActivityManager( 53): Load: 0.71 / 0.81 / 0.44
I/ActivityManager( 53): CPU usage from 19028ms to 19ms ago:
I/ActivityManager( 53): com.mypackage: 34% = 34% user + 0% kernel / f
aults: 24 minor
I/ActivityManager( 53): system_server: 2% = 1% user + 0% kernel / faults: 8
minor
I/ActivityManager( 53): com.android.phone: 0% = 0% user + 0% kernel
I/ActivityManager( 53): adbd: 0% = 0% user + 0% kernel / faults: 72 minor
I/ActivityManager( 53): TOTAL: 38% = 36% user + 2% kernel
I/ActivityManager( 53): Removing old ANR trace file from /data/anr/traces.txt
I/Process ( 53): Sending signal. PID: 514 SIG: 3
I/dalvikvm( 514): threadid=7: reacting to signal 3
I/dalvikvm( 514): Wrote stack trace to '/data/anr/traces.txt'
I/Process ( 53): Sending signal. PID: 53 SIG: 3
I/dalvikvm( 53): threadid=7: reacting to signal 3
I/dalvikvm( 53): Wrote stack trace to '/data/anr/traces.txt'
I/Process ( 53): Sending signal. PID: 96 SIG: 3
I/dalvikvm( 96): threadid=7: reacting to signal 3
I/dalvikvm( 96): Wrote stack trace to '/data/anr/traces.txt'
I/Process ( 53): Sending signal. PID: 223 SIG: 3
I/dalvikvm( 223): threadid=7: reacting to signal 3
I/dalvikvm( 223): Wrote stack trace to '/data/anr/traces.txt'
I/Process ( 53): Sending signal. PID: 140 SIG: 3
I/dalvikvm( 140): threadid=7: reacting to signal 3
I/dalvikvm( 140): Wrote stack trace to '/data/anr/traces.txt'
I/Process ( 53): Sending signal. PID: 120 SIG: 3
I/dalvikvm( 120): threadid=7: reacting to signal 3
I/dalvikvm( 120): Wrote stack trace to '/data/anr/traces.txt'
I/Process ( 53): Sending signal. PID: 172 SIG: 3
I/dalvikvm( 172): threadid=7: reacting to signal 3
I/dalvikvm( 172): Wrote stack trace to '/data/anr/traces.txt'
I/Process ( 53): Sending signal. PID: 175 SIG: 3
I/dalvikvm( 175): threadid=7: reacting to signal 3
I/dalvikvm( 175): Wrote stack trace to '/data/anr/traces.txt'
I/Process ( 53): Sending signal. PID: 94 SIG: 3
I/dalvikvm( 94): threadid=7: reacting to signal 3
I/dalvikvm( 94): Wrote stack trace to '/data/anr/traces.txt'
W/WindowManager( 53): No window to dispatch pointer action 1
W/WindowManager( 53): No window to dispatch pointer action 1
W/WindowManager( 53): No window to dispatch pointer action 0
W/WindowManager( 53): No window to dispatch pointer action 1
D/dalvikvm( 53): GC freed 12498 objects / 629776 bytes in 174ms

This is not a crash, it's an ANR (Application Not Responding.) It means your application is taking too long to respond to an event (more than 5 seconds.)

Related

App does not start on Android and force close

I have created a test scene in Unity which has only one cube and a directional lightening. When installed in AVD just the name of app is display and shows up nothing...
I could not figure out what is the error.. or what is making my application to stop running
AVD setting that is used are
Target: 4.0.3 API Level 15
Skin: HVGA
RAM: 512 VM: 32
Internal Storage: 200MB
SDCARD:2GB
I/AndroidRuntime( 474): NOTE: attach of thread 'Binder Thread #3' failed
D/AndroidRuntime( 549):
D/AndroidRuntime( 549): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<
D/AndroidRuntime( 549): CheckJNI is ON
D/AndroidRuntime( 549): Calling main entry com.android.commands.am.Am
I/ActivityManager( 77): START {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.asdasd.cd/com.unity3d.player.UnityPlayerNativeActivity} from pid 549
D/PermissionCache( 36): checking android.permission.READ_FRAME_BUFFER for uid=1000 => granted (22624 us)
W/WindowManager( 77): Failure taking screenshot for (130x195) to layer 21005
D/AndroidRuntime( 549): Shutting down VM
D/dalvikvm( 549): GC_CONCURRENT freed 99K, 77% free 480K/2048K, paused 0ms+1ms
I/AndroidRuntime( 549): NOTE: attach of thread 'Binder Thread #3' failed
I/ActivityManager( 77): Start proc com.asdasd.cd for activity com.asdasd.cd/com.unity3d.player.UnityPlayerNativeActivity: pid=559 uid=10041 gids={}
W/NetworkManagementSocketTagger( 77): setKernelCountSet(10041, 1) failed with errno -2
I/dalvikvm( 77): Jit: resizing JitTable from 4096 to 8192
I/ARMAssembler( 36): generated scanline__00000077:03515104_00009002_00000000 [127 ipp] (149 ins) at [0x413fba80:0x413fbcd4] in 869530 ns
I/Process ( 77): Sending signal. PID: 559 SIG: 3
I/dalvikvm( 559): threadid=3: reacting to signal 3
I/dalvikvm( 559): Wrote stack traces to '/data/anr/traces.txt'
D/dalvikvm( 559): Trying to load lib /mnt/asec/com.asdasd.cd-2/lib/libmain.so 0x41023f78
D/dalvikvm( 559): Added shared lib /mnt/asec/com.asdasd.cd-2/lib/libmain.so 0x41023f78
I/Process ( 77): Sending signal. PID: 559 SIG: 3
I/dalvikvm( 559): threadid=3: reacting to signal 3
I/dalvikvm( 559): Wrote stack traces to '/data/anr/traces.txt'
I/Process ( 77): Sending signal. PID: 559 SIG: 3
I/dalvikvm( 559): threadid=3: reacting to signal 3
I/dalvikvm( 559): Wrote stack traces to '/data/anr/traces.txt'
I/Process ( 77): Sending signal. PID: 559 SIG: 3
I/dalvikvm( 559): threadid=3: reacting to signal 3
I/dalvikvm( 559): Wrote stack traces to '/data/anr/traces.txt'
I/Process ( 77): Sending signal. PID: 559 SIG: 3
I/dalvikvm( 559): threadid=3: reacting to signal 3
I/dalvikvm( 559): Wrote stack traces to '/data/anr/traces.txt'
I/Process ( 77): Sending signal. PID: 559 SIG: 3
I/dalvikvm( 559): threadid=3: reacting to signal 3
I/dalvikvm( 559): Wrote stack traces to '/data/anr/traces.txt'
I/Process ( 77): Sending signal. PID: 559 SIG: 3
I/dalvikvm( 559): threadid=3: reacting to signal 3
I/dalvikvm( 559): Wrote stack traces to '/data/anr/traces.txt'
I/Process ( 77): Sending signal. PID: 559 SIG: 3
I/dalvikvm( 559): threadid=3: reacting to signal 3
I/dalvikvm( 559): Wrote stack traces to '/data/anr/traces.txt'
I/Process ( 77): Sending signal. PID: 559 SIG: 3
I/dalvikvm( 559): threadid=3: reacting to signal 3
I/dalvikvm( 559): Wrote stack traces to '/data/anr/traces.txt'
I/Process ( 77): Sending signal. PID: 559 SIG: 3
I/dalvikvm( 559): threadid=3: reacting to signal 3
I/dalvikvm( 559): Wrote stack traces to '/data/anr/traces.txt'
I/Process ( 77): Sending signal. PID: 559 SIG: 3
I/dalvikvm( 559): threadid=3: reacting to signal 3
I/dalvikvm( 559): Wrote stack traces to '/data/anr/traces.txt'
I/Process ( 77): Sending signal. PID: 559 SIG: 3
I/dalvikvm( 559): threadid=3: reacting to signal 3
I/dalvikvm( 559): Wrote stack traces to '/data/anr/traces.txt'
I/Process ( 77): Sending signal. PID: 559 SIG: 3
I/dalvikvm( 559): threadid=3: reacting to signal 3
I/dalvikvm( 559): Wrote stack traces to '/data/anr/traces.txt'
I/Process ( 77): Sending signal. PID: 559 SIG: 3
I/dalvikvm( 559): threadid=3: reacting to signal 3
I/dalvikvm( 559): Wrote stack traces to '/data/anr/traces.txt'
I/Process ( 77): Sending signal. PID: 559 SIG: 3
I/dalvikvm( 559): threadid=3: reacting to signal 3
I/dalvikvm( 559): Wrote stack traces to '/data/anr/traces.txt'
I/Process ( 77): Sending signal. PID: 559 SIG: 3
I/dalvikvm( 559): threadid=3: reacting to signal 3
I/dalvikvm( 559): Wrote stack traces to '/data/anr/traces.txt'
I/Process ( 77): Sending signal. PID: 559 SIG: 3
I/dalvikvm( 559): threadid=3: reacting to signal 3
I/dalvikvm( 559): Wrote stack traces to '/data/anr/traces.txt'
I/Process ( 77): Sending signal. PID: 559 SIG: 3
I/dalvikvm( 559): threadid=3: reacting to signal 3
I/dalvikvm( 559): Wrote stack traces to '/data/anr/traces.txt'
I/Process ( 77): Sending signal. PID: 559 SIG: 3
I/dalvikvm( 559): threadid=3: reacting to signal 3
I/dalvikvm( 559): Wrote stack traces to '/data/anr/traces.txt'
W/ActivityManager( 77): Launch timeout has expired, giving up wake lock!
W/ActivityManager( 77): Activity idle timeout for ActivityRecord{411e1ab0 com.asdasd.cd/com.unity3d.player.UnityPlayerNativeActivity}
D/dalvikvm( 77): GC_CONCURRENT freed 294K, 11% free 8687K/9671K, paused 5ms+7ms
D/dalvikvm( 160): GC_CONCURRENT freed 436K, 8% free 6992K/7559K, paused 4ms+4ms
On Installing on Android the app so similar behavior and generates same similar log
I/ActivityManager( 289): START {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.asdasd.cd/com.unity3d.player.UnityPlayerNativeActivity bnds=[12,433][125,592]} from pid 546
I/ActivityManager( 289): Start proc com.asdasd.cd for activity com.asdasd.cd/com.unity3d.player.UnityPlayerNativeActivity: pid=4268 uid=10130 gids={}
W/ResourceType( 289): Skipping entry 0x7f040010 in package table 0 because it is not complex!
W/ResourceType( 289): Skipping entry 0x7f04003d in package table 0 because it is not complex!
D/dalvikvm( 4268): Trying to load lib /mnt/asec/com.asdasd.cd-1/lib/libmain.so 0x2bde3080
D/dalvikvm( 4268): Added shared lib /mnt/asec/com.asdasd.cd-1/lib/libmain.so 0x2bde3080
D/SurfaceFlinger( 136): Release buffer at 0xcddd0
W/ActivityManager( 289): Launch timeout has expired, giving up wake lock!
W/ActivityManager( 289): Activity idle timeout for ActivityRecord{2c57c1e8 com.asdasd.cd/com.unity3d.player.UnityPlayerNativeActivity}
For gaming better to use genymotion dont use AVD that doesn't support EGL rendering and in android 4.4 use dalvik instead of ART ...
Hope you get my point.
Finally my app is working..!:D Problem is solved by updating and applying latest patch unity 4.6.6p1.. which removes the bug from older version .Hope this will help someone having a similar problem

ANR in random usage of application

I have an VOIP application and the engine part is C(NDK) Level.On random usage of application i end with an ANR pointing to " at android.os.MessageQueue.nativePollOnce(Native Method)".
Using android-ndk-r5
ANR Traces:
----- pid 13735 at 2013-05-23 15:56:47 -----
Cmd line: com.myapp.voip
DALVIK THREADS:
(mutexes: tll=0 tsl=0 tscl=0 ghl=0)
"main" prio=5 tid=1 NATIVE
| group="main" sCount=1 dsCount=0 obj=0x41315508 self=0x413058e8
| sysTid=13735 nice=0 sched=0/0 cgrp=apps handle=1074442032
| schedstat=( 23115964360 3706387400 21258 ) utm=1651 stm=660 core=3
#00 pc 0000da70 /system/lib/libc.so (epoll_wait+12)
#01 pc 00014899 /system/lib/libutils.so (android::Looper::pollInner(int)+96)
#02 pc 00014b01 /system/lib/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+104)
#03 pc 00063443 /system/lib/libandroid_runtime.so (android::NativeMessageQueue::pollOnce(_JNIEnv*, int)+22)
#04 pc 0001de70 /system/lib/libdvm.so (dvmPlatformInvoke+112)
#05 pc 0004d0c3 /system/lib/libdvm.so (dvmCallJNIMethod(unsigned int const*, JValue*, Method const*, Thread*)+394)
#06 pc 000272a0 /system/lib/libdvm.so
#07 pc 0002bba8 /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+180)
#08 pc 0005faf7 /system/lib/libdvm.so (dvmInvokeMethod(Object*, Method const*, ArrayObject*, ArrayObject*, ClassObject*, bool)+374)
#09 pc 0006709d /system/lib/libdvm.so
#10 pc 000272a0 /system/lib/libdvm.so
#11 pc 0002bba8 /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+180)
#12 pc 0005f831 /system/lib/libdvm.so (dvmCallMethodV(Thread*, Method const*, Object*, bool, JValue*, std::__va_list)+272)
#13 pc 000496b3 /system/lib/libdvm.so
#14 pc 0004c451 /system/lib/libandroid_runtime.so
#15 pc 0004d557 /system/lib/libandroid_runtime.so (android::AndroidRuntime::start(char const*, char const*)+390)
#16 pc 00000dcf /system/bin/app_process
#17 pc 00017123 /system/lib/libc.so (__libc_init+38)
#18 pc 00000b34 /system/bin/app_process
at android.os.MessageQueue.nativePollOnce(Native Method)
at android.os.MessageQueue.next(MessageQueue.java:125)
at android.os.Looper.loop(Looper.java:124)
at android.app.ActivityThread.main(ActivityThread.java:4898)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1006)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:773)
at dalvik.system.NativeStart.main(Native Method)
Edit on 05-06-2013
ADB Logs
05-23 15:56:27.704 E/BufferQueue( 1900): [com.myapp.voip/com.myapp.voip.SettingsActivity] dequeueBuffer: SurfaceTexture has been abandoned!
05-23 15:56:27.704 E/SurfaceTextureClient(13735): dequeueBuffer failed (No such device)
05-23 15:56:27.719 E/ViewRootImpl(13735): Could not lock surface
05-23 15:56:27.719 E/ViewRootImpl(13735): java.lang.IllegalArgumentException
05-23 15:56:27.719 E/ViewRootImpl(13735): at android.view.Surface.lockCanvasNative(Native Method)
05-23 15:56:27.719 E/ViewRootImpl(13735): at android.view.Surface.lockCanvas(Surface.java:88)
05-23 15:56:27.719 E/ViewRootImpl(13735): at android.view.ViewRootImpl.drawSoftware(ViewRootImpl.java:2312)
05-23 15:56:27.719 E/ViewRootImpl(13735): at android.view.ViewRootImpl.draw(ViewRootImpl.java:2275)
05-23 15:56:27.719 E/ViewRootImpl(13735): at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:2143)
05-23 15:56:27.719 E/ViewRootImpl(13735): at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1954)
05-23 15:56:27.719 E/ViewRootImpl(13735): at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1110)
05-23 15:56:27.719 E/ViewRootImpl(13735): at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:4470)
05-23 15:56:27.719 E/ViewRootImpl(13735): at android.view.Choreographer$CallbackRecord.run(Choreographer.java:725)
05-23 15:56:27.719 E/ViewRootImpl(13735): at android.view.Choreographer.doCallbacks(Choreographer.java:555)
05-23 15:56:27.719 E/ViewRootImpl(13735): at android.view.Choreographer.doFrame(Choreographer.java:525)
05-23 15:56:27.719 E/ViewRootImpl(13735): at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:711)
05-23 15:56:27.719 E/ViewRootImpl(13735): at android.os.Handler.handleCallback(Handler.java:615)
05-23 15:56:27.719 E/ViewRootImpl(13735): at android.os.Handler.dispatchMessage(Handler.java:92)
05-23 15:56:27.719 E/ViewRootImpl(13735): at android.os.Looper.loop(Looper.java:137)
05-23 15:56:27.719 E/ViewRootImpl(13735): at android.app.ActivityThread.main(ActivityThread.java:4898)
05-23 15:56:27.719 E/ViewRootImpl(13735): at java.lang.reflect.Method.invokeNative(Native Method)
05-23 15:56:27.719 E/ViewRootImpl(13735): at java.lang.reflect.Method.invoke(Method.java:511)
05-23 15:56:27.719 E/ViewRootImpl(13735): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1006)
05-23 15:56:27.719 E/ViewRootImpl(13735): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:773)
05-23 15:56:27.719 E/ViewRootImpl(13735): at dalvik.system.NativeStart.main(Native Method)
05-23 15:56:27.869 D/STATUSBAR-NetworkController( 2535): onDataActivity: direction=3
05-23 15:56:27.874 D/STATUSBAR-NetworkController( 2535): refreshSignalCluster:2
05-23 15:56:27.874 D/STATUSBAR-SignalClusterView( 2535): mSeparateMobileGroup=0
05-23 15:56:27.879 D/STATUSBAR-SignalClusterView( 2535): mSeparateMobileGroup=0
05-23 15:56:27.879 D/STATUSBAR-SignalClusterView( 2535): mSeparateMobileGroup=0
05-23 15:56:45.014 D/STATUSBAR-NetworkController( 2535): onDataActivity: direction=0
05-23 15:56:45.019 D/STATUSBAR-NetworkController( 2535): refreshSignalCluster:2
05-23 15:56:45.019 D/STATUSBAR-SignalClusterView( 2535): mSeparateMobileGroup=0
05-23 15:56:45.024 D/STATUSBAR-SignalClusterView( 2535): mSeparateMobileGroup=0
05-23 15:56:45.024 D/STATUSBAR-SignalClusterView( 2535): mSeparateMobileGroup=0
05-23 15:56:46.024 D/STATUSBAR-NetworkController( 2535): onDataActivity: direction=2
05-23 15:56:46.029 D/STATUSBAR-NetworkController( 2535): refreshSignalCluster:2
05-23 15:56:46.029 D/STATUSBAR-SignalClusterView( 2535): mSeparateMobileGroup=0
05-23 15:56:46.029 D/STATUSBAR-SignalClusterView( 2535): mSeparateMobileGroup=0
05-23 15:56:46.029 D/STATUSBAR-SignalClusterView( 2535): mSeparateMobileGroup=0
05-23 15:56:46.674 I/InputReader( 2272): Touch event's action is 0x0 (deviceType=0) [pCnt=1, s=0.1171 ]
05-23 15:56:46.729 I/InputReader( 2272): Touch event's action is 0x1 (deviceType=0) [pCnt=1, s=]
05-23 15:56:46.854 I/InputReader( 2272): Touch event's action is 0x0 (deviceType=0) [pCnt=1, s=0.1172 ]
05-23 15:56:46.899 I/InputReader( 2272): Touch event's action is 0x1 (deviceType=0) [pCnt=1, s=]
05-23 15:56:47.004 I/InputReader( 2272): Touch event's action is 0x0 (deviceType=0) [pCnt=1, s=0.1173 ]
05-23 15:56:47.029 D/STATUSBAR-NetworkController( 2535): onDataActivity: direction=0
05-23 15:56:47.029 D/STATUSBAR-NetworkController( 2535): refreshSignalCluster:2
05-23 15:56:47.029 D/STATUSBAR-SignalClusterView( 2535): mSeparateMobileGroup=0
05-23 15:56:47.029 D/STATUSBAR-SignalClusterView( 2535): mSeparateMobileGroup=0
05-23 15:56:47.029 D/STATUSBAR-SignalClusterView( 2535): mSeparateMobileGroup=0
05-23 15:56:47.044 I/InputReader( 2272): Touch event's action is 0x1 (deviceType=0) [pCnt=1, s=]
05-23 15:56:47.074 I/InputDispatcher( 2272): Application is not responding. It has been 20018.8ms since event, 20018.4ms since wait started. Reason: Waiting because there is no touchable window that can handle the event but there is focused application that may eventually add a new window when it finishes starting up.
05-23 15:56:47.149 I/Process ( 2272): Sending signal. PID: 13735 SIG: 3
05-23 15:56:47.149 I/dalvikvm(13735): threadid=3: reacting to signal 3
05-23 15:56:47.189 I/dalvikvm(13735): Wrote stack traces to '/data/anr/traces.txt'
05-23 15:56:47.189 I/Process ( 2272): Sending signal. PID: 2272 SIG: 3
05-23 15:56:47.189 I/dalvikvm( 2272): threadid=3: reacting to signal 3
05-23 15:56:47.779 E/uevent.c( 2272): !#uevent_next_event: poll - nr=-1, fds.revents=0x0
05-23 15:56:47.869 E/Sensors ( 2272): poll() failed (Interrupted system call)
05-23 15:56:47.889 I/Process ( 2272): Sending signal. PID: 2719 SIG: 3
05-23 15:56:47.889 I/dalvikvm( 2719): threadid=3: reacting to signal 3
05-23 15:56:47.899 I/dalvikvm( 2272): Wrote stack traces to '/data/anr/traces.txt'
05-23 15:56:47.899 I/Process ( 2272): Sending signal. PID: 2535 SIG: 3
05-23 15:56:47.899 I/dalvikvm( 2535): threadid=3: reacting to signal 3
05-23 15:56:47.984 I/dalvikvm( 2535): Wrote stack traces to '/data/anr/traces.txt'
05-23 15:56:47.984 I/Process ( 2272): Sending signal. PID: 2556 SIG: 3
05-23 15:56:47.984 I/dalvikvm( 2556): threadid=3: reacting to signal 3
05-23 15:56:47.994 I/dalvikvm( 2719): Wrote stack traces to '/data/anr/traces.txt'
05-23 15:56:47.994 I/Process ( 2272): Sending signal. PID: 2736 SIG: 3
05-23 15:56:47.994 I/dalvikvm( 2736): threadid=3: reacting to signal 3
05-23 15:56:48.024 I/dalvikvm( 2736): Wrote stack traces to '/data/anr/traces.txt'
05-23 15:56:48.024 I/Process ( 2272): Sending signal. PID: 2751 SIG: 3
05-23 15:56:48.024 I/dalvikvm( 2751): threadid=3: reacting to signal 3
05-23 15:56:48.024 I/dalvikvm( 2556): Wrote stack traces to '/data/anr/traces.txt'
05-23 15:56:48.024 I/Process ( 2272): Sending signal. PID: 2765 SIG: 3
05-23 15:56:48.024 I/dalvikvm( 2765): threadid=3: reacting to signal 3
05-23 15:56:48.049 I/dalvikvm( 2751): Wrote stack traces to '/data/anr/traces.txt'
05-23 15:56:48.059 I/dalvikvm( 2765): Wrote stack traces to '/data/anr/traces.txt'
05-23 15:56:48.459 D/dalvikvm( 2272): GC_CONCURRENT freed 2075K, 7% free 94406K/100551K, paused 23ms+36ms, total 240ms
05-23 15:56:48.459 D/dalvikvm( 2272): WAIT_FOR_CONCURRENT_GC blocked 201ms
05-23 15:56:48.594 D/dalvikvm( 2272): WAIT_FOR_CONCURRENT_GC blocked 0ms
05-23 15:56:48.824 D/dalvikvm( 2272): GC_EXPLICIT freed 737K, 6% free 94612K/100551K, paused 5ms+38ms, total 227ms
05-23 15:56:49.409 W/PowerManagerService( 2272): Timer 0x3->0x3|0x0
05-23 15:56:49.409 D/PowerManagerService( 2272): setTimeoutLocked::SmartSleep : after589500
05-23 15:56:49.414 E/android.os.Debug( 2272): !#Dumpstate > dumpstate -k -t -z -d -o /data/log/dumpstate_app_anr
Not sure which thread is stuck at this point.
Whats going on here?
I think the most possible answer to your problem is that you are doing something with the surface in native code.
Especially if you are developing some SIP video call feature.
If the native code does not handle the locking of the canvas/surface correctly, you will have this problem.
Since you might not able to show your souce code here, I can only recommend you to check if any code is accessing the surface in native or other Java thread.

Android PackageManger -- Exception

When getting the list of packages which is running in devices, i am getting the execption proxy stub exception from my logcat
This the code i used
List packages = pm.getInstalledApplications(PackageManager.GET_META_DATA);
This the exception which im am getting
(mutexes: tll=0 tsl=0 tscl=0 ghl=0)
"main" prio=5 tid=1 NATIVE
| group="main" sCount=1 dsCount=0 obj=0x40ab1478 self=0x112f910
| sysTid=1801 nice=0 sched=0/0 cgrp=default handle=1074439528
| schedstat=( 0 0 0 ) utm=465 stm=85 core=1
at android.os.BinderProxy.transact(Native Method)
at android.content.pm.IPackageManager$Stub$Proxy.getInstalledApplications(IPackageManager.java:1930)
at android.app.ApplicationPackageManager.getInstalledApplications(ApplicationPackageManager.java:414)
at com.informate.smnpd.DataUsageAppManager.processData1(DataUsageAppManager.java:237)
at com.informate.smnpd.DataUsageAppManager.processData(DataUsageAppManager.java:114)
at com.informate.smnpd.BackgroundService.getData(BackgroundService.java:667)
at com.informate.smnpd.ManualUpdate.onClick(ManualUpdate.java:221)
at android.view.View.performClick(View.java:3526)
at android.view.View$PerformClick.run(View.java:14133)
at android.os.Handler.handleCallback(Handler.java:605)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4697)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:787)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:554)
at dalvik.system.NativeStart.main(Native Method)
Can anyone please guide me on why this exception will occures at the time of getting installed package name. Thanks in advance

Android: Activity Window Died (WINDOW DIED) on 4.0.4 ICS Devices [closed]

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.
Closed 10 years ago.
I am getting IllegalArgumentException in an 4.0 ICS Devices on one of my Activity..
I/WindowManager( 529): WINDOW DIED Window{419a4a18 XXX.XXXXXX.XXX.XXX/XXX.XXXXXX.XXX.XXX.XXXXXXXXXXXXXXXXXXXXX paused=false}
E/SurfaceTexture( 225): [com.sample/com.sample.MyActivity] dequeueBuffer: SurfaceTexture has been abandoned!
E/SurfaceTextureClient( 9044): dequeueBuffer failed (No such device)
E/ViewRootImpl( 9044): IllegalArgumentException locking surface
E/ViewRootImpl( 9044): java.lang.IllegalArgumentException
E/ViewRootImpl( 9044): at android.view.Surface.lockCanvasNative(Native Method)
E/ViewRootImpl( 9044): at android.view.Surface.lockCanvas(Surface.java:76)
E/ViewRootImpl( 9044): at android.view.ViewRootImpl.draw(ViewRootImpl.java:2157)
E/ViewRootImpl( 9044): at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1846)
E/ViewRootImpl( 9044): at android.view.ViewRootImpl.handleMessage(ViewRootImpl.java:2658)
E/ViewRootImpl( 9044): at android.os.Handler.dispatchMessage(Handler.java:99)
E/ViewRootImpl( 9044): at android.os.Looper.loop(Looper.java:137)
E/ViewRootImpl( 9044): at android.app.ActivityThread.main(ActivityThread.java:4514)
E/ViewRootImpl( 9044): at java.lang.reflect.Method.invokeNative(Native Method)
E/ViewRootImpl( 9044): at java.lang.reflect.Method.invoke(Method.java:511)
E/ViewRootImpl( 9044): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:980)
E/ViewRootImpl( 9044): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:747)
E/ViewRootImpl( 9044): at dalvik.system.NativeStart.main(Native Method)
New Logs : 16 -08 -2012
Device Used : Samsung Galaxy S3
Android Version : 4.0.4
Issue not seen in 2.3 and below..
I have a TabActivity, within which i have childactivites(List Activities)..From one of my child activity i go to one more activity and do some work and come back to same Child activity(Update the View in ListActivity).If I Repeatedly do the above i get the Below Exception and screen goes Blank.
08-16 15:43:00.271: I/ClipboardServiceEx(533): Send intent for dismiss clipboard dialog inside hideCurrentInputLocked() !
08-16 15:43:00.291: D/memalloc(224): ion: Allocated buffer base:0x45808000 size:3768320 fd:56
08-16 15:43:00.291: D/memalloc(27338): ion: Mapped buffer base:0x60a28000 size:3768320 offset:0 fd:93
08-16 15:43:00.291: I/Adreno200-EGLSUB(224): <CreateImage:893>: Android Image
08-16 15:43:00.291: I/Adreno200-EGLSUB(224): <GetImageAttributes:1102>: RGBA_8888
08-16 15:43:00.291: D/KeyguardViewMediator(533): setHidden false
08-16 15:43:00.291: I/ActivityManager(533): Displayed shortComponentName: +329ms
08-16 15:43:00.291: D/DEFERED_APP_VISIBILITY(533): tweaking closing app
08-16 15:43:00.301: D/KeyguardViewMediator(533): setHidden false
08-16 15:43:00.301: D/KeyguardViewMediator(533): setHidden false
08-16 15:43:00.301: D/memalloc(27338): ion: Unmapping buffer base:0x602f8000 size:3768320
08-16 15:43:00.301: D/memalloc(27338): ion: Unmapping buffer base:0x5ff38000 size:3768320
08-16 15:43:00.301: W/InputDispatcher(533): channel ~ Consumer closed input channel or an error occurred. events=0x8
08-16 15:43:00.301: E/InputDispatcher(533): channel ~ Channel is unrecoverably broken and will be disposed!
08-16 15:43:00.301: W/InputDispatcher(533): Attempted to unregister already unregistered input channel
08-16 15:43:00.301: I/WindowManager(533): WINDOW DIED Window{427c45a0 XXX.XXXXXX.XX/XXX.XXXXXX.XX.XXXXXXXXXXXXXXXXXXXXX paused=false}
08-16 15:43:00.311: D/KeyguardViewMediator(533): setHidden false
08-16 15:43:00.311: D/memalloc(224): ion: Freeing buffer base:0x43117000 size:3768320 fd:62
08-16 15:43:00.311: D/memalloc(224): ion: Unmapping buffer base:0x43117000 size:3768320
08-16 15:43:00.311: D/memalloc(224): ion: Freeing buffer base:0x434af000 size:3768320 fd:43
08-16 15:43:00.311: D/memalloc(224): ion: Unmapping buffer base:0x434af000 size:3768320
08-16 15:43:00.311: D/memalloc(27338): ion: Unmapping buffer base:0x5f66f000 size:3768320
08-16 15:43:00.311: D/KeyguardViewMediator(533): setHidden false
08-16 15:43:00.311: E/InputQueue-JNI(27338): channel '427c45a0 com.org.ui/com.org.ui.CreateContactActivity (client)' ~ Publisher closed input channel or an error occurred. events=0x8
08-16 15:43:00.321: D/KeyguardViewMediator(533): setHidden false
08-16 15:43:00.321: D/memalloc(224): ion: Allocated buffer base:0x43117000 size:3768320 fd:40
08-16 15:43:00.331: D/memalloc(27338): ion: Mapped buffer base:0x5f66f000 size:3768320 offset:0 fd:61
08-16 15:43:00.341: I/Adreno200-EGLSUB(224): <CreateImage:893>: Android Image
08-16 15:43:00.341: I/Adreno200-EGLSUB(224): <GetImageAttributes:1102>: RGBA_8888
08-16 15:43:00.341: D/KeyguardViewMediator(533): setHidden false
08-16 15:43:00.361: D/KeyguardViewMediator(533): setHidden false
08-16 15:43:00.371: D/KeyguardViewMediator(533): setHidden false
08-16 15:43:00.391: D/KeyguardViewMediator(533): setHidden false
08-16 15:43:00.401: D/KeyguardViewMediator(533): setHidden false
08-16 15:43:00.421: D/KeyguardViewMediator(533): setHidden false
08-16 15:43:00.441: D/KeyguardViewMediator(533): setHidden false
08-16 15:43:00.451: D/KeyguardViewMediator(533): setHidden false
08-16 15:43:00.471: D/KeyguardViewMediator(533): setHidden false
08-16 15:43:00.491: D/KeyguardViewMediator(533): setHidden false
08-16 15:43:00.501: D/KeyguardViewMediator(533): setHidden false
08-16 15:43:00.521: D/KeyguardViewMediator(533): setHidden false
08-16 15:43:00.521: W/SurfaceFlinger(224): id=1810 Removed idx=5 Map Size=5
08-16 15:43:00.521: W/SurfaceFlinger(224): id=1809 Removed idx=3 Map Size=4
08-16 15:43:00.521: W/SurfaceFlinger(224): id=1809 Removed idx=-2 Map Size=4
08-16 15:43:00.521: W/SurfaceFlinger(224): id=1807 Removed idx=1 Map Size=3
08-16 15:43:00.521: W/SurfaceFlinger(224): id=1807 Removed idx=-2 Map Size=3
08-16 15:43:00.521: D/KeyguardViewMediator(533): setHidden false
08-16 15:43:00.551: D/memalloc(224): ion: Freeing buffer base:0x453ad000 size:3768320 fd:32
08-16 15:43:00.551: D/memalloc(224): ion: Unmapping buffer base:0x453ad000 size:3768320
08-16 15:43:00.551: D/memalloc(224): ion: Freeing buffer base:0x43117000 size:3768320 fd:40
08-16 15:43:00.551: D/memalloc(224): ion: Unmapping buffer base:0x43117000 size:3768320
08-16 15:43:00.571: D/memalloc(224): ion: Freeing buffer base:0x4414e000 size:1146880 fd:68
08-16 15:43:00.571: D/memalloc(224): ion: Unmapping buffer base:0x4414e000 size:1146880
08-16 15:43:00.571: D/memalloc(224): ion: Freeing buffer base:0x42a2c000 size:3768320 fd:34
08-16 15:43:00.571: D/memalloc(224): ion: Unmapping buffer base:0x42a2c000 size:3768320
08-16 15:43:00.691: E/MP-Decision(1408): DOWN Ld:34 Ns:1.100000 Ts:190 rq:0.000000 seq:196.000000
08-16 15:43:00.701: W/SignalStrength(533): getGsmLevel=5
08-16 15:43:00.701: W/SignalStrength(533): getLevel=5 (SignalStrength: 18 0 -120 -160 -120 -1 -1 99 2147483647 2147483647 2147483647 2147483647 gsm|lte 5)
08-16 15:43:00.701: W/SignalStrength(658): getGsmLevel=5
08-16 15:43:00.701: W/SignalStrength(658): getLevel=5 (SignalStrength: 18 0 -120 -160 -120 -1 -1 99 2147483647 2147483647 2147483647 2147483647 gsm|lte 5)
08-16 15:43:00.701: W/SignalStrength(658): getGsmLevel=5
08-16 15:43:00.701: W/SignalStrength(658): getLevel=5 (SignalStrength: 18 0 -120 -160 -120 -1 -1 99 2147483647 2147483647 2147483647 2147483647 gsm|lte 5)
08-16 15:43:00.701: W/SignalStrength(533): getDbm 1
08-16 15:43:00.701: W/SignalStrength(533): getGsmDbm=-77
08-16 15:43:00.701: W/SignalStrength(533): getDbm=-77
08-16 15:43:00.701: W/SignalStrength(533): getAsuLevel 1
08-16 15:43:00.701: W/SignalStrength(533): getGsmAsuLevel=18
08-16 15:43:00.701: W/SignalStrength(533): getAsuLevel=18
08-16 15:43:00.701: D/STATUSBAR-NetworkController(658): onSignalStrengthsChanged signalStrength=SignalStrength: 18 0 -120 -160 -120 -1 -1 99 2147483647 2147483647 2147483647 2147483647 gsm|lte 5 level=5
08-16 15:43:00.932: I/power(533): *** release_dvfs_lock : lockType : 1
08-16 15:43:00.932: D/PowerManagerService(533): releaseDVFSLockLocked : all DVFS_MIN_LIMIT are released
08-16 15:43:00.932: W/ActivityManager(533): mDVFSLock.release()
08-16 15:43:01.312: E/SurfaceTexture(224): [com.org.ui/com.org.ui.CreateContactActivity] dequeueBuffer: SurfaceTexture has been abandoned!
08-16 15:43:01.312: W/Adreno200-EGLSUB(27338): <SwapBuffers:763>: dequeue native buffer fail: No such device
08-16 15:43:01.312: E/SurfaceTexture(224): [com.org.ui/com.org.ui.CreateContactActivity] dequeueBuffer: SurfaceTexture has been abandoned!
08-16 15:43:01.312: W/Adreno200-EGLSUB(27338): <GetSurfaceSize:276>: dequeue native buffer failed: No such device.
08-16 15:43:01.312: E/SurfaceTexture(224): [com.org.ui/com.org.ui.CreateContactActivity] dequeueBuffer: SurfaceTexture has been abandoned!
08-16 15:43:01.312: W/Adreno200-EGLSUB(27338): <GetSurfaceSize:276>: dequeue native buffer failed: No such device.
08-16 15:43:01.312: E/Adreno200-EGL(27338): <eglSurfaceResize:4030>: EGL_BAD_ALLOC
08-16 15:43:01.312: W/HardwareRenderer(27338): EGL error: EGL_BAD_ALLOC
08-16 15:43:01.312: E/SurfaceTexture(224): [com.org.ui/com.org.ui.CreateContactActivity] queueBuffer: SurfaceTexture has been abandoned!
08-16 15:43:01.312: E/SurfaceTextureClient(27338): queueBuffer: error queuing buffer to SurfaceTexture, -19
08-16 15:43:01.312: D/memalloc(27338): ion: Unmapping buffer base:0x60690000 size:3768320
08-16 15:43:01.312: D/memalloc(27338): ion: Unmapping buffer base:0x60a28000 size:3768320
08-16 15:43:01.312: D/memalloc(27338): ion: Unmapping buffer base:0x5f66f000 size:3768320
08-16 15:43:01.312: W/HardwareRenderer(27338): Mountain View, we've had a problem here. Switching back to software rendering.
08-16 15:43:01.312: E/SurfaceTexture(224): [com.org.ui/com.org.ui.CreateContactActivity] connect: SurfaceTexture has been abandoned!
08-16 15:43:01.322: E/ViewRootImpl(27338): IllegalArgumentException locking surface
08-16 15:43:01.322: E/ViewRootImpl(27338): java.lang.IllegalArgumentException
08-16 15:43:01.322: E/ViewRootImpl(27338): at android.view.Surface.lockCanvasNative(Native Method)
08-16 15:43:01.322: E/ViewRootImpl(27338): at android.view.Surface.lockCanvas(Surface.java:76)
08-16 15:43:01.322: E/ViewRootImpl(27338): at android.view.ViewRootImpl.draw(ViewRootImpl.java:2157)
08-16 15:43:01.322: E/ViewRootImpl(27338): at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1846)
08-16 15:43:01.322: E/ViewRootImpl(27338): at android.view.ViewRootImpl.handleMessage(ViewRootImpl.java:2658)
08-16 15:43:01.322: E/ViewRootImpl(27338): at android.os.Handler.dispatchMessage(Handler.java:99)
08-16 15:43:01.322: E/ViewRootImpl(27338): at android.os.Looper.loop(Looper.java:137)
08-16 15:43:01.322: E/ViewRootImpl(27338): at android.app.ActivityThread.main(ActivityThread.java:4514)
08-16 15:43:01.322: E/ViewRootImpl(27338): at java.lang.reflect.Method.invokeNative(Native Method)
08-16 15:43:01.322: E/ViewRootImpl(27338): at java.lang.reflect.Method.invoke(Method.java:511)
08-16 15:43:01.322: E/ViewRootImpl(27338): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:980)
08-16 15:43:01.322: E/ViewRootImpl(27338): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:747)
08-16 15:43:01.322: E/ViewRootImpl(27338): at dalvik.system.NativeStart.main(Native Method)
My Activity is been killed by system "WINDOW DIED".???What is the reason behind IllegalArgumentException ..
17 - 08- 2012
Adding ANR Traces
----- pid 23522 at 2012-08-17 15:11:59 -----
Cmd line: com.org.ui
DALVIK THREADS:
(mutexes: tll=0 tsl=0 tscl=0 ghl=0)
"main" prio=5 tid=1 NATIVE
| group="main" sCount=1 dsCount=0 obj=0x40c3ccd0 self=0x18d7c30
| sysTid=23522 nice=0 sched=0/0 cgrp=default handle=1074070920
| schedstat=( 0 0 0 ) utm=5508 stm=1030 core=0
at android.os.MessageQueue.nativePollOnce(Native Method)
at android.os.MessageQueue.next(MessageQueue.java:118)
at android.os.Looper.loop(Looper.java:118)
at android.app.ActivityThread.main(ActivityThread.java:4514)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:980)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:747)
at dalvik.system.NativeStart.main(Native Method)
"pool-1-thread-1" prio=5 tid=18 WAIT
| group="main" sCount=1 dsCount=0 obj=0x428acb78 self=0x1f78210
| sysTid=27231 nice=0 sched=0/0 cgrp=default handle=32950048
| schedstat=( 0 0 0 ) utm=0 stm=0 core=0
at java.lang.Object.wait(Native Method)
- waiting on <0x428accc0> (a java.lang.VMThread) held by tid=18 (pool-1-thread-1)
at java.lang.Thread.parkFor(Thread.java:1231)
at sun.misc.Unsafe.park(Unsafe.java:323)
at java.util.concurrent.locks.LockSupport.park(LockSupport.java:157)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2022)
at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:413)
at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1009)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1069)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
at java.lang.Thread.run(Thread.java:856)
"Binder Thread #3" prio=5 tid=17 NATIVE
| group="main" sCount=1 dsCount=0 obj=0x422a2f08 self=0x1df2260
| sysTid=25366 nice=0 sched=0/0 cgrp=default handle=31652384
| schedstat=( 0 0 0 ) utm=1 stm=3 core=0
at dalvik.system.NativeStart.run(Native Method)
"AsyncTask #5" prio=5 tid=16 WAIT
| group="main" sCount=1 dsCount=0 obj=0x4229a048 self=0x1d22328
| sysTid=23628 nice=10 sched=0/0 cgrp=bg_non_interactive handle=30355128
| schedstat=( 0 0 0 ) utm=50 stm=18 core=0
at java.lang.Object.wait(Native Method)
- waiting on <0x4229a1a0> (a java.lang.VMThread) held by tid=16 (AsyncTask #5)
at java.lang.Thread.parkFor(Thread.java:1231)
at sun.misc.Unsafe.park(Unsafe.java:323)
at java.util.concurrent.locks.LockSupport.park(LockSupport.java:157)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2022)
at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:413)
at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1009)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1069)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
at java.lang.Thread.run(Thread.java:856)
"AsyncTask #4" prio=5 tid=12 WAIT
| group="main" sCount=1 dsCount=0 obj=0x4239ff38 self=0x1cf18e8
| sysTid=23620 nice=10 sched=0/0 cgrp=bg_non_interactive handle=30297720
| schedstat=( 0 0 0 ) utm=13 stm=6 core=0
at java.lang.Object.wait(Native Method)
- waiting on <0x423a0058> (a java.lang.VMThread) held by tid=12 (AsyncTask #4)
at java.lang.Thread.parkFor(Thread.java:1231)
at sun.misc.Unsafe.park(Unsafe.java:323)
at java.util.concurrent.locks.LockSupport.park(LockSupport.java:157)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2022)
at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:413)
at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1009)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1069)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
at java.lang.Thread.run(Thread.java:856)
"AsyncTask #3" prio=5 tid=15 WAIT
| group="main" sCount=1 dsCount=0 obj=0x42383350 self=0x1ce8e60
| sysTid=23619 nice=10 sched=0/0 cgrp=bg_non_interactive handle=30362952
| schedstat=( 0 0 0 ) utm=12 stm=5 core=0
at java.lang.Object.wait(Native Method)
- waiting on <0x42383470> (a java.lang.VMThread) held by tid=15 (AsyncTask #3)
at java.lang.Thread.parkFor(Thread.java:1231)
at sun.misc.Unsafe.park(Unsafe.java:323)
at java.util.concurrent.locks.LockSupport.park(LockSupport.java:157)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2022)
at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:413)
at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1009)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1069)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
at java.lang.Thread.run(Thread.java:856)
"AsyncTask #2" prio=5 tid=14 WAIT
| group="main" sCount=1 dsCount=0 obj=0x419fc028 self=0x1c75928
| sysTid=23606 nice=10 sched=0/0 cgrp=bg_non_interactive handle=27987104
| schedstat=( 0 0 0 ) utm=13 stm=6 core=0
at java.lang.Object.wait(Native Method)
- waiting on <0x419fc148> (a java.lang.VMThread) held by tid=14 (AsyncTask #2)
at java.lang.Thread.parkFor(Thread.java:1231)
at sun.misc.Unsafe.park(Unsafe.java:323)
at java.util.concurrent.locks.LockSupport.park(LockSupport.java:157)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2022)
at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:413)
at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1009)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1069)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
at java.lang.Thread.run(Thread.java:856)
"AsyncTask #1" prio=5 tid=13 WAIT
| group="main" sCount=1 dsCount=0 obj=0x42333a08 self=0x1c8c400
| sysTid=23562 nice=10 sched=0/0 cgrp=bg_non_interactive handle=29698528
| schedstat=( 0 0 0 ) utm=10 stm=5 core=0
at java.lang.Object.wait(Native Method)
- waiting on <0x42333c80> (a java.lang.VMThread) held by tid=13 (AsyncTask #1)
at java.lang.Thread.parkFor(Thread.java:1231)
at sun.misc.Unsafe.park(Unsafe.java:323)
at java.util.concurrent.locks.LockSupport.park(LockSupport.java:157)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2022)
at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:413)
at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1009)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1069)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
at java.lang.Thread.run(Thread.java:856)
"Timer-0" prio=5 tid=11 TIMED_WAIT
| group="main" sCount=1 dsCount=0 obj=0x419df490 self=0x1abe1f0
| sysTid=23538 nice=0 sched=0/0 cgrp=default handle=27981992
| schedstat=( 0 0 0 ) utm=0 stm=0 core=0
at java.lang.Object.wait(Native Method)
- waiting on <0x419df490> (a java.util.Timer$TimerImpl)
at java.lang.Object.wait(Object.java:401)
at java.util.Timer$TimerImpl.run(Timer.java:238)
"Binder Thread #2" prio=5 tid=10 NATIVE
| group="main" sCount=1 dsCount=0 obj=0x419b52c8 self=0x1a9bf00
| sysTid=23534 nice=0 sched=0/0 cgrp=default handle=28053104
| schedstat=( 0 0 0 ) utm=6 stm=3 core=0
at dalvik.system.NativeStart.run(Native Method)
"Binder Thread #1" prio=5 tid=9 NATIVE
| group="main" sCount=1 dsCount=0 obj=0x419b51c8 self=0x1aaff90
| sysTid=23533 nice=0 sched=0/0 cgrp=default handle=27190280
| schedstat=( 0 0 0 ) utm=4 stm=5 core=0
at dalvik.system.NativeStart.run(Native Method)
"FinalizerWatchdogDaemon" daemon prio=5 tid=8 WAIT
| group="main" sCount=1 dsCount=0 obj=0x419b17a8 self=0x1a7ee40
| sysTid=23531 nice=0 sched=0/0 cgrp=default handle=27983144
| schedstat=( 0 0 0 ) utm=0 stm=0 core=0
at java.lang.Object.wait(Native Method)
- waiting on <0x40c444f8> (a java.lang.Daemons$FinalizerWatchdogDaemon)
at java.lang.Object.wait(Object.java:364)
at java.lang.Daemons$FinalizerWatchdogDaemon.run(Daemons.java:213)
at java.lang.Thread.run(Thread.java:856)
"FinalizerDaemon" daemon prio=5 tid=7 WAIT
| group="main" sCount=1 dsCount=0 obj=0x419b1650 self=0x1abba90
| sysTid=23530 nice=0 sched=0/0 cgrp=default handle=27190632
| schedstat=( 0 0 0 ) utm=22 stm=5 core=0
at java.lang.Object.wait(Native Method)
- waiting on <0x40c325d0> (a java.lang.ref.ReferenceQueue)
at java.lang.Object.wait(Object.java:401)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:102)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:73)
at java.lang.Daemons$FinalizerDaemon.run(Daemons.java:168)
at java.lang.Thread.run(Thread.java:856)
"ReferenceQueueDaemon" daemon prio=5 tid=6 WAIT
| group="main" sCount=1 dsCount=0 obj=0x419b14e8 self=0x1aa9f10
| sysTid=23529 nice=0 sched=0/0 cgrp=default handle=27190568
| schedstat=( 0 0 0 ) utm=5 stm=0 core=1
at java.lang.Object.wait(Native Method)
- waiting on <0x40c324f8>
at java.lang.Object.wait(Object.java:364)
at java.lang.Daemons$ReferenceQueueDaemon.run(Daemons.java:128)
at java.lang.Thread.run(Thread.java:856)
"Compiler" daemon prio=5 tid=5 VMWAIT
| group="system" sCount=1 dsCount=0 obj=0x419b13f8 self=0x1aadcc8
| sysTid=23528 nice=0 sched=0/0 cgrp=default handle=27983024
| schedstat=( 0 0 0 ) utm=73 stm=49 core=0
at dalvik.system.NativeStart.run(Native Method)
"JDWP" daemon prio=5 tid=4 VMWAIT
| group="system" sCount=1 dsCount=0 obj=0x419b12b0 self=0x1a9dda0
| sysTid=23527 nice=0 sched=0/0 cgrp=default handle=27766168
| schedstat=( 0 0 0 ) utm=0 stm=0 core=1
at dalvik.system.NativeStart.run(Native Method)
"Signal Catcher" daemon prio=5 tid=3 RUNNABLE
| group="system" sCount=0 dsCount=0 obj=0x419b11b8 self=0x19c7f78
| sysTid=23526 nice=0 sched=0/0 cgrp=default handle=27706080
| schedstat=( 0 0 0 ) utm=0 stm=0 core=0
at dalvik.system.NativeStart.run(Native Method)
"GC" daemon prio=5 tid=2 VMWAIT
| group="system" sCount=1 dsCount=0 obj=0x419b10d8 self=0x1982b48
| sysTid=23524 nice=0 sched=0/0 cgrp=default handle=27705984
| schedstat=( 0 0 0 ) utm=59 stm=6 core=0
at dalvik.system.NativeStart.run(Native Method)
----- end 23522 -----
What might be the reason for ActivityThread to get Blocked??
Thanks
NitZ
The issue was with the Native Code(File Pointer Issue) in my project!!! But system is not able to throw the same error to ADB but instead it was throwing the above error!! pretty Strange though!!

Memory issue in application in android

I am getting a large or big value from the webservice. I am using sax parser to parse the value and add it to an arraylist. From the arraylist I am adding to tablelayout with scrollview at the I am getting an out of memory error in android. Can anybody tell me what I need to do to solve the issue? Is there any way to increase the heap size or free heap memory? Can anybody tell me which parser is the best for parsing large xml files?
I have nearly 7000 to 10000 record like article details title
Any help would be appreciated
my stack trace :
II/dalvikvm-heap( 992): Clamp target GC heap from 16.810MB to 16.000MB
D/dalvikvm( 992): GC freed 4148 objects / 272832 bytes in 386ms
I/dalvikvm-heap( 992): Forcing collection of SoftReferences for 8704-byte alloc
ation
I/dalvikvm-heap( 992): Clamp target GC heap from 16.810MB to 16.000MB
D/dalvikvm( 992): GC freed 0 objects / 0 bytes in 353ms
E/dalvikvm-heap( 992): Out of memory on a 8704-byte allocation.
I/dalvikvm( 992): "main" prio=5 tid=3 RUNNABLE
I/dalvikvm( 992): | group="main" sCount=0 dsCount=0 s=N obj=0x4001b268 self=0
xbd00
I/dalvikvm( 992): | sysTid=992 nice=0 sched=0/0 cgrp=default handle=-13440013
84
I/dalvikvm( 992): at android.view.ViewGroup.addInArray(ViewGroup.java:~1918)
I/dalvikvm( 992): at android.view.ViewGroup.addViewInner(ViewGroup.java:1879)
I/dalvikvm( 992): at android.view.ViewGroup.addView(ViewGroup.java:1756)
I/dalvikvm( 992): at android.widget.TableLayout.addView(TableLayout.java:418)
I/dalvikvm( 992): at android.view.ViewGroup.addView(ViewGroup.java:1713)
I/dalvikvm( 992): at android.widget.TableLayout.addView(TableLayout.java:400)
I/dalvikvm( 992): at android.view.ViewGroup.addView(ViewGroup.java:1693)
I/dalvikvm( 992): at android.widget.TableLayout.addView(TableLayout.java:391)
I/dalvikvm( 992): at com.inquest.HomeSearchArticle$HomeSearchTask.onPostExecu
te(HomeSearchArticle.java:199)
I/dalvikvm( 992): at com.inquest.HomeSearchArticle$HomeSearchTask.onPostExecu
te(HomeSearchArticle.java:1)
I/dalvikvm( 992): at android.os.AsyncTask.finish(AsyncTask.java:417)
I/dalvikvm( 992): at android.os.AsyncTask.access$300(AsyncTask.java:127)
I/dalvikvm( 992): at android.os.AsyncTask$InternalHandler.handleMessage(Async
Task.java:429)
I/dalvikvm( 992): at android.os.Handler.dispatchMessage(Handler.java:99)
I/dalvikvm( 992): at android.os.Looper.loop(Looper.java:123)
I/dalvikvm( 992): at android.app.ActivityThread.main(ActivityThread.java:4363
)
I/dalvikvm( 992): at java.lang.reflect.Method.invokeNative(Native Method)
I/dalvikvm( 992): at java.lang.reflect.Method.invoke(Method.java:521)
I/dalvikvm( 992): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.r
un(ZygoteInit.java:860)
I/dalvikvm( 992): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:
618)
I/dalvikvm( 992): at dalvik.system.NativeStart.main(Native Method)
I/dalvikvm( 992):
I/System.out( 992): ######out of memory error is###java.lang.OutOfMemoryError
I/dalvikvm-heap( 992): Clamp target GC heap from 17.270MB to 16.000MB
D/dalvikvm( 992): GC freed 8418 objects / 744936 bytes in 468ms
I/dalvikvm-heap( 992): Clamp target GC heap from 17.471MB to 16.000MB
D/dalvikvm( 992): GC freed 8605 objects / 481136 bytes in 428ms
I/dalvikvm-heap( 992): Clamp target GC heap from 17.583MB to 16.000MB
D/dalvikvm( 992): GC freed 5050 objects / 297248 bytes in 413ms
I/dalvikvm-heap( 992): Clamp target GC heap from 17.595MB to 16.000MB
D/dalvikvm( 992): GC freed 1927 objects / 77160 bytes in 515ms
I/dalvikvm-heap( 992): Forcing collection of SoftReferences for 1028-byte alloc
ation
I/dalvikvm-heap( 992): Clamp target GC heap from 17.594MB to 16.000MB
D/dalvikvm( 992): GC freed 79 objects / 1264 bytes in 495ms
E/dalvikvm-heap( 992): Out of memory on a 1028-byte allocation.
I/dalvikvm( 992): "main" prio=5 tid=3 RUNNABLE
I/dalvikvm( 992): | group="main" sCount=0 dsCount=0 s=N obj=0x4001b268 self=0
xbd00
I/dalvikvm( 992): | sysTid=992 nice=0 sched=0/0 cgrp=default handle=-13440013
84
I/dalvikvm( 992): at android.text.StaticLayout.generate(StaticLayout.java:~13
8)
I/dalvikvm( 992): at android.text.StaticLayout.<init>(StaticLayout.java:97)
I/dalvikvm( 992): at android.text.StaticLayout.<init>(StaticLayout.java:54)
I/dalvikvm( 992): at android.text.StaticLayout.<init>(StaticLayout.java:45)
I/dalvikvm( 992): at android.widget.TextView.makeNewLayout(TextView.java:4914
)
I/dalvikvm( 992): at android.widget.TextView.onMeasure(TextView.java:5176)
I/dalvikvm( 992): at android.view.View.measure(View.java:7964)
I/dalvikvm( 992): at android.widget.TableRow.getColumnsWidths(TableRow.java:3
08)
I/dalvikvm( 992): at android.widget.TableLayout.findLargestCells(TableLayout.
java:497)
I/dalvikvm( 992): at android.widget.TableLayout.measureVertical(TableLayout.j
ava:462)
I/dalvikvm( 992): at android.widget.TableLayout.onMeasure(TableLayout.java:42
8)
I/dalvikvm( 992): at android.view.View.measure(View.java:7964)
I/dalvikvm( 992): at android.widget.ScrollView.measureChildWithMargins(Scroll
View.java:893)
I/dalvikvm( 992): at android.widget.FrameLayout.onMeasure(FrameLayout.java:24
5)
I/dalvikvm( 992): at android.widget.ScrollView.onMeasure(ScrollView.java:276)
I/dalvikvm( 992): at android.view.View.measure(View.java:7964)
I/dalvikvm( 992): at android.widget.RelativeLayout.measureChildHorizontal(Rel
ativeLayout.java:569)
I/dalvikvm( 992): at android.widget.RelativeLayout.onMeasure(RelativeLayout.j
ava:361)
I/dalvikvm( 992): at android.view.View.measure(View.java:7964)
I/dalvikvm( 992): at android.view.ViewGroup.measureChildWithMargins(ViewGroup
.java:3023)
I/dalvikvm( 992): at android.widget.FrameLayout.onMeasure(FrameLayout.java:24
5)
I/dalvikvm( 992): at android.view.View.measure(View.java:7964)
I/dalvikvm( 992): at android.view.ViewGroup.measureChildWithMargins(ViewGroup
.java:3023)
I/dalvikvm( 992): at android.widget.FrameLayout.onMeasure(FrameLayout.java:24
5)
I/dalvikvm( 992): at android.view.View.measure(View.java:7964)
I/dalvikvm( 992): at android.view.ViewGroup.measureChildWithMargins(ViewGroup
.java:3023)
I/dalvikvm( 992): at android.widget.FrameLayout.onMeasure(FrameLayout.java:24
5)
I/dalvikvm( 992): at android.view.View.measure(View.java:7964)
I/dalvikvm( 992): at android.view.ViewGroup.measureChildWithMargins(ViewGroup
.java:3023)
I/dalvikvm( 992): at android.widget.FrameLayout.onMeasure(FrameLayout.java:24
5)
I/dalvikvm( 992): at android.view.View.measure(View.java:7964)
I/dalvikvm( 992): at android.view.ViewGroup.measureChildWithMargins(ViewGroup
.java:3023)
I/dalvikvm( 992): at android.widget.FrameLayout.onMeasure(FrameLayout.java:24
5)
I/dalvikvm( 992): at android.view.View.measure(View.java:7964)
I/dalvikvm( 992): at android.widget.RelativeLayout.measureChildHorizontal(Rel
ativeLayout.java:569)
I/dalvikvm( 992): at android.widget.RelativeLayout.onMeasure(RelativeLayout.j
ava:361)
I/dalvikvm( 992): at android.view.View.measure(View.java:7964)
I/dalvikvm( 992): at android.view.ViewGroup.measureChildWithMargins(ViewGroup
.java:3023)
I/dalvikvm( 992): at android.widget.FrameLayout.onMeasure(FrameLayout.java:24
5)
I/dalvikvm( 992): at android.view.View.measure(View.java:7964)
I/dalvikvm( 992): at android.view.ViewGroup.measureChildWithMargins(ViewGroup
.java:3023)
I/dalvikvm( 992): at android.widget.LinearLayout.measureChildBeforeLayout(Lin
earLayout.java:888)
I/dalvikvm( 992): at android.widget.LinearLayout.measureHorizontal(LinearLayo
ut.java:619)
I/dalvikvm( 992): at android.widget.LinearLayout.onMeasure(LinearLayout.java:
280)
I/dalvikvm( 992): at android.view.View.measure(View.java:7964)
I/dalvikvm( 992): at android.view.ViewGroup.measureChildWithMargins(ViewGroup
.java:3023)
I/dalvikvm( 992): at android.widget.FrameLayout.onMeasure(FrameLayout.java:24
5)
I/dalvikvm( 992): at android.view.View.measure(View.java:7964)
I/dalvikvm( 992): at android.view.ViewGroup.measureChildWithMargins(ViewGroup
.java:3023)
I/dalvikvm( 992): at android.widget.FrameLayout.onMeasure(FrameLayout.java:24
5)
I/dalvikvm( 992): at android.view.View.measure(View.java:7964)
I/dalvikvm( 992): at android.view.ViewRoot.performTraversals(ViewRoot.java:76
3)
I/dalvikvm( 992): at android.view.ViewRoot.handleMessage(ViewRoot.java:1633)
I/dalvikvm( 992): at android.os.Handler.dispatchMessage(Handler.java:99)
I/dalvikvm( 992): at android.os.Looper.loop(Looper.java:123)
I/dalvikvm( 992): at android.app.ActivityThread.main(ActivityThread.java:4363
)
I/dalvikvm( 992): at java.lang.reflect.Method.invokeNative(Native Method)
I/dalvikvm( 992): at java.lang.reflect.Method.invoke(Method.java:521)
I/dalvikvm( 992): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.r
un(ZygoteInit.java:860)
I/dalvikvm( 992): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:
618)
I/dalvikvm( 992): at dalvik.system.NativeStart.main(Native Method)
I/dalvikvm( 992):
D/AndroidRuntime( 992): Shutting down VM
W/dalvikvm( 992): threadid=3: thread exiting with uncaught exception (group=0x4
001b188)
E/AndroidRuntime( 992): Uncaught handler: thread main exiting due to uncaught e
xception
I/dalvikvm-heap( 992): Clamp target GC heap from 17.609MB to 16.000MB
D/dalvikvm( 992): GC freed 289 objects / 10728 bytes in 407ms
I/dalvikvm-heap( 992): Forcing collection of SoftReferences for 938-byte alloca
tion
I/dalvikvm-heap( 992): Clamp target GC heap from 17.609MB to 16.000MB
D/dalvikvm( 992): GC freed 0 objects / 0 bytes in 402ms
E/dalvikvm-heap( 992): Out of memory on a 938-byte allocation.
I/dalvikvm( 992): "main" prio=5 tid=3 RUNNABLE
I/dalvikvm( 992): | group="main" sCount=0 dsCount=0 s=N obj=0x4001b268 self=0
xbd00
I/dalvikvm( 992): | sysTid=992 nice=0 sched=0/0 cgrp=default handle=-13440013
84
I/dalvikvm( 992): at java.lang.AbstractStringBuilder.enlargeBuffer(AbstractSt
ringBuilder.java:~97)
I/dalvikvm( 992): at java.lang.AbstractStringBuilder.append0(AbstractStringBu
ilder.java:131)
I/dalvikvm( 992): at java.lang.StringBuffer.append(StringBuffer.java:273)
I/dalvikvm( 992): at java.io.StringWriter.write(StringWriter.java:138)
I/dalvikvm( 992): at java.io.PrintWriter.doWrite(PrintWriter.java:711)
I/dalvikvm( 992): at java.io.PrintWriter.write(PrintWriter.java:686)
I/dalvikvm( 992): at java.io.PrintWriter.write(PrintWriter.java:661)
I/dalvikvm( 992): at java.io.PrintWriter.write(PrintWriter.java:729)
I/dalvikvm( 992): at java.io.PrintWriter.print(PrintWriter.java:492)
I/dalvikvm( 992): at java.io.PrintWriter.println(PrintWriter.java:623)
I/dalvikvm( 992): at java.lang.Throwable.printStackTrace(Throwable.java:316)
I/dalvikvm( 992): at android.util.Log.getStackTraceString(Log.java:234)
I/dalvikvm( 992): at com.android.internal.os.RuntimeInit.crash(RuntimeInit.ja
va:315)
I/dalvikvm( 992): at com.android.internal.os.RuntimeInit$UncaughtHandler.unca
ughtException(RuntimeInit.java:76)
I/dalvikvm( 992): at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java
:887)
I/dalvikvm( 992): at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java
:884)
I/dalvikvm( 992): at dalvik.system.NativeStart.main(Native Method)
I/dalvikvm( 992):
I/dalvikvm-heap( 992): Clamp target GC heap from 17.614MB to 16.000MB
D/dalvikvm( 992): GC freed 64 objects / 5424 bytes in 447ms
I/dalvikvm-heap( 992): Forcing collection of SoftReferences for 754-byte alloca
tion
I/dalvikvm-heap( 992): Clamp target GC heap from 17.614MB to 16.000MB
D/dalvikvm( 992): GC freed 0 objects / 0 bytes in 440ms
E/dalvikvm-heap( 992): Out of memory on a 754-byte allocation.
I/dalvikvm( 992): "main" prio=5 tid=3 RUNNABLE
I/dalvikvm( 992): | group="main" sCount=0 dsCount=0 s=N obj=0x4001b268 self=0
xbd00
I/dalvikvm( 992): | sysTid=992 nice=0 sched=0/0 cgrp=default handle=-13440013
84
I/dalvikvm( 992): at java.lang.AbstractStringBuilder.enlargeBuffer(AbstractSt
ringBuilder.java:~97)
I/dalvikvm( 992): at java.lang.AbstractStringBuilder.append0(AbstractStringBu
ilder.java:131)
I/dalvikvm( 992): at java.lang.StringBuffer.append(StringBuffer.java:273)
I/dalvikvm( 992): at java.io.StringWriter.write(StringWriter.java:138)
I/dalvikvm( 992): at java.io.PrintWriter.doWrite(PrintWriter.java:711)
I/dalvikvm( 992): at java.io.PrintWriter.write(PrintWriter.java:686)
I/dalvikvm( 992): at java.io.PrintWriter.write(PrintWriter.java:661)
I/dalvikvm( 992): at java.io.PrintWriter.write(PrintWriter.java:729)
I/dalvikvm( 992): at java.io.PrintWriter.print(PrintWriter.java:492)
I/dalvikvm( 992): at java.io.PrintWriter.println(PrintWriter.java:623)
I/dalvikvm( 992): at java.lang.Throwable.printStackTrace(Throwable.java:316)
I/dalvikvm( 992): at android.util.Log.getStackTraceString(Log.java:234)
I/dalvikvm( 992): at com.android.internal.os.RuntimeInit.crash(RuntimeInit.ja
va:323)
I/dalvikvm( 992): at com.android.internal.os.RuntimeInit$UncaughtHandler.unca
ughtException(RuntimeInit.java:76)
I/dalvikvm( 992): at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java
:887)
I/dalvikvm( 992): at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java
:884)
I/dalvikvm( 992): at dalvik.system.NativeStart.main(Native Method)
I/dalvikvm( 992):
I/Process ( 60): Sending signal. PID: 992 SIG: 3
I/dalvikvm( 992): threadid=7: reacting to signal 3
I/dalvikvm( 992): Wrote stack trace to '/data/anr/traces.txt'
D/dalvikvm( 60): GC freed 13970 objects / 689880 bytes in 201ms
Thanks
I'm facing a similar problem, although for a different application. Please see my post:
Problem with downloading multiple files using AsyncTask

Categories

Resources