From 17f3aecf8767035d79d872e3b30315df1f21c8e8 Mon Sep 17 00:00:00 2001 From: Chilun Date: Fri, 18 Jun 2021 12:09:09 +0800 Subject: [PATCH] Add log for IPC failure Sometimes we will fail to schedule TopResumedActivityChangedItem because of IPC failure and will cause other problems. Client side will ignore the inconsistent state in non-debug build and there is not much can do on the server side. Just add a warning log so that we can easier debugging and confirm the root cause if issue happens again. Bug: 188843741 Test: atest ActivityRecordTests Change-Id: I6e45f7bbd69384a3b734f80df4bc7c96ffb85b0d --- services/core/java/com/android/server/wm/ActivityRecord.java | 1 + 1 file changed, 1 insertion(+) diff --git a/services/core/java/com/android/server/wm/ActivityRecord.java b/services/core/java/com/android/server/wm/ActivityRecord.java index 8cc6a42be3495..64401bbe7749c 100644 --- a/services/core/java/com/android/server/wm/ActivityRecord.java +++ b/services/core/java/com/android/server/wm/ActivityRecord.java @@ -1221,6 +1221,7 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A TopResumedActivityChangeItem.obtain(onTop)); } catch (RemoteException e) { // If process died, whatever. + Slog.w(TAG, "Failed to send top-resumed=" + onTop + " to " + this, e); return false; } return true;