Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deadlock in application startup in profile/release mode #98973

Closed
filiph opened this issue Feb 23, 2022 · 16 comments
Closed

Deadlock in application startup in profile/release mode #98973

filiph opened this issue Feb 23, 2022 · 16 comments
Labels
a: release Challenges faced when attempting to productionize an app c: regression It was better in the past than it is now engine flutter/engine repository. See also e: labels. found in release: 2.10 Found to occur in 2.10 P0 Critical issues such as a build break or regression platform-android Android applications specifically waiting for PR to land (fixed) A fix is in flight

Comments

@filiph
Copy link
Contributor

filiph commented Feb 23, 2022

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!

@danagbemava-nc danagbemava-nc added the in triage Presently being triaged by the triage team label Feb 23, 2022
@danagbemava-nc
Copy link
Member

Hi @filiph, thanks for reporting this.

While I can reproduce this consistently on stable, I can't seem to reproduce this on either master or beta.

Can you confirm if this is the case for you as well?

@danagbemava-nc danagbemava-nc added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Feb 23, 2022
filiph added a commit to filiph/tictactoe that referenced this issue Feb 23, 2022
@filiph
Copy link
Contributor Author

filiph commented Feb 23, 2022

Hi @danagbemava-nc,

Confirmed. The bug only manifests on current stable (2.10.2), not on master or beta.

@github-actions github-actions bot removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Feb 23, 2022
@filiph
Copy link
Contributor Author

filiph commented Feb 23, 2022

I forgot to mention that this is not specific to SystemUiMode.immersiveSticky. Every other SystemUiMode I tried to set using SystemChrome.setEnabledSystemUIMode() led to the white screen of death.

@jason-simmons
Copy link
Member

It looks like this was fixed by flutter/engine@0ca8e1a

flutter/engine@7b5edec was cherry picked into 2.10.1, so we might need to cherry pick flutter/engine@0ca8e1a if there is another 2.10 release

@blasten @itsjustkevin

@blasten blasten added the platform-android Android applications specifically label Feb 23, 2022
@blasten
Copy link

blasten commented Feb 24, 2022

I confirmed that flutter/engine@0ca8e1a fixes this issue.

@blasten blasten added the waiting for PR to land (fixed) A fix is in flight label Feb 24, 2022
@danagbemava-nc
Copy link
Member

This appears to be a regression as it works just fine on stable 2.8.1 but not stable 2.10.2, but it has since been fixed on beta and master.

screenshots
stable 2.10.2 stable 2.8.1 & master/beta
Screenshot 2022-02-25 at 07 36 22 Screenshot 2022-02-25 at 07 42 49
flutter doctor -v
[✓] Flutter (Channel unknown, 2.8.1, on macOS 12.2 21D49 darwin-arm, locale en-GB)
    • Flutter version 2.8.1 at /Users/nexus/dev/sdks/flutter_rc/flutter
    • Upstream repository unknown
    • Framework revision 77d935af4d (2 months ago), 2021-12-16 08:37:33 -0800
    • Engine revision 890a5fca2e
    • Dart version 2.15.1

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/nexus/Library/Android/sdk
    • Platform android-32, build-tools 31.0.0
    • 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.11.2

[✓] 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)

[☠] IntelliJ IDEA Community Edition (the doctor check crashed)
    ✗ Due to an error, the doctor check did not complete. If the error message below is not helpful, please let us know about this issue at https://github.com/flutter/flutter/issues.
    ✗ FormatException: Unexpected extension byte (at offset 5)
    • #0      _Utf8Decoder.convertSingle (dart:convert-patch/convert_patch.dart:1789:7)
      #1      Utf8Decoder.convert (dart:convert/utf.dart:318:42)
      #2      InputStream.readString (package:archive/src/util/input_stream.dart:207:30)
      #3      new ZipDirectory.read (package:archive/src/zip/zip_directory.dart:40:30)
      #4      ZipDecoder.decodeBuffer (package:archive/src/zip_decoder.dart:19:30)
      #5      ZipDecoder.decodeBytes (package:archive/src/zip_decoder.dart:14:12)
      #6      IntelliJPlugins._findPluginXml (package:flutter_tools/src/intellij/intellij.dart:130:44)
      #7      IntelliJPlugins._readPackageVersion (package:flutter_tools/src/intellij/intellij.dart:141:40)
      #8      IntelliJPlugins.validatePackage (package:flutter_tools/src/intellij/intellij.dart:63:35)
      #9      IntelliJValidator.validate (package:flutter_tools/src/intellij/intellij_validator.dart:103:15)
      #10     asyncGuard.<anonymous closure> (package:flutter_tools/src/base/async_guard.dart:111:32)
      #11     asyncGuard.<anonymous closure> (package:flutter_tools/src/base/async_guard.dart:109:18)
      #12     _rootRun (dart:async/zone.dart:1428:13)
      #13     _CustomZone.run (dart:async/zone.dart:1328:19)
      #14     _runZoned (dart:async/zone.dart:1863:10)
      #15     runZonedGuarded (dart:async/zone.dart:1851:12)
      #16     runZoned (dart:async/zone.dart:1782:12)
      #17     asyncGuard (package:flutter_tools/src/base/async_guard.dart:109:3)
      #18     Doctor.startValidatorTasks (package:flutter_tools/src/doctor.dart:197:9)
      #19     Doctor.diagnose (package:flutter_tools/src/doctor.dart:301:47)
      #20     DoctorCommand.runCommand (package:flutter_tools/src/commands/doctor.dart:53:47)
      #21     FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:1290:12)
      <asynchronous suspension>
      #22     FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1140:27)
      <asynchronous suspension>
      #23     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
      <asynchronous suspension>
      #24     CommandRunner.runCommand (package:args/command_runner.dart:209:13)
      <asynchronous suspension>
      #25     FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:288:9)
      <asynchronous suspension>
      #26     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
      <asynchronous suspension>
      #27     FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:236:5)
      <asynchronous suspension>
      #28     run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:62:9)
      <asynchronous suspension>
      #29     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
      <asynchronous suspension>
      #30     main (package:flutter_tools/executable.dart:94:3)
      <asynchronous suspension>


[✓] VS Code (version 1.64.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.34.0

[✓] Connected device (5 available)
    • M2007J20CG (mobile)         • 5dd3be00                  • android-arm64  • Android 11 (API 30)
    • sdk gphone64 arm64 (mobile) • emulator-5554             • android-arm64  • Android 12 (API 31) (emulator)
    • Nexus (mobile)              • 00008020-001875E83A38002E • ios            • iOS 15.3 19D50
    • macOS (desktop)             • macos                     • darwin-arm64   • macOS 12.2 21D49 darwin-arm
    • Chrome (web)                • chrome                    • web-javascript • Google Chrome 98.0.4758.109

! Doctor found issues in 1 category.
[✓] Flutter (Channel stable, 2.10.2, on macOS 12.2 21D49 darwin-arm, locale en-GB)
    • Flutter version 2.10.2 at /Users/nexus/dev/sdks/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 097d3313d8 (6 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 31.0.0)
    • Android SDK at /Users/nexus/Library/Android/sdk
    • Platform android-32, build-tools 31.0.0
    • 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.11.2

[✓] 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)

[☠] IntelliJ IDEA Community Edition (the doctor check crashed)
    ✗ Due to an error, the doctor check did not complete. If the error message below is not helpful, please let us know about this issue at https://github.com/flutter/flutter/issues.
    ✗ FormatException: Unexpected extension byte (at offset 5)
    • #0      _Utf8Decoder.convertSingle (dart:convert-patch/convert_patch.dart:1789:7)
      #1      Utf8Decoder.convert (dart:convert/utf.dart:351:42)
      #2      InputStream.readString (package:archive/src/util/input_stream.dart:207:30)
      #3      new ZipDirectory.read (package:archive/src/zip/zip_directory.dart:40:30)
      #4      ZipDecoder.decodeBuffer (package:archive/src/zip_decoder.dart:19:30)
      #5      ZipDecoder.decodeBytes (package:archive/src/zip_decoder.dart:14:12)
      #6      IntelliJPlugins._findPluginXml (package:flutter_tools/src/intellij/intellij.dart:130:44)
      #7      IntelliJPlugins._readPackageVersion (package:flutter_tools/src/intellij/intellij.dart:141:40)
      #8      IntelliJPlugins.validatePackage (package:flutter_tools/src/intellij/intellij.dart:63:35)
      #9      IntelliJValidator.validate (package:flutter_tools/src/intellij/intellij_validator.dart:103:15)
      #10     asyncGuard.<anonymous closure> (package:flutter_tools/src/base/async_guard.dart:111:32)
      #11     asyncGuard.<anonymous closure> (package:flutter_tools/src/base/async_guard.dart:109:18)
      #12     _rootRun (dart:async/zone.dart:1426:13)
      #13     _CustomZone.run (dart:async/zone.dart:1328:19)
      #14     _runZoned (dart:async/zone.dart:1861:10)
      #15     runZonedGuarded (dart:async/zone.dart:1849:12)
      #16     runZoned (dart:async/zone.dart:1780:12)
      #17     asyncGuard (package:flutter_tools/src/base/async_guard.dart:109:3)
      #18     Doctor.startValidatorTasks (package:flutter_tools/src/doctor.dart:205:9)
      #19     Doctor.diagnose (package:flutter_tools/src/doctor.dart:309:47)
      #20     DoctorCommand.runCommand (package:flutter_tools/src/commands/doctor.dart:50:48)
      #21     FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:1320:12)
      <asynchronous suspension>
      #22     FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1161:27)
      <asynchronous suspension>
      #23     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
      <asynchronous suspension>
      #24     CommandRunner.runCommand (package:args/command_runner.dart:209:13)
      <asynchronous suspension>
      #25     FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:281:9)
      <asynchronous suspension>
      #26     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
      <asynchronous suspension>
      #27     FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:229:5)
      <asynchronous suspension>
      #28     run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:62:9)
      <asynchronous suspension>
      #29     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
      <asynchronous suspension>
      #30     main (package:flutter_tools/executable.dart:94:3)
      <asynchronous suspension>


[✓] VS Code (version 1.64.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.34.0

[✓] Connected device (5 available)
    • M2007J20CG (mobile)         • 5dd3be00                  • android-arm64  • Android 11 (API 30)
    • sdk gphone64 arm64 (mobile) • emulator-5554             • android-arm64  • Android 12 (API 31) (emulator)
    • Nexus (mobile)              • 00008020-001875E83A38002E • ios            • iOS 15.3 19D50
    • 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

! Doctor found issues in 1 category.
[✓] Flutter (Channel master, 2.11.0-0.0.pre.681, on macOS 12.2 21D49 darwin-arm, locale en-GB)
    • Flutter version 2.11.0-0.0.pre.681 at /Users/nexus/dev/sdks/flutters
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision a288bd5e3f (2 hours ago), 2022-02-24 23:06:19 -0600
    • Engine revision 1012ac4b5a
    • Dart version 2.17.0 (build 2.17.0-141.0.dev)
    • DevTools version 2.11.0

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/nexus/Library/Android/sdk
    • Platform android-32, build-tools 31.0.0
    • 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.11.2

[✓] 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)

[✓] IntelliJ IDEA Community Edition (version 2021.3)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin version 213.5744.122

[✓] VS Code (version 1.64.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.34.0

[✓] Connected device (5 available)
    • M2007J20CG (mobile)         • 5dd3be00                  • android-arm64  • Android 11 (API 30)
    • sdk gphone64 arm64 (mobile) • emulator-5554             • android-arm64  • Android 12 (API 31) (emulator)
    • Nexus (mobile)              • 00008020-001875E83A38002E • ios            • iOS 15.3 19D50
    • 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!

@danagbemava-nc danagbemava-nc added a: release Challenges faced when attempting to productionize an app found in release: 2.10 Found to occur in 2.10 c: regression It was better in the past than it is now engine flutter/engine repository. See also e: labels. and removed in triage Presently being triaged by the triage team labels Feb 25, 2022
@Piinks
Copy link
Contributor

Piinks commented Feb 25, 2022

If this is already fixed on the master branch, we can close the issue.

@filiph
Copy link
Contributor Author

filiph commented Feb 25, 2022

I don't know how soon there's a new stable release, but, FWIW, I think this is severe enough to call for a cherry pick. If I understand it correctly, every Flutter app or game that does anything with UI mode (full screen, edge to edge, hidden status bar, etc.) is currently broken on stable. Just my 2 cents. I, personally, can use beta for now.

@Piinks
Copy link
Contributor

Piinks commented Feb 25, 2022

Oh I agree, @blasten are you already arranging for cp since you fixed this in flutter/engine#31464?

Usually the issue is closed and moved along from there for cherry picking consideration.

@blasten
Copy link

blasten commented Feb 25, 2022

The cp label was applied to this issue. This indicates that it will be cherry picked into the branch corresponding to the version. In this case, Flutter 2.10 (stable branch).

@blasten
Copy link

blasten commented Feb 25, 2022

This was an unfortunate regression, apologies for the issue.

I’m going to work on an integration test for this.

@blasten blasten changed the title Using SystemChrome.setEnabledSystemUIMode in profile/release mode leads to blank screen Deadlock in application startup in profile/release mode Feb 25, 2022
blasten pushed a commit to blasten/flutter that referenced this issue Feb 26, 2022
@swch01
Copy link

swch01 commented Feb 28, 2022

This is a blocking issue for my app. Any ETA on this? Will the fix be in 2.10.3?

@chinmaygarde
Copy link
Member

The fix for this has landed and approved for CP. Closing.

@xster
Copy link
Member

xster commented Mar 1, 2022

@khyati82 I'm tagging this one for potentially highlighting a bad build range for other users cutting releases between flutter/engine@7b5edec and flutter/engine@0ca8e1a.

@kkoken
Copy link

kkoken commented Mar 3, 2022

@chinmaygarde @xster does current release 2.10.3solve this issue?

@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 17, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
a: release Challenges faced when attempting to productionize an app c: regression It was better in the past than it is now engine flutter/engine repository. See also e: labels. found in release: 2.10 Found to occur in 2.10 P0 Critical issues such as a build break or regression platform-android Android applications specifically waiting for PR to land (fixed) A fix is in flight
Projects
None yet
Development

No branches or pull requests

10 participants