How to solve this kind of Android ANR(system_server first process)? - android

I got a ANR report from user:
here is the traces.txt:
----- pid 2398 at 2015-11-09 20:34:06 -----
Cmd line: system_server
JNI: CheckJNI is off; workarounds are off; pins=5; globals=1465 (plus 72 weak)
DALVIK THREADS:
(mutexes: tll=0 tsl=0 tscl=0 ghl=0)
"main" prio=5 tid=1 NATIVE
| group="main" sCount=1 dsCount=0 obj=0x41ba4578 self=0x41b876e8
| sysTid=2398 nice=0 sched=0/0 cgrp=apps handle=1075064828
| state=S schedstat=( 18535410714 5323845476 41281 ) utm=1502 stm=351 core=3
#00 pc 0001b53c /system/lib/libc.so (__ioctl+8)
#01 pc 0002bccf /system/lib/libc.so (ioctl+14)
#02 pc 0001b929 /system/lib/libbinder.so (android::IPCThreadState::talkWithDriver(bool)+140)
#03 pc 0001c0c7 /system/lib/libbinder.so (android::IPCThreadState::joinThreadPool(bool)+154)
#04 pc 00001471 /system/lib/libsystem_server.so (system_init+408)
#05 pc 0001e44c /system/lib/libdvm.so (dvmPlatformInvoke+112)
#06 pc 0004e91b /system/lib/libdvm.so (dvmCallJNIMethod(unsigned int const*, JValue*, Method const*, Thread*)+398)
#07 pc 00027860 /system/lib/libdvm.so
#08 pc 0002be00 /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+184)
#09 pc 00060d2b /system/lib/libdvm.so (dvmInvokeMethod(Object*, Method const*, ArrayObject*, ArrayObject*, ClassObject*, bool)+350)
#10 pc 000689ab /system/lib/libdvm.so
#11 pc 00027860 /system/lib/libdvm.so
#12 pc 0002be00 /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+184)
#13 pc 00060a6d /system/lib/libdvm.so (dvmCallMethodV(Thread*, Method const*, Object*, bool, JValue*, std::__va_list)+292)
#14 pc 0004a4fb /system/lib/libdvm.so
#15 pc 00054afb /system/lib/libandroid_runtime.so
#16 pc 00056023 /system/lib/libandroid_runtime.so (android::AndroidRuntime::start(char const*, char const*)+378)
#17 pc 0000105b /system/bin/app_process
#18 pc 0000dc4f /system/lib/libc.so (__libc_init+50)
#19 pc 00000d7c /system/bin/app_process
at com.android.server.SystemServer.init1(Native Method)
at com.android.server.SystemServer.main(SystemServer.java:2012)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:525)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1209)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1025)
at dalvik.system.NativeStart.main(Native Method)
traces.txt below are some other pids:
Cmd line: com.android.systemui
Cmd line: com.baidu.map.location
Cmd line: com.android.phone
Cmd line: com.sec.android.sCloudRelayData
Cmd line: com.sec.spp.push
Cmd line: com.tgrape.android.radar
Cmd line: android.process.acore
Cmd line: com.samsung.android.providers.context
Cmd line: com.sec.android.provider.logsprovider
Cmd line: com.sec.msc.nts.android.proxy
Cmd line: com.android.nfc
Cmd line: com.tencent.android.qqdownloader:connect
Cmd line: ***.myapplication.here***
----- pid 8404 at 2015-11-09 20:34:06 -----
Cmd line: com.tencent.tribe
JNI: CheckJNI is off; workarounds are off; pins=0; globals=239 (plus 3 weak)
DALVIK THREADS:
(mutexes: tll=0 tsl=0 tscl=0 ghl=0)
"main" prio=5 tid=1 NATIVE
| group="main" sCount=1 dsCount=0 obj=0x41ba4578 self=0x41b876e8
| sysTid=8404 nice=0 sched=0/0 cgrp=apps handle=1075064828
| state=t schedstat=( 337010259402 60385639303 666839 ) utm=27266 stm=6434 core=3
(native backtrace unavailable)
at com.google.android.gles_jni.EGLImpl.eglMakeCurrent(Native Method)
at android.view.HardwareRenderer$GlRenderer.checkCurrent(HardwareRenderer.java:1590)
at android.view.HardwareRenderer$GlRenderer.draw(HardwareRenderer.java:1348)
at android.view.ViewRootImpl.draw(ViewRootImpl.java:2672)
at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:2538)
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2154)
at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1249)
at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6364)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:791)
at android.view.Choreographer.doCallbacks(Choreographer.java:591)
at android.view.Choreographer.doFrame(Choreographer.java:561)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:777)
at android.os.Handler.handleCallback(Handler.java:730)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:176)
at android.app.ActivityThread.main(ActivityThread.java:5419)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:525)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1209)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1025)
at dalvik.system.NativeStart.main(Native Method)
I have no idea how to solve this ANR, and find out the reason.
Since my application appear very far away from the first line of traces.txt, will that means that it is very rare that my application caused the ANR?
I don't know the processes dump order in traces.txt means, not find the relative documents.

Related

Getting an ANR and not sure what to do

I noticed my app will get an ANR and will literally hang there until I force the app to close. I'm not doing anything really on the main thread. I am using a 3rd party Video player SDK and I believe it might be something to do with that. I get this in the logcat:
Skipped 46 frames! The application may be doing too much work on its main thread.
I was also able to get the traces.txt from the phone when it goes into the ANR state. I'm not sure what I am supposed to be looking for but this is the main thread in the traces.txt. Does anyone see anything wrong in this?
"main" prio=5 tid=1 NATIVE
| group="main" sCount=1 dsCount=0 obj=0x4162ee40 self=0x4154f828
| sysTid=974 nice=-2 sched=0/0 cgrp=apps handle=1073942868
| state=S schedstat=( 0 0 0 ) utm=14100 stm=9716 core=0
#00 pc 00021814 /system/lib/libc.so (epoll_wait+12)
#01 pc 0001064f /system/lib/libutils.so (android::Looper::pollInner(int)+98)
#02 pc 00010879 /system/lib/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+92)
#03 pc 0006aa9d /system/lib/libandroid_runtime.so (android::NativeMessageQueue::pollOnce(_JNIEnv*, int)+22)
#04 pc 0002034c /system/lib/libdvm.so (dvmPlatformInvoke+112)
#05 pc 00050e6b /system/lib/libdvm.so (dvmCallJNIMethod(unsigned int const*, JValue*, Method const*, Thread*)+398)
#06 pc 000297e0 /system/lib/libdvm.so
#07 pc 00030ae8 /system/lib/libdvm.so (dvmMterpStd(Thread*)+76)
#08 pc 0002e180 /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+184)
#09 pc 00063751 /system/lib/libdvm.so (dvmInvokeMethod(Object*, Method const*, ArrayObject*, ArrayObject*, ClassObject*, bool)+392)
#10 pc 0006b713 /system/lib/libdvm.so
#11 pc 000297e0 /system/lib/libdvm.so
#12 pc 00030ae8 /system/lib/libdvm.so (dvmMterpStd(Thread*)+76)
#13 pc 0002e180 /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+184)
#14 pc 0006346d /system/lib/libdvm.so (dvmCallMethodV(Thread*, Method const*, Object*, bool, JValue*, std::__va_list)+336)
#15 pc 0004ca37 /system/lib/libdvm.so
#16 pc 0004d0f7 /system/lib/libandroid_runtime.so
#17 pc 0004de1b /system/lib/libandroid_runtime.so (android::AndroidRuntime::start(char const*, char const*)+354)
#18 pc 0000105b /system/bin/app_process
#19 pc 0000e41b /system/lib/libc.so (__libc_init+50)
#20 pc 00000d7c /system/bin/app_process
at android.os.MessageQueue.nativePollOnce(Native Method)
at android.os.MessageQueue.next(MessageQueue.java:138)
at android.os.Looper.loop(Looper.java:123)
at com.android.server.ServerThread.initAndLoop(SystemServer.java:1247)
at com.android.server.SystemServer.main(SystemServer.java:1412)
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:785)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
at dalvik.system.NativeStart.main(Native Method)

query all contacts in ContentResolver resolved in ANR

I encountered in an annoying bug, that happens only on Nexus 4. Everytime, when I'm going through all the contacts of the device I'm getting ANR. Obviously, first thing that I did is to go through the traces.txt in order to find if there were deadlock or starvation and there weren't.
Here is how I'm using the ContentResolver:
Cursor c = cr.query(ContactsContract.Data.CONTENT_URI, PROJECTION_NAMES, WHERE_NAMES, new String[] { contact.getPhoneBookId() }, null);
Here is the top 5 threads that were registered:
JNI: CheckJNI is off; workarounds are off; pins=0; globals=480
DALVIK THREADS:
(mutexes: tll=0 tsl=0 tscl=0 ghl=0)
"main" prio=5 tid=1 NATIVE
| group="main" sCount=1 dsCount=0 obj=0x415f0ca8 self=0x4152a408
| sysTid=25870 nice=0 sched=0/0 cgrp=apps handle=1074544980
| state=S schedstat=( 0 0 0 ) utm=1610 stm=187 core=1
#00 pc 00020588 /system/lib/libc.so (__ioctl+8)
#01 pc 0002cb37 /system/lib/libc.so (ioctl+14)
#02 pc 0001d3ed /system/lib/libbinder.so (android::IPCThreadState::talkWithDriver(bool)+140)
#03 pc 0001d8d7 /system/lib/libbinder.so (android::IPCThreadState::waitForResponse(android::Parcel*, int*)+42)
#04 pc 0001dadf /system/lib/libbinder.so (android::IPCThreadState::transact(int, unsigned int, android::Parcel const&, android::Parcel*, unsigned int)+118)
#05 pc 00019791 /system/lib/libbinder.so (android::BpBinder::transact(unsigned int, android::Parcel const&, android::Parcel*, unsigned int)+30)
#06 pc 00071121 /system/lib/libandroid_runtime.so
#07 pc 0001dbcc /system/lib/libdvm.so (dvmPlatformInvoke+112)
#08 pc 0004e123 /system/lib/libdvm.so (dvmCallJNIMethod(unsigned int const*, JValue*, Method const*, Thread*)+398)
#09 pc 00026fe0 /system/lib/libdvm.so
#10 pc 0002dfa0 /system/lib/libdvm.so (dvmMterpStd(Thread*)+76)
#11 pc 0002b638 /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+184)
#12 pc 00060861 /system/lib/libdvm.so (dvmInvokeMethod(Object*, Method const*, ArrayObject*, ArrayObject*, ClassObject*, bool)+392)
#13 pc 000687c3 /system/lib/libdvm.so
#14 pc 00026fe0 /system/lib/libdvm.so
#15 pc 0002dfa0 /system/lib/libdvm.so (dvmMterpStd(Thread*)+76)
#16 pc 0002b638 /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+184)
#17 pc 0006057d /system/lib/libdvm.so (dvmCallMethodV(Thread*, Method const*, Object*, bool, JValue*, std::__va_list)+336)
#18 pc 00049d0b /system/lib/libdvm.so
#19 pc 0004d2b3 /system/lib/libandroid_runtime.so
#20 pc 0004dfd7 /system/lib/libandroid_runtime.so (android::AndroidRuntime::start(char const*, char const*)+354)
#21 pc 0000105b /system/bin/app_process
#22 pc 0000e34b /system/lib/libc.so (__libc_init+50)
#23 pc 00000d7c /system/bin/app_process
at android.os.BinderProxy.transact(Native Method)
at android.content.ContentProviderProxy.query(ContentProviderNative.java:411)
at android.content.ContentResolver.query(ContentResolver.java:461)
at android.content.ContentResolver.query(ContentResolver.java:404)
at com.myapp.contacts.PhoneBookUtils.populateNames(PhoneBookUtils.java:346)
at com.myapp.contacts.PhoneBookUtils.getPhoneBookContact(PhoneBookUtils.java:217)
at com.myapp.contacts.PhoneBookUtils.populateLists(PhoneBookUtils.java:184)
at com.myapp.contacts.PhoneBookUtils.getPhoneBookContacts(PhoneBookUtils.java:150)
at com.myapp.contacts.PhoneBookUtils.merge(PhoneBookUtils.java:510)
at com.myapp.contacts.ContactProviderChangedService$ContactContentObserver.onChange(ContactProviderChangedService.java:80)
at android.database.ContentObserver.onChange(ContentObserver.java:129)
at android.database.ContentObserver$NotificationRunnable.run(ContentObserver.java:180)
at android.os.Handler.handleCallback(Handler.java:733)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5001)
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:785)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
at dalvik.system.NativeStart.main(Native Method)
"pool-20-thread-3" prio=5 tid=52 WAIT
| group="main" sCount=1 dsCount=0 obj=0x421d8f58 self=0x78d52b78
| sysTid=26221 nice=0 sched=0/0 cgrp=apps handle=2001638840
| state=S schedstat=( 0 0 0 ) utm=0 stm=0 core=1
at java.lang.Object.wait(Native Method)
- waiting on <0x4238e2b0> (a java.lang.VMThread) held by tid=52 (pool-20-thread-3)
at java.lang.Thread.parkFor(Thread.java:1205)
at sun.misc.Unsafe.park(Unsafe.java:325)
at java.util.concurrent.locks.LockSupport.park(LockSupport.java:157)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2017)
at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:410)
at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1035)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1097)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:841)
"pool-20-thread-2" prio=5 tid=49 WAIT
| group="main" sCount=1 dsCount=0 obj=0x42510560 self=0x78d24930
| sysTid=26184 nice=0 sched=0/0 cgrp=apps handle=1991618032
| state=S schedstat=( 0 0 0 ) utm=0 stm=0 core=1
at java.lang.Object.wait(Native Method)
- waiting on <0x4236be40> (a java.lang.VMThread) held by tid=49 (pool-20-thread-2)
at java.lang.Thread.parkFor(Thread.java:1205)
at sun.misc.Unsafe.park(Unsafe.java:325)
at java.util.concurrent.locks.LockSupport.park(LockSupport.java:157)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2017)
at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:410)
at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1035)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1097)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:841)
"AudioTrack" prio=10 tid=51 NATIVE
| group="main" sCount=1 dsCount=0 obj=0x423bada0 self=0x78435488
| sysTid=26106 nice=-16 sched=0/0 cgrp=apps handle=2017677888
| state=S schedstat=( 0 0 0 ) utm=0 stm=0 core=0
#00 pc 00021904 /system/lib/libc.so (__futex_syscall3+8)
#01 pc 0000eec4 /system/lib/libc.so (__pthread_cond_timedwait_relative+48)
#02 pc 0000ef24 /system/lib/libc.so (__pthread_cond_timedwait+64)
#03 pc 00047a85 /system/lib/libmedia.so (android::AudioTrack::AudioTrackThread::threadLoop()+36)
#04 pc 0000ea5d /system/lib/libutils.so (android::Thread::_threadLoop(void*)+216)
#05 pc 0004d24d /system/lib/libandroid_runtime.so (android::AndroidRuntime::javaThreadShell(void*)+68)
#06 pc 0000e58f /system/lib/libutils.so
#07 pc 0000d170 /system/lib/libc.so (__thread_entry+72)
#08 pc 0000d308 /system/lib/libc.so (pthread_create+240)
at dalvik.system.NativeStart.run(Native Method)
"pool-31-thread-1" prio=5 tid=50 WAIT
| group="main" sCount=1 dsCount=0 obj=0x4205df18 self=0x793d9f80
| sysTid=26095 nice=0 sched=0/0 cgrp=apps handle=2034082776
| state=S schedstat=( 0 0 0 ) utm=0 stm=0 core=0
at java.lang.Object.wait(Native Method)
- waiting on <0x425a6818> (a java.lang.VMThread) held by tid=50 (pool-31-thread-1)
at java.lang.Thread.parkFor(Thread.java:1205)
at sun.misc.Unsafe.park(Unsafe.java:325)
at java.util.concurrent.locks.LockSupport.park(LockSupport.java:157)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2017)
at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1050)
at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:778)
at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1035)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1097)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:841)

Android ANR error

I am using android service by calling startService(), and at the same time, I bind the service to activity to communicate with it through messengers.
I got this error when I quit the app after playing around.
I checked the /data/anr/traces.txt, it like this:
"main" prio=5 tid=1 NATIVE
10 | group="main" sCount=1 dsCount=0 obj=0x40fae508 self=0x40f67b78
11 | sysTid=11746 nice=0 sched=0/0 cgrp=apps handle=1074597680
12 | schedstat=( 2272796932 1135546599 7858 ) utm=175 stm=51 core=3
13 #00 pc 0000da70 /system/lib/libc.so (epoll_wait+12)
14 #01 pc 00014899 /system/lib/libutils.so (android::Looper::pollInner(int)+96)
15 #02 pc 00014b01 /system/lib/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+104)
16 #03 pc 00063653 /system/lib/libandroid_runtime.so (android::NativeMessageQueue::pollOnce(_JNIEnv*, int)+22)
17 #04 pc 0001deb0 /system/lib/libdvm.so (dvmPlatformInvoke+112)
18 #05 pc 0004d103 /system/lib/libdvm.so (dvmCallJNIMethod(unsigned int const*, JValue*, Method const*, Thread*)+394)
19 #06 pc 000272e0 /system/lib/libdvm.so
20 #07 pc 0002bbe8 /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+180)
21 #08 pc 0005fb37 /system/lib/libdvm.so (dvmInvokeMethod(Object*, Method const*, ArrayObject*, ArrayObject*, ClassObject*, bool)+374)
22 #09 pc 000670e5 /system/lib/libdvm.so
23 #10 pc 000272e0 /system/lib/libdvm.so
24 #11 pc 0002bbe8 /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+180)
25 #12 pc 0005f871 /system/lib/libdvm.so (dvmCallMethodV(Thread*, Method const*, Object*, bool, JValue*, std::__va_list)+272)
26 #13 pc 000496f3 /system/lib/libdvm.so
27 #14 pc 0004c571 /system/lib/libandroid_runtime.so
28 #15 pc 0004d6d3 /system/lib/libandroid_runtime.so (android::AndroidRuntime::start(char const*, char const*)+390)
29 #16 pc 00000dcf /system/bin/app_process
30 #17 pc 00017123 /system/lib/libc.so (__libc_init+38)
31 #18 pc 00000b34 /system/bin/app_process
32 at android.os.MessageQueue.nativePollOnce(Native Method)
33 at android.os.MessageQueue.next(MessageQueue.java:125)
34 at android.os.Looper.loop(Looper.java:124)
35 at android.app.ActivityThread.main(ActivityThread.java:4898)
36 at java.lang.reflect.Method.invokeNative(Native Method)
37 at java.lang.reflect.Method.invoke(Method.java:511)
38 at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1006)
39 at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:773)
40 at dalvik.system.NativeStart.main(Native Method)

ANR keyDispatchingTimedOut - AIR for Android

In an Adobe AIR application compiled for Android I am getting ANR errors with the cause keyDispatchingTimedOut. The workflow is as follows:
Sounds are playing, an embedded SWF is playing.
User presses a button - sounds/SWF stop playing
Application waits 3 seconds
Application makes some asynchronous calls to a server
Application handles the result, and pushes a new view to the viewstack.
New view appears
Between 5-10% of the time, after a few seconds, the ANR occurs.
Nothing in the error report really stands out. Any help would be massively appreciated. This is driving me crazy!
I have attached the ANR error report:
DALVIK THREADS:
(mutexes: tll=0 tsl=0 tscl=0 ghl=0)
"main" prio=5 tid=1 NATIVE
| group="main" sCount=1 dsCount=0 obj=0x41b0d508 self=0x41afd9b0
| sysTid=17654 nice=0 sched=0/0 cgrp=apps handle=1074835248
| schedstat=( 571788091723 150929552253 787606 ) utm=48332 stm=8846 core=1
#00 pc 0000dca0 /system/lib/libc.so (__futex_syscall3+8)
#01 pc 00012e44 /system/lib/libc.so (__pthread_cond_timedwait_relative+48)
#02 pc 00012ea0 /system/lib/libc.so (__pthread_cond_timedwait+60)
#03 pc 00012f38 /system/lib/libc.so (pthread_join+108)
#04 pc 001ec1ef /data/data/air.com.gameonint.matchpoint/lib/libCore.so
at com.adobe.air.customHandler.callTimeoutFunction(Native Method)
at com.adobe.air.customHandler.handleMessage(customHandler.java:22)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4921)
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:1038)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:805)
at dalvik.system.NativeStart.main(Native Method)
"Thread-3379" prio=5 tid=28 NATIVE
| group="main" sCount=1 dsCount=0 obj=0x426bacf0 self=0x5619f470
| sysTid=21744 nice=-16 sched=0/0 cgrp=apps handle=1473838456
| schedstat=( 1340618900 149930103 2445 ) utm=119 stm=14 core=1
#00 pc 0000dca0 /system/lib/libc.so (__futex_syscall3+8)
#01 pc 00012204 /system/lib/libc.so
#02 pc 0014e913 /data/data/air.com.gameonint.matchpoint/lib/libCore.so
#03 pc 00135075 /data/data/air.com.gameonint.matchpoint/lib/libCore.so
#04 pc 001bf4a5 /data/data/air.com.gameonint.matchpoint/lib/libCore.so
at dalvik.system.NativeStart.run(Native Method)
"AudioTrack" prio=10 tid=26 NATIVE
| group="main" sCount=1 dsCount=0 obj=0x426bac00 self=0x5630d198
| sysTid=21743 nice=-16 sched=0/0 cgrp=apps handle=1473486696
| schedstat=( 835445145 754790225 27458 ) utm=32 stm=51 core=0
#00 pc 0000d320 /system/lib/libc.so (nanosleep+12)
#01 pc 0001a9cb /system/lib/libc.so (usleep+30)
#02 pc 0004364f /system/lib/libmedia.so (android::AudioTrack::processAudioBuffer(android::sp<android::AudioTrack::AudioTrackThread> const&)+402)
#03 pc 0004370b /system/lib/libmedia.so (android::AudioTrack::AudioTrackThread::threadLoop()+70)
#04 pc 0001103b /system/lib/libutils.so (android::Thread::_threadLoop(void*)+94)
#05 pc 0004bb5b /system/lib/libandroid_runtime.so (android::AndroidRuntime::javaThreadShell(void*)+66)
#06 pc 00010bb5 /system/lib/libutils.so
#07 pc 00012e00 /system/lib/libc.so (__thread_entry+48)
#08 pc 00012558 /system/lib/libc.so (pthread_create+172)
at dalvik.system.NativeStart.run(Native Method)
"Binder_4" prio=5 tid=27 NATIVE
| group="main" sCount=1 dsCount=0 obj=0x424d0290 self=0x57549818
| sysTid=18326 nice=0 sched=0/0 cgrp=apps handle=1458138408
| schedstat=( 15464300 14467273284 378 ) utm=0 stm=1 core=1
#00 pc 0000cb90 /system/lib/libc.so (__ioctl+8)
#01 pc 00027fcd /system/lib/libc.so (ioctl+16)
#02 pc 00016bfd /system/lib/libbinder.so (android::IPCThreadState::talkWithDriver(bool)+124)
#03 pc 000173af /system/lib/libbinder.so (android::IPCThreadState::joinThreadPool(bool)+154)
#04 pc 0001b171 /system/lib/libbinder.so
#05 pc 0001104f /system/lib/libutils.so (android::Thread::_threadLoop(void*)+114)
#06 pc 0004bb5b /system/lib/libandroid_runtime.so (android::AndroidRuntime::javaThreadShell(void*)+66)
#07 pc 00010bb5 /system/lib/libutils.so
#08 pc 00012e00 /system/lib/libc.so (__thread_entry+48)
#09 pc 00012558 /system/lib/libc.so (pthread_create+172)
at dalvik.system.NativeStart.run(Native Method)
"Binder_3" prio=5 tid=25 NATIVE
| group="main" sCount=1 dsCount=0 obj=0x42679b00 self=0x53867d40
| sysTid=18156 nice=0 sched=0/0 cgrp=apps handle=1469136080
| schedstat=( 15274994 16984359588 428 ) utm=0 stm=1 core=0
#00 pc 0000cb90 /system/lib/libc.so (__ioctl+8)
#01 pc 00027fcd /system/lib/libc.so (ioctl+16)
#02 pc 00016bfd /system/lib/libbinder.so (android::IPCThreadState::talkWithDriver(bool)+124)
#03 pc 000173af /system/lib/libbinder.so (android::IPCThreadState::joinThreadPool(bool)+154)
#04 pc 0001b171 /system/lib/libbinder.so
#05 pc 0001104f /system/lib/libutils.so (android::Thread::_threadLoop(void*)+114)
#06 pc 0004bb5b /system/lib/libandroid_runtime.so (android::AndroidRuntime::javaThreadShell(void*)+66)
#07 pc 00010bb5 /system/lib/libutils.so
#08 pc 00012e00 /system/lib/libc.so (__thread_entry+48)
#09 pc 00012558 /system/lib/libc.so (pthread_create+172)
at dalvik.system.NativeStart.run(Native Method)
"Thread-3133" prio=5 tid=19 NATIVE
| group="main" sCount=1 dsCount=0 obj=0x4269cfd0 self=0x57f06bd0
| sysTid=17765 nice=0 sched=0/0 cgrp=apps handle=1457713968
| schedstat=( 229101702 17702911370 2605 ) utm=12 stm=10 core=0
#00 pc 0000da70 /system/lib/libc.so (epoll_wait+12)
#01 pc 00137079 /system/lib/libchromium_net.so
#02 pc 00136e6d /system/lib/libchromium_net.so
#03 pc 0005b0d1 /system/lib/libchromium_net.so
#04 pc 000597cf /system/lib/libchromium_net.so (MessageLoop::RunInternal()+114)
#05 pc 0005982d /system/lib/libchromium_net.so (MessageLoop::Run()+16)
#06 pc 00079ef1 /system/lib/libchromium_net.so (base::Thread::ThreadMain()+188)
#07 pc 0007997b /system/lib/libchromium_net.so
#08 pc 00012e00 /system/lib/libc.so (__thread_entry+48)
#09 pc 00012558 /system/lib/libc.so (pthread_create+172)
at dalvik.system.NativeStart.run(Native Method)
"AsyncTask #3" prio=5 tid=32 WAIT
| group="main" sCount=1 dsCount=0 obj=0x426b3e70 self=0x56e7ffa8
| sysTid=17763 nice=10 sched=0/0 cgrp=apps/bg_non_interactive handle=1458082608
| schedstat=( 10809752 19933622338 363 ) utm=0 stm=0 core=1
at java.lang.Object.wait(Native Method)
- waiting on <0x426b3f90> (a java.lang.VMThread) held by tid=32 (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)
"CookieSyncManager" prio=5 tid=31 NATIVE
| group="main" sCount=1 dsCount=0 obj=0x4255f6b0 self=0x56e98d30
| sysTid=17758 nice=10 sched=0/0 cgrp=apps/bg_non_interactive handle=1457721768
| schedstat=( 15950658 20119845013 333 ) utm=0 stm=1 core=1
#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 000634fb /system/lib/libandroid_runtime.so (android::NativeMessageQueue::pollOnce(_JNIEnv*, int)+22)
#04 pc 0001df30 /system/lib/libdvm.so (dvmPlatformInvoke+112)
#05 pc 0004d183 /system/lib/libdvm.so (dvmCallJNIMethod(unsigned int const*, JValue*, Method const*, Thread*)+394)
#06 pc 00027360 /system/lib/libdvm.so
#07 pc 0002bc68 /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+180)
#08 pc 0005f8f1 /system/lib/libdvm.so (dvmCallMethodV(Thread*, Method const*, Object*, bool, JValue*, std::__va_list)+272)
#09 pc 0005f91b /system/lib/libdvm.so (dvmCallMethod(Thread*, Method const*, Object*, JValue*, ...)+20)
#10 pc 000544d3 /system/lib/libdvm.so
#11 pc 00012e00 /system/lib/libc.so (__thread_entry+48)
#12 pc 00012558 /system/lib/libc.so (pthread_create+172)
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.webkit.WebSyncManager.run(WebSyncManager.java:92)
at android.webkit.CookieSyncManager.run(CookieSyncManager.java:58)
at java.lang.Thread.run(Thread.java:856)
"WebViewCoreThread" prio=5 tid=30 NATIVE
| group="main" sCount=1 dsCount=0 obj=0x42684de8 self=0x56e3c548
| sysTid=17756 nice=0 sched=0/0 cgrp=apps handle=1458078976
| schedstat=( 1364349593 17478104614 14927 ) utm=109 stm=26 core=0
#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 000634fb /system/lib/libandroid_runtime.so (android::NativeMessageQueue::pollOnce(_JNIEnv*, int)+22)
#04 pc 0001df30 /system/lib/libdvm.so (dvmPlatformInvoke+112)
#05 pc 0004d183 /system/lib/libdvm.so (dvmCallJNIMethod(unsigned int const*, JValue*, Method const*, Thread*)+394)
#06 pc 00000214 /dev/ashmem/dalvik-jit-code-cache (deleted)
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.webkit.WebViewCore$WebCoreThread.run(WebViewCore.java:1067)
at java.lang.Thread.run(Thread.java:856)
"AsyncTask #2" prio=5 tid=24 WAIT
| group="main" sCount=1 dsCount=0 obj=0x426783d8 self=0x57331568
| sysTid=17722 nice=10 sched=0/0 cgrp=apps/bg_non_interactive handle=1444187536
| schedstat=( 111962004 20480411385 9839 ) utm=4 stm=7 core=1
at java.lang.Object.wait(Native Method)
- waiting on <0x426784f8> (a java.lang.VMThread) held by tid=24 (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.ja...

Android monkey causes Application Not Responding in native library

I get this when running monkey -v -p package.name --throttle 1 --pct-syskeys 0 100000.
I suppose this is not my own code? It appears to be Android's drawing code.
Jellybean 4.1.1.
DALVIK THREADS:
(mutexes: tll=0 tsl=0 tscl=0 ghl=0)
"main" prio=5 tid=1 NATIVE
| group="main" sCount=1 dsCount=0 obj=0x41a5b568 self=0x41a4b9f8
| sysTid=20523 nice=0 sched=0/0 cgrp=apps handle=1074767408
| schedstat=( 0 0 0 ) utm=1189 stm=194 core=0
#00 pc 0000dc70 /system/lib/libc.so (__futex_syscall3+8)
#01 pc 00012bd4 /system/lib/libc.so (__pthread_cond_timedwait_relative+48)
#02 pc 00012c30 /system/lib/libc.so (__pthread_cond_timedwait+60)
#03 pc 00052bb5 /system/lib/libdvm.so (dvmChangeStatus(Thread*, ThreadStatus
)+68)
#04 pc 0004ce7b /system/lib/libdvm.so (dvmCallJNIMethod(unsigned int const*, JValue*, Method const*, Thread*)+398)
#05 pc 00027260 /system/lib/libdvm.so
#06 pc 0002bb38 /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+180)
#07 pc 0005f877 /system/lib/libdvm.so (dvmInvokeMethod(Object*, Method const*, ArrayObject*, ArrayObject*, ClassObject*, bool)+374)
#08 pc 00066d4d /system/lib/libdvm.so
#09 pc 00027260 /system/lib/libdvm.so
#10 pc 0002bb38 /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+180)
#13 pc 0004698d /system/lib/libandroid_runtime.so
#14 pc 0004746f /system/lib/libandroid_runtime.so (android::AndroidRuntime::start(char const*, char const*)+390)
#15 pc 00000dcf /system/bin/app_process
#16 pc 00016eab /system/lib/libc.so (__libc_init+38)
#17 pc 00000b34 /system/bin/app_process
at android.view.Surface.unlockCanvasAndPost(Native Method)
at android.view.ViewRootImpl.drawSoftware(ViewRootImpl.java:2267)
at android.view.ViewRootImpl.draw(ViewRootImpl.java:2151)
at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:2019)
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1830)
at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:998)
at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:4212)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:725)
at android.view.Choreographer.doCallbacks(Choreographer.java:555)
at android.view.Choreographer.doFrame(Choreographer.java:525)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:711)
at android.os.Handler.handleCallback(Handler.java:615)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4745)
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:786)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
at dalvik.system.NativeStart.main(Native Method)

Categories

Resources