I keep getting:*** WATCHDOG KILLING SYSTEM PROCESS: com.android.server.am.ActivityManagerService This is happening on my Nexus 7 running Android 4.2.2 Build JDQ39 This problem can happen several times a day and is very annoying and frustrating. Looking at the stacks dumped into /data/anr/traces.txt I can see a deadlock between threads of system_server, specifically, tid=1 is trying to lock <0x41503730> which is held by tid=53 (LocationManagerService) which is waiting to lock <0x41422fe0> (a com.android.server.am.ActivityManagerService) held by tid=1 (main). This is a classic deadlock. This issues is similar to issues # 41465 & 46806. The reporter of #41465 found the patch below which appears to correct this problem. https://android.googlesource.com/platform/frameworks/base/+/73c14161ec85629ebd6b5e24605a174305187e24 How do I get a version of Android that is corrected for this issue? ----- pid 1876 at 2013-03-01 14:41:50 ----- Cmd line: system_server DALVIK THREADS: (mutexes: tll=0 tsl=0 tscl=0 ghl=0) "main" prio=5 tid=1 MONITOR | group="main" sCount=1 dsCount=0 obj=0x40ce49a0 self=0x40094010 | sysTid=1876 nice=0 sched=0/0 cgrp=apps handle=1074512860 | state=S schedstat=( 3340884000 2417058000 11366 ) utm=272 stm=62 core=2 at android.app.ActivityThread.acquireExistingProvider(ActivityThread.java:~4546) - waiting to lock <0x41503730> (a java.util.HashMap) held by tid=63 (LocationManagerService) at android.app.ContextImpl$ApplicationContentResolver.acquireExistingProvider(ContextImpl.java:1992) at android.content.ContentResolver.acquireExistingProvider(ContentResolver.java:1073) at android.content.ContentResolver.getType(ContentResolver.java:215) at android.content.Intent.resolveType(Intent.java:4030) at android.content.IntentFilter.match(IntentFilter.java:1070) at com.android.server.am.ActivityManagerService.getStickiesLocked(ActivityManagerService.java:11291) at com.android.server.am.ActivityManagerService.registerReceiver(ActivityManagerService.java:11362) at android.app.ActivityManagerNative.onTransact(ActivityManagerNative.java:305) at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:1674) at android.os.Binder.execTransact(Binder.java:351) at com.android.server.SystemServer.init1(Native Method) at com.android.server.SystemServer.main(SystemServer.java:1064) 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:793) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560) at dalvik.system.NativeStart.main(Native Method) And "LocationManagerService" prio=5 tid=63 MONITOR | group="main" sCount=1 dsCount=0 obj=0x41934bf0 self=0x66f8f0e8 | sysTid=2075 nice=10 sched=0/0 cgrp=apps/bg_non_interactive handle=1729685536 | state=S schedstat=( 509137000 9870895000 3967 ) utm=32 stm=18 core=2 at com.android.server.am.ActivityManagerService.refContentProvider(ActivityManagerService.java:~6804) - waiting to lock <0x41422fe0> (a com.android.server.am.ActivityManagerService) held by tid=1 (main) at android.app.ActivityThread.incProviderRefLocked(ActivityThread.java:4505) at android.app.ActivityThread.acquireExistingProvider(ActivityThread.java:4568) at android.app.ActivityThread.acquireProvider(ActivityThread.java:4449) at android.app.ContextImpl$ApplicationContentResolver.acquireProvider(ContextImpl.java:1987) at android.content.ContentResolver.acquireProvider(ContentResolver.java:1054) at android.content.ContentResolver.query(ContentResolver.java:394) at android.content.ContentResolver.query(ContentResolver.java:315) at com.android.server.location.GpsLocationProvider.getSelectedApn(GpsLocationProvider.java:1559) at com.android.server.location.GpsLocationProvider.handleUpdateNetworkState(GpsLocationProvider.java:536) at com.android.server.location.GpsLocationProvider.access$2000(GpsLocationProvider.java:82) at com.android.server.location.GpsLocationProvider$ProviderHandler.handleMessage(GpsLocationProvider.java:1512) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:137) at com.android.server.LocationManagerService.run(LocationManagerService.java:205) at java.lang.Thread.run(Thread.java:856)
--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-platfo...@googlegroups.com.
To post to this group, send email to android-...@googlegroups.com.
Visit this group at http://groups.google.com/group/android-platform?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.