Repository: flutter
Issue: Camera + QR Detect crashes on older device due to memory leak in debug mode
Labels: c: crash,platform-android,c: performance,p: camera,package,perf: memory,P3,c: fatal crash,team-android,triaged-android

This only affects the app in Debug mode, so it probably isn't that high of priority. It's very annoying for trying to build the app though, so I'm going to make the issue anyways.

The backstory to this is that I'm trying to write a dart-only QR scanning package, and I have everything working but after about 10 seconds it crashes on my Nexus 5x. I took out various parts until I discovered that it could be reproduced with just the camera plugin and a sized box (I wasn't able to reproduce it when the camera view was full screen, so I think one issue might have something to do with scaling the native view).

I'll include that first:

## Steps to Reproduce with just camera:

Run this main.dart in a project with the camera package included:

```dart
import 'package:camera/camera.dart';
import 'package:flutter/material.dart';

Future<CameraDescription> getCamera(CameraLensDirection dir) async {
  return await availableCameras().then(
    (List<CameraDescription> cameras) => cameras.firstWhere(
      (CameraDescription camera) => camera.lensDirection == dir,
    ),
  );
}

Future<void> main() async {
  WidgetsFlutterBinding.ensureInitialized();
  final CameraDescription camera = await getCamera(CameraLensDirection.back);
  if (camera == null) {
    throw UnsupportedError("need a back camera");
  }
  runApp(CrashApp(camera: camera));
}

class CrashApp extends StatefulWidget {
  final CameraDescription camera;

  const CrashApp({Key key, this.camera}) : super(key: key);

  @override
  _CrashAppState createState() => _CrashAppState();
}

class _CrashAppState extends State<CrashApp> {
  CameraController controller = CameraController(null, null);

  @override
  void initState() {
    super.initState();
    CameraController controller = CameraController(
      widget.camera,
      ResolutionPreset.high,
      enableAudio: false,
    );

    () async {
      await controller.initialize();

      setState(() {
        this.controller = controller;
      });

      int i = 0;
      controller.startImageStream((image) async {
        ++i;
      });
    }();
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        body: Center(
          child: SizedBox(
            width: 200,
            height: 200,
            child: CameraPreview(controller),
          ),
        ),
      ),
    );
  }

  @override
  void dispose() {
    controller?.stopImageStream();
    controller?.dispose();
    super.dispose();
  }
}
```

**Expected results:** 

That the app doesn't crash.

**Actual results:**

The app crashes.

Looking at observatory, I can see that the native portion slowly grows over time, until it reaches about 45% which is when the app crashes.

<img width="1613" alt="Screen Shot 2020-01-31 at 3 34 42 PM" src="https://user-images.githubusercontent.com/3103484/73551947-40434400-443f-11ea-8284-3ae1eb248946.png">

And this shows over time:
<img width="1642" alt="Screen Shot 2020-01-31 at 3 37 10 PM" src="https://user-images.githubusercontent.com/3103484/73552187-af209d00-443f-11ea-9974-78b66fc9ca6e.png">

I believe the same crash will occur on other devices with more memory but will just take a lot longer.

## With qr detecting, the crash happens much quicker due to the increased memory load, but once again only in debug mode.

Dependent on Camera and FirebaseMobileVision plugins.

```dart
import 'dart:typed_data';

import 'package:camera/camera.dart';
import 'package:firebase_ml_vision/firebase_ml_vision.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';

class QrScannerUtils {
  QrScannerUtils._();

  static Future<CameraDescription> getCamera(CameraLensDirection dir) async {
    return await availableCameras().then(
      (List<CameraDescription> cameras) => cameras.firstWhere(
        (CameraDescription camera) => camera.lensDirection == dir,
      ),
    );
  }

  static Future<T> detect<T>({
    @required CameraImage image,
    @required Future<T> Function(FirebaseVisionImage image) detectInImage,
    @required int imageRotation,
  }) async {
    return detectInImage != null
        ? detectInImage(
            FirebaseVisionImage.fromBytes(
              _concatenatePlanes(image.planes),
              _buildMetaData(
                image,
                _rotationIntToImageRotation(imageRotation),
              ),
            ),
          )
        : null;
  }

  static Uint8List _concatenatePlanes(List<Plane> planes) {
    final WriteBuffer allBytes = WriteBuffer();
    for (Plane plane in planes) {
      allBytes.putUint8List(plane.bytes);
    }
    return allBytes.done().buffer.asUint8List();
  }

  static FirebaseVisionImageMetadata _buildMetaData(
    CameraImage image,
    ImageRotation rotation,
  ) {
    return FirebaseVisionImageMetadata(
      rawFormat: image.format.raw,
      size: Size(image.width.toDouble(), image.height.toDouble()),
      rotation: rotation,
      planeData: image.planes.map(
        (Plane plane) {
          return FirebaseVisionImagePlaneMetadata(
            bytesPerRow: plane.bytesPerRow,
            height: plane.height,
            width: plane.width,
          );
        },
      ).toList(),
    );
  }

  static ImageRotation _rotationIntToImageRotation(int rotation) {
    switch (rotation) {
      case 0:
        return ImageRotation.rotation0;
      case 90:
        return ImageRotation.rotation90;
      case 180:
        return ImageRotation.rotation180;
      default:
        assert(rotation == 270);
        return ImageRotation.rotation270;
    }
  }
}

Future<void> main() async {
  WidgetsFlutterBinding.ensureInitialized();
  final CameraDescription camera = await QrScannerUtils.getCamera(CameraLensDirection.back);
  if (camera == null) {
    throw UnsupportedError("need a back camera");
  }
  runApp(CrashApp(camera: camera));
}

class CrashApp extends StatefulWidget {
  final CameraDescription camera;

  const CrashApp({Key key, this.camera}) : super(key: key);

  @override
  _CrashAppState createState() => _CrashAppState();
}

class _CrashAppState extends State<CrashApp> {
  CameraController controller = CameraController(null, null);

  @override
  void initState() {
    super.initState();
    CameraController controller = CameraController(
      widget.camera,
      ResolutionPreset.high,
      enableAudio: false,
    );

    () async {
      await controller.initialize();

      setState(() {
        this.controller = controller;
      });

      var barcodeDetector = FirebaseVision.instance.barcodeDetector();

      bool isDetecting = false;
      controller.startImageStream((image) async {
        if (isDetecting) return;
        isDetecting = true;
        var barcode = await QrScannerUtils.detect(
            image: image, detectInImage: (visionImage) => barcodeDetector.detectInImage(visionImage), imageRotation: controller.description.sensorOrientation);
        isDetecting = false;
      });
    }();
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        body: Center(
          child: SizedBox(
            width: 200,
            height: 200,
            child: CameraPreview(controller),
          ),
        ),
      ),
    );
  }

  @override
  void dispose() {
    controller?.stopImageStream();
    controller?.dispose();
    super.dispose();
  }
}

```


<details>
  <summary>Logs</summary>

<!--
      Run your application with `flutter run --verbose` and attach all the
      log output below between the lines with the backticks. If there is an
      exception, please see if the error message includes enough information
      to explain how to solve the issue.
-->

## For first instance - camera only in debug mode:

```
[  +38 ms] executing: [/Users/morgan/devtools/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[  +39 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] 92f7e16312d9c7c396c0100dcb699458c3f10172
[        ] executing: [/Users/morgan/devtools/flutter/] git describe --match v*.*.* --first-parent --long --tags
[  +39 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags
[        ] v1.14.6-38-g92f7e1631
[  +16 ms] executing: [/Users/morgan/devtools/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[  +10 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] origin/master
[        ] executing: [/Users/morgan/devtools/flutter/] git ls-remote --get-url origin
[  +14 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] https://github.com/flutter/flutter.git
[  +74 ms] executing: [/Users/morgan/devtools/flutter/] git rev-parse --abbrev-ref HEAD
[  +23 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[   +2 ms] master
[  +22 ms] executing: sw_vers -productName
[  +19 ms] Exit code 0 from: sw_vers -productName
[   +1 ms] Mac OS X
[        ] executing: sw_vers -productVersion
[  +27 ms] Exit code 0 from: sw_vers -productVersion
[        ] 10.15.3
[        ] executing: sw_vers -buildVersion
[  +30 ms] Exit code 0 from: sw_vers -buildVersion
[        ] 19D76
[  +47 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +6 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +73 ms] executing: /Users/morgan/Library/Android/sdk/platform-tools/adb devices -l
[  +12 ms] Exit code 0 from: /Users/morgan/Library/Android/sdk/platform-tools/adb devices -l
[        ] List of devices attached
           00c5937b0b2c37ce       device usb:338690048X product:bullhead model:Nexus_5X device:bullhead transport_id:3
[  +54 ms] executing: /Users/morgan/devtools/flutter/bin/cache/artifacts/libimobiledevice/idevice_id -h
[ +258 ms] executing: /usr/bin/xcode-select --print-path
[  +10 ms] Exit code 0 from: /usr/bin/xcode-select --print-path
[        ] /Applications/Xcode.app/Contents/Developer
[   +1 ms] executing: /usr/bin/xcodebuild -version
[ +921 ms] Exit code 0 from: /usr/bin/xcodebuild -version
[        ] Xcode 11.3.1
           Build version 11C504
[   +3 ms] /usr/bin/xcrun simctl list --json devices
[ +132 ms] /Users/morgan/Library/Android/sdk/platform-tools/adb -s 00c5937b0b2c37ce shell getprop
[  +94 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[   +9 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +3 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ +122 ms] Found plugin camera at /Users/morgan/devtools/flutter/.pub-cache/hosted/pub.dartlang.org/camera-0.5.7+3/
[  +92 ms] Found plugin camera at /Users/morgan/devtools/flutter/.pub-cache/hosted/pub.dartlang.org/camera-0.5.7+3/
[  +98 ms] Generating /Users/morgan/Programming/temp/qrtest/bug/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java
[  +58 ms] ro.hardware = bullhead
[        ] ro.build.characteristics = nosdcard
[  +60 ms] Launching lib/main.dart on Nexus 5X in debug mode...
[  +12 ms] executing: /Users/morgan/Library/Android/sdk/platform-tools/adb -s 00c5937b0b2c37ce shell -x logcat -v time -t 1
[  +80 ms] Exit code 0 from: /Users/morgan/Library/Android/sdk/platform-tools/adb -s 00c5937b0b2c37ce shell -x logcat -v time -t 1
[        ] --------- beginning of main
           01-31 15:27:00.774 I/nanohub ( 3420): osLog: [AR_CHRE] ON => IDLE
[  +10 ms] executing: /Users/morgan/Library/Android/sdk/platform-tools/adb version
[   +1 ms] executing: /Users/morgan/Library/Android/sdk/platform-tools/adb -s 00c5937b0b2c37ce logcat -v time -T 01-31 15:27:00.774
[  +57 ms] Android Debug Bridge version 1.0.41
           Version 29.0.5-5949299
           Installed as /Users/morgan/Library/Android/sdk/platform-tools/adb
[   +3 ms] executing: /Users/morgan/Library/Android/sdk/platform-tools/adb start-server
[  +10 ms] Building APK
[  +28 ms] Running Gradle task 'assembleDebug'...
[  +10 ms] gradle.properties already sets `android.enableR8`
[   +3 ms] Using gradle from /Users/morgan/Programming/temp/qrtest/bug/android/gradlew.
[        ] /Users/morgan/Programming/temp/qrtest/bug/android/gradlew mode: 33261 rwxr-xr-x.
[ +327 ms] executing: /usr/bin/plutil -convert json -o - /Applications/Android Studio.app/Contents/Info.plist
[  +11 ms] Exit code 0 from: /usr/bin/plutil -convert json -o - /Applications/Android Studio.app/Contents/Info.plist
[        ] {"CFBundleName":"Android
Studio","JVMOptions":{"ClassPath":"$APP_PACKAGE\/Contents\/lib\/bootstrap.jar:$APP_PACKAGE\/Contents\/lib\/extensions.jar:$APP_PACKAGE\/Contents\/lib\/util.jar:$APP_PACKAGE\/Contents\/lib\/jdom.jar:$APP_PACKAGE\/Contents\/lib\/log4
j.jar:$APP_PACKAGE\/Contents\/lib\/trove4j.jar:$APP_PACKAGE\/Contents\/lib\/jna.jar","JVMVersion":"1.8*,1.8+","WorkingDirectory":"$APP_PACKAGE\/Contents\/bin","MainClass":"com.intellij.idea.Main","Properties":{"idea.paths.selector"
:"AndroidStudio3.5","idea.executable":"studio","idea.platform.prefix":"AndroidStudio","idea.home.path":"$APP_PACKAGE\/Contents"}},"LSArchitecturePriority":["x86_64"],"CFBundleVersion":"AI-191.8026.42.35.6010548","CFBundleDevelopmen
tRegion":"English","CFBundleDocumentTypes":[{"CFBundleTypeName":"Android Studio Project File","CFBundleTypeExtensions":["ipr"],"CFBundleTypeRole":"Editor","CFBundleTypeIconFile":"studio.icns"},{"CFBundleTypeName":"All
documents","CFBundleTypeExtensions":["*"],"CFBundleTypeOSTypes":["****"],"CFBundleTypeRole":"Editor","LSTypeIsPackage":false}],"NSSupportsAutomaticGraphicsSwitching":true,"CFBundlePackageType":"APPL","CFBundleIconFile":"studio.icns
","NSHighResolutionCapable":true,"CFBundleShortVersionString":"3.5","CFBundleInfoDictionaryVersion":"6.0","CFBundleExecutable":"studio","LSRequiresNativeExecution":"YES","CFBundleURLTypes":[{"CFBundleTypeRole":"Editor","CFBundleURL
Name":"Stacktrace","CFBundleURLSchemes":["idea"]}],"CFBundleIdentifier":"com.google.android.studio","LSApplicationCategoryType":"public.app-category.developer-tools","CFBundleSignature":"????","LSMinimumSystemVersion":"10.8","CFBun
dleGetInfoString":"Android Studio 3.5, build AI-191.8026.42.35.6010548. Copyright JetBrains s.r.o., (c) 2000-2019"}
[  +11 ms] executing: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java -version
[ +169 ms] Exit code 0 from: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java -version
[        ] openjdk version "1.8.0_202-release"
           OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
           OpenJDK 64-Bit Server VM (build 25.202-b49-5587405, mixed mode)
[   +1 ms] executing: [/Users/morgan/Programming/temp/qrtest/bug/android/] /Users/morgan/Programming/temp/qrtest/bug/android/gradlew -Pverbose=true -Ptarget=/Users/morgan/Programming/temp/qrtest/bug/lib/main.dart
-Ptrack-widget-creation=true -Pfilesystem-scheme=org-dartlang-root -Ptarget-platform=android-arm64 assembleDebug
[+3426 ms] > Task :app:compileFlutterBuildDebug
[        ] [  +23 ms] executing: [/Users/morgan/devtools/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] [  +49 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] [        ] 92f7e16312d9c7c396c0100dcb699458c3f10172
[        ] [        ] executing: [/Users/morgan/devtools/flutter/] git describe --match v*.*.* --first-parent --long --tags
[        ] [  +32 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags
[        ] [        ] v1.14.6-38-g92f7e1631
[        ] [  +33 ms] executing: [/Users/morgan/devtools/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[        ] [  +78 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] [  +14 ms] origin/master
[        ] [   +3 ms] executing: [/Users/morgan/devtools/flutter/] git ls-remote --get-url origin
[        ] [  +24 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] [        ] https://github.com/flutter/flutter.git
[        ] [ +155 ms] executing: [/Users/morgan/devtools/flutter/] git rev-parse --abbrev-ref HEAD
[        ] [  +13 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] [        ] master
[        ] [  +27 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[        ] [   +2 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[        ] [   +6 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'GradleWrapper' is not required, skipping update.
[        ] [        ] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[   +5 ms] [        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterSdk' is not required, skipping update.
[        ] [        ] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [   +1 ms] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FontSubsetArtifacts' is not required, skipping update.
[        ] [  +77 ms] Initializing file store
[   +1 ms] [  +24 ms] Done initializing file store
[+1462 ms] [+1997 ms] Skipping target: kernel_snapshot
[  +96 ms] [  +59 ms] debug_android_application: Starting due to {InvalidatedReason.outputMissing}
[ +306 ms] [ +284 ms] debug_android_application: Complete
[        ] [  +14 ms] Persisting file store
[        ] [   +9 ms] Done persisting file store
[        ] [   +4 ms] build succeeded.
[        ] [  +16 ms] "flutter assemble" took 2,543ms.
[        ] > Task :app:packLibsflutterBuildDebug UP-TO-DATE
[        ] > Task :app:preBuild UP-TO-DATE
[        ] > Task :app:preDebugBuild UP-TO-DATE
[ +100 ms] > Task :camera:preBuild UP-TO-DATE
[        ] > Task :camera:preDebugBuild UP-TO-DATE
[        ] > Task :camera:compileDebugAidl NO-SOURCE
[        ] > Task :camera:packageDebugRenderscript NO-SOURCE
[        ] > Task :app:checkDebugManifest UP-TO-DATE
[        ] > Task :app:compileDebugRenderscript NO-SOURCE
[        ] > Task :app:generateDebugBuildConfig UP-TO-DATE
[        ] > Task :app:compileDebugAidl NO-SOURCE
[        ] > Task :app:cleanMergeDebugAssets
[        ] > Task :app:mergeDebugShaders UP-TO-DATE
[        ] > Task :app:compileDebugShaders UP-TO-DATE
[        ] > Task :app:generateDebugAssets UP-TO-DATE
[        ] > Task :camera:mergeDebugShaders UP-TO-DATE
[        ] > Task :camera:compileDebugShaders UP-TO-DATE
[        ] > Task :camera:generateDebugAssets UP-TO-DATE
[        ] > Task :camera:packageDebugAssets UP-TO-DATE
[        ] > Task :app:mergeDebugAssets
[ +390 ms] > Task :app:copyFlutterAssetsDebug
[        ] > Task :app:mainApkListPersistenceDebug UP-TO-DATE
[        ] > Task :app:generateDebugResValues UP-TO-DATE
[        ] > Task :app:generateDebugResources UP-TO-DATE
[        ] > Task :camera:generateDebugResValues UP-TO-DATE
[        ] > Task :camera:compileDebugRenderscript NO-SOURCE
[        ] > Task :camera:generateDebugResources UP-TO-DATE
[        ] > Task :camera:packageDebugResources UP-TO-DATE
[ +701 ms] > Task :app:createDebugCompatibleScreenManifests
[        ] > Task :camera:checkDebugManifest UP-TO-DATE
[        ] > Task :camera:processDebugManifest UP-TO-DATE
[  +95 ms] > Task :app:processDebugManifest
[        ] > Task :app:mergeDebugResources
[        ] > Task :camera:parseDebugLibraryResources UP-TO-DATE
[        ] > Task :camera:generateDebugBuildConfig
[ +102 ms] > Task :camera:generateDebugRFile
[ +497 ms] > Task :app:processDebugResources
[        ] > Task :camera:javaPreCompileDebug
[+2102 ms] > Task :camera:compileDebugJavaWithJavac
[   +1 ms] Note: /Users/morgan/devtools/flutter/.pub-cache/hosted/pub.dartlang.org/camera-0.5.7+3/android/src/main/java/io/flutter/plugins/camera/CameraPlugin.java uses or overrides a deprecated API.
[   +1 ms] Note: Recompile with -Xlint:deprecation for details.
[ +197 ms] > Task :camera:bundleLibCompileDebug
[+8104 ms] > Task :app:compileDebugKotlin
[        ] > Task :app:processDebugJavaRes NO-SOURCE
[        ] > Task :camera:processDebugJavaRes NO-SOURCE
[        ] > Task :app:javaPreCompileDebug
[ +494 ms] > Task :app:compileDebugJavaWithJavac
[        ] > Task :app:compileDebugSources
[        ] > Task :camera:bundleLibResDebug
[+2400 ms] > Task :app:mergeDebugJavaResource
[+7099 ms] > Task :app:checkDebugDuplicateClasses
[  +97 ms] > Task :app:desugarDebugFileDependencies
[        ] > Task :camera:bundleLibRuntimeDebug
[        ] > Task :camera:createFullJarDebug
[ +400 ms] > Task :app:mergeLibDexDebug
[ +898 ms] > Task :app:transformClassesWithDexBuilderForDebug
[  +99 ms] > Task :app:mergeProjectDexDebug
[ +100 ms] > Task :app:validateSigningDebug
[        ] > Task :app:signingConfigWriterDebug
[        ] > Task :app:mergeDebugJniLibFolders
[        ] > Task :camera:mergeDebugJniLibFolders
[ +104 ms] > Task :camera:mergeDebugNativeLibs
[        ] > Task :camera:stripDebugDebugSymbols
[        ] > Task :camera:transformNativeLibsWithIntermediateJniLibsForDebug
[        ] > Task :camera:extractDebugAnnotations
[        ] > Task :camera:mergeDebugGeneratedProguardFiles
[        ] > Task :camera:mergeDebugConsumerProguardFiles
[        ] > Task :camera:prepareLintJarForPublish
[        ] > Task :camera:mergeDebugJavaResource
[  +96 ms] > Task :camera:transformClassesAndResourcesWithSyncLibJarsForDebug
[        ] > Task :camera:transformNativeLibsWithSyncJniLibsForDebug
[        ] > Task :camera:bundleDebugAar
[        ] > Task :camera:compileDebugSources
[        ] > Task :camera:assembleDebug
[+2799 ms] > Task :app:mergeDebugNativeLibs
[ +102 ms] Unable to strip library '/Users/morgan/Programming/temp/qrtest/bug/build/app/intermediates/merged_native_libs/debug/out/lib/x86/libflutter.so' due to missing strip tool for ABI 'X86'. Packaging it as is.
[ +994 ms] > Task :app:stripDebugDebugSymbols
[        ] Compatible side by side NDK version was not found.
[        ] Unable to strip library '/Users/morgan/Programming/temp/qrtest/bug/build/app/intermediates/merged_native_libs/debug/out/lib/arm64-v8a/libflutter.so' due to missing strip tool for ABI 'ARM64_V8A'. Packaging it as is.
[        ] Unable to strip library '/Users/morgan/Programming/temp/qrtest/bug/build/app/intermediates/merged_native_libs/debug/out/lib/x86_64/libflutter.so' due to missing strip tool for ABI 'X86_64'. Packaging it as is.
[ +799 ms] > Task :app:mergeExtDexDebug
[+6102 ms] > Task :app:packageDebug
[        ] > Task :app:assembleDebug
[        ] Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
[        ] Use '--warning-mode all' to show the individual deprecation warnings.
[        ] See https://docs.gradle.org/5.6.2/userguide/command_line_interface.html#sec:command_line_warnings
[        ] BUILD SUCCESSFUL in 40s
[        ] 59 actionable tasks: 44 executed, 15 up-to-date
[ +394 ms] Running Gradle task 'assembleDebug'... (completed in 41.1s)
[  +59 ms] calculateSha: LocalDirectory: '/Users/morgan/Programming/temp/qrtest/bug/build/app/outputs/apk'/app.apk
[  +87 ms] calculateSha: reading file took 86us
[+1118 ms] calculateSha: computing sha took 1117us
[   +4 ms] ✓ Built build/app/outputs/apk/debug/app-debug.apk.
[   +8 ms] executing: /Users/morgan/Library/Android/sdk/build-tools/29.0.2/aapt dump xmltree /Users/morgan/Programming/temp/qrtest/bug/build/app/outputs/apk/app.apk AndroidManifest.xml
[  +22 ms] Exit code 0 from: /Users/morgan/Library/Android/sdk/build-tools/29.0.2/aapt dump xmltree /Users/morgan/Programming/temp/qrtest/bug/build/app/outputs/apk/app.apk AndroidManifest.xml
[        ] N: android=http://schemas.android.com/apk/res/android
             E: manifest (line=2)
               A: android:versionCode(0x0101021b)=(type 0x10)0x1
               A: android:versionName(0x0101021c)="1.0.0" (Raw: "1.0.0")
               A: android:compileSdkVersion(0x01010572)=(type 0x10)0x1c
               A: android:compileSdkVersionCodename(0x01010573)="9" (Raw: "9")
               A: package="com.example.bug" (Raw: "com.example.bug")
               A: platformBuildVersionCode=(type 0x10)0x1c
               A: platformBuildVersionName=(type 0x10)0x9
               E: uses-sdk (line=7)
                 A: android:minSdkVersion(0x0101020c)=(type 0x10)0x15
                 A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1c
               E: uses-permission (line=14)
                 A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET")
               E: uses-permission (line=15)
                 A: android:name(0x01010003)="android.permission.CAMERA" (Raw: "android.permission.CAMERA")
               E: uses-permission (line=16)
                 A: android:name(0x01010003)="android.permission.RECORD_AUDIO" (Raw: "android.permission.RECORD_AUDIO")
               E: application (line=24)
                 A: android:label(0x01010001)="bug" (Raw: "bug")
                 A: android:icon(0x01010002)=@0x7f080000
                 A: android:name(0x01010003)="io.flutter.app.FlutterApplication" (Raw: "io.flutter.app.FlutterApplication")
                 A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff
                 A: android:appComponentFactory(0x0101057a)="androidx.core.app.CoreComponentFactory" (Raw: "androidx.core.app.CoreComponentFactory")
                 E: activity (line=30)
                   A: android:theme(0x01010000)=@0x7f0a0000
                   A: android:name(0x01010003)="com.example.bug.MainActivity" (Raw: "com.example.bug.MainActivity")
                   A: android:launchMode(0x0101001d)=(type 0x10)0x1
                   A: android:configChanges(0x0101001f)=(type 0x11)0x40003fb4
                   A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10
                   A: android:hardwareAccelerated(0x010102d3)=(type 0x12)0xffffffff
                   E: meta-data (line=44)
                     A: android:name(0x01010003)="io.flutter.embedding.android.NormalTheme" (Raw: "io.flutter.embedding.android.NormalTheme")
                     A: android:resource(0x01010025)=@0x7f0a0001
                   E: meta-data (line=54)
                     A: android:name(0x01010003)="io.flutter.embedding.android.SplashScreenDrawable" (Raw: "io.flutter.embedding.android.SplashScreenDrawable")
                     A: android:resource(0x01010025)=@0x7f040000
                   E: intent-filter (line=58)
                     E: action (line=59)
                       A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
                     E: category (line=61)
                       A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER")
                 E: meta-data (line=68)
                   A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding")
                   A: android:value(0x01010024)=(type 0x10)0x2
[   +6 ms] Stopping app 'app.apk' on Nexus 5X.
[   +1 ms] executing: /Users/morgan/Library/Android/sdk/platform-tools/adb -s 00c5937b0b2c37ce shell am force-stop com.example.bug
[ +145 ms] executing: /Users/morgan/Library/Android/sdk/platform-tools/adb -s 00c5937b0b2c37ce shell pm list packages com.example.bug
[+1420 ms] Installing APK.
[   +3 ms] executing: /Users/morgan/Library/Android/sdk/platform-tools/adb version
[   +7 ms] Android Debug Bridge version 1.0.41
           Version 29.0.5-5949299
           Installed as /Users/morgan/Library/Android/sdk/platform-tools/adb
[        ] executing: /Users/morgan/Library/Android/sdk/platform-tools/adb start-server
[   +7 ms] Installing build/app/outputs/apk/app.apk...
[        ] executing: /Users/morgan/Library/Android/sdk/platform-tools/adb -s 00c5937b0b2c37ce install -t -r /Users/morgan/Programming/temp/qrtest/bug/build/app/outputs/apk/app.apk
[+11437 ms] Performing Streamed Install
                     Success
[        ] Installing build/app/outputs/apk/app.apk... (completed in 11.4s)
[   +4 ms] executing: /Users/morgan/Library/Android/sdk/platform-tools/adb -s 00c5937b0b2c37ce shell echo -n e7edd3c2ca74c295105d6e9f2aaffc2abd17252f > /data/local/tmp/sky.com.example.bug.sha1
[  +72 ms] Nexus 5X startApp
[   +3 ms] executing: /Users/morgan/Library/Android/sdk/platform-tools/adb -s 00c5937b0b2c37ce shell am start -a android.intent.action.RUN -f 0x20000000 --ez enable-background-compilation true --ez enable-dart-profiling true --ez
enable-checked-mode true --ez verify-entry-points true com.example.bug/com.example.bug.MainActivity
[ +128 ms] Starting: Intent { act=android.intent.action.RUN flg=0x20000000 cmp=com.example.bug/.MainActivity (has extras) }
[        ] Waiting for observatory port to be available...
[+2465 ms] Observatory URL on device: http://127.0.0.1:38482/tMtWnXgHo30=/
[   +2 ms] executing: /Users/morgan/Library/Android/sdk/platform-tools/adb -s 00c5937b0b2c37ce forward tcp:0 tcp:38482
[  +13 ms] 54961
[        ] Forwarded host port 54961 to device port 38482 for Observatory
[  +16 ms] Connecting to service protocol: http://127.0.0.1:54961/tMtWnXgHo30=/
[ +673 ms] Successfully connected to service protocol: http://127.0.0.1:54961/tMtWnXgHo30=/
[   +2 ms] Sending to VM service: getVM({})
[  +10 ms] Result: {type: VM, name: vm, architectureBits: 64, hostCPU: Qualcomm Technologies, Inc MSM8992, operatingSystem: android, targetCPU: arm64, version: 2.8.0-dev.6.0.flutter-fc3af737c7 (Fri Jan 24 09:53:26 2020 +0000) on
"android_arm64", _profilerMode: VM, _...
[   +8 ms] Sending to VM service: getIsolate({isolateId: isolates/596174783914835})
[   +4 ms] Sending to VM service: _flutter.listViews({})
[  +19 ms] Result: {type: FlutterViewList, views: [{type: FlutterView, id: _flutterView/0x7896c4fa20, isolate: {type: @Isolate, fixedId: true, id: isolates/596174783914835, name: main.dart$main-596174783914835, number:
596174783914835}}]}
[  +19 ms] DevFS: Creating new filesystem on the device (null)
[        ] Sending to VM service: _createDevFS({fsName: bug})
[ +164 ms] Result: {type: Isolate, id: isolates/596174783914835, name: main, number: 596174783914835, _originNumber: 596174783914835, startTime: 1580484479532, _heaps: {new: {type: HeapSpace, name: new, vmName: Scavenger,
collections: 0, avgCollectionPeriodMillis: 0...
[  +20 ms] Result: {type: FileSystem, name: bug, uri: file:///data/user/0/com.example.bug/code_cache/bugLPZMPT/bug/}
[        ] DevFS: Created new filesystem on the device (file:///data/user/0/com.example.bug/code_cache/bugLPZMPT/bug/)
[   +2 ms] Updating assets
[ +140 ms] Syncing files to device Nexus 5X...
[   +1 ms] Scanning asset files
[   +1 ms] <- reset
[        ] Compiling dart to kernel with 0 updated files
[   +6 ms] /Users/morgan/devtools/flutter/bin/cache/dart-sdk/bin/dart /Users/morgan/devtools/flutter/bin/cache/artifacts/engine/darwin-x64/frontend_server.dart.snapshot --sdk-root
/Users/morgan/devtools/flutter/bin/cache/artifacts/engine/common/flutter_patched_sdk/ --incremental --target=flutter -Ddart.developer.causal_async_stacks=true --output-dill
/var/folders/24/97qhxdvs57b87p2bjf27p7400000gp/T/flutter_tool.oZWD4Z/app.dill --packages /Users/morgan/Programming/temp/qrtest/bug/.packages -Ddart.vm.profile=false -Ddart.vm.product=false
--bytecode-options=source-positions,local-var-info,debugger-stops,instance-field-initializers,keep-unreachable-code,avoid-closure-call-instructions --enable-asserts --track-widget-creation --filesystem-scheme org-dartlang-root
[   +5 ms] <- compile package:qrtest/main.dart
[  +16 ms] I/CameraManagerGlobal(16471): Connecting to camera service
[+4908 ms] I/Adreno  (16471): Invalid colorspace 1
[ +377 ms] I/Adreno  (16471): Invalid colorspace 1
[  +44 ms] I/Adreno  (16471): Invalid colorspace 1
[  +65 ms] I/Adreno  (16471): Invalid colorspace 1
[  +27 ms] I/zygote64(16471): Do partial code cache collection, code=27KB, data=29KB
[        ] I/zygote64(16471): After code cache collection, code=23KB, data=26KB
[        ] I/zygote64(16471): Increasing code cache capacity to 128KB
[  +39 ms] I/Adreno  (16471): Invalid colorspace 1
[  +89 ms] I/Adreno  (16471): Invalid colorspace 1
[ +105 ms] I/Adreno  (16471): Invalid colorspace 1
[ +178 ms] I/Adreno  (16471): Invalid colorspace 1
[+1868 ms] I/zygote64(16471): Do partial code cache collection, code=61KB, data=50KB
[        ] I/zygote64(16471): After code cache collection, code=61KB, data=50KB
[        ] I/zygote64(16471): Increasing code cache capacity to 256KB
[ +605 ms] I/zygote64(16471): Background concurrent copying GC freed 276(143KB) AllocSpace objects, 15(20MB) LOS objects, 36% free, 41MB/65MB, paused 603us total 164.090ms
[ +183 ms] I/zygote64(16471): Background concurrent copying GC freed 765(157KB) AllocSpace objects, 43(59MB) LOS objects, 50% free, 19MB/38MB, paused 5.316ms total 99.885ms
[ +515 ms] Updating files
[ +418 ms] I/zygote64(16471): Background concurrent copying GC freed 562(126KB) AllocSpace objects, 29(42MB) LOS objects, 34% free, 45MB/69MB, paused 87us total 232.354ms
[ +373 ms] DevFS: Sync finished
[   +1 ms] Syncing files to device Nexus 5X... (completed in 9,834ms, longer than expected)
[        ] Synced 0.9MB.
[   +3 ms] Sending to VM service: _flutter.listViews({})
[  +17 ms] Result: {type: FlutterViewList, views: [{type: FlutterView, id: _flutterView/0x7896c4fa20, isolate: {type: @Isolate, fixedId: true, id: isolates/596174783914835, name: main.dart$main-596174783914835, number:
596174783914835}}]}
[   +3 ms] <- accept
[        ] Connected to _flutterView/0x7896c4fa20.
[   +1 ms] Flutter run key commands.
[   +1 ms] r Hot reload. 🔥🔥🔥
[        ] R Hot restart.
[        ] h Repeat this help message.
[        ] d Detach (terminate "flutter run" but leave application running).
[        ] q Quit (terminate the application on the device).
[        ] An Observatory debugger and profiler on Nexus 5X is available at: http://127.0.0.1:54961/tMtWnXgHo30=/
[  +24 ms] I/zygote64(16471): Background concurrent copying GC freed 917(123KB) AllocSpace objects, 48(64MB) LOS objects, 29% free, 56MB/80MB, paused 3.872ms total 312.821ms
[ +284 ms] I/zygote64(16471): Background concurrent copying GC freed 1187(140KB) AllocSpace objects, 55(75MB) LOS objects, 32% free, 49MB/73MB, paused 2.807ms total 188.659ms
[ +830 ms] I/zygote64(16471): Background concurrent copying GC freed 303(111KB) AllocSpace objects, 16(22MB) LOS objects, 40% free, 35MB/59MB, paused 9.031ms total 101.687ms
[+5676 ms] I/zygote64(16471): Background concurrent copying GC freed 344(111KB) AllocSpace objects, 15(20MB) LOS objects, 49% free, 24MB/48MB, paused 2.354ms total 151.168ms
[ +158 ms] I/Adreno  (16471): Invalid colorspace 1
[+1847 ms] I/zygote64(16471): Do full code cache collection, code=124KB, data=85KB
[   +2 ms] I/zygote64(16471): After code cache collection, code=111KB, data=64KB
[+10620 ms] I/zygote64(16471): Do partial code cache collection, code=123KB, data=75KB
[   +2 ms] I/zygote64(16471): After code cache collection, code=123KB, data=75KB
[        ] I/zygote64(16471): Increasing code cache capacity to 512KB
[+1933 ms] I/zygote64(16471): Background concurrent copying GC freed 349(129KB) AllocSpace objects, 14(19MB) LOS objects, 49% free, 15MB/30MB, paused 1.030ms total 144.252ms
[ +305 ms] I/zygote64(16471): Background concurrent copying GC freed 203(81KB) AllocSpace objects, 6(6MB) LOS objects, 50% free, 9MB/19MB, paused 5.096ms total 26.547ms
[+9274 ms] I/zygote64(16471): Background concurrent copying GC freed 413(110KB) AllocSpace objects, 23(31MB) LOS objects, 49% free, 9MB/18MB, paused 6.919ms total 39.058ms
[+3959 ms] I/zygote64(16471): Background concurrent copying GC freed 459(128KB) AllocSpace objects, 21(29MB) LOS objects, 45% free, 28MB/52MB, paused 2.460ms total 157.936ms
[ +413 ms] I/zygote64(16471): Background concurrent copying GC freed 830(141KB) AllocSpace objects, 35(48MB) LOS objects, 48% free, 25MB/49MB, paused 137us total 274.536ms
[ +260 ms] I/zygote64(16471): Background concurrent copying GC freed 796(140KB) AllocSpace objects, 33(45MB) LOS objects, 43% free, 31MB/55MB, paused 1.650ms total 139.677ms
[ +176 ms] I/zygote64(16471): Background concurrent copying GC freed 825(147KB) AllocSpace objects, 37(51MB) LOS objects, 39% free, 37MB/61MB, paused 2.919ms total 106.055ms
[ +214 ms] I/zygote64(16471): Background concurrent copying GC freed 896(146KB) AllocSpace objects, 43(61MB) LOS objects, 42% free, 32MB/56MB, paused 75us total 123.596ms
[ +198 ms] I/zygote64(16471): Background concurrent copying GC freed 849(143KB) AllocSpace objects, 39(51MB) LOS objects, 42% free, 32MB/56MB, paused 1.257ms total 125.252ms
[ +647 ms] I/zygote64(16471): Background concurrent copying GC freed 286(110KB) AllocSpace objects, 16(22MB) LOS objects, 49% free, 10MB/21MB, paused 5.921ms total 36.964ms
[ +840 ms] I/zygote64(16471): Background concurrent copying GC freed 515(111KB) AllocSpace objects, 28(38MB) LOS objects, 43% free, 31MB/55MB, paused 686us total 111.828ms
[+3992 ms] I/zygote64(16471): Background concurrent copying GC freed 490(129KB) AllocSpace objects, 25(32MB) LOS objects, 36% free, 42MB/66MB, paused 122us total 174.064ms
[ +400 ms] I/zygote64(16471): Background concurrent copying GC freed 351(96KB) AllocSpace objects, 15(20MB) LOS objects, 43% free, 30MB/54MB, paused 791us total 105.182ms
[ +842 ms] I/zygote64(16471): Background concurrent copying GC freed 727(126KB) AllocSpace objects, 34(44MB) LOS objects, 40% free, 35MB/59MB, paused 3.763ms total 117.138ms
[ +191 ms] I/zygote64(16471): Background concurrent copying GC freed 742(141KB) AllocSpace objects, 41(56MB) LOS objects, 38% free, 39MB/63MB, paused 2.791ms total 122.543ms
[ +238 ms] I/zygote64(16471): Background concurrent copying GC freed 880(144KB) AllocSpace objects, 42(58MB) LOS objects, 33% free, 47MB/71MB, paused 816us total 162.301ms
[ +344 ms] I/zygote64(16471): Background concurrent copying GC freed 604(129KB) AllocSpace objects, 29(39MB) LOS objects, 41% free, 33MB/57MB, paused 939us total 133.029ms
[ +277 ms] I/zygote64(16471): Background concurrent copying GC freed 761(144KB) AllocSpace objects, 37(53MB) LOS objects, 33% free, 47MB/71MB, paused 2.835ms total 209.952ms
[ +194 ms] I/zygote64(16471): Background concurrent copying GC freed 965(158KB) AllocSpace objects, 49(67MB) LOS objects, 48% free, 24MB/48MB, paused 58us total 105.475ms
[ +447 ms] I/zygote64(16471): Background concurrent copying GC freed 802(160KB) AllocSpace objects, 35(48MB) LOS objects, 32% free, 49MB/73MB, paused 378us total 179.316ms
[ +838 ms] I/zygote64(16471): Background concurrent copying GC freed 620(157KB) AllocSpace objects, 36(49MB) LOS objects, 42% free, 32MB/56MB, paused 739us total 128.519ms
[ +798 ms] I/zygote64(16471): Background concurrent copying GC freed 749(142KB) AllocSpace objects, 40(55MB) LOS objects, 49% free, 20MB/41MB, paused 384us total 107.021ms
[ +179 ms] I/zygote64(16471): Background concurrent copying GC freed 643(95KB) AllocSpace objects, 28(38MB) LOS objects, 49% free, 21MB/43MB, paused 831us total 103.827ms
[ +558 ms] I/zygote64(16471): Background concurrent copying GC freed 491(127KB) AllocSpace objects, 20(27MB) LOS objects, 33% free, 47MB/71MB, paused 4.315ms total 188.493ms
[ +168 ms] I/zygote64(16471): Background concurrent copying GC freed 859(142KB) AllocSpace objects, 48(66MB) LOS objects, 48% free, 24MB/48MB, paused 2.634ms total 111.177ms
[ +662 ms] I/zygote64(16471): Background concurrent copying GC freed 538(127KB) AllocSpace objects, 14(19MB) LOS objects, 46% free, 27MB/51MB, paused 43.277ms total 179.615ms
[ +254 ms] I/zygote64(16471): Background concurrent copying GC freed 670(110KB) AllocSpace objects, 34(46MB) LOS objects, 41% free, 33MB/57MB, paused 1.593ms total 121.796ms
[+10733 ms] I/zygote64(16471): Background concurrent copying GC freed 317(96KB) AllocSpace objects, 14(19MB) LOS objects, 50% free, 21MB/42MB, paused 934us total 220.299ms
[+13024 ms] I/zygote64(16471): Waiting for a blocking GC ProfileSaver
[  +14 ms] I/zygote64(16471): WaitForGcToComplete blocked ProfileSaver on HeapTrim for 10.832ms
[+1829 ms] I/zygote64(16471): Background concurrent copying GC freed 611(125KB) AllocSpace objects, 34(46MB) LOS objects, 46% free, 27MB/51MB, paused 1.096ms total 205.117ms
[ +390 ms] I/zygote64(16471): Background concurrent copying GC freed 845(121KB) AllocSpace objects, 34(47MB) LOS objects, 42% free, 32MB/56MB, paused 2.751ms total 139.566ms
[ +609 ms] I/zygote64(16471): Background concurrent copying GC freed 417(81KB) AllocSpace objects, 21(29MB) LOS objects, 44% free, 30MB/54MB, paused 85us total 114.894ms
[ +198 ms] I/zygote64(16471): Background concurrent copying GC freed 735(125KB) AllocSpace objects, 38(54MB) LOS objects, 47% free, 26MB/50MB, paused 156us total 121.253ms
[ +170 ms] I/zygote64(16471): Background concurrent copying GC freed 609(141KB) AllocSpace objects, 35(48MB) LOS objects, 41% free, 33MB/57MB, paused 85us total 122.601ms
[ +178 ms] I/zygote64(16471): Background concurrent copying GC freed 844(144KB) AllocSpace objects, 40(52MB) LOS objects, 49% free, 24MB/48MB, paused 116us total 105.531ms
[ +158 ms] I/zygote64(16471): Background concurrent copying GC freed 567(112KB) AllocSpace objects, 30(44MB) LOS objects, 48% free, 25MB/49MB, paused 89us total 109.250ms
[+8733 ms] I/zygote64(16471): Background concurrent copying GC freed 599(128KB) AllocSpace objects, 30(41MB) LOS objects, 50% free, 19MB/38MB, paused 6.416ms total 62.917ms
[+1398 ms] I/zygote64(16471): Background concurrent copying GC freed 302(111KB) AllocSpace objects, 16(22MB) LOS objects, 45% free, 28MB/52MB, paused 218us total 128.291ms
[ +263 ms] I/zygote64(16471): Background concurrent copying GC freed 665(141KB) AllocSpace objects, 35(48MB) LOS objects, 44% free, 30MB/54MB, paused 375us total 221.304ms
[ +423 ms] I/zygote64(16471): Background concurrent copying GC freed 532(96KB) AllocSpace objects, 27(37MB) LOS objects, 49% free, 24MB/48MB, paused 5.165ms total 86.162ms
[+1084 ms] I/zygote64(16471): Background concurrent copying GC freed 373(97KB) AllocSpace objects, 16(22MB) LOS objects, 50% free, 19MB/38MB, paused 5.238ms total 61.115ms
[ +184 ms] I/zygote64(16471): Background concurrent copying GC freed 510(111KB) AllocSpace objects, 26(36MB) LOS objects, 43% free, 31MB/55MB, paused 3.084ms total 127.418ms
[ +183 ms] I/zygote64(16471): Background concurrent copying GC freed 708(126KB) AllocSpace objects, 37(51MB) LOS objects, 45% free, 28MB/52MB, paused 320us total 125.677ms
[ +192 ms] I/zygote64(16471): Background concurrent copying GC freed 662(110KB) AllocSpace objects, 35(48MB) LOS objects, 38% free, 39MB/63MB, paused 1.796ms total 132.670ms
[ +182 ms] I/zygote64(16471): Background concurrent copying GC freed 783(160KB) AllocSpace objects, 42(58MB) LOS objects, 40% free, 35MB/59MB, paused 1.204ms total 118.387ms
[ +233 ms] I/zygote64(16471): Background concurrent copying GC freed 848(144KB) AllocSpace objects, 41(56MB) LOS objects, 36% free, 41MB/65MB, paused 2.469ms total 168.333ms
[ +489 ms] I/zygote64(16471): Background concurrent copying GC freed 861(127KB) AllocSpace objects, 43(59MB) LOS objects, 29% free, 56MB/80MB, paused 437us total 237.239ms
[ +298 ms] I/zygote64(16471): Background concurrent copying GC freed 734(144KB) AllocSpace objects, 35(48MB) LOS objects, 29% free, 58MB/82MB, paused 373us total 228.440ms
[ +292 ms] I/zygote64(16471): Background concurrent copying GC freed 1167(145KB) AllocSpace objects, 56(77MB) LOS objects, 38% free, 39MB/63MB, paused 2.217ms total 205.855ms
[ +527 ms] I/zygote64(16471): Background concurrent copying GC freed 762(145KB) AllocSpace objects, 36(50MB) LOS objects, 26% free, 68MB/92MB, paused 1.915ms total 309.091ms
[ +285 ms] I/zygote64(16471): Background concurrent copying GC freed 1324(143KB) AllocSpace objects, 63(87MB) LOS objects, 49% free, 10MB/21MB, paused 2.741ms total 161.144ms
[ +124 ms] I/zygote64(16471): Background concurrent copying GC freed 441(111KB) AllocSpace objects, 13(17MB) LOS objects, 32% free, 48MB/72MB, paused 2.158ms total 149.095ms
[ +219 ms] I/zygote64(16471): Background concurrent copying GC freed 1007(145KB) AllocSpace objects, 49(67MB) LOS objects, 50% free, 19MB/39MB, paused 2.805ms total 139.090ms
[ +271 ms] I/zygote64(16471): Background concurrent copying GC freed 560(128KB) AllocSpace objects, 23(34MB) LOS objects, 34% free, 45MB/69MB, paused 117us total 219.055ms
[ +172 ms] I/zygote64(16471): Background concurrent copying GC freed 961(142KB) AllocSpace objects, 47(62MB) LOS objects, 44% free, 29MB/53MB, paused 68us total 118.474ms
[ +493 ms] I/zygote64(16471): Background concurrent copying GC freed 649(99KB) AllocSpace objects, 30(44MB) LOS objects, 26% free, 67MB/91MB, paused 89us total 283.479ms
[ +246 ms] I/zygote64(16471): Background concurrent copying GC freed 1252(142KB) AllocSpace objects, 63(87MB) LOS objects, 33% free, 47MB/71MB, paused 82us total 174.104ms
[ +497 ms] I/zygote64(16471): Background concurrent copying GC freed 944(143KB) AllocSpace objects, 49(67MB) LOS objects, 22% free, 80MB/104MB, paused 213us total 422.382ms
[ +298 ms] I/zygote64(16471): Background concurrent copying GC freed 1625(157KB) AllocSpace objects, 74(100MB) LOS objects, 37% free, 39MB/63MB, paused 5.824ms total 202.463ms
[ +253 ms] I/zygote64(16471): Background concurrent copying GC freed 937(143KB) AllocSpace objects, 44(60MB) LOS objects, 38% free, 38MB/62MB, paused 3.832ms total 188.907ms
[ +176 ms] I/zygote64(16471): Background concurrent copying GC freed 1127(151KB) AllocSpace objects, 47(65MB) LOS objects, 48% free, 25MB/49MB, paused 82us total 121.082ms
[+1001 ms] I/zygote64(16471): Background concurrent copying GC freed 688(144KB) AllocSpace objects, 35(48MB) LOS objects, 39% free, 37MB/61MB, paused 894us total 128.212ms
[ +217 ms] I/zygote64(16471): Background concurrent copying GC freed 807(143KB) AllocSpace objects, 41(57MB) LOS objects, 43% free, 31MB/55MB, paused 884us total 131.556ms
[ +331 ms] I/zygote64(16471): Background concurrent copying GC freed 720(144KB) AllocSpace objects, 33(43MB) LOS objects, 49% free, 24MB/48MB, paused 762us total 113.529ms
[ +435 ms] I/zygote64(16471): Background concurrent copying GC freed 707(142KB) AllocSpace objects, 42(58MB) LOS objects, 38% free, 38MB/62MB, paused 204us total 147.937ms
[ +253 ms] I/zygote64(16471): Background concurrent copying GC freed 781(141KB) AllocSpace objects, 42(58MB) LOS objects, 39% free, 37MB/61MB, paused 1.704ms total 180.788ms
[ +168 ms] I/zygote64(16471): Background concurrent copying GC freed 847(143KB) AllocSpace objects, 41(56MB) LOS objects, 46% free, 27MB/51MB, paused 1.102ms total 107.510ms
[ +219 ms] I/zygote64(16471): Background concurrent copying GC freed 731(145KB) AllocSpace objects, 34(47MB) LOS objects, 37% free, 40MB/64MB, paused 1.079ms total 153.687ms
[ +222 ms] I/zygote64(16471): Background concurrent copying GC freed 855(144KB) AllocSpace objects, 44(60MB) LOS objects, 39% free, 37MB/61MB, paused 3.463ms total 162.201ms
[ +377 ms] I/zygote64(16471): Background concurrent copying GC freed 365(96KB) AllocSpace objects, 9(12MB) LOS objects, 32% free, 48MB/72MB, paused 108us total 148.025ms
[ +205 ms] I/zygote64(16471): Background concurrent copying GC freed 876(142KB) AllocSpace objects, 49(67MB) LOS objects, 39% free, 37MB/61MB, paused 2.099ms total 142.156ms
[ +261 ms] I/zygote64(16471): Background concurrent copying GC freed 864(143KB) AllocSpace objects, 41(56MB) LOS objects, 35% free, 43MB/67MB, paused 721us total 185.408ms
[ +227 ms] I/zygote64(16471): Background concurrent copying GC freed 889(144KB) AllocSpace objects, 44(63MB) LOS objects, 48% free, 25MB/49MB, paused 103us total 155.508ms
[ +227 ms] I/zygote64(16471): Background concurrent copying GC freed 813(128KB) AllocSpace objects, 34(44MB) LOS objects, 42% free, 32MB/56MB, paused 178us total 156.791ms
[ +268 ms] I/zygote64(16471): Background concurrent copying GC freed 772(144KB) AllocSpace objects, 36(51MB) LOS objects, 27% free, 62MB/86MB, paused 69us total 225.876ms
[ +378 ms] I/zygote64(16471): Background concurrent copying GC freed 1203(142KB) AllocSpace objects, 62(83MB) LOS objects, 36% free, 41MB/65MB, paused 7.021ms total 285.759ms
[ +277 ms] I/zygote64(16471): Background concurrent copying GC freed 1036(142KB) AllocSpace objects, 43(61MB) LOS objects, 42% free, 32MB/56MB, paused 94us total 192.875ms
[ +214 ms] I/zygote64(16471): Background concurrent copying GC freed 923(145KB) AllocSpace objects, 40(52MB) LOS objects, 43% free, 31MB/55MB, paused 852us total 154.515ms
[ +260 ms] I/zygote64(16471): Background concurrent copying GC freed 805(129KB) AllocSpace objects, 36(50MB) LOS objects, 39% free, 37MB/61MB, paused 542us total 180.285ms
[ +401 ms] I/zygote64(16471): Background concurrent copying GC freed 908(144KB) AllocSpace objects, 42(58MB) LOS objects, 40% free, 35MB/59MB, paused 3.431ms total 312.363ms
[ +329 ms] I/zygote64(16471): Background concurrent copying GC freed 1068(143KB) AllocSpace objects, 40(55MB) LOS objects, 48% free, 24MB/48MB, paused 2.238ms total 147.058ms
[ +195 ms] I/zygote64(16471): Background concurrent copying GC freed 628(113KB) AllocSpace objects, 31(44MB) LOS objects, 41% free, 33MB/57MB, paused 87us total 133.586ms
[ +321 ms] I/zygote64(16471): Background concurrent copying GC freed 981(129KB) AllocSpace objects, 41(54MB) LOS objects, 44% free, 29MB/53MB, paused 2.311ms total 231.748ms
[ +402 ms] I/zygote64(16471): Background concurrent copying GC freed 807(142KB) AllocSpace objects, 40(55MB) LOS objects, 28% free, 59MB/83MB, paused 3.498ms total 342.103ms
[ +389 ms] I/zygote64(16471): Background concurrent copying GC freed 1301(142KB) AllocSpace objects, 57(78MB) LOS objects, 33% free, 47MB/71MB, paused 1.542ms total 216.508ms
[ +377 ms] I/zygote64(16471): Background concurrent copying GC freed 971(144KB) AllocSpace objects, 48(66MB) LOS objects, 24% free, 73MB/97MB, paused 69us total 302.787ms
[ +198 ms] I/zygote64(16471): Background concurrent copying GC freed 1298(144KB) AllocSpace objects, 66(93MB) LOS objects, 38% free, 38MB/62MB, paused 90us total 128.226ms
[+1327 ms] I/zygote64(16471): Background concurrent copying GC freed 265(111KB) AllocSpace objects, 15(20MB) LOS objects, 37% free, 39MB/63MB, paused 80us total 164.286ms
[ +699 ms] I/zygote64(16471): Background concurrent copying GC freed 784(142KB) AllocSpace objects, 43(59MB) LOS objects, 29% free, 56MB/80MB, paused 2.671ms total 179.485ms
[ +166 ms] I/zygote64(16471): Background concurrent copying GC freed 902(141KB) AllocSpace objects, 55(75MB) LOS objects, 33% free, 47MB/71MB, paused 1.449ms total 300.097ms
[ +868 ms] Service protocol connection closed.
[        ] Lost connection to device.
[   +3 ms] executing: /Users/morgan/Library/Android/sdk/platform-tools/adb -s 00c5937b0b2c37ce forward --list
[  +36 ms] Exit code 0 from: /Users/morgan/Library/Android/sdk/platform-tools/adb -s 00c5937b0b2c37ce forward --list
[        ] 00c5937b0b2c37ce tcp:54961 tcp:38482
[   +2 ms] executing: /Users/morgan/Library/Android/sdk/platform-tools/adb -s 00c5937b0b2c37ce forward --remove tcp:54961
[  +37 ms] DevFS: Deleting filesystem on the device (file:///data/user/0/com.example.bug/code_cache/bugLPZMPT/bug/)
[   +1 ms] Sending to VM service: _deleteDevFS({fsName: bug})
[ +259 ms] Ignored error while cleaning up DevFS: TimeoutException after 0:00:00.250000: Future not completed
[   +3 ms] executing: /Users/morgan/Library/Android/sdk/platform-tools/adb -s 00c5937b0b2c37ce forward --list
[  +12 ms] Exit code 0 from: /Users/morgan/Library/Android/sdk/platform-tools/adb -s 00c5937b0b2c37ce forward --list
[   +3 ms] "flutter run" took 176,010ms.

```

## Flutter Doctor:

```
[✓] Flutter (Channel master, v1.14.7-pre.38, on Mac OS X 10.15.3 19D76, locale en-CA)
    • Flutter version 1.14.7-pre.38 at /Users/morgan/devtools/flutter
    • Framework revision 92f7e16312 (2 days ago), 2020-01-29 17:51:31 -0800
    • Engine revision 6007c17fd2
    • Dart version 2.8.0 (build 2.8.0-dev.5.0 fc3af737c7)

 
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at /Users/morgan/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-29, build-tools 29.0.2
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.3.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.3.1, Build version 11C504
    • CocoaPods version 1.8.4

[✓] Android Studio (version 3.5)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 42.1.1
    • Dart plugin version 191.8593
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)

[✓] IntelliJ IDEA Community Edition (version 2019.3.2)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 42.1.4
    • Dart plugin version 193.6015.53

[✓] VS Code (version 1.41.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.7.1

[✓] Connected device (2 available)
    • Nexus 5X      • -------------                         • android-arm64 • Android 8.1.0 (API 27)
    • iPhone • ---------------------- • ios           • iOS 13.3

• No issues found!

```

</details>