ActivityManagerService卡住导致WATCHDOG问题最后引起系统重启,求根本解决 5C

log如下:
08-06 17:11:48.266 D/ConnectivityService( 2519): ConnectivityService NetworkRequestInfo binderDied(NetworkRequest [ id=745, legacyType=-1, [ Capabilities: NOT_RESTRICTED&TRUSTED&NOT_VPN] ], android.os.BinderProxy@57d89db)
08-06 17:11:48.266 D/ConnectivityService( 2519): releasing NetworkRequest NetworkRequest [ id=745, legacyType=-1, [ Capabilities: NOT_RESTRICTED&TRUSTED&NOT_VPN] ]
08-06 17:11:48.268 D/WifiService( 2519): Client connection lost with reason: 4
08-06 17:11:48.281 E/ConnectivityService( 2519): RemoteException caught trying to send a callback msg for NetworkRequest [ id=745, legacyType=-1, [ Capabilities: NOT_RESTRICTED&TRUSTED&NOT_VPN] ]
08-06 17:11:52.943 I/ActivityManager( 2519): TR33) TaskRecord{4bfe8da #1698 A=com.stv.launcher U=0 sz=1}
08-06 17:11:52.943 I/ActivityManager( 2519): TR32) TaskRecord{6835e4 #2828 A=com.ktcp.tvvideo U=0 sz=0}
08-06 17:11:52.955 I/ActivityManager( 2519): accel TR33) TaskRecord{4bfe8da #1698 A=com.stv.launcher U=0 sz=1}
08-06 17:11:52.955 I/ActivityManager( 2519): accel TR32) TaskRecord{6835e4 #2828 A=com.ktcp.tvvideo U=0 sz=0}
08-06 17:11:53.010 W/ProcessCpuTracker( 2519): Skipping unknown process pid 8003
08-06 17:11:57.150 D/ActivityManager-Killer( 2519): killProcessIfNeeded: Enough memory: 313908/70720
08-06 17:12:17.870 W/InputManager( 2519): Input event injection from pid 3234 timed out.
08-06 17:12:48.371 W/InputManager( 2519): Input event injection from pid 3234 timed out.
08-06 17:13:33.915 W/InputManager( 2519): Input event injection from pid 3234 timed out.
08-06 17:13:56.068 W/Watchdog( 2519): *** WATCHDOG KILLING SYSTEM PROCESS: Blocked in monitor com.android.server.am.ActivityManagerService on foreground thread (android.fg), Blocked in handler on ui thread (android.ui), Blocked in handler on display thread (android.display), Blocked in handler on ActivityManager (ActivityManager)
08-06 17:13:56.068 W/Watchdog( 2519): foreground thread stack trace:
08-06 17:13:56.068 W/Watchdog( 2519): at com.android.server.am.ActivityManagerService.monitor(ActivityManagerService.java:20280)
08-06 17:13:56.068 W/Watchdog( 2519): at com.android.server.Watchdog$HandlerChecker.run(Watchdog.java:173)
08-06 17:13:56.074 W/Watchdog( 2519): at android.os.Handler.handleCallback(Handler.java:739)
08-06 17:13:56.074 W/Watchdog( 2519): at android.os.Handler.dispatchMessage(Handler.java:95)
08-06 17:13:56.074 W/Watchdog( 2519): at android.os.Looper.loop(Looper.java:148)
08-06 17:13:56.074 W/Watchdog( 2519): at android.os.HandlerThread.run(HandlerThread.java:61)
08-06 17:13:56.075 W/Watchdog( 2519): at com.android.server.ServiceThread.run(ServiceThread.java:46)
08-06 17:13:56.075 W/Watchdog( 2519): ui thread stack trace:
08-06 17:13:56.078 W/Watchdog( 2519): at com.android.server.am.ActivityManagerService.dispatchUidsChanged(ActivityManagerService.java:3944)
08-06 17:13:56.078 W/Watchdog( 2519): at com.android.server.am.ActivityManagerService.-wrap9(ActivityManagerService.java)
08-06 17:13:56.078 W/Watchdog( 2519): at com.android.server.am.ActivityManagerService$UiHandler.handleMessage(ActivityManagerService.java:1648)
08-06 17:13:56.078 W/Watchdog( 2519): at android.os.Handler.dispatchMessage(Handler.java:102)
08-06 17:13:56.078 W/Watchdog( 2519): at android.os.Looper.loop(Looper.java:148)
08-06 17:13:56.078 W/Watchdog( 2519): at android.os.HandlerThread.run(HandlerThread.java:61)
08-06 17:13:56.078 W/Watchdog( 2519): at com.android.server.ServiceThread.run(ServiceThread.java:46)
08-06 17:13:56.078 W/Watchdog( 2519): display thread stack trace:
08-06 17:13:56.078 W/Watchdog( 2519): at com.android.server.wm.WindowAnimator$1.doFrame(WindowAnimator.java:121)
08-06 17:13:56.078 W/Watchdog( 2519): at android.view.Choreographer$CallbackRecord.run(Choreographer.java:972)
08-06 17:13:56.078 W/Watchdog( 2519): at android.view.Choreographer.doCallbacks(Choreographer.java:786)
08-06 17:13:56.078 W/Watchdog( 2519): at android.view.Choreographer.doFrame(Choreographer.java:701)
08-06 17:13:56.078 W/Watchdog( 2519): at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:960)
08-06 17:13:56.078 W/Watchdog( 2519): at android.os.Handler.handleCallback(Handler.java:739)
08-06 17:13:56.078 W/Watchdog( 2519): at android.os.Handler.dispatchMessage(Handler.java:95)
08-06 17:13:56.078 W/Watchdog( 2519): at android.os.Looper.loop(Looper.java:148)
08-06 17:13:56.078 W/Watchdog( 2519): at android.os.HandlerThread.run(HandlerThread.java:61)
08-06 17:13:56.078 W/Watchdog( 2519): at com.android.server.ServiceThread.run(ServiceThread.java:46)
08-06 17:13:56.078 W/Watchdog( 2519): ActivityManager stack trace:
08-06 17:13:56.078 W/Watchdog( 2519): at com.android.server.am.ActivityStack$ActivityStackHandler.handleMessage(ActivityStack.java:305)
08-06 17:13:56.078 W/Watchdog( 2519): at android.os.Handler.dispatchMessage(Handler.java:102)
08-06 17:13:56.078 W/Watchdog( 2519): at android.os.Looper.loop(Looper.java:148)
08-06 17:13:56.078 W/Watchdog( 2519): at android.os.HandlerThread.run(HandlerThread.java:61)
08-06 17:13:56.078 W/Watchdog( 2519): at com.android.server.ServiceThread.run(ServiceThread.java:46)
08-06 17:13:56.078 W/Watchdog( 2519): *** GOODBYE!

trace.txt

android.fg,android.ui,android.display,ActivityManager都是held by thread 79

"Binder_B" prio=5 tid=79 Native
| group="main" sCount=1 dsCount=0 obj=0x12e666a0 self=0x55784ec170
| sysTid=5105 nice=0 cgrp=default sched=0/0 handle=0x7f6b78e450
| state=S schedstat=( 0 0 0 ) utm=44642 stm=20792 core=0 HZ=100
| stack=0x7f6b692000-0x7f6b694000 stackSize=1013KB
| held mutexes=
kernel: switch_to+0x90/0xa8
kernel: binder_thread_read+0x8b0/0x1048
kernel: binder_ioctl_write_read+0x1cc/0x2c4
kernel: binder_ioctl+0x274/0x6c4
kernel: do_vfs_ioctl+0x324/0x4a8
kernel: SyS_ioctl+0x80/0x98
kernel: cpu_switch_to+0x48/0x4c
native: #00 pc 000000000006a330 /system/lib64/libc.so (
ioctl+4)
native: #01 pc 0000000000073c30 /system/lib64/libc.so (ioctl+100)
native: #02 pc 000000000002d494 /system/lib64/libbinder.so (android::IPCThreadState::talkWithDriver(bool)+164)
native: #03 pc 000000000002df60 /system/lib64/libbinder.so (android::IPCThreadState::waitForResponse(android::Parcel*, int*)+104)
native: #04 pc 000000000002e1d4 /system/lib64/libbinder.so (android::IPCThreadState::transact(int, unsigned int, android::Parcel const&, android::Parcel*, unsigned int)+176)
native: #05 pc 0000000000025564 /system/lib64/libbinder.so (android::BpBinder::transact(unsigned int, android::Parcel const&, android::Parcel*, unsigned int)+64)
native: #06 pc 000000000006f684 /system/lib64/libgui.so (???)
native: #07 pc 0000000000079764 /system/lib64/libgui.so (android::SurfaceComposerClient::createSurface(android::String8 const&, unsigned int, unsigned int, int, unsigned int)+64)
native: #08 pc 00000000000cc764 /system/lib64/libandroid_runtime.so (???)
native: #09 pc 000000000189d550 /data/dalvik-cache/arm64/system@framework@boot.oat (Java_android_view_SurfaceControl_nativeCreate__Landroid_view_SurfaceSession_2Ljava_lang_String_2IIII+212)
at android.view.SurfaceControl.nativeCreate(Native method)
at android.view.SurfaceControl.(SurfaceControl.java:296)
at com.android.server.wm.ScreenRotationAnimation.(ScreenRotationAnimation.java:257)
at com.android.server.wm.WindowManagerService.startFreezingDisplayLocked(WindowManagerService.java:10926)
at com.android.server.wm.WindowManagerService.updateOrientationFromAppTokensLocked(WindowManagerService.java:4059)
at com.android.server.wm.WindowManagerService.updateOrientationFromAppTokens(WindowManagerService.java:4017)

  • locked (a java.util.HashMap) at com.android.server.am.ActivityStack.resumeTopActivityInnerLocked(ActivityStack.java:1936) at com.android.server.am.ActivityStack.resumeTopActivityLocked(ActivityStack.java:1576) at com.android.server.am.ActivityStackSupervisor.resumeTopActivitiesLocked(ActivityStackSupervisor.java:2803) at com.android.server.am.ActivityStackSupervisor.resumeTopActivitiesLocked(ActivityStackSupervisor.java:2792) at com.android.server.am.ActivityManagerService.handleAppDiedLocked(ActivityManagerService.java:4748) at com.android.server.am.ActivityManagerService.appDiedLocked(ActivityManagerService.java:4894) at com.android.server.am.ActivityManagerService$AppDeathRecipient.binderDied(ActivityManagerService.java:1338)
  • locked (a com.android.server.am.ActivityManagerService)
    at android.os.BinderProxy.sendDeathNotice(Binder.java:558)

    请问到这里后应该如何继续往下分析?

1个回答

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐