Skip to content

Scene .toImage() sometimes fails to render images #17687

@andreidiaconu

Description

@andreidiaconu

Steps to Reproduce

  1. Use RepaintBoundary in your layout, with an Image as a child.
  2. Use RenderRepaintBoundary to render an image of the layout as described in the docs
  3. Run the app on an Android device (Tried an iOS emulator and could not reproduce. have not tried an iOS device)
  4. Sometimes the Image widget is not rendered by toImage().

I buit a demo project for this and another issue, both related to .toImage(). You can clone to easily reproduce: https://github.com/andreidiaconu/flutter-toimage-bugs - I have already filed #17686 for the other issue.

The reason this bug is pointing at Scene is that from my investigation this is where the issue seems to be.

This report is about Issue #2 from this image:

toimage bugs

  1. Code to reproduce (from above repo):
import 'dart:typed_data';
import 'dart:ui' as ui;

import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';

void main() => runApp(new MyApp());

class MyApp extends StatelessWidget {
  final GlobalKey repaintBoundary = new GlobalKey();

  void _saveToImage() async {
    RenderRepaintBoundary boundary = repaintBoundary.currentContext.findRenderObject();
    ui.Image image = await boundary.toImage(pixelRatio: 5.0);
    ByteData byteData = await image.toByteData(format: ui.ImageByteFormat.png);
    Uint8List pngBytes = byteData.buffer.asUint8List();
    _showImage(pngBytes);
  }

  void _showImage(Uint8List imageBytes){
    showDialog(
      context: repaintBoundary.currentContext,
      barrierDismissible: true,
      builder: (BuildContext context2) =>
        new Center(
          child: new Container(
            decoration: new BoxDecoration(
              border: new Border.all(color: Colors.green, width: 5.0),
              color: Colors.blue,
            ),
            child: new Image(image: new MemoryImage(imageBytes), fit: BoxFit.contain,)
          ),
        )
    );
  }

  @override
  Widget build(BuildContext context) {
    return new MaterialApp(
      title: 'Flutter Demo',
      theme: new ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: new Scaffold(
        appBar: new AppBar(
          title: new Text(".toImage() Bug Report Demo"),
        ),
        body: new RepaintBoundary(
          key: repaintBoundary,
          child: new Stack(
            children: <Widget>[
              new Positioned.fill(
                  child: new Center(
                      child: new Text("Something to have behind the image", textAlign: TextAlign.center)
                  )
              ),
              new Positioned.fill(
                  child: new Image.asset("images/unsplash.jpg", fit: BoxFit.cover)
              ),
              new Positioned.fill(
                  child: new Container(decoration: new BoxDecoration(border: new Border.all(color: Colors.red, width: 5.0)),)
              ),
            ],
          ),
        ),
        floatingActionButton: new FloatingActionButton(
          onPressed: _saveToImage,
          tooltip: 'Save as image',
          child: new Icon(Icons.camera),
        ),
      ),
    );
  }
}

Logs

[  +31 ms] [/Users/andrei/Library/Android/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[  +51 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] origin/master
[        ] [/Users/andrei/Library/Android/flutter/] git rev-parse --abbrev-ref HEAD
[  +14 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] master
[        ] [/Users/andrei/Library/Android/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
[        ] [/Users/andrei/Library/Android/flutter/] git log -n 1 --pretty=format:%H
[  +16 ms] Exit code 0 from: git log -n 1 --pretty=format:%H
[        ] 60272ee5bdf606097a977f3560c843819f383a8b
[   +1 ms] [/Users/andrei/Library/Android/flutter/] git log -n 1 --pretty=format:%ar
[  +15 ms] Exit code 0 from: git log -n 1 --pretty=format:%ar
[        ] 15 hours ago
[        ] [/Users/andrei/Library/Android/flutter/] git describe --match v*.*.* --first-parent --long --tags
[  +20 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags
[        ] v0.4.4-30-g60272ee5b
[ +180 ms] /usr/bin/defaults read /Applications/Android Studio.app/Contents/Info CFBundleShortVersionString
[  +74 ms] Exit code 0 from: /usr/bin/defaults read /Applications/Android Studio.app/Contents/Info CFBundleShortVersionString
[        ] 3.0
[ +134 ms] /Users/andrei/Library/Android/sdk/platform-tools/adb devices -l
[  +21 ms] Exit code 0 from: /Users/andrei/Library/Android/sdk/platform-tools/adb devices -l
[        ] List of devices attached
           ce031713ec45841004     device usb:336592896X product:dreamltexx model:SM_G950F device:dreamlte transport_id:10
[  +11 ms] idevice_id -h
[ +372 ms] /usr/bin/xcrun simctl list --json devices
[ +285 ms] /Users/andrei/Library/Android/sdk/platform-tools/adb -s ce031713ec45841004 shell getprop
[ +101 ms] ro.hardware = samsungexynos8895
[ +782 ms] Launching lib/main.dart on SM G950F in debug mode...
[   +6 ms] Initializing gradle...
[  +10 ms] Using gradle from /Users/andrei/FlutterProjects/toimagebugs/android/gradlew.
[  +43 ms] /usr/bin/defaults read /Applications/Android Studio.app/Contents/Info CFBundleShortVersionString
[  +73 ms] Exit code 0 from: /usr/bin/defaults read /Applications/Android Studio.app/Contents/Info CFBundleShortVersionString
[        ] 3.0
[  +82 ms] /Users/andrei/FlutterProjects/toimagebugs/android/gradlew -v
[ +680 ms] 
                   ------------------------------------------------------------
                   Gradle 4.1
                   ------------------------------------------------------------
                   
                   Build time:   2017-08-07 14:38:48 UTC
                   Revision:     941559e020f6c357ebb08d5c67acdb858a3defc2
                   
                   Groovy:       2.4.11
                   Ant:          Apache Ant(TM) version 1.9.6 compiled on June 29 2015
                   JVM:          1.8.0_152-release (JetBrains s.r.o 25.152-b08)
                   OS:           Mac OS X 10.13.4 x86_64
[   +2 ms] Resolving dependencies...
[        ] [android/] /Users/andrei/FlutterProjects/toimagebugs/android/gradlew app:properties
[+1121 ms] Parallel execution with configuration on demand is an incubating feature.
                   :app:properties
                   
                   ------------------------------------------------------------
                   Project :app
                   ------------------------------------------------------------
                   
                   allprojects: [project ':app']
                   android: com.android.build.gradle.AppExtension_Decorated@3487a568
                   androidDependencies: task ':app:androidDependencies'
                   ant: org.gradle.api.internal.project.DefaultAntBuilder@1f01a86b
                   antBuilderFactory: org.gradle.api.internal.project.DefaultAntBuilderFactory@4c09d73a
                   archivesBaseName: app
                   artifacts: org.gradle.api.internal.artifacts.dsl.DefaultArtifactHandler_Decorated@4e4a7bc1
                   asDynamicObject: DynamicObject for project ':app'
                   assemble: task ':app:assemble'
                   assembleAndroidTest: task ':app:assembleAndroidTest'
                   assembleDebug: task ':app:assembleDebug'
                   assembleDebugAndroidTest: task ':app:assembleDebugAndroidTest'
                   assembleDebugUnitTest: task ':app:assembleDebugUnitTest'
                   assembleProfile: task ':app:assembleProfile'
                   assembleProfileUnitTest: task ':app:assembleProfileUnitTest'
                   assembleRelease: task ':app:assembleRelease'
                   assembleReleaseUnitTest: task ':app:assembleReleaseUnitTest'
                   baseClassLoaderScope: org.gradle.api.internal.initialization.DefaultClassLoaderScope@47ef2b85
                   buildDependents: task ':app:buildDependents'
                   buildDir: /Users/andrei/FlutterProjects/toimagebugs/build/app
                   buildFile: /Users/andrei/FlutterProjects/toimagebugs/android/app/build.gradle
                   buildNeeded: task ':app:buildNeeded'
                   buildOutputs: BaseVariantOutput container
                   buildScriptSource: org.gradle.groovy.scripts.UriScriptSource@553f81e3
                   buildscript: org.gradle.api.internal.initialization.DefaultScriptHandler@570d3c79
                   bundleAppClassesDebug: task ':app:bundleAppClassesDebug'
                   bundleAppClassesDebugAndroidTest: task ':app:bundleAppClassesDebugAndroidTest'
                   bundleAppClassesDebugUnitTest: task ':app:bundleAppClassesDebugUnitTest'
                   bundleAppClassesProfile: task ':app:bundleAppClassesProfile'
                   bundleAppClassesProfileUnitTest: task ':app:bundleAppClassesProfileUnitTest'
                   bundleAppClassesRelease: task ':app:bundleAppClassesRelease'
                   bundleAppClassesReleaseUnitTest: task ':app:bundleAppClassesReleaseUnitTest'
                   check: task ':app:check'
                   checkDebugManifest: task ':app:checkDebugManifest'
                   checkProfileManifest: task ':app:checkProfileManifest'
                   checkReleaseManifest: task ':app:checkReleaseManifest'
                   childProjects: {}
                   class: class org.gradle.api.internal.project.DefaultProject_Decorated
                   classLoaderScope: org.gradle.api.internal.initialization.DefaultClassLoaderScope@4a04c12a
                   cleanBuildCache: task ':app:cleanBuildCache'
                   compileDebugAidl: task ':app:compileDebugAidl'
                   compileDebugAndroidTestAidl: task ':app:compileDebugAndroidTestAidl'
                   compileDebugAndroidTestJavaWithJavac: task ':app:compileDebugAndroidTestJavaWithJavac'
                   compileDebugAndroidTestNdk: task ':app:compileDebugAndroidTestNdk'
                   compileDebugAndroidTestRenderscript: task ':app:compileDebugAndroidTestRenderscript'
                   compileDebugAndroidTestShaders: task ':app:compileDebugAndroidTestShaders'
                   compileDebugAndroidTestSources: task ':app:compileDebugAndroidTestSources'
                   compileDebugJavaWithJavac: task ':app:compileDebugJavaWithJavac'
                   compileDebugNdk: task ':app:compileDebugNdk'
                   compileDebugRenderscript: task ':app:compileDebugRenderscript'
                   compileDebugShaders: task ':app:compileDebugShaders'
                   compileDebugSources: task ':app:compileDebugSources'
                   compileDebugUnitTestJavaWithJavac: task ':app:compileDebugUnitTestJavaWithJavac'
                   compileDebugUnitTestSources: task ':app:compileDebugUnitTestSources'
                   compileLint: task ':app:compileLint'
                   compileProfileAidl: task ':app:compileProfileAidl'
                   compileProfileJavaWithJavac: task ':app:compileProfileJavaWithJavac'
                   compileProfileNdk: task ':app:compileProfileNdk'
                   compileProfileRenderscript: task ':app:compileProfileRenderscript'
                   compileProfileShaders: task ':app:compileProfileShaders'
                   compileProfileSources: task ':app:compileProfileSources'
                   compileProfileUnitTestJavaWithJavac: task ':app:compileProfileUnitTestJavaWithJavac'
                   compileProfileUnitTestSources: task ':app:compileProfileUnitTestSources'
                   compileReleaseAidl: task ':app:compileReleaseAidl'
                   compileReleaseJavaWithJavac: task ':app:compileReleaseJavaWithJavac'
                   compileReleaseNdk: task ':app:compileReleaseNdk'
                   compileReleaseRenderscript: task ':app:compileReleaseRenderscript'
                   compileReleaseShaders: task ':app:compileReleaseShaders'
                   compileReleaseSources: task ':app:compileReleaseSources'
                   compileReleaseUnitTestJavaWithJavac: task ':app:compileReleaseUnitTestJavaWithJavac'
                   compileReleaseUnitTestSources: task ':app:compileReleaseUnitTestSources'
                   components: SoftwareComponentInternal set
                   configurationActions: org.gradle.configuration.project.DefaultProjectConfigurationActionContainer@740978ec
                   configurationTargetIdentifier: org.gradle.configuration.ConfigurationTargetIdentifier$1@5d90cf17
                   configurations: configuration container
                   connectedAndroidTest: task ':app:connectedAndroidTest'
                   connectedCheck: task ':app:connectedCheck'
                   connectedDebugAndroidTest: task ':app:connectedDebugAndroidTest'
                   consumeConfigAttr: task ':app:consumeConfigAttr'
                   convention: org.gradle.api.internal.plugins.DefaultConvention@63c0de28
                   copyFlutterAssetsDebug: task ':app:copyFlutterAssetsDebug'
                   copyFlutterAssetsProfile: task ':app:copyFlutterAssetsProfile'
                   copyFlutterAssetsRelease: task ':app:copyFlutterAssetsRelease'
                   createDebugCompatibleScreenManifests: task ':app:createDebugCompatibleScreenManifests'
                   createProfileCompatibleScreenManifests: task ':app:createProfileCompatibleScreenManifests'
                   createReleaseCompatibleScreenManifests: task ':app:createReleaseCompatibleScreenManifests'
                   defaultArtifacts: org.gradle.api.internal.plugins.DefaultArtifactPublicationSet_Decorated@fa15eeb
                   defaultTasks: []
                   deferredProjectConfiguration: org.gradle.api.internal.project.DeferredProjectConfiguration@30d099eb
                   dependencies: org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler_Decorated@6be30091
                   depth: 1
                   description: null
                   deviceAndroidTest: task ':app:deviceAndroidTest'
                   deviceCheck: task ':app:deviceCheck'
                   displayName: project ':app'
                   distsDir: /Users/andrei/FlutterProjects/toimagebugs/build/app/distributions
                   distsDirName: distributions
                   docsDir: /Users/andrei/FlutterProjects/toimagebugs/build/app/docs
                   docsDirName: docs
                   ext: org.gradle.api.internal.plugins.DefaultExtraPropertiesExtension@e37b25b
                   extensions: org.gradle.api.internal.plugins.DefaultConvention@63c0de28
                   extractProguardFiles: task ':app:extractProguardFiles'
                   fileOperations: org.gradle.api.internal.file.DefaultFileOperations@be4e370
                   fileResolver: org.gradle.api.internal.file.BaseDirFileResolver@3f4f2c26
                   flutter: FlutterExtension_Decorated@4c5b44d6
                   flutterBuildDebug: task ':app:flutterBuildDebug'
                   flutterBuildProfile: task ':app:flutterBuildProfile'
                   flutterBuildRelease: task ':app:flutterBuildRelease'
                   flutterBuildX86Jar: task ':app:flutterBuildX86Jar'
                   generateDebugAndroidTestAssets: task ':app:generateDebugAndroidTestAssets'
                   generateDebugAndroidTestBuildConfig: task ':app:generateDebugAndroidTestBuildConfig'
                   generateDebugAndroidTestResValues: task ':app:generateDebugAndroidTestResValues'
                   generateDebugAndroidTestResources: task ':app:generateDebugAndroidTestResources'
                   generateDebugAndroidTestSources: task ':app:generateDebugAndroidTestSources'
                   generateDebugAssets: task ':app:generateDebugAssets'
                   generateDebugBuildConfig: task ':app:generateDebugBuildConfig'
                   generateDebugResValues: task ':app:generateDebugResValues'
                   generateDebugResources: task ':app:generateDebugResources'
                   generateDebugSources: task ':app:generateDebugSources'
                   generateProfileAssets: task ':app:generateProfileAssets'
                   generateProfileBuildConfig: task ':app:generateProfileBuildConfig'
                   generateProfileResValues: task ':app:generateProfileResValues'
                   generateProfileResources: task ':app:generateProfileResources'
                   generateProfileSources: task ':app:generateProfileSources'
                   generateReleaseAssets: task ':app:generateReleaseAssets'
                   generateReleaseBuildConfig: task ':app:generateReleaseBuildConfig'
                   generateReleaseResValues: task ':app:generateReleaseResValues'
                   generateReleaseResources: task ':app:generateReleaseResources'
                   generateReleaseSources: task ':app:generateReleaseSources'
                   gradle: build 'android'
                   group: android
                   identityPath: :app
                   inheritedScope: org.gradle.api.internal.ExtensibleDynamicObject$InheritedDynamicObject@7f4d926c
                   installDebug: task ':app:installDebug'
                   installDebugAndroidTest: task ':app:installDebugAndroidTest'
                   installProfile: task ':app:installProfile'
                   installRelease: task ':app:installRelease'
                   javaPreCompileDebug: task ':app:javaPreCompileDebug'
                   javaPreCompileDebugAndroidTest: task ':app:javaPreCompileDebugAndroidTest'
                   javaPreCompileDebugUnitTest: task ':app:javaPreCompileDebugUnitTest'
                   javaPreCompileProfile: task ':app:javaPreCompileProfile'
                   javaPreCompileProfileUnitTest: task ':app:javaPreCompileProfileUnitTest'
                   javaPreCompileRelease: task ':app:javaPreCompileRelease'
                   javaPreCompileReleaseUnitTest: task ':app:javaPreCompileReleaseUnitTest'
                   layout: org.gradle.api.internal.file.DefaultProjectLayout@531e0196
                   libsDir: /Users/andrei/FlutterProjects/toimagebugs/build/app/libs
                   libsDirName: libs
                   lint: task ':app:lint'
                   lintDebug: task ':app:lintDebug'
                   lintProfile: task ':app:lintProfile'
                   lintRelease: task ':app:lintRelease'
                   lintVitalRelease: task ':app:lintVitalRelease'
                   logger: org.gradle.internal.logging.slf4j.OutputEventListenerBackedLogger@5b646516
                   logging: org.gradle.internal.logging.services.DefaultLoggingManager@157629cf
                   mergeDebugAndroidTestAssets: task ':app:mergeDebugAndroidTestAssets'
                   mergeDebugAndroidTestJniLibFolders: task ':app:mergeDebugAndroidTestJniLibFolders'
                   mergeDebugAndroidTestResources: task ':app:mergeDebugAndroidTestResources'
                   mergeDebugAndroidTestShaders: task ':app:mergeDebugAndroidTestShaders'
                   mergeDebugAssets: task ':app:mergeDebugAssets'
                   mergeDebugJniLibFolders: task ':app:mergeDebugJniLibFolders'
                   mergeDebugResources: task ':app:mergeDebugResources'
                   mergeDebugShaders: task ':app:mergeDebugShaders'
                   mergeProfileAssets: task ':app:mergeProfileAssets'
                   mergeProfileJniLibFolders: task ':app:mergeProfileJniLibFolders'
                   mergeProfileResources: task ':app:mergeProfileResources'
                   mergeProfileShaders: task ':app:mergeProfileShaders'
                   mergeReleaseAssets: task ':app:mergeReleaseAssets'
                   mergeReleaseJniLibFolders: task ':app:mergeReleaseJniLibFolders'
                   mergeReleaseResources: task ':app:mergeReleaseResources'
                   mergeReleaseShaders: task ':app:mergeReleaseShaders'
                   mockableAndroidJar: task ':app:mockableAndroidJar'
                   modelRegistry: org.gradle.model.internal.registry.DefaultModelRegistry@31db243
                   modelSchemaStore: org.gradle.model.internal.manage.schema.extract.DefaultModelSchemaStore@1712493a
                   module: org.gradle.api.internal.artifacts.ProjectBackedModule@9a97bc0
                   name: app
                   ndk.path: /Users/andrei/Library/Android/android-ndk-r10e
                   normalization: org.gradle.normalization.internal.DefaultInputNormalizationHandler_Decorated@10d08ebe
                   objects: org.gradle.api.internal.model.DefaultObjectFactory@3dd21f1c
                   org.gradle.configureondemand: true
                   org.gradle.daemon: true
                   org.gradle.jvmargs: -Xmx1536M
                   org.gradle.parallel: true
                   packageDebug: task ':app:packageDebug'
                   packageDebugAndroidTest: task ':app:packageDebugAndroidTest'
                   packageProfile: task ':app:packageProfile'
                   packageRelease: task ':app:packageRelease'
                   parent: root project 'android'
                   parentIdentifier: root project 'android'
                   path: :app
                   platformAttrExtractor: task ':app:platformAttrExtractor'
                   pluginManager: org.gradle.api.internal.plugins.DefaultPluginManager_Decorated@33e13f83
                   plugins: [org.gradle.api.plugins.HelpTasksPlugin@2912670e, com.android.build.gradle.api.AndroidBasePlugin@ea9f56e, org.gradle.language.base.plugins.LifecycleBasePlugin@2e2eecbb, org.gradle.api.plugins.BasePlugin@3015142c, org.gradle.api.plugins.ReportingBasePlugin@1da87f27, org.gradle.platform.base.plugins.ComponentBasePlugin@79234206, org.gradle.language.base.plugins.LanguageBasePlugin@272c5b42, org.gradle.platform.base.plugins.BinaryBasePlugin@72f6f97e, org.gradle.api.plugins.JavaBasePlugin@219f8ae6, com.android.build.gradle.internal.coverage.JacocoPlugin@9d5e681, com.android.build.gradle.AppPlugin@2dc493dc, FlutterPlugin@6ee264ae]
                   preBuild: task ':app:preBuild'
                   preDebugAndroidTestBuild: task ':app:preDebugAndroidTestBuild'
                   preDebugBuild: task ':app:preDebugBuild'
                   preDebugUnitTestBuild: task ':app:preDebugUnitTestBuild'
                   preProfileBuild: task ':app:preProfileBuild'
                   preProfileUnitTestBuild: task ':app:preProfileUnitTestBuild'
                   preReleaseBuild: task ':app:preReleaseBuild'
                   preReleaseUnitTestBuild: task ':app:preReleaseUnitTestBuild'
                   prepareLintJar: task ':app:prepareLintJar'
                   processDebugAndroidTestJavaRes: task ':app:processDebugAndroidTestJavaRes'
                   processDebugAndroidTestManifest: task ':app:processDebugAndroidTestManifest'
                   processDebugAndroidTestResources: task ':app:processDebugAndroidTestResources'
                   processDebugJavaRes: task ':app:processDebugJavaRes'
                   processDebugManifest: task ':app:processDebugManifest'
                   processDebugResources: task ':app:processDebugResources'
                   processDebugUnitTestJavaRes: task ':app:processDebugUnitTestJavaRes'
                   processOperations: org.gradle.api.internal.file.DefaultFileOperations@be4e370
                   processProfileJavaRes: task ':app:processProfileJavaRes'
                   processProfileManifest: task ':app:processProfileManifest'
                   processProfileResources: task ':app:processProfileResources'
                   processProfileUnitTestJavaRes: task ':app:processProfileUnitTestJavaRes'
                   processReleaseJavaRes: task ':app:processReleaseJavaRes'
                   processReleaseManifest: task ':app:processReleaseManifest'
                   processReleaseResources: task ':app:processReleaseResources'
                   processReleaseUnitTestJavaRes: task ':app:processReleaseUnitTestJavaRes'
                   project: project ':app'
                   projectConfigurator: org.gradle.api.internal.project.BuildOperationCrossProjectConfigurator@17fd4061
                   projectDir: /Users/andrei/FlutterProjects/toimagebugs/android/app
                   projectEvaluationBroadcaster: ProjectEvaluationListener broadcast
                   projectEvaluator: org.gradle.configuration.project.LifecycleProjectEvaluator@791c7777
                   projectPath: :app
                   projectRegistry: org.gradle.api.internal.project.DefaultProjectRegistry@6dadb394
                   properties: {...}
                   providers: org.gradle.api.internal.provider.DefaultProviderFactory@2fb49f7e
                   reporting: org.gradle.api.reporting.ReportingExtension_Decorated@570a9485
                   reportsDir: /Users/andrei/FlutterProjects/toimagebugs/build/app/reports
                   repositories: repository container
                   resolveConfigAttr: task ':app:resolveConfigAttr'
                   resources: org.gradle.api.internal.resources.DefaultResourceHandler@2a89284d
                   rootDir: /Users/andrei/FlutterProjects/toimagebugs/android
                   rootProject: root project 'android'
                   scriptHandlerFactory: org.gradle.api.internal.initialization.DefaultScriptHandlerFactory@303445a4
                   scriptPluginFactory: org.gradle.configuration.ScriptPluginFactorySelector@30856125
                   serviceRegistryFactory: org.gradle.internal.service.scopes.ProjectScopeServices$4@3328650c
                   services: ProjectScopeServices
                   signingReport: task ':app:signingReport'
                   sourceCompatibility: 1.8
                   sourceSets: SourceSet container
                   splitsDiscoveryTaskDebug: task ':app:splitsDiscoveryTaskDebug'
                   splitsDiscoveryTaskDebugAndroidTest: task ':app:splitsDiscoveryTaskDebugAndroidTest'
                   splitsDiscoveryTaskProfile: task ':app:splitsDiscoveryTaskProfile'
                   splitsDiscoveryTaskRelease: task ':app:splitsDiscoveryTaskRelease'
                   standardOutputCapture: org.gradle.internal.logging.services.DefaultLoggingManager@157629cf
                   state: project state 'EXECUTED'
                   status: integration
                   subprojects: []
                   targetCompatibility: 1.8
                   tasks: task set
                   test: task ':app:test'
                   testDebugUnitTest: task ':app:testDebugUnitTest'
                   testProfileUnitTest: task ':app:testProfileUnitTest'
                   testReleaseUnitTest: task ':app:testReleaseUnitTest'
                   testReportDir: /Users/andrei/FlutterProjects/toimagebugs/build/app/reports/tests
                   testReportDirName: tests
                   testResultsDir: /Users/andrei/FlutterProjects/toimagebugs/build/app/test-results
                   testResultsDirName: test-results
                   transformClassesWithDexBuilderForDebug: task ':app:transformClassesWithDexBuilderForDebug'
                   transformClassesWithDexBuilderForDebugAndroidTest: task ':app:transformClassesWithDexBuilderForDebugAndroidTest'
                   transformClassesWithDexBuilderForProfile: task ':app:transformClassesWithDexBuilderForProfile'
                   transformClassesWithPreDexForRelease: task ':app:transformClassesWithPreDexForRelease'
                   transformDexArchiveWithDexMergerForDebug: task ':app:transformDexArchiveWithDexMergerForDebug'
                   transformDexArchiveWithDexMergerForDebugAndroidTest: task ':app:transformDexArchiveWithDexMergerForDebugAndroidTest'
                   transformDexArchiveWithDexMergerForProfile: task ':app:transformDexArchiveWithDexMergerForProfile'
                   transformDexArchiveWithExternalLibsDexMergerForDebug: task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'
                   transformDexArchiveWithExternalLibsDexMergerForDebugAndroidTest: task ':app:transformDexArchiveWithExternalLibsDexMergerForDebugAndroidTest'
                   transformDexArchiveWithExternalLibsDexMergerForProfile: task ':app:transformDexArchiveWithExternalLibsDexMergerForProfile'
                   transformDexWithDexForRelease: task ':app:transformDexWithDexForRelease'
                   transformNativeLibsWithMergeJniLibsForDebug: task ':app:transformNativeLibsWithMergeJniLibsForDebug'
                   transformNativeLibsWithMergeJniLibsForDebugAndroidTest: task ':app:transformNativeLibsWithMergeJniLibsForDebugAndroidTest'
                   transformNativeLibsWithMergeJniLibsForProfile: task ':app:transformNativeLibsWithMergeJniLibsForProfile'
                   transformNativeLibsWithMergeJniLibsForRelease: task ':app:transformNativeLibsWithMergeJniLibsForRelease'
                   transformResourcesWithMergeJavaResForDebug: task ':app:transformResourcesWithMergeJavaResForDebug'
                   transformResourcesWithMergeJavaResForDebugAndroidTest: task ':app:transformResourcesWithMergeJavaResForDebugAndroidTest'
                   transformResourcesWithMergeJavaResForDebugUnitTest: task ':app:transformResourcesWithMergeJavaResForDebugUnitTest'
                   transformResourcesWithMergeJavaResForProfile: task ':app:transformResourcesWithMergeJavaResForProfile'
                   transformResourcesWithMergeJavaResForProfileUnitTest: task ':app:transformResourcesWithMergeJavaResForProfileUnitTest'
                   transformResourcesWithMergeJavaResForRelease: task ':app:transformResourcesWithMergeJavaResForRelease'
                   transformResourcesWithMergeJavaResForReleaseUnitTest: task ':app:transformResourcesWithMergeJavaResForReleaseUnitTest'
                   uninstallAll: task ':app:uninstallAll'
                   uninstallDebug: task ':app:uninstallDebug'
                   uninstallDebugAndroidTest: task ':app:uninstallDebugAndroidTest'
                   uninstallProfile: task ':app:uninstallProfile'
                   uninstallRelease: task ':app:uninstallRelease'
                   validateSigningDebug: task ':app:validateSigningDebug'
                   validateSigningDebugAndroidTest: task ':app:validateSigningDebugAndroidTest'
                   validateSigningProfile: task ':app:validateSigningProfile'
                   validateSigningRelease: task ':app:validateSigningRelease'
                   version: unspecified
                   writeDebugApplicationId: task ':app:writeDebugApplicationId'
                   writeProfileApplicationId: task ':app:writeProfileApplicationId'
                   writeReleaseApplicationId: task ':app:writeReleaseApplicationId'
                   
                   BUILD SUCCESSFUL in 0s
                   1 actionable task: 1 executed
[  +15 ms] /Users/andrei/Library/Android/sdk/build-tools/28.0.0-rc1/aapt dump badging build/app/outputs/apk/app.apk
[  +20 ms] Exit code 0 from: /Users/andrei/Library/Android/sdk/build-tools/28.0.0-rc1/aapt dump badging build/app/outputs/apk/app.apk
[        ] package: name='com.postmuseapp.toimagebugs' versionCode='1' versionName='1.0'
           sdkVersion:'16'
           targetSdkVersion:'27'
           uses-permission: name='android.permission.INTERNET'
           application-label:'toimagebugs'
           application-icon-160:'res/mipmap-mdpi-v4/ic_launcher.png'
           application-icon-240:'res/mipmap-hdpi-v4/ic_launcher.png'
           application-icon-320:'res/mipmap-xhdpi-v4/ic_launcher.png'
           application-icon-480:'res/mipmap-xxhdpi-v4/ic_launcher.png'
           application-icon-640:'res/mipmap-xxxhdpi-v4/ic_launcher.png'
           application: label='toimagebugs' icon='res/mipmap-mdpi-v4/ic_launcher.png'
           application-debuggable
           launchable-activity: name='com.postmuseapp.toimagebugs.MainActivity'  label='' icon=''
           feature-group: label=''
             uses-feature: name='android.hardware.faketouch'
             uses-implied-feature: name='android.hardware.faketouch' reason='default feature for all apps'
           main
           supports-screens: 'small' 'normal' 'large' 'xlarge'
           supports-any-density: 'true'
           locales: '--_--'
           densities: '160' '240' '320' '480' '640'
           native-code: 'arm64-v8a' 'x86' 'x86_64'
[  +12 ms] /Users/andrei/Library/Android/sdk/platform-tools/adb -s ce031713ec45841004 logcat -v time -t 1
[ +165 ms] Exit code 0 from: /Users/andrei/Library/Android/sdk/platform-tools/adb -s ce031713ec45841004 logcat -v time -t 1
[        ] --------- beginning of main
           05-17 13:15:14.535 E/adbd    ( 5018): service_to_fd: shell:export ANDROID_LOG_TAGS="''"; exec logcat '-v' 'time' '-t' '1'
[   +3 ms] /Users/andrei/Library/Android/sdk/platform-tools/adb -s ce031713ec45841004 logcat -v time
[ +417 ms] DependencyChecker: nothing is modified after 2018-05-17 12:59:32.268.
[   +3 ms] /Users/andrei/Library/Android/sdk/platform-tools/adb version
[  +20 ms] Android Debug Bridge version 1.0.39
           Version 0.0.1-4500957
           Installed as /Users/andrei/Library/Android/sdk/platform-tools/adb
[   +2 ms] /Users/andrei/Library/Android/sdk/platform-tools/adb start-server
[  +18 ms] Building APK
[   +8 ms] Running 'gradlew assembleDebug'...
[   +2 ms] [android/] /Users/andrei/FlutterProjects/toimagebugs/android/gradlew -Ptarget=/Users/andrei/FlutterProjects/toimagebugs/lib/main.dart -Ppreview-dart-2=true -Ptarget-platform=android-arm64 assembleDebug
[ +677 ms] Parallel execution with configuration on demand is an incubating feature.
[ +211 ms] :app:preBuild UP-TO-DATE
[   +9 ms] :app:preDebugBuild UP-TO-DATE
[        ] :app:compileDebugAidl UP-TO-DATE
[        ] :app:compileDebugRenderscript UP-TO-DATE
[  +66 ms] :app:flutterBuildX86Jar UP-TO-DATE
[        ] :app:checkDebugManifest UP-TO-DATE
[        ] :app:generateDebugBuildConfig UP-TO-DATE
[        ] :app:prepareLintJar UP-TO-DATE
[   +9 ms] :app:cleanMergeDebugAssets
[  +79 ms] :app:flutterBuildDebug UP-TO-DATE
[        ] :app:mergeDebugShaders UP-TO-DATE
[        ] :app:compileDebugShaders UP-TO-DATE
[        ] :app:generateDebugAssets UP-TO-DATE
[  +10 ms] :app:mergeDebugAssets
[ +242 ms] :app:copyFlutterAssetsDebug
[        ] :app:generateDebugResValues UP-TO-DATE
[        ] :app:generateDebugResources UP-TO-DATE
[  +10 ms] :app:mergeDebugResources UP-TO-DATE
[        ] :app:createDebugCompatibleScreenManifests UP-TO-DATE
[        ] :app:processDebugManifest UP-TO-DATE
[        ] :app:splitsDiscoveryTaskDebug UP-TO-DATE
[  +11 ms] :app:processDebugResources UP-TO-DATE
[        ] :app:generateDebugSources UP-TO-DATE
[        ] :app:javaPreCompileDebug UP-TO-DATE
[   +9 ms] :app:compileDebugJavaWithJavac UP-TO-DATE
[        ] :app:compileDebugNdk NO-SOURCE
[        ] :app:compileDebugSources UP-TO-DATE
[  +53 ms] :app:transformClassesWithDexBuilderForDebug UP-TO-DATE
[        ] :app:transformDexArchiveWithExternalLibsDexMergerForDebug UP-TO-DATE
[   +8 ms] :app:transformDexArchiveWithDexMergerForDebug UP-TO-DATE
[        ] :app:mergeDebugJniLibFolders UP-TO-DATE
[  +11 ms] :app:transformNativeLibsWithMergeJniLibsForDebug UP-TO-DATE
[        ] :app:processDebugJavaRes NO-SOURCE
[  +11 ms] :app:transformResourcesWithMergeJavaResForDebug UP-TO-DATE
[        ] :app:validateSigningDebug
[  +10 ms] :app:packageDebug UP-TO-DATE
[        ] :app:assembleDebug UP-TO-DATE
[  +12 ms] BUILD SUCCESSFUL in 1s
[        ] 29 actionable tasks: 4 executed, 25 up-to-date
[ +442 ms] calculateSha: /Users/andrei/FlutterProjects/toimagebugs/build/app/outputs/apk/app.apk
[ +495 ms] Built build/app/outputs/apk/debug/app-debug.apk.
[        ] /Users/andrei/Library/Android/sdk/build-tools/28.0.0-rc1/aapt dump badging build/app/outputs/apk/app.apk
[  +11 ms] Exit code 0 from: /Users/andrei/Library/Android/sdk/build-tools/28.0.0-rc1/aapt dump badging build/app/outputs/apk/app.apk
[        ] package: name='com.postmuseapp.toimagebugs' versionCode='1' versionName='1.0'
           sdkVersion:'16'
           targetSdkVersion:'27'
           uses-permission: name='android.permission.INTERNET'
           application-label:'toimagebugs'
           application-icon-160:'res/mipmap-mdpi-v4/ic_launcher.png'
           application-icon-240:'res/mipmap-hdpi-v4/ic_launcher.png'
           application-icon-320:'res/mipmap-xhdpi-v4/ic_launcher.png'
           application-icon-480:'res/mipmap-xxhdpi-v4/ic_launcher.png'
           application-icon-640:'res/mipmap-xxxhdpi-v4/ic_launcher.png'
           application: label='toimagebugs' icon='res/mipmap-mdpi-v4/ic_launcher.png'
           application-debuggable
           launchable-activity: name='com.postmuseapp.toimagebugs.MainActivity'  label='' icon=''
           feature-group: label=''
             uses-feature: name='android.hardware.faketouch'
             uses-implied-feature: name='android.hardware.faketouch' reason='default feature for all apps'
           main
           supports-screens: 'small' 'normal' 'large' 'xlarge'
           supports-any-density: 'true'
           locales: '--_--'
           densities: '160' '240' '320' '480' '640'
           native-code: 'arm64-v8a' 'x86' 'x86_64'
[        ] Stopping app 'app.apk' on SM G950F.
[        ] /Users/andrei/Library/Android/sdk/platform-tools/adb -s ce031713ec45841004 shell am force-stop com.postmuseapp.toimagebugs
[ +198 ms] /Users/andrei/Library/Android/sdk/platform-tools/adb -s ce031713ec45841004 shell pm list packages com.postmuseapp.toimagebugs
[+1168 ms] package:com.postmuseapp.toimagebugs
[   +4 ms] /Users/andrei/Library/Android/sdk/platform-tools/adb -s ce031713ec45841004 shell cat /data/local/tmp/sky.com.postmuseapp.toimagebugs.sha1
[  +65 ms] 53d0f1922fcf2d11edd2753858d64497303e07d0
[   +1 ms] Latest build already installed.
[        ] SM G950F startApp
[   +3 ms] /Users/andrei/Library/Android/sdk/platform-tools/adb -s ce031713ec45841004 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 com.postmuseapp.toimagebugs/com.postmuseapp.toimagebugs.MainActivity
[ +149 ms] Starting: Intent { act=android.intent.action.RUN flg=0x20000000 cmp=com.postmuseapp.toimagebugs/.MainActivity (has extras) }
[        ] Waiting for observatory port to be available...
[ +679 ms] I/FlutterActivityDelegate(16140): onResume setting current activity to this
[ +116 ms] Observatory URL on device: http://127.0.0.1:35133/
[   +9 ms] /Users/andrei/Library/Android/sdk/platform-tools/adb -s ce031713ec45841004 forward tcp:8104 tcp:35133
[  +16 ms] Forwarded host port 8104 to device port 35133 for Observatory
[   +6 ms] Connecting to service protocol: http://127.0.0.1:8104/
[ +368 ms] Successfully connected to service protocol: http://127.0.0.1:8104/
[   +3 ms] getVM: {}
[  +12 ms] getIsolate: {isolateId: isolates/577117317}
[   +2 ms] _flutter.listViews: {}
[ +740 ms] DevFS: Creating new filesystem on the device (null)
[        ] _createDevFS: {fsName: toimagebugs}
[  +41 ms] DevFS: Created new filesystem on the device (file:///data/user/0/com.postmuseapp.toimagebugs/cache/toimagebugsJHKFSE/toimagebugs/)
[   +1 ms] Updating assets
[ +256 ms] Syncing files to device SM G950F...
[   +4 ms] DevFS: Starting sync from LocalDirectory: '/Users/andrei/FlutterProjects/toimagebugs'
[        ] Scanning project files
[   +3 ms] Scanning package files
[  +96 ms] Scanning asset files
[        ] Scanning for deleted files
[   +9 ms] Compiling dart to kernel with 415 updated files
[   +2 ms] /Users/andrei/Library/Android/flutter/bin/cache/dart-sdk/bin/dart /Users/andrei/Library/Android/flutter/bin/cache/artifacts/engine/darwin-x64/frontend_server.dart.snapshot --sdk-root /Users/andrei/Library/Android/flutter/bin/cache/artifacts/engine/common/flutter_patched_sdk/ --incremental --strong --target=flutter --output-dill build/app.dill --packages /Users/andrei/FlutterProjects/toimagebugs/.packages --filesystem-scheme org-dartlang-root
[   +1 ms] D/libGLESv2(16140): STS_GLApi : DTS, ODTC are not allowed for Package : com.postmuseapp.toimagebugs
[+1278 ms] Updating files
[ +750 ms] DevFS: Sync finished
[        ] Synced 2.3MB.
[   +4 ms] _flutter.listViews: {}
[  +17 ms] Connected to _flutterView/0x7d3ea4af18.
[   +1 ms] 🔥  To hot reload your app on the fly, press "r". To restart the app entirely, press "R".
[        ] An Observatory debugger and profiler on SM G950F is available at: http://127.0.0.1:8104/
[        ] For a more detailed help message, press "h". To quit, press "q".
Analyzing toimagebugs...                                         
No issues found! (ran in 2.0s)
[✓] Flutter (Channel master, v0.4.5-pre.30, on Mac OS X 10.13.4 17E202, locale en-RO)
    • Flutter version 0.4.5-pre.30 at /Users/andrei/Library/Android/flutter
    • Framework revision 60272ee5bd (15 hours ago), 2018-05-16 12:33:07 -0700
    • Engine revision 06afdfe54e
    • Dart version 2.0.0-dev.54.0.flutter-46ab040e58

[✓] Android toolchain - develop for Android devices (Android SDK 28.0.0-rc1)
    • Android SDK at /Users/andrei/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-27, build-tools 28.0.0-rc1
    • ANDROID_HOME = /Users/andrei/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08)
    • All Android licenses accepted.

[!] iOS toolchain - develop for iOS devices (Xcode 9.3.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 9.3.1, Build version 9E501
    • ios-deploy 1.9.2
    ! CocoaPods out of date (1.5.0 is recommended).
        CocoaPods is used to retrieve the iOS platform side's plugin code that responds to your plugin usage on the Dart side.
        Without resolving iOS dependencies with CocoaPods, plugins will not work on iOS.
        For more info, see https://flutter.io/platform-plugins
      To upgrade:
        brew upgrade cocoapods
        pod setup

[✓] Android Studio (version 3.0)
    • Android Studio at /Applications/Android Studio.app/Contents
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08)

[✓] IntelliJ IDEA Community Edition (version 2018.1)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 23.1.3
    • Dart plugin version 181.4203.498

[✓] Connected devices (2 available)
    • SM G950F • ce031713ec45841004                   • android-arm64 • Android 8.0.0 (API 26)
    • iPhone X • 7D6D4BE2-0A99-40ED-9ECC-472CE5E212A6 • ios           • iOS 11.3 (simulator)

! Doctor found issues in 1 category.

Metadata

Metadata

Assignees

Labels

c: flakeTests that sometimes, but not always, incorrectly passengineflutter/engine related. See also e: labels.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions