From e7486f8a4cfee976583d9a50528e48c3e406f9bc Mon Sep 17 00:00:00 2001 From: Swung0x48 Date: Thu, 24 Sep 2026 00:51:13 -0400 Subject: [PATCH] [android-plugin] (P12): MobileGLServerService logs its supervisor's closed output as the service stopping, not as a failure with a stack trace, when the display Activity stops it --- .../trace/java/top/mobilegl/plugin/MobileGLServerService.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/android-plugin/app/src/trace/java/top/mobilegl/plugin/MobileGLServerService.java b/android-plugin/app/src/trace/java/top/mobilegl/plugin/MobileGLServerService.java index b063afa4..c7ac8cfc 100644 --- a/android-plugin/app/src/trace/java/top/mobilegl/plugin/MobileGLServerService.java +++ b/android-plugin/app/src/trace/java/top/mobilegl/plugin/MobileGLServerService.java @@ -122,6 +122,10 @@ public final class MobileGLServerService extends Service { String line; while ((line = output.readLine()) != null) Log.i(TAG, line); Log.i(TAG, "supervisor exited " + child.waitFor()); + } catch (java.io.InterruptedIOException stopped) { + // onDestroy's Process.destroy() closes this stream under the read: the service + // is being stopped (P12 D8: the display Activity stops it), not failing. + Log.i(TAG, "supervisor output closed: the service is stopping"); } catch (Exception error) { Log.e(TAG, "supervisor output failed", error); } finally {