From 32af56669448ed84058becd5a157d0407537494c Mon Sep 17 00:00:00 2001 From: David Vacca Date: Fri, 16 Dec 2022 16:11:19 -0800 Subject: [PATCH] Add logs to analyze IllegalStateException on creation of views Summary: Add logs to analyze IllegalStateException on creation of views changelog: [internal] internal Reviewed By: philIip Differential Revision: D42111336 fbshipit-source-id: bcf6495203cd6440a0ebc52ce8f962c459c38c43 --- .../facebook/react/fabric/mounting/SurfaceMountingManager.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/SurfaceMountingManager.java b/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/SurfaceMountingManager.java index 79f56f86ddd..f514ade64b2 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/SurfaceMountingManager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/SurfaceMountingManager.java @@ -267,6 +267,7 @@ public class SurfaceMountingManager { */ @AnyThread public void stopSurface() { + FLog.e(TAG, "Stopping surface [" + mSurfaceId + "]"); if (isStopped()) { return; } @@ -309,6 +310,7 @@ public class SurfaceMountingManager { if (ReactFeatureFlags.enableViewRecycling) { mViewManagerRegistry.onSurfaceStopped(mSurfaceId); } + FLog.e(TAG, "Surface [" + mSurfaceId + "] was stopped on SurfaceMountingManager."); } };