From 29711ee46b5f7973e343be7080d43a94d2d4b237 Mon Sep 17 00:00:00 2001 From: Jason Simmons Date: Mon, 13 Aug 2018 16:31:54 -0700 Subject: [PATCH] Do not log unwind errors during isolate shutdown (flutter/engine#6008) --- engine/src/flutter/runtime/dart_isolate.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/engine/src/flutter/runtime/dart_isolate.cc b/engine/src/flutter/runtime/dart_isolate.cc index 71dfa136f4..e48c542c11 100644 --- a/engine/src/flutter/runtime/dart_isolate.cc +++ b/engine/src/flutter/runtime/dart_isolate.cc @@ -808,10 +808,12 @@ void DartIsolate::DartIsolateShutdownCallback( } tonic::DartApiScope api_scope; - FML_LOG(ERROR) << "Isolate " << tonic::StdStringFromDart(Dart_DebugName()) - << " exited with an error"; Dart_Handle sticky_error = Dart_GetStickyError(); - FML_CHECK(tonic::LogIfError(sticky_error)); + if (!Dart_IsFatalError(sticky_error)) { + FML_LOG(ERROR) << "Isolate " << tonic::StdStringFromDart(Dart_DebugName()) + << " exited with an error"; + FML_CHECK(tonic::LogIfError(sticky_error)); + } } // |Dart_IsolateCleanupCallback|