Skip to content

Deadlock in application startup in profile/release mode #98973

@filiph

Description

@filiph

Original issue: #98530
Related issue: #98955
Internal issue: b/218923102

Steps to Reproduce

  1. Have an Android device connected (I tried both my dev device, a Nokia 1.3, as well as my daily device, a Pixel 5).
  2. Execute flutter run --profile (or --release) on the code sample below.

Expected results: App starts normally. (This is what happens in debug mode.)

Actual results: App starts, but only a blank white plane is shown. Nothing wrong in the logs.

PXL_20220223_105242227

Code sample

This is the normal Flutter counter app, only with WidgetsFlutterBinding.ensureInitialized(); and SystemChrome.setEnabledSystemUIMode(SystemUiMode.immersiveSticky); added to the main() function.

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

void main() {
  WidgetsFlutterBinding.ensureInitialized();
  SystemChrome.setEnabledSystemUIMode(SystemUiMode.immersiveSticky);

  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({Key? key, required this.title}) : super(key: key);

  final String title;

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  int _counter = 0;

  void _incrementCounter() {
    setState(() {
      _counter++;
    });
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            const Text(
              'You have pushed the button this many times:',
            ),
            Text(
              '$_counter',
              style: Theme.of(context).textTheme.headline4,
            ),
          ],
        ),
      ),
      floatingActionButton: FloatingActionButton(
        onPressed: _incrementCounter,
        tooltip: 'Increment',
        child: const Icon(Icons.add),
      ),
    );
  }
}
Logs
% flutter run --profile --verbose
[ +137 ms] executing: sysctl hw.optional.arm64
[  +31 ms] Exit code 0 from: sysctl hw.optional.arm64
[   +3 ms] hw.optional.arm64: 1
[   +9 ms] executing: [/Users/filiph/fvm/versions/stable/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[  +21 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] 097d3313d8e2c7f901932d63e537c1acefb87800
[        ] executing: [/Users/filiph/fvm/versions/stable/] git tag --points-at 097d3313d8e2c7f901932d63e537c1acefb87800
[ +116 ms] Exit code 0 from: git tag --points-at 097d3313d8e2c7f901932d63e537c1acefb87800
[   +1 ms] 2.10.2
[  +11 ms] executing: [/Users/filiph/fvm/versions/stable/] git rev-parse --abbrev-ref --symbolic @{u}
[   +9 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] origin/stable
[        ] executing: [/Users/filiph/fvm/versions/stable/] git ls-remote --get-url origin
[   +8 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] https://github.com/flutter/flutter.git
[ +126 ms] executing: [/Users/filiph/fvm/versions/stable/] git rev-parse --abbrev-ref HEAD
[  +14 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] stable
[   +7 ms] executing: sw_vers -productName
[  +22 ms] Exit code 0 from: sw_vers -productName
[        ] macOS
[        ] executing: sw_vers -productVersion
[  +17 ms] Exit code 0 from: sw_vers -productVersion
[        ] 12.2
[        ] executing: sw_vers -buildVersion
[  +19 ms] Exit code 0 from: sw_vers -buildVersion
[        ] 21D49
[  +73 ms] 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.
[   +3 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'WindowsUwpEngineArtifacts' 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.
[  +52 ms] executing: /Users/filiph/Library/Android/sdk/platform-tools/adb devices -l
[  +19 ms] executing: sysctl hw.optional.arm64
[  +10 ms] Exit code 0 from: sysctl hw.optional.arm64
[        ] hw.optional.arm64: 1
[        ] executing: /usr/bin/arch -arm64e xcrun xcodebuild -version
[ +136 ms] Exit code 0 from: /usr/bin/arch -arm64e xcrun xcodebuild -version
[        ] Xcode 13.2.1
           Build version 13C100
[   +1 ms] objc[4713]: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libamsupport.dylib (0x1ea31b678) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1088842c8). One of the two will be used. Which one is undefined.
           objc[4713]: Class AMSupportURLSession is implemented in both /usr/lib/libamsupport.dylib (0x1ea31b6c8) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x108884318). One of the two will be used. Which one is undefined.
[   +2 ms] executing: /usr/bin/arch -arm64e xcrun xcdevice list --timeout 2
[   +5 ms] /usr/bin/arch -arm64e xcrun simctl list --json devices
[        ] executing: /usr/bin/arch -arm64e xcrun simctl list --json devices
[   +4 ms] executing: /usr/bin/arch -arm64e xcrun simctl list
[  +81 ms] Exit code 0 from: /usr/bin/arch -arm64e xcrun simctl list
[   +1 ms] == Device Types ==
           iPhone 4s (com.apple.CoreSimulator.SimDeviceType.iPhone-4s)
           iPhone 5 (com.apple.CoreSimulator.SimDeviceType.iPhone-5)
           iPhone 5s (com.apple.CoreSimulator.SimDeviceType.iPhone-5s)
           iPhone 6 Plus (com.apple.CoreSimulator.SimDeviceType.iPhone-6-Plus)
           iPhone 6 (com.apple.CoreSimulator.SimDeviceType.iPhone-6)
           iPhone 6s (com.apple.CoreSimulator.SimDeviceType.iPhone-6s)
           iPhone 6s Plus (com.apple.CoreSimulator.SimDeviceType.iPhone-6s-Plus)
           iPhone SE (1st generation) (com.apple.CoreSimulator.SimDeviceType.iPhone-SE)
           iPhone 7 (com.apple.CoreSimulator.SimDeviceType.iPhone-7)







... SNIP (comment otherwise too long for github) ...







           objc[4721]: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libamsupport.dylib (0x1ea31b678) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1036c02c8). One of the two will be used. Which one is undefined.
           objc[4721]: Class AMSupportURLSession is implemented in both /usr/lib/libamsupport.dylib (0x1ea31b6c8) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1036c0318). One of the two will be used. Which one is undefined.
[  +25 ms] /Users/filiph/Library/Android/sdk/platform-tools/adb -s PT89572AA1A90700192 shell getprop
[ +104 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[   +2 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'WindowsUwpEngineArtifacts' is not required, skipping update.
[   +1 ms] 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.
[ +163 ms] Skipping pub get: version match.
[  +77 ms] Generating /Users/filiph/dev/system_overlay_bug/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java
[  +70 ms] ro.hardware = qcom
[  +50 ms] executing: /Users/filiph/Library/Android/sdk/build-tools/33.0.0-rc1/aapt dump xmltree /Users/filiph/dev/system_overlay_bug/build/app/outputs/flutter-apk/app.apk AndroidManifest.xml
[  +34 ms] Exit code 0 from: /Users/filiph/Library/Android/sdk/build-tools/33.0.0-rc1/aapt dump xmltree /Users/filiph/dev/system_overlay_bug/build/app/outputs/flutter-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)0x1f
               A: android:compileSdkVersionCodename(0x01010573)="12" (Raw: "12")
               A: package="com.example.system_overlay_bug" (Raw: "com.example.system_overlay_bug")
               A: platformBuildVersionCode=(type 0x10)0x1f
               A: platformBuildVersionName=(type 0x10)0xc
               E: uses-sdk (line=7)
                 A: android:minSdkVersion(0x0101020c)=(type 0x10)0x10
                 A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1f
               E: application (line=11)
                 A: android:label(0x01010001)="system_overlay_bug" (Raw: "system_overlay_bug")
                 A: android:icon(0x01010002)=@0x7f080000
                 A: android:name(0x01010003)="android.app.Application" (Raw: "android.app.Application")
                 A: android:appComponentFactory(0x0101057a)="androidx.core.app.CoreComponentFactory" (Raw: "androidx.core.app.CoreComponentFactory")
                 E: activity (line=16)
                   A: android:theme(0x01010000)=@0x7f0a0000
                   A: android:name(0x01010003)="com.example.system_overlay_bug.MainActivity" (Raw: "com.example.system_overlay_bug.MainActivity")
                   A: android:exported(0x01010010)=(type 0x12)0xffffffff
                   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=31)
                     A: android:name(0x01010003)="io.flutter.embedding.android.NormalTheme" (Raw: "io.flutter.embedding.android.NormalTheme")
                     A: android:resource(0x01010025)=@0x7f0a0001
                   E: intent-filter (line=35)
                     E: action (line=36)
                       A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
                     E: category (line=38)
                       A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER")
                 E: meta-data (line=45)
                   A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding")
                   A: android:value(0x01010024)=(type 0x10)0x2
                 E: uses-library (line=49)
                   A: android:name(0x01010003)="androidx.window.extensions" (Raw: "androidx.window.extensions")
                   A: android:required(0x0101028e)=(type 0x12)0x0
                 E: uses-library (line=52)
                   A: android:name(0x01010003)="androidx.window.sidecar" (Raw: "androidx.window.sidecar")
                   A: android:required(0x0101028e)=(type 0x12)0x0
[   +8 ms] Launching lib/main.dart on Nokia 1 3 in profile mode...
[   +3 ms] executing: /Users/filiph/Library/Android/sdk/platform-tools/adb -s PT89572AA1A90700192 shell -x logcat -v time -t 1
[  +89 ms] --------- beginning of main
           02-23 11:55:42.296 W/swapper/1(    0): type=1400 audit(0.0:1547): avc: denied { kill } for capability=5 scontext=u:r:kernel:s0 tcontext=u:r:kernel:s0 tclass=capability permissive=0
[  +21 ms] executing: /Users/filiph/Library/Android/sdk/platform-tools/adb version
[  +57 ms] Android Debug Bridge version 1.0.41
           Version 32.0.0-8006631
           Installed as /Users/filiph/Library/Android/sdk/platform-tools/adb
[   +2 ms] executing: /Users/filiph/Library/Android/sdk/platform-tools/adb start-server
[  +48 ms] Building APK
[  +24 ms] Running Gradle task 'assembleProfile'...
[   +4 ms] Using gradle from /Users/filiph/dev/system_overlay_bug/android/gradlew.
[ +489 ms] executing: /usr/bin/plutil -convert xml1 -o - /Applications/Android Studio.app/Contents/Info.plist
[  +19 ms] Exit code 0 from: /usr/bin/plutil -convert xml1 -o - /Applications/Android Studio.app/Contents/Info.plist
[        ] <?xml version="1.0" encoding="UTF-8"?>
           <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
           <plist version="1.0">
           <dict>
           	<key>CFBundleDevelopmentRegion</key>
           	<string>English</string>
           	<key>CFBundleDocumentTypes</key>
           	<array>
           		<dict>
           			<key>CFBundleTypeExtensions</key>
           			<array>
           				<string>ipr</string>
           			</array>
           			<key>CFBundleTypeIconFile</key>
           			<string>studio.icns</string>
           			<key>CFBundleTypeName</key>
           			<string>Android Studio Project File</string>
           			<key>CFBundleTypeRole</key>
           			<string>Editor</string>
           		</dict>
           		<dict>
           			<key>CFBundleTypeExtensions</key>
           			<array>
           				<string>*</string>
           			</array>
           			<key>CFBundleTypeName</key>
           			<string>All documents</string>
           			<key>CFBundleTypeOSTypes</key>
           			<array>
           				<string>****</string>
           			</array>
           			<key>CFBundleTypeRole</key>
           			<string>Editor</string>
           			<key>LSTypeIsPackage</key>
           			<false/>
           		</dict>
           	</array>
           	<key>CFBundleExecutable</key>
           	<string>studio</string>
           	<key>CFBundleGetInfoString</key>
           	<string>Android Studio 2021.1, build AI-211.7628.21.2111.8139111. Copyright JetBrains s.r.o., (c) 2000-2022</string>
           	<key>CFBundleIconFile</key>
           	<string>studio.icns</string>
           	<key>CFBundleIdentifier</key>
           	<string>com.google.android.studio</string>
           	<key>CFBundleInfoDictionaryVersion</key>
           	<string>6.0</string>
           	<key>CFBundleName</key>
           	<string>Android Studio</string>
           	<key>CFBundlePackageType</key>
           	<string>APPL</string>
           	<key>CFBundleShortVersionString</key>
           	<string>2021.1</string>
           	<key>CFBundleSignature</key>
           	<string>????</string>
           	<key>CFBundleURLTypes</key>
           	<array>
           		<dict>
           			<key>CFBundleTypeRole</key>
           			<string>Editor</string>
           			<key>CFBundleURLName</key>
           			<string>Stacktrace</string>
           			<key>CFBundleURLSchemes</key>
           			<array>
           				<string>idea</string>
           			</array>
           		</dict>
           	</array>
           	<key>CFBundleVersion</key>
           	<string>AI-211.7628.21.2111.8139111</string>
           	<key>JVMOptions</key>
           	<dict>
           		<key>ClassPath</key>
           		<string>$APP_PACKAGE/Contents/lib/bootstrap.jar:$APP_PACKAGE/Contents/lib/util.jar:$APP_PACKAGE/Contents/lib/jdom.jar:$APP_PACKAGE/Contents/lib/log4j.jar:$APP_PACKAGE/Contents/lib/jna.jar</string>
           		<key>JVMVersion</key>
           		<string>1.8*,1.8+</string>
           		<key>MainClass</key>
           		<string>com.intellij.idea.Main</string>
           		<key>Properties</key>
           		<dict>
           			<key>idea.executable</key>
           			<string>studio</string>
           			<key>idea.home.path</key>
           			<string>$APP_PACKAGE/Contents</string>
           			<key>idea.paths.selector</key>
           			<string>AndroidStudio2021.1</string>
           			<key>idea.platform.prefix</key>
           			<string>AndroidStudio</string>
           			<key>idea.vendor.name</key>
           			<string>Google</string>
           		</dict>
           	</dict>
           	<key>LSApplicationCategoryType</key>
           	<string>public.app-category.developer-tools</string>
           	<key>LSArchitecturePriority</key>
           	<array>
           		<string>arm64</string>
           		<string>x86_64</string>
           	</array>
           	<key>LSMinimumSystemVersion</key>
           	<string>10.8</string>
           	<key>LSRequiresNativeExecution</key>
           	<string>YES</string>
           	<key>NSBluetoothAlwaysUsageDescription</key>
           	<string>An application in Android Studio requests access to Bluetooth.</string>
           	<key>NSCameraUsageDescription</key>
           	<string>An application in Android Studio requests access to the device's camera.</string>
           	<key>NSDesktopFolderUsageDescription</key>
           	<string>An application in Android Studio requests access to the user's Desktop folder.</string>
           	<key>NSDocumentsFolderUsageDescription</key>
           	<string>An application in Android Studio requests access to the user's Documents folder.</string>
           	<key>NSDownloadsFolderUsageDescription</key>
           	<string>An application in Android Studio requests access to the user's Downloads folder.</string>
           	<key>NSHighResolutionCapable</key>
           	<true/>
           	<key>NSLocationUsageDescription</key>
           	<string>An application in Android Studio requests access to the user's location information.</string>
           	<key>NSMicrophoneUsageDescription</key>
           	<string>An application in Android Studio requests access to the device's microphone.</string>
           	<key>NSNetworkVolumesUsageDescription</key>
           	<string>An application in Android Studio requests access to files on a network volume.</string>
           	<key>NSRemovableVolumesUsageDescription</key>
           	<string>An application in Android Studio requests access to files on a removable volume.</string>
           	<key>NSSupportsAutomaticGraphicsSwitching</key>
           	<true/>
           </dict>
           </plist>
[  +12 ms] executing: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java -version
[  +58 ms] Exit code 0 from: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java -version
[        ] openjdk version "11.0.11" 2021-04-20
           OpenJDK Runtime Environment (build 11.0.11+0-b60-7772763)
           OpenJDK 64-Bit Server VM (build 11.0.11+0-b60-7772763, mixed mode)
[   +2 ms] executing: [/Users/filiph/dev/system_overlay_bug/android/] /Users/filiph/dev/system_overlay_bug/android/gradlew -Pverbose=true -Ptarget-platform=android-arm -Ptarget=/Users/filiph/dev/system_overlay_bug/lib/main.dart -Pbase-application-name=android.app.Application -Pdart-defines=RkxVVFRFUl9XRUJfQVVUT19ERVRFQ1Q9dHJ1ZQ== -Pdart-obfuscation=false -Ptrack-widget-creation=true -Ptree-shake-icons=false -Pfilesystem-scheme=org-dartlang-root assembleProfile
[ +705 ms] Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
[   +6 ms] Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
[        ] Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
[        ] Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
[        ] Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
[+2003 ms] > Task :app:compileFlutterBuildProfile
[   +5 ms] [ +139 ms] executing: sysctl hw.optional.arm64
[        ] [  +28 ms] Exit code 0 from: sysctl hw.optional.arm64
[        ] [   +3 ms] hw.optional.arm64: 1
[        ] [   +8 ms] executing: [/Users/filiph/fvm/versions/stable/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] [  +13 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] [        ] 097d3313d8e2c7f901932d63e537c1acefb87800
[        ] [        ] executing: [/Users/filiph/fvm/versions/stable/] git tag --points-at 097d3313d8e2c7f901932d63e537c1acefb87800
[        ] [  +50 ms] Exit code 0 from: git tag --points-at 097d3313d8e2c7f901932d63e537c1acefb87800
[        ] [        ] 2.10.2
[        ] [  +11 ms] executing: [/Users/filiph/fvm/versions/stable/] git rev-parse --abbrev-ref --symbolic @{u}
[        ] [  +10 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] [        ] origin/stable
[        ] [        ] executing: [/Users/filiph/fvm/versions/stable/] git ls-remote --get-url origin
[        ] [   +9 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] [        ] https://github.com/flutter/flutter.git
[        ] [  +88 ms] executing: [/Users/filiph/fvm/versions/stable/] git rev-parse --abbrev-ref HEAD
[        ] [  +21 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] [        ] stable
[        ] [   +8 ms] executing: sw_vers -productName
[        ] [  +14 ms] Exit code 0 from: sw_vers -productName
[        ] [        ] macOS
[        ] [        ] executing: sw_vers -productVersion
[        ] [  +13 ms] Exit code 0 from: sw_vers -productVersion
[        ] [        ] 12.2
[        ] [        ] executing: sw_vers -buildVersion
[        ] [  +14 ms] Exit code 0 from: sw_vers -buildVersion
[        ] [        ] 21D49
[        ] [  +63 ms] 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.
[        ] [   +3 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'WindowsUwpEngineArtifacts' 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.
[        ] [ +113 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'GradleWrapper' is not required, skipping update.
[        ] [   +1 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.
[        ] [        ] Artifact Instance of 'FlutterSdk' is not required, skipping update.
[        ] [        ] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'WindowsUwpEngineArtifacts' 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.
[        ] [        ] 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.
[        ] [        ] Artifact Instance of 'FontSubsetArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'PubDependencies' is not required, skipping update.
[        ] [ +127 ms] Initializing file store
[        ] [  +37 ms] Skipping target: gen_localizations
[        ] [  +14 ms] gen_dart_plugin_registrant: Starting due to {InvalidatedReasonKind.inputChanged: The following inputs have updated contents: /Users/filiph/dev/system_overlay_bug/.dart_tool/package_config_subset}
[        ] [  +44 ms] gen_dart_plugin_registrant: Complete
[        ] [   +3 ms] kernel_snapshot: Starting due to {}
[        ] [  +14 ms] /Users/filiph/fvm/versions/stable/bin/cache/dart-sdk/bin/dart --disable-dart-dev /Users/filiph/fvm/versions/stable/bin/cache/artifacts/engine/darwin-x64/frontend_server.dart.snapshot --sdk-root /Users/filiph/fvm/versions/stable/bin/cache/artifacts/engine/common/flutter_patched_sdk/ --target=flutter --no-print-incremental-dependencies -DFLUTTER_WEB_AUTO_DETECT=true -Ddart.vm.profile=true -Ddart.vm.product=false --aot --tfa --packages /Users/filiph/dev/system_overlay_bug/.dart_tool/package_config.json --output-dill /Users/filiph/dev/system_overlay_bug/.dart_tool/flutter_build/d78beb2568b98ed7b558142858fd1fbd/app.dill --depfile /Users/filiph/dev/system_overlay_bug/.dart_tool/flutter_build/d78beb2568b98ed7b558142858fd1fbd/kernel_snapshot.d package:system_overlay_bug/main.dart
[+9165 ms] [+9898 ms] kernel_snapshot: Complete
[ +297 ms] [ +385 ms] android_aot_profile_android-arm: Starting due to {}
[        ] [   +8 ms] executing: /Users/filiph/fvm/versions/stable/bin/cache/artifacts/engine/android-arm-profile/darwin-x64/gen_snapshot --deterministic --snapshot_kind=app-aot-elf --elf=/Users/filiph/dev/system_overlay_bug/.dart_tool/flutter_build/d78beb2568b98ed7b558142858fd1fbd/armeabi-v7a/app.so --strip --no-sim-use-hardfp --no-use-integer-division /Users/filiph/dev/system_overlay_bug/.dart_tool/flutter_build/d78beb2568b98ed7b558142858fd1fbd/app.dill
[        ] [   +4 ms] aot_android_asset_bundle: Starting due to {}
[ +202 ms] [ +161 ms] aot_android_asset_bundle: Complete
[+4898 ms] [+4885 ms] android_aot_profile_android-arm: Complete
[ +196 ms] [ +175 ms] android_aot_bundle_profile_android-arm: Starting due to {}
[        ] [   +3 ms] android_aot_bundle_profile_android-arm: Complete
[        ] [  +55 ms] Persisting file store
[        ] [   +6 ms] Done persisting file store
[        ] [   +8 ms] build succeeded.
[ +102 ms] [  +14 ms] "flutter assemble" took 15,994ms.
[  +98 ms] [ +118 ms] ensureAnalyticsSent: 103ms
[        ] [   +1 ms] Running shutdown hooks
[        ] [        ] Shutdown hooks complete
[        ] [        ] exiting with code 0
[ +298 ms] > Task :app:packLibsflutterBuildProfile
[        ] > Task :app:preBuild UP-TO-DATE
[        ] > Task :app:preProfileBuild UP-TO-DATE
[        ] > Task :app:compileProfileAidl NO-SOURCE
[        ] > Task :app:compileProfileRenderscript NO-SOURCE
[        ] > Task :app:generateProfileBuildConfig UP-TO-DATE
[        ] > Task :app:checkProfileAarMetadata UP-TO-DATE
[        ] > Task :app:cleanMergeProfileAssets
[        ] > Task :app:mergeProfileShaders UP-TO-DATE
[        ] > Task :app:compileProfileShaders NO-SOURCE
[        ] > Task :app:generateProfileAssets UP-TO-DATE
[        ] > Task :app:mergeProfileAssets
[        ] > Task :app:copyFlutterAssetsProfile
[        ] > Task :app:generateProfileResValues UP-TO-DATE
[        ] > Task :app:generateProfileResources UP-TO-DATE
[        ] > Task :app:mergeProfileResources UP-TO-DATE
[        ] > Task :app:createProfileCompatibleScreenManifests UP-TO-DATE
[        ] > Task :app:extractDeepLinksProfile UP-TO-DATE
[        ] > Task :app:processProfileMainManifest UP-TO-DATE
[        ] > Task :app:processProfileManifest UP-TO-DATE
[        ] > Task :app:processProfileManifestForPackage UP-TO-DATE
[        ] > Task :app:processProfileResources UP-TO-DATE
[ +494 ms] > Task :app:compileProfileKotlin
[        ] > Task :app:javaPreCompileProfile UP-TO-DATE
[        ] > Task :app:compileProfileJavaWithJavac UP-TO-DATE
[        ] > Task :app:compileProfileSources UP-TO-DATE
[   +1 ms] > Task :app:mergeProfileNativeDebugMetadata NO-SOURCE
[        ] > Task :app:compressProfileAssets UP-TO-DATE
[        ] > Task :app:checkProfileDuplicateClasses UP-TO-DATE
[        ] > Task :app:dexBuilderProfile UP-TO-DATE
[ +101 ms] > Task :app:processProfileJavaRes NO-SOURCE
[        ] > Task :app:desugarProfileFileDependencies
[        ] > Task :app:mergeProfileJniLibFolders UP-TO-DATE
[        ] > Task :app:mergeExtDexProfile UP-TO-DATE
[        ] > Task :app:mergeDexProfile UP-TO-DATE
[        ] > Task :app:validateSigningProfile UP-TO-DATE
[        ] > Task :app:mergeProfileJavaResource
[  +97 ms] > Task :app:mergeProfileNativeLibs
[        ] > Task :app:stripProfileDebugSymbols
[        ] Unable to strip the following libraries, packaging them as they are: libapp.so.
[ +164 ms] > Task :app:packageProfile
[        ] > Task :app:assembleProfile
[        ] Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
[        ] Use '--warning-mode all' to show the individual deprecation warnings.
[        ] See https://docs.gradle.org/6.7/userguide/command_line_interface.html#sec:command_line_warnings
[        ] BUILD SUCCESSFUL in 18s
[        ] 32 actionable tasks: 12 executed, 20 up-to-date
[ +430 ms] Running Gradle task 'assembleProfile'... (completed in 19.8s)
[  +24 ms] calculateSha: LocalDirectory: '/Users/filiph/dev/system_overlay_bug/build/app/outputs/flutter-apk'/app.apk
[ +131 ms] ✓  Built build/app/outputs/flutter-apk/app-profile.apk (13.3MB).
[  +18 ms] executing: /Users/filiph/Library/Android/sdk/build-tools/33.0.0-rc1/aapt dump xmltree /Users/filiph/dev/system_overlay_bug/build/app/outputs/flutter-apk/app.apk AndroidManifest.xml
[  +37 ms] Exit code 0 from: /Users/filiph/Library/Android/sdk/build-tools/33.0.0-rc1/aapt dump xmltree /Users/filiph/dev/system_overlay_bug/build/app/outputs/flutter-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)0x1f
               A: android:compileSdkVersionCodename(0x01010573)="12" (Raw: "12")
               A: package="com.example.system_overlay_bug" (Raw: "com.example.system_overlay_bug")
               A: platformBuildVersionCode=(type 0x10)0x1f
               A: platformBuildVersionName=(type 0x10)0xc
               E: uses-sdk (line=7)
                 A: android:minSdkVersion(0x0101020c)=(type 0x10)0x10
                 A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1f
               E: uses-permission (line=14)
                 A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET")
               E: application (line=16)
                 A: android:label(0x01010001)="system_overlay_bug" (Raw: "system_overlay_bug")
                 A: android:icon(0x01010002)=@0x7f080000
                 A: android:name(0x01010003)="android.app.Application" (Raw: "android.app.Application")
                 A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff
                 A: android:appComponentFactory(0x0101057a)="androidx.core.app.CoreComponentFactory" (Raw: "androidx.core.app.CoreComponentFactory")
                 E: activity (line=22)
                   A: android:theme(0x01010000)=@0x7f0a0000
                   A: android:name(0x01010003)="com.example.system_overlay_bug.MainActivity" (Raw: "com.example.system_overlay_bug.MainActivity")
                   A: android:exported(0x01010010)=(type 0x12)0xffffffff
                   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=37)
                     A: android:name(0x01010003)="io.flutter.embedding.android.NormalTheme" (Raw: "io.flutter.embedding.android.NormalTheme")
                     A: android:resource(0x01010025)=@0x7f0a0001
                   E: intent-filter (line=41)
                     E: action (line=42)
                       A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
                     E: category (line=44)
                       A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER")
                 E: meta-data (line=51)
                   A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding")
                   A: android:value(0x01010024)=(type 0x10)0x2
                 E: uses-library (line=55)
                   A: android:name(0x01010003)="androidx.window.extensions" (Raw: "androidx.window.extensions")
                   A: android:required(0x0101028e)=(type 0x12)0x0
                 E: uses-library (line=58)
                   A: android:name(0x01010003)="androidx.window.sidecar" (Raw: "androidx.window.sidecar")
                   A: android:required(0x0101028e)=(type 0x12)0x0
[   +5 ms] Stopping app 'app.apk' on Nokia 1 3.
[        ] executing: /Users/filiph/Library/Android/sdk/platform-tools/adb -s PT89572AA1A90700192 shell am force-stop com.example.system_overlay_bug
[ +103 ms] executing: /Users/filiph/Library/Android/sdk/platform-tools/adb -s PT89572AA1A90700192 shell pm list packages com.example.system_overlay_bug
[ +115 ms] package:com.example.system_overlay_bug
[   +3 ms] executing: /Users/filiph/Library/Android/sdk/platform-tools/adb -s PT89572AA1A90700192 shell cat /data/local/tmp/sky.com.example.system_overlay_bug.sha1
[  +68 ms] 7270c61d8b38b83830077ac92a65daeae6e14f9b
[   +1 ms] Installing APK.
[   +2 ms] Installing build/app/outputs/flutter-apk/app.apk...
[        ] executing: /Users/filiph/Library/Android/sdk/platform-tools/adb -s PT89572AA1A90700192 install -t -r /Users/filiph/dev/system_overlay_bug/build/app/outputs/flutter-apk/app.apk
[+2023 ms] Performing Streamed Install
           Success
[  +20 ms] Installing build/app/outputs/flutter-apk/app.apk... (completed in 2,025ms)
[   +5 ms] executing: /Users/filiph/Library/Android/sdk/platform-tools/adb -s PT89572AA1A90700192 shell echo -n 129c70aa338d8cfb4d8629b8630c328ccf257bbb > /data/local/tmp/sky.com.example.system_overlay_bug.sha1
[ +109 ms] executing: /Users/filiph/Library/Android/sdk/platform-tools/adb -s PT89572AA1A90700192 shell -x logcat -v time -t 1
[ +167 ms] --------- beginning of main
           02-23 11:56:18.760 I/Finsky  ( 3264): [1093] efj.run(4): Wrote row to frosting DB: 623
[  +35 ms] executing: /Users/filiph/Library/Android/sdk/platform-tools/adb -s PT89572AA1A90700192 shell am start -a android.intent.action.RUN -f 0x20000000 --ez enable-dart-profiling true com.example.system_overlay_bug/com.example.system_overlay_bug.MainActivity
[ +309 ms] Starting: Intent { act=android.intent.action.RUN flg=0x20000000 cmp=com.example.system_overlay_bug/.MainActivity (has extras) }
[   +2 ms] Waiting for observatory port to be available...
[ +771 ms] Observatory URL on device: http://127.0.0.1:42019/Wa9P1x2hXeI=/
[   +4 ms] executing: /Users/filiph/Library/Android/sdk/platform-tools/adb -s PT89572AA1A90700192 forward tcp:0 tcp:42019
[  +42 ms] 63258
[   +1 ms] Forwarded host port 63258 to device port 42019 for Observatory
[  +17 ms] Connecting to service protocol: http://127.0.0.1:63258/Wa9P1x2hXeI=/
[  +80 ms] Launching a Dart Developer Service (DDS) instance at http://127.0.0.1:0, connecting to VM service at http://127.0.0.1:63258/Wa9P1x2hXeI=/.
[ +368 ms] DDS is listening at http://127.0.0.1:63263/ujIlcXjlsis=/.
[  +79 ms] Successfully connected to service protocol: http://127.0.0.1:63258/Wa9P1x2hXeI=/
[  +16 ms] Application running.
[ +223 ms] Connected to Nokia 1 3
[   +4 ms] Flutter run key commands.
[   +1 ms] h List all available interactive commands.
[        ] c Clear the screen
[        ] q Quit (terminate the application on the device).
[        ] An Observatory debugger and profiler on Nokia 1 3 is available at: http://127.0.0.1:63263/ujIlcXjlsis=/
[ +133 ms] The Flutter DevTools debugger and profiler on Nokia 1 3 is available at: http://127.0.0.1:9104?uri=http://127.0.0.1:63263/ujIlcXjlsis=/
Analyzing system_overlay_bug...                                 
No issues found! (ran in 2.0s)
[✓] Flutter (Channel stable, 2.10.2, on macOS 12.2 21D49 darwin-arm, locale en-US)
    • Flutter version 2.10.2 at /Users/filiph/fvm/versions/stable
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 097d3313d8 (4 days ago), 2022-02-18 19:33:08 -0600
    • Engine revision a83ed0e5e3
    • Dart version 2.16.1
    • DevTools version 2.9.2

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0-rc1)
    • Android SDK at /Users/filiph/Library/Android/sdk
    • Platform android-31, build-tools 33.0.0-rc1
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7772763)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.2.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • CocoaPods version 1.10.1

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7772763)

[✓] VS Code (version 1.56.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension can be installed from:
      🔨 https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[✓] Connected device (3 available)
    • Nokia 1 3 (mobile) • PT89572AA1A90700192 • android-arm    • Android 11 (API 30)
    • macOS (desktop)    • macos               • darwin-arm64   • macOS 12.2 21D49 darwin-arm
    • Chrome (web)       • chrome              • web-javascript • Google Chrome 98.0.4758.109

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!

Metadata

Metadata

Assignees

No one assigned

    Labels

    P0Critical issues such as a build break or regressiona: releaseChallenges faced when attempting to productionize an appc: regressionIt was better in the past than it is nowengineflutter/engine related. See also e: labels.found in release: 2.10Found to occur in 2.10platform-androidAndroid applications specificallywaiting for PR to land (fixed)A fix is in flight

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions