text:
flutter run --use-application-binary fails on iOS 14 simulator

flutter build ios --simulator
flutter run -d c --use-application-binary build/ios/iphonesimulator/Runner.app
Launching lib/main.dart on iPhone in debug mode...
2020-09-29 09:34:11.349 ios-deploy[51287:575171] [ !! ] Error 0xe8008014: The executable contains an invalid signature. AMDeviceSecureInstallApplication(0, device, url, options, install_callback, 0)
Could not install build/ios/iphonesimulator/Runner.app on cdcd493527f1f25a0ac91106540cf58186f2b4f0.
Try launching Xcode and selecting "Product > Run" to fix the problem:
  open ios/Runner.xcworkspace

Error launching application on iPhone.

Tested on beta 1.22.0-12.2

Oops, I built it wrong. No issues here.

source: gharchive/issue

repo: flutter/flutter

license_type: permissive

license_source: github-api


text:
Extend drawing and rendering in lifecycles in iOS

Use case
To keep it short, applications built with flutter do not continue to render whilst out of view or in IOS's app switcher.
This is a bad behaviour from mobile apps imo . Might be a limitation from the framework, not sure.
It also causes an unpleasant UI/UX when scrolling through a ListView and the the application is removed from view. When
the application is brought back into view it jumps suddenly depending on the scroll extent.
Here is a gif description comparing Instagram and a mock flutter application.

Proposal
According to  #5449 and #11421 , this was fixed. Although this was as far back 2017/2018 and Flutter has had many updates since then. Maybe a revision of what was changed could be implemented once more.
Environment
A minimal code snippet that would reproduce this issue.
import 'package:flutter/material.dart';

void main() {
  runApp(App());
}

class App extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Issue(),
    );
  }
}

class Issue extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('Issue'),
      ),
      body: ListView.builder(
        itemBuilder: (context, index) {
          return Padding(
            padding: const EdgeInsets.all(16.0),
            child: Text('Issue test'),
          );
        },
        itemCount: 350,
      ),
    );
  }
}

flutter doctor -v

[✓] Flutter (Channel stable, 1.22.0, on Mac OS X 10.15.7 19H15, locale en-GB)
    • Flutter version 1.22.0 at /Users/adeola/Downloads/flutter
    • Framework revision d408d302e2 (8 weeks ago), 2020-09-29 11:49:17 -0700
    • Engine revision 5babba6c4d
    • Dart version 2.10.0

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at /Users/adeola/Library/Android/sdk
    • Platform android-30, build-tools 30.0.2
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 12.0.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.0.1, Build version 12A7300
    • CocoaPods version 1.10.0.rc.1

[!] Android Studio (version 4.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)

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

[✓] Connected device (1 available)
    • iPhone (mobile) • 7301a50cae9aaf2e903ef313e632bfed64bb3704 • ios • iOS 14.0

Hi @adeolaex
What you want to achieve is called State Restoration, there is not issue here. Even on native Android/iOS app the system may stop your app's process to release resources for the app in foreground, See https://developer.apple.com/documentation/uikit/view_controllers/preserving_your_app_s_ui_across_launches.
Flutter has recently introduce this however there is no support for iOS currently https://github.com/flutter/flutter/issues/62915. See for more info https://github.com/flutter/flutter/issues/62916.
The announcement was made in https://medium.com/flutter/announcing-flutter-1-22-44f146009e5f.

HEY @pedromassangocode
This issue has nothing to deal with State Restoration. If the text explaining the issue wasn't clear enough, at least look at the Gif provided.
Both the native app ( Instagram ) and the Flutter app never make it to the background. They are both either in foreground or in the app switcher.
What I am describing has to deal with the Flutter app not rendering whilst in the app switcher. On the native app, it contuses to scroll whilst in the app switcher. Please look at #5449 !

In fact, to put it into perspective, we don't even have to go as far as the app switcher. Simply scrolling a list then immediately dragging up the Control Centre will have the same results.

Thanks for making this clear, I was able to reproduce this on master channel.
Cc @xster @Hixie
flutter doctor -v
[✓] Flutter (Channel master, 1.24.0-8.0.pre.344, on Mac OS X 10.15.7 19H2 darwin-x64, locale en)
    • Flutter version 1.24.0-8.0.pre.344 at /Users/pedromassango/dev/SDKs/flutter_master
    • Framework revision de56c6ad72 (18 hours ago), 2020-11-23 05:28:06 +0900
    • Engine revision 23a8e027db
    • Dart version 2.12.0 (build 2.12.0-62.0.dev)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at /Users/pedromassango/Library/Android/sdk
    • Platform android-30, build-tools 30.0.2
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 12.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.1, Build version 12A7403
    • CocoaPods version 1.9.3

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

[✓] Android Studio (version 4.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 1.8.0_242-release-1644-b3-6915495)

[✓] IntelliJ IDEA Community Edition (version 2020.2.3)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 51.0.3
    • Dart plugin version 202.8070

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

[✓] Connected device (4 available)
    • iPhone 11 Pro Max (mobile) • 7A82F29E-E49E-4B3C-8609-1570361DBC17 • ios            • com.apple.CoreSimulator.SimRuntime.iOS-14-0 (simulator)
    • macOS (desktop)            • macos                                • darwin-x64     • Mac OS X 10.15.7 19H2 darwin-x64
    • Web Server (web)           • web-server                           • web-javascript • Flutter Tools
    • Chrome (web)               • chrome                               • web-javascript • Google Chrome 86.0.4240.198

• No issues found!

@pedromassangocode Thank you very much !
I'm glad you reopened the issue.

Hey @pedromassangocode , any update on this ?

Hi @adeolaex
No, you will receive notifications once this get closed!

@pedromassangocode I don't think they saw the cc

I don't think it is necessary since this have a priority label assigned already P5.

/cc @xster Do you know if this is an issue in the iOS embedder or the engine?

Since we had the rendering while in the app switcher behavior in https://github.com/flutter/flutter/issues/11421, we've made a number of tweaks in this area. Mainly to reduce the likelihood of issuing OpenGL commands while the app isn't in the foreground since it's prohibited in iOS and lead to crashes. But we may have not correctly preserved any special casing needed to support the app switcher.
@gaaclarke may know more from looking at it more recently. It's also possible that OpenGL/Metal based apps conceptually need to be narrower in the supported lifecycle span than UiKit apps. Would be good to test via apps like games or Google Earth.

Yep, it is possible the disabling of the GPU is too conservative.  Here is a PR that is purporting this very thing and addressing it: https://github.com/flutter/engine/pull/17396

Yep, it is possible the disabling of the GPU is too conservative. Here is a PR that is purporting this very thing and addressing it: flutter/engine#17396
Edit: I tried out that PR and it didn't address the issue.

The PR is quite old by now, probably there are now other places in the engine that disable the rendering in the inactive state.
When I made the PR these changes were enough to get it rendering in the app switcher

Fixed in https://github.com/flutter/engine/pull/25196

authors: Kavantix adeolaex gaaclarke pedromassangocode xster zanderso


text:
ListTile drawing correctly under windows

I am having trouble getting ListView to render correctly under windows. The problem is that by default ListTile has a bunch of properties such as hoverTileColor, selectedTileColor that should change the color of the ListTile it is being rendered with.
Now I noticed that under windows neither of these properties actually seem to do anything. If i change hoverTileColor to blue, and go over my ListTile, the background seems of the tile seems the same. What is actually quite weird, about it, is that the moment the ListTile is being displayed on a surface that doesn't have any color it does seem to give it an focus and selectable colors.
For example, this would be enough to make the list tiles not change colors (focus, selecting)
Scaffold(body: Container( color: Color.white, ListView(children: [ListTile(title: Text('hello world')), ListTile(title: Text('hello world'))]))

while this did show visuals of selecting and focussing, it's not customizable:
Scaffold(body: Container( ListView(children: [ListTile(title: Text('hello world')), ListTile(title: Text('hello world'))]))

I suspect that it has something to do with a repaint boundary or state set that isn't picked up/propagated because the tile was being rendered on a colored surface.
Edit:
if I do, I can see the hover color, but if I change opacity back to 1.0 the hover color disappears. It's somehow like the hover is geometry is repainted under the actual background of the container.
Scaffold(body: Container( color: Colors.blue.withOpacity(0.0), ListView(children: [ListTile(title: Text('hello world'), hoverColor: Colors.red,), ListTile(title: Text('hello world'), hoverColor: Colors.red,)]))
``

Hi @phr34k
Thanks for filing the issue, I can reproduce the same hover issue with opacity on the web on Windows, macOS too.

code sample
import 'package:flutter/material.dart';

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

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Material App',
      home: Scaffold(
        appBar: AppBar(
          title: Text('Material App Bar'),
        ),
        body: Center(
          child: Container(
            color: Colors.blue.withOpacity(1.0),
            child: ListView(children: [
              ListTile(
                title: Text('hello world'),
                hoverColor: Colors.red,
                focusColor: Colors.blue,
                onLongPress: () {},
                onTap: () {},
              ),
              ListTile(title: Text('hello world'))
            ]),
          ),
        ),
      ),
    );
  }
}

I suspect this is an issue when running on the desktop, no matter web or app, was this working for you earlier? Can you please provide your flutter doctor -v
Thank youi

@TahaTesser nope, so far to my knowledge it was broken very first start I started to use desktop. I was basically, developing a larger desktop-based proof-of-concept application intended for desktop/tablets, so I didn't actually check against android/ios builds but with my brief exposure to flutter on android I believed it worked over there just fine.
Here is my flutter doctor -v output:
[√] Flutter (Channel dev, 1.27.0-1.0.pre, on Microsoft Windows [Version 10.0.18362.1256], locale en-US)
    • Flutter version 1.27.0-1.0.pre at D:\SDK\flutter
    • Framework revision 68c96f100e (2 weeks ago), 2021-02-08 16:14:15 -0800
    • Engine revision b04955656c
    • Dart version 2.13.0 (build 2.13.0-0.0.dev)

[√] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at D:\SDK\android-sdk
    • Platform android-29, build-tools 29.0.2
    • ANDROID_HOME = D:\SDK\android-sdk
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.5.3)
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
    • Visual Studio Community 2019 version 16.5.30002.166
    • Windows 10 SDK version 10.0.18362.0

[√] Android Studio (version 4.1.0)
    • Android Studio at C:\Program Files\Android\Android Studio
    • 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 1.8.0_242-release-1644-b01)

[√] VS Code (version 1.53.2)
    • VS Code at C:\Users\phpfr\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.19.0

[√] Connected device (2 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.18362.1256]
    • Chrome (web)      • chrome  • web-javascript • Google Chrome 88.0.4324.182

• No issues found!

@TahaTesser just to clarify it seems to happen whenever there's an opaque background color under the listview/listile, if there's a parent container that has the color, it seems to either not repaint or maybe in a wrong order overlayed. Either way, I think considering you can reproduce it, you'll have no problem seeing what i mean.

CC @gspencergoog - thought you might have looked at ListTile rendering recently

This is not a result of the recent list tile changes (which were reverted), but is actually as designed.
The highlights are drawn by the InkWell that the ListTile uses, and it draws it on the nearest Material ancestor widget.  Since you are drawing over that Material widget (introduced by the Scaffold), the highlights are drawing, but they are drawing behind the opaque Container that you blocked them with.
If you want to have the highlights, but also specify a color, swap out the Container widget for a Material widget, for example:
import 'package:flutter/material.dart';

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

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Material App',
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Material App Bar'),
        ),
        body: Center(
          child: Material(
            color: Colors.blue.withOpacity(1.0),
            child: ListView(children: [
              Focus(
                child: ListTile(
                  title: const Text('hello world'),
                  hoverColor: Colors.red,
                  focusColor: Colors.green,
                  onLongPress: () {},
                  onTap: () {},
                ),
              ),
              const ListTile(title: Text('hello world'))
            ]),
          ),
        ),
      ),
    );
  }
}

(Closing because this is as designed)

authors: HansMuller TahaTesser gspencergoog phr34k


text:
[web] Picture.toImage throws an error on flutter web

I have been using this solution to generate my own BitmapDescriptor from an icon: https://gist.github.com/jbxbergdev/5238bb78b03a2a4e6f24e55f442d2b70
It worked perfectly until it suddenly stopped working a few days ago! And the strage thing is that I did not change anything! I did not change flutter version or anything like that.
It fails only in web, it works fine on android and ios. It fails on the line
final image = await picture.toImage(_markerSize.round(), _markerSize.round());
and the error looks exactly like:
https://github.com/flutter/flutter/issues/71848
I am using:
flutter --version

Flutter 1.25.0-8.3.pre • channel beta • https://github.com/flutter/flutter.git
Framework • revision 5d36f2e7f5 (3 months ago) • 2021-01-14 15:57:49 -0800
Engine • revision 7a8f8ca02c
Tools • Dart 2.12.0 (build 2.12.0-133.7.beta)

which is newer than https://github.com/flutter/flutter/issues/66622#issuecomment-729979016 so it should work.
I tried:

revert to a commit that previously worked fine
flutter clean
delete the build directory

but nothing helps.
flutter doctor -v

[√] Flutter (Channel beta, 1.25.0-8.3.pre, on Microsoft Windows [Version 10.0.18363.1440], locale he-IL)
    • Flutter version 1.25.0-8.3.pre at C:\src\flutter-beta
    • Framework revision 5d36f2e7f5 (3 months ago), 2021-01-14 15:57:49 -0800
    • Engine revision 7a8f8ca02c
    • Dart version 2.12.0 (build 2.12.0-133.7.beta)

[√] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    • Android SDK at C:\Users\USER\AppData\Local\Android\sdk
    • Platform android-30, build-tools 28.0.3
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

[√] Android Studio (version 4.1.0)
    • Android Studio at C:\Program Files\Android\Android Studio
    • 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 1.8.0_242-release-1644-b01)

[√] VS Code (version 1.54.3)
    • VS Code at C:\Users\USER\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.21.0

[√] Connected device (3 available)
    • Redmi Note 4 (mobile) • 1bf7ce869804 • android-arm64  • Android 7.0 (API 24)
    • Chrome (web)          • chrome       • web-javascript • Google Chrome 89.0.4389.114
    • Edge (web)            • edge         • web-javascript • Microsoft Edge 89.0.774.63

• No issues found!

In the console I don't see any indicative error other than [object Event]
flutter run -d chrome -v

[  +79 ms] executing: [C:\src\flutter-beta/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[  +90 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[   +1 ms] 5d36f2e7f5387b6c751449258ade8e4e6edf99be
[   +1 ms] executing: [C:\src\flutter-beta/] git tag --points-at 5d36f2e7f5387b6c751449258ade8e4e6edf99be
[ +107 ms] Exit code 0 from: git tag --points-at 5d36f2e7f5387b6c751449258ade8e4e6edf99be
[   +2 ms] 1.25.0-8.3.pre
[  +58 ms] executing: [C:\src\flutter-beta/] git rev-parse --abbrev-ref --symbolic @{u}
[  +71 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] origin/beta
[        ] executing: [C:\src\flutter-beta/] git ls-remote --get-url origin
[  +56 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] https://github.com/flutter/flutter.git
[ +111 ms] executing: [C:\src\flutter-beta/] git rev-parse --abbrev-ref HEAD
[  +64 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] beta
[ +103 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.
[  +11 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +98 ms] executing: C:\Users\USER\AppData\Local\Android\sdk\platform-tools\adb.exe devices -l
[  +72 ms] List of devices attached
           1bf7ce869804           device product:mido model:Redmi_Note_4 device:mido transport_id:1
[  +12 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.
[   +3 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ +132 ms] Skipping pub get: version match.
[  +38 ms] Found plugin flutter_plugin_android_lifecycle at
C:\Users\USER\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\flutter_plugin_android_lifecycle-1.0.11\
[  +15 ms] Found plugin google_maps_flutter at C:\Users\USER\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\google_maps_flutter-1.2.0\
[   +6 ms] Found plugin google_maps_flutter_web at C:\Users\USER\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\google_maps_flutter_web-0.1.1\
[ +165 ms] Found plugin flutter_plugin_android_lifecycle at
C:\Users\USER\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\flutter_plugin_android_lifecycle-1.0.11\
[   +5 ms] Found plugin google_maps_flutter at C:\Users\USER\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\google_maps_flutter-1.2.0\
[   +7 ms] Found plugin google_maps_flutter_web at C:\Users\USER\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\google_maps_flutter_web-0.1.1\
[  +72 ms] Generating C:\Users\USER\Desktop\Wingman\test_app\test_app\android\app\src\main\java\io\flutter\plugins\GeneratedPluginRegistrant.java
[ +143 ms] This application is not configured to build on the web.
[   +1 ms] To add web support to a project, run `flutter create .`.
[   +3 ms] Launching lib\main.dart on Chrome in debug mode...
[ +163 ms] Updating assets
[ +114 ms] Waiting for connection from debug service on Chrome...
[  +15 ms] Found plugin flutter_plugin_android_lifecycle at
C:\Users\USER\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\flutter_plugin_android_lifecycle-1.0.11\
[   +4 ms] Found plugin google_maps_flutter at C:\Users\USER\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\google_maps_flutter-1.2.0\
[   +2 ms] Found plugin google_maps_flutter_web at C:\Users\USER\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\google_maps_flutter_web-0.1.1\
[  +52 ms] Found plugin flutter_plugin_android_lifecycle at
C:\Users\USER\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\flutter_plugin_android_lifecycle-1.0.11\
[   +6 ms] Found plugin google_maps_flutter at C:\Users\USER\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\google_maps_flutter-1.2.0\
[   +3 ms] Found plugin google_maps_flutter_web at C:\Users\USER\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\google_maps_flutter_web-0.1.1\
[ +126 ms] <- reset
[  +18 ms] C:\src\flutter-beta\bin\cache\dart-sdk\bin\dart.exe --disable-dart-dev
C:\src\flutter-beta\bin\cache\artifacts\engine\windows-x64\frontend_server.dart.snapshot --sdk-root C:\src\flutter-beta\bin\cache\flutter_web_sdk/
--incremental --target=dartdevc --debugger-module-names --experimental-emit-debug-metadata --output-dill
C:\Users\USER\AppData\Local\Temp\flutter_tools.8a4feaa7\flutter_tool.98efb097\app.dill --libraries-spec
file:///C:/src/flutter-beta/bin/cache/flutter_web_sdk/libraries.json --packages C:\Users\USER\Desktop\Wingman\test_app\test_app\.dart_tool\package_config.json
-Ddart.vm.profile=false -Ddart.vm.product=false --enable-asserts --track-widget-creation --filesystem-root
C:\Users\USER\AppData\Local\Temp\flutter_tools.8a4feaa7\flutter_tools.4b05c501 --filesystem-scheme org-dartlang-app --initialize-from-dill
build\fbbe6a61fb7a1de317d381f8df4814e5.cache.dill.track.dill --platform file:///C:/src/flutter-beta/bin/cache/flutter_web_sdk/kernel/flutter_ddc_sdk.dill
--no-sound-null-safety
[  +17 ms] <- compile org-dartlang-app:/web_entrypoint.dart
[+23488 ms] Waiting for connection from debug service on Chrome... (completed in 23.7s)
[   +4 ms] Synced 32.0MB.
[  +47 ms] <- accept
[  +39 ms] Caching compiled dill
[ +733 ms] Using פתיחה בסשן קיים של הדפדפן.

[+1184 ms] [CHROME]:
[   +1 ms] [CHROME]:DevTools listening on ws://127.0.0.1:59565/devtools/browser/99539232-f553-4668-b2f0-8ba3f693ed66
[+1900 ms] DwdsInjector: Received request for entrypoint at http://localhost:59536/main_module.bootstrap.js
[  +22 ms] MetadataProvider: Loading debug metadata...
[  +41 ms] MetadataProvider: Loaded debug metadata
[  +18 ms] DwdsInjector: Injected debugging metadata for entrypoint at http://localhost:59536/main_module.bootstrap.js
[+7959 ms] DevHandler: Debug service listening on ws://127.0.0.1:59597/vce2M6vPsIc=/ws

[  +13 ms] Debug service listening on ws://127.0.0.1:59597/vce2M6vPsIc=/ws
[        ] Running with unsound null safety
[   +1 ms] For more information see https://dart.dev/null-safety/unsound-null-safety
[   +2 ms] Warning: Flutter's support for web development is not stable yet and hasn't
[   +1 ms] been thoroughly tested in production environments.
[        ] For more information see https://flutter.dev/web
[   +1 ms]   To hot restart changes while running, press "r" or "R".
[   +2 ms] For a more detailed help message, press "h". To quit, press "q".
[+1002 ms] [object Event]

@dvdlg
You are on older version of beta. Current is 2.1.0, so try to upgrade to latest and see if it helps.
If not, looking at the similar issue, does the documentation added helps to understand how the images are rendered on web ? https://github.com/flutter/website/pull/5061/files

@darshankawar my project is too big for migration, Flutter 2.0.0 introduced so many issues that it just became impossible.
Having said that, https://github.com/flutter/flutter/issues/66622 shows that exactly the same code worked on Nov 18, which is earlier than Flutter 1.25.0-8.3.pre. The strange thing is that it did work for me too until a few days ago.

@dvdlg
Is that the complete reproducible code in the gist ? I am getting few compile errors while running it.
Can you update it to have so that we can simply copy paste and run to verify this issue ?
Thanks.

@darshankawar
You can copy paste this. I removed the part that depended on the google maps library because it was irrelevant.
thanks
import 'dart:async';

import 'package:flutter/material.dart';
import 'dart:math';
import 'dart:typed_data';
import 'dart:ui' as ui;

class MarkerGenerator {
  final _markerSize;
  double _circleStrokeWidth;
  double _circleOffset;
  double _outlineCircleWidth;
  double _fillCircleWidth;
  double _iconSize;
  double _iconOffset;

  MarkerGenerator(this._markerSize) {
    // calculate marker dimensions
    _circleStrokeWidth = _markerSize / 10.0;
    _circleOffset = _markerSize / 2;
    _outlineCircleWidth = _circleOffset - (_circleStrokeWidth / 2);
    _fillCircleWidth = _markerSize / 2;
    final outlineCircleInnerWidth = _markerSize - (2 * _circleStrokeWidth);
    _iconSize = sqrt(pow(outlineCircleInnerWidth, 2) / 2);
    final rectDiagonal = sqrt(2 * pow(_markerSize, 2));
    final circleDistanceToCorners = (rectDiagonal - outlineCircleInnerWidth) / 2;
    _iconOffset = sqrt(pow(circleDistanceToCorners, 2) / 2);
  }

  /// Creates a BitmapDescriptor from an IconData
  Future<Uint8List> createBitmapDescriptorFromIconData(
      IconData iconData, Color iconColor, Color circleColor, Color backgroundColor) async {
    final pictureRecorder = ui.PictureRecorder();
    final canvas = Canvas(pictureRecorder);

    _paintCircleFill(canvas, backgroundColor);
    _paintCircleStroke(canvas, circleColor);
    _paintIcon(canvas, iconColor, iconData);

    final picture = pictureRecorder.endRecording();
    final image = await picture.toImage(_markerSize.round(), _markerSize.round());
    final bytes = await image.toByteData(format: ui.ImageByteFormat.png);
    return bytes.buffer.asUint8List();
  }

  /// Paints the icon background
  void _paintCircleFill(Canvas canvas, Color color) {
    final paint = Paint()
      ..style = PaintingStyle.fill
      ..color = color;
    canvas.drawCircle(Offset(_circleOffset, _circleOffset), _fillCircleWidth, paint);
  }

  /// Paints a circle around the icon
  void _paintCircleStroke(Canvas canvas, Color color) {
    final paint = Paint()
      ..style = PaintingStyle.stroke
      ..color = color
      ..strokeWidth = _circleStrokeWidth;
    canvas.drawCircle(Offset(_circleOffset, _circleOffset), _outlineCircleWidth, paint);
  }

  /// Paints the icon
  void _paintIcon(Canvas canvas, Color color, IconData iconData) {
    final textPainter = TextPainter(textDirection: TextDirection.ltr);
    textPainter.text = TextSpan(
        text: String.fromCharCode(iconData.codePoint),
        style: TextStyle(
          letterSpacing: 0.0,
          fontSize: _iconSize,
          fontFamily: iconData.fontFamily,
          color: color,
        ));
    textPainter.layout();
    textPainter.paint(canvas, Offset(_iconOffset, _iconOffset));
  }
}

void main() {
  runZonedGuarded(() {
    runApp(MyApp());
  }, (dynamic error, dynamic stack) {
    print(error);
    print(stack);
  });
}

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  Uint8List im;

  @override
  void initState() {
    super.initState();
    MarkerGenerator(50)
        .createBitmapDescriptorFromIconData(
            Icons.access_alarm, Colors.blue, Colors.red, Colors.green)
        .then((value) => setState(() => im = value));
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: Text('Test'),
        ),
        body: Container(
          alignment: Alignment.center,
          child: im == null ? Text('Wait for it') : Image.memory(im),
        ),
      ),
    );
  }
}

@dvdlg Thanks for the complete sample. I tried it on latest beta (2.1.0-12.2.pre) which didn't throw the error and loaded image properly I guess.

With canvaskit:

With html:

 flutter doctor -v

[✓] Flutter (Channel beta, 2.1.0-12.2.pre, on Mac OS X 10.15.4 19E2269
    darwin-x64, locale en-GB)
    • Flutter version 2.1.0-12.2.pre at /Users/dhs/documents/fluttersdk/flutter
    • Framework revision 5bedb7b1d5 (4 weeks ago), 2021-03-17 17:06:30 -0700
    • Engine revision 711ab3fda0
    • Dart version 2.13.0 (build 2.13.0-116.0.dev)

[!] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.3, Build version 12C33
    ! CocoaPods 1.9.3 out of date (1.10.0 is recommended).
        CocoaPods is used to retrieve the iOS and macOS platform side's plugin
        code that responds to your plugin usage on the Dart side.
        Without CocoaPods, plugins will not work on iOS or macOS.
        For more info, see https://flutter.dev/platform-plugins
      To upgrade see
      https://guides.cocoapods.org/using/getting-started.html#installation for
      instructions.

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

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

[✓] Connected device (2 available)
    • macOS (desktop) • macos  • darwin-x64     • Mac OS X 10.15.4 19E2269
      darwin-x64
    • Chrome (web)    • chrome • web-javascript • Google Chrome 89.0.4389.114

! Doctor found issues in 1 category.

Thanks, @darshankawar, did you try it on Flutter 1.25.0-8.3.pre? It did work for me on that version of flutter a week ago, but then stopped working. I didn't try yet 2.1.0-12.2.pre, but when 2.0.0 was published I just couldn't migrate because of so many issues that arised.

@dvdlg
I couldn't go back to 1.25, but verified on Channel beta, 1.26.0-17.6.pre, on which too, it works as expected.

Thank you @darshankawar, with your help I found the bug.
Because of https://github.com/flutter/flutter/issues/64904#issuecomment-714614807 I made all the TextStyle objects in my project to have wordSpacing: 0. If you add wordSpacing: 0 to the TextStyle object in the code above, the problem appears (at least on 1.25.0-8.3.pre, don't know about other releases).

@dvdlg
Thanks for identifying the root cause. That seemed to be a workaround / temporary fix per the comment, but per my verification, the issue isn't replicable on 1.26 and latest 2.1 beta versions and on latest stable (2.0.4).
I believe this issue is fixed and you get this error since you happen to be on 1.25. Upgrading to latest should resolve this, but you seem to have some limitations to upgrade.
I am going ahead and closing this as not replicable on latest versions. If you disagree, write in comments and I'll reopen it.

authors: darshankawar dvdlg


text:
Flutter with SwiftUI framework

Use case
I am learning how to call platform specific APIs in flutter with MethodChannel for iOS and by default flutter uses UIKit framework but I am more comfortable with SwiftUI. I checked the flutter docs and stack-overflow but there is no article / documentation for MethodChannel / PlatformView(embed native views in a Flutter app) with SwiftUI. I guess there is no swiftUI support.
If flutter supports SwiftUI then how can one make it default and how to use it ?
I am using Flutter version 2.0.1, stable channel and Dart version 2.12.0

Proposal
If flutter can support SwiftUI, then it would be more easier for SwiftUI developers too.

Flutter is UIKit-based. If you want to embed SwiftUI components you'd need to do that using the standard mechanisms for doing so


text:
[webview_flutter] Javascriptchannel postMessage

Is there any possibility of javascript calling the flutter code and retrieving a data when opening the page?
Can the postmessage function return something to js?
ex:
var x  = messageHandler.postMessage("Hello from JS");
x contains data returned from App Flutter

Hi @mdmota
Please see https://flutter.dev/community for resources and asking questions like this,
you may also get some help if you post it on Stack Overflow and if you need help with your code, please see https://www.reddit.com/r/flutterhelp/
Closing, as this isn't an issue with Flutter itself. If you disagree, please write in the comments and I will reopen it.
Thank you

authors: TahaTesser mdmota


text:
Cocoon PR fails to get merged automatically

PR https://github.com/flutter/cocoon/pull/1335 has been available for merge for couple of days, but still not get submitted.

Log shows correct test status (all pass), but is not merging:
2021-08-24 10:24:00.679 PDT
Validating name: cocoon, branch: pull/1335, checks: [{name: ci.yaml validation, status: COMPLETED, conclusion: SUCCESS, detailsUrl: https://flutter-dashboard.appspot.com}, {name: Linux ci_yaml roller, status: COMPLETED, conclusion: SUCCESS, detailsUrl: https://ci.chromium.org/b/8838339160945249041}, {name: Linux Cocoon, status: COMPLETED, conclusion: SUCCESS, detailsUrl: https://ci.chromium.org/b/8838075901601574736}]
2021-08-24 10:24:01.379 PDT
You're not authorized to push to this branch. Visit https://docs.github.com/articles/about-protected-branches/ for more information.: Undefined location

Is this something related to settings? /cc @godofredoc

I created some handlers to validate this type of situation and I thought I documented it but is seems like I didn't. I'll send a CL adding the steps to triage this issue to the playbook.

Seems like the bot ACLs were changed, added the push permission back to validate.

Seems like the problem was the ACL updates, it is working now.

authors: godofredoc keyonghan


text:
Caused by: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader

This issue is getting on release apk only. Tried couple of solutions mentioned on references at the bottom but no luck.
Steps to Reproduce
Install release APK by first going Build > Flutter > Build APK and then manually installing apk
or
Install from PlayStore
Logs on Logcat
2021-09-14 22:35:48.517 12366-12366/? E/FlutterLoader: Flutter initialization failed.
    java.util.concurrent.ExecutionException: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.pockethcm.greytrix.test-8g2MGFqmlyJkq-euudSAPw==/base.apk"],nativeLibraryDirectories=[/data/app/com.pockethcm.greytrix.test-8g2MGFqmlyJkq-euudSAPw==/lib/x86, /data/app/com.pockethcm.greytrix.test-8g2MGFqmlyJkq-euudSAPw==/base.apk!/lib/x86, /system/lib, /vendor/lib]]] couldn't find "libflutter.so"
        at java.util.concurrent.FutureTask.report(FutureTask.java:123)
        at java.util.concurrent.FutureTask.get(FutureTask.java:193)
        at io.flutter.embedding.engine.g.c.d(Unknown Source:23)
        at io.flutter.embedding.engine.a.<init>(Unknown Source:174)
        at io.flutter.embedding.engine.a.<init>(Unknown Source:16)
        at io.flutter.embedding.android.f.B(Unknown Source:106)
        at io.flutter.embedding.android.f.k(Unknown Source:7)
        at io.flutter.embedding.android.e.onCreate(Unknown Source:13)
        at android.app.Activity.performCreate(Activity.java:7009)
        at android.app.Activity.performCreate(Activity.java:7000)
        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1214)
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2731)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2856)
        at android.app.ActivityThread.-wrap11(Unknown Source:0)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1589)
        at android.os.Handler.dispatchMessage(Handler.java:106)
        at android.os.Looper.loop(Looper.java:164)
        at android.app.ActivityThread.main(ActivityThread.java:6494)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
     Caused by: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.pockethcm.greytrix.test-8g2MGFqmlyJkq-euudSAPw==/base.apk"],nativeLibraryDirectories=[/data/app/com.pockethcm.greytrix.test-8g2MGFqmlyJkq-euudSAPw==/lib/x86, /data/app/com.pockethcm.greytrix.test-8g2MGFqmlyJkq-euudSAPw==/base.apk!/lib/x86, /system/lib, /vendor/lib]]] couldn't find "libflutter.so"
        at java.lang.Runtime.loadLibrary0(Runtime.java:1011)
        at java.lang.System.loadLibrary(System.java:1657)
        at io.flutter.embedding.engine.FlutterJNI.loadLibrary(Unknown Source:13)
        at io.flutter.embedding.engine.g.c$a.a(Unknown Source:14)
        at io.flutter.embedding.engine.g.c$a.call(Unknown Source:0)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
        at java.lang.Thread.run(Thread.java:764)
2021-09-14 22:35:48.564 12366-12366/? D/AndroidRuntime: Shutting down VM

    --------- beginning of crash
2021-09-14 22:35:48.614 12366-12366/? E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.pockethcm.greytrix.test, PID: 12366
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.pockethcm.greytrix.test/com.pockethcm.greytrix.test.MainActivity}: java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.pockethcm.greytrix.test-8g2MGFqmlyJkq-euudSAPw==/base.apk"],nativeLibraryDirectories=[/data/app/com.pockethcm.greytrix.test-8g2MGFqmlyJkq-euudSAPw==/lib/x86, /data/app/com.pockethcm.greytrix.test-8g2MGFqmlyJkq-euudSAPw==/base.apk!/lib/x86, /system/lib, /vendor/lib]]] couldn't find "libflutter.so"
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2778)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2856)
        at android.app.ActivityThread.-wrap11(Unknown Source:0)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1589)
        at android.os.Handler.dispatchMessage(Handler.java:106)
        at android.os.Looper.loop(Looper.java:164)
        at android.app.ActivityThread.main(ActivityThread.java:6494)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
     Caused by: java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.pockethcm.greytrix.test-8g2MGFqmlyJkq-euudSAPw==/base.apk"],nativeLibraryDirectories=[/data/app/com.pockethcm.greytrix.test-8g2MGFqmlyJkq-euudSAPw==/lib/x86, /data/app/com.pockethcm.greytrix.test-8g2MGFqmlyJkq-euudSAPw==/base.apk!/lib/x86, /system/lib, /vendor/lib]]] couldn't find "libflutter.so"
        at io.flutter.embedding.engine.g.c.d(Unknown Source:354)
        at io.flutter.embedding.engine.a.<init>(Unknown Source:174)
        at io.flutter.embedding.engine.a.<init>(Unknown Source:16)
        at io.flutter.embedding.android.f.B(Unknown Source:106)
        at io.flutter.embedding.android.f.k(Unknown Source:7)
        at io.flutter.embedding.android.e.onCreate(Unknown Source:13)
        at android.app.Activity.performCreate(Activity.java:7009)
        at android.app.Activity.performCreate(Activity.java:7000)
        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1214)
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2731)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2856)
        at android.app.ActivityThread.-wrap11(Unknown Source:0)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1589)
        at android.os.Handler.dispatchMessage(Handler.java:106)
        at android.os.Looper.loop(Looper.java:164)
        at android.app.ActivityThread.main(ActivityThread.java:6494)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
     Caused by: java.util.concurrent.ExecutionException: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.pockethcm.greytrix.test-8g2MGFqmlyJkq-euudSAPw==/base.apk"],nativeLibraryDirectories=[/data/app/com.pockethcm.greytrix.test-8g2MGFqmlyJkq-euudSAPw==/lib/x86, /data/app/com.pockethcm.greytrix.test-8g2MGFqmlyJkq-euudSAPw==/base.apk!/lib/x86, /system/lib, /vendor/lib]]] couldn't find "libflutter.so"
        at java.util.concurrent.FutureTask.report(FutureTask.java:123)
        at java.util.concurrent.FutureTask.get(FutureTask.java:193)
        at io.flutter.embedding.engine.g.c.d(Unknown Source:23)
        at io.flutter.embedding.engine.a.<init>(Unknown Source:174)
        at io.flutter.embedding.engine.a.<init>(Unknown Source:16)
        at io.flutter.embedding.android.f.B(Unknown Source:106)
        at io.flutter.embedding.android.f.k(Unknown Source:7)
        at io.flutter.embedding.android.e.onCreate(Unknown Source:13)
        at android.app.Activity.performCreate(Activity.java:7009)
        at android.app.Activity.performCreate(Activity.java:7000)
        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1214)
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2731)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2856)
        at android.app.ActivityThread.-wrap11(Unknown Source:0)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1589)
        at android.os.Handler.dispatchMessage(Handler.java:106)
        at android.os.Looper.loop(Looper.java:164)
        at android.app.ActivityThread.main(ActivityThread.java:6494)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
     Caused by: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.pockethcm.greytrix.test-8g2MGFqmlyJkq-euudSAPw==/base.apk"],nativeLibraryDirectories=[/data/app/com.pockethcm.greytrix.test-8g2MGFqmlyJkq-euudSAPw==/lib/x86, /data/app/com.pockethcm.greytrix.test-8g2MGFqmlyJkq-euudSAPw==/base.apk!/lib/x86, /system/lib, /vendor/lib]]] couldn't find "libflutter.so"
        at java.lang.Runtime.loadLibrary0(Runtime.java:1011)
        at java.lang.System.loadLibrary(System.java:1657)
        at io.flutter.embedding.engine.FlutterJNI.loadLibrary(Unknown Source:13)
        at io.flutter.embedding.engine.g.c$a.a(Unknown Source:14)
        at io.flutter.embedding.engine.g.c$a.call(Unknown Source:0)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
2021-09-14 22:35:48.616 12366-12366/? E/AndroidRuntime:     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
        at java.lang.Thread.run(Thread.java:764)

Stack Trace on Crashes and ANRs on PlayStore Console
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
pid: 0, tid: 0 >>> com.pockethcm.greytrix.test <<<

backtrace:
  #00  pc 000000000001e658  /system/lib64/libc.so (abort+120)
  #00  pc 00000000000083e4  /system/lib64/liblog.so (__android_log_assert+296)
  #00  pc 00000000000468fc  /system/lib64/libhwui.so (android::uirenderer::debug::GlesErrorCheckWrapper::assertNoErrors(char const*)+384)
  #00  pc 0000000000089b00  /system/lib64/libhwui.so (android::uirenderer::Caches::flush(android::uirenderer::Caches::FlushMode)+164)
  #00  pc 00000000000752fc  /system/lib64/libhwui.so (android::uirenderer::renderthread::Bridge_destroyHardwareResources(android::uirenderer::renderthread::destroyHardwareResourcesArgs*)+12)
  #00  pc 0000000000076934  /system/lib64/libhwui.so (android::uirenderer::renderthread::MethodInvokeRenderTask::run()+24)
  #00  pc 0000000000076cc8  /system/lib64/libhwui.so (android::uirenderer::renderthread::SignalingRenderTask::run()+28)
  #00  pc 0000000000077c18  /system/lib64/libhwui.so (android::uirenderer::renderthread::RenderThread::threadLoop()+336)
  #00  pc 0000000000011590  /system/lib64/libutils.so (android::Thread::_threadLoop(void*)+276)
  #00  pc 00000000000aa03c  /system/lib64/libandroid_runtime.so (android::AndroidRuntime::javaThreadShell(void*)+136)
  #00  pc 0000000000077968  /system/lib64/libc.so (__pthread_start(void*)+36)
  #00  pc 000000000001fa30  /system/lib64/libc.so (__start_thread+68)

Devices

Real device running on 8.1
Emulator 8.1

Similar Reference
Reference 1
Reference 2
Reference 3

@bhushan2k
There's a similar open issue describing your case, https://github.com/flutter/flutter/issues/83596
Please follow-up in it for reference.
Closing this as duplicate.


text:
When I upgraded to flutter 2.8.1, my project failed to run on my iPhone in Android Studio, but when I run it in Xcode, it succeeded.

Here is the log
Flutter crash report.
Please report a bug at https://github.com/flutter/flutter/issues.
command
flutter build ios --verbose
exception
FormatException: FormatException: Missing extension byte (at offset 10)
#0      _Utf8Decoder.convertChunked (dart:convert-patch/convert_patch.dart:1893:7)
#1      _Utf8ConversionSink.addSlice (dart:convert/string_conversion.dart:314:28)
#2      _Utf8ConversionSink.add (dart:convert/string_conversion.dart:310:5)
#3      _ConverterStreamEventSink.add (dart:convert/chunked_conversion.dart:72:18)
#4      _SinkTransformerStreamSubscription._handleData (dart:async/stream_transformers.dart:111:24)
#5      _rootRunUnary (dart:async/zone.dart:1436:47)
#6      _CustomZone.runUnary (dart:async/zone.dart:1335:19)
#7      _CustomZone.runUnaryGuarded (dart:async/zone.dart:1244:7)
#8      _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:341:11)
#9      _BufferingStreamSubscription._add (dart:async/stream_impl.dart:271:7)
#10     _SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:733:19)
#11     _StreamController._add (dart:async/stream_controller.dart:607:7)
#12     _StreamController.add (dart:async/stream_controller.dart:554:5)
#13     _Socket._onData (dart:io-patch/socket_patch.dart:2302:41)
#14     _rootRunUnary (dart:async/zone.dart:1444:13)
#15     _CustomZone.runUnary (dart:async/zone.dart:1335:19)
#16     _CustomZone.runUnaryGuarded (dart:async/zone.dart:1244:7)
#17     _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:341:11)
#18     _BufferingStreamSubscription._add (dart:async/stream_impl.dart:271:7)
#19     _SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:733:19)
#20     _StreamController._add (dart:async/stream_controller.dart:607:7)
#21     _StreamController.add (dart:async/stream_controller.dart:554:5)
#22     new _RawSocket.<anonymous closure> (dart:io-patch/socket_patch.dart:1830:33)
#23     _NativeSocket.issueReadEvent.issue (dart:io-patch/socket_patch.dart:1314:14)
#24     _microtaskLoop (dart:async/schedule_microtask.dart:40:21)
#25     _startMicrotaskLoop (dart:async/schedule_microtask.dart:49:5)
#26     _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:122:13)
#27     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:193:5)

flutter doctor
[✓] Flutter (Channel stable, 2.8.1, on macOS 12.0.1 21A559 darwin-arm, locale zh-Hans-CN)
    • Flutter version 2.8.1 at /Users/zhangye/Downloads/flutter2.8.1
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 77d935af4d (3 days ago), 2021-12-16 08:37:33 -0800
    • Engine revision 890a5fca2e
    • Dart version 2.15.1
    • Pub download mirror https://pub.flutter-io.cn
    • Flutter download mirror https://storage.flutter-io.cn

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Users/zhangye/Library/Android/sdk
    • Platform android-30, build-tools 30.0.3
    • ANDROID_HOME = /Users/zhangye/Library/Android/sdk
    • Java binary at: /Users/zhangye/Downloads/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
    • 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 4.2)
    • 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.8+10-b944.6916264)

[✓] Android Studio (version 2020.3)
    • Android Studio at /Users/zhangye/Downloads/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.10+0-b96-7249189)

[✓] VS Code (version 1.63.2)
    • VS Code at /Users/zhangye/Downloads/Visual Studio Code.app/Contents
    • Flutter extension version 3.29.0

[✓] Connected device (2 available)
    • iPhone 6s (mobile) • 294e1040d00d2e261671055a7ee0f20b82eef426 • ios            • iOS 14.8.1 18H107
    • Chrome (web)       • chrome                                   • web-javascript • Google Chrome 96.0.4664.110

• No issues found!

Hi @zy1041081552  Thanks for filing the issue.
There is a similar issue describing this case #81666, Please follow up there for further updates, Closing this issue as a duplicate. If you disagree feel free to write in the comments and I will reopen it.
Thank you.

Duplicate of #81666


text:
Hero widget causes loss of style in transition between routes

Steps to Reproduce

Run the app (code posted below) in Chrome
Click the floating action button

Expected results: The only visual change in the app should be a change in the counter value
Actual results: The text "You have pushed the button this many times:" becomes large and underlined in red before returning to normal. Video

Code sample
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

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

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Hero Example',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const Home(),
    );
  }
}

class Home extends StatefulWidget {
  final int counter;
  const Home({Key? key,this.counter = 0}) : super(key:key);

  @override
  State<Home> createState() => _HomeState();
}

class _HomeState extends State<Home> {
  int _counter = 0;

  @override
  void initState() {
    super.initState();
    _counter = widget.counter;
  }

  void _incrementCounter() {

    Navigator.push(
        context,
        MaterialPageRoute(
          builder: (context) => Home(counter:_counter),
        )
    );
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: hero(),
      ),
      floatingActionButton: FloatingActionButton(
        onPressed: _incrementCounter,
        child: const Icon(Icons.add),
      ),
    );
  }

  Widget hero(){

    Widget col = Column(
      mainAxisAlignment: MainAxisAlignment.center,
      children: <Widget>[
        const Text('You have pushed the button this many times:'),
        Text(
          '$_counter',
          style: Theme.of(context).textTheme.headline4,
        ),
      ],
    );

    //return col;

    return Hero(
      tag: 'count-hero',
      child:col
    );
  }
}

Logs

flutter run --verbose
[  +69 ms] executing: uname -m
[  +33 ms] Exit code 0 from: uname -m
[        ] x86_64
[  +11 ms] executing: [/home/josh/development/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[   +7 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] 77d935af4db863f6abd0b9c31c7e6df2a13de57b
[   +1 ms] executing: [/home/josh/development/flutter/] git tag --points-at 77d935af4db863f6abd0b9c31c7e6df2a13de57b
[  +19 ms] Exit code 0 from: git tag --points-at 77d935af4db863f6abd0b9c31c7e6df2a13de57b
[        ] 2.8.1
[   +9 ms] executing: [/home/josh/development/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[   +9 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] origin/stable
[        ] executing: [/home/josh/development/flutter/] git ls-remote --get-url origin
[   +4 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] https://github.com/flutter/flutter.git
[  +85 ms] executing: [/home/josh/development/flutter/] git rev-parse --abbrev-ref HEAD
[   +9 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] stable
[  +67 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.
[   +4 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.
[ +101 ms] executing: /home/josh/Android/Sdk/platform-tools/adb devices -l
[  +45 ms] List of devices attached
[   +3 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.
[   +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.
[  +84 ms] Skipping pub get: version match.
[ +124 ms] Generating /home/josh/StudioProjects/home_hero/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java
[ +323 ms] Launching lib/main.dart on Chrome in debug mode...
[  +94 ms] Updating assets
[ +106 ms] Waiting for connection from debug service on Chrome...
[  +88 ms] <- reset
[   +6 ms] /home/josh/development/flutter/bin/cache/dart-sdk/bin/dart --disable-dart-dev /home/josh/development/flutter/bin/cache/artifacts/engine/linux-x64/frontend_server.dart.snapshot --sdk-root
/home/josh/development/flutter/bin/cache/flutter_web_sdk/ --incremental --target=dartdevc --debugger-module-names --experimental-emit-debug-metadata -DFLUTTER_WEB_AUTO_DETECT=true --output-dill
/tmp/flutter_tools.ECGNJU/flutter_tool.OHGNSL/app.dill --libraries-spec file:///home/josh/development/flutter/bin/cache/flutter_web_sdk/libraries.json --packages /home/josh/StudioProjects/home_hero/.dart_tool/package_config.json
-Ddart.vm.profile=false -Ddart.vm.product=false --enable-asserts --track-widget-creation --filesystem-root /tmp/flutter_tools.ECGNJU/flutter_tools.RBEAAY --filesystem-scheme org-dartlang-app --initialize-from-dill
build/b1b715402d823b7fd5c2b68d2edcb2ce.cache.dill.track.dill --platform file:///home/josh/development/flutter/bin/cache/flutter_web_sdk/kernel/flutter_ddc_sdk_sound.dill --sound-null-safety
[  +15 ms] <- compile org-dartlang-app:/web_entrypoint.dart
[+21988 ms] Waiting for connection from debug service on Chrome... (completed in 22.1s)
[   +1 ms] Synced 28.4MB.
[        ] <- accept
[        ] Caching compiled dill
[ +605 ms] Using Chromium 96.0.4664.110 snap

[   +3 ms] executing: uname -m
[   +9 ms] Exit code 0 from: uname -m
[        ] x86_64
[ +218 ms] [CHROME]:Fontconfig warning: "/etc/fonts/conf.d/10-hinting-slight.conf", line 4: unknown element "its:rules"
[        ] [CHROME]:Fontconfig warning: "/etc/fonts/conf.d/10-hinting-slight.conf", line 5: unknown element "its:translateRule"
[        ] [CHROME]:Fontconfig error: "/etc/fonts/conf.d/10-hinting-slight.conf", line 5: invalid attribute 'translate'
[        ] [CHROME]:Fontconfig error: "/etc/fonts/conf.d/10-hinting-slight.conf", line 5: invalid attribute 'selector'
[        ] [CHROME]:Fontconfig error: "/etc/fonts/conf.d/10-hinting-slight.conf", line 6: invalid attribute 'xmlns:its'
[        ] [CHROME]:Fontconfig error: "/etc/fonts/conf.d/10-hinting-slight.conf", line 6: invalid attribute 'version'
[        ] [CHROME]:Fontconfig warning: "/etc/fonts/conf.d/10-hinting-slight.conf", line 8: unknown element "description"
[        ] [CHROME]:Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 4: unknown element "its:rules"
[        ] [CHROME]:Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 5: unknown element "its:translateRule"
[        ] [CHROME]:Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 5: invalid attribute 'translate'
[        ] [CHROME]:Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 5: invalid attribute 'selector'
[        ] [CHROME]:Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 6: invalid attribute 'xmlns:its'
[        ] [CHROME]:Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 6: invalid attribute 'version'
[        ] [CHROME]:Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 8: unknown element "description"
[        ] [CHROME]:Fontconfig warning: "/etc/fonts/conf.d/11-lcdfilter-default.conf", line 4: unknown element "its:rules"
[        ] [CHROME]:Fontconfig warning: "/etc/fonts/conf.d/11-lcdfilter-default.conf", line 5: unknown element "its:translateRule"
[        ] [CHROME]:Fontconfig error: "/etc/fonts/conf.d/11-lcdfilter-default.conf", line 5: invalid attribute 'translate'
[        ] [CHROME]:Fontconfig error: "/etc/fonts/conf.d/11-lcdfilter-default.conf", line 5: invalid attribute 'selector'
[        ] [CHROME]:Fontconfig error: "/etc/fonts/conf.d/11-lcdfilter-default.conf", line 6: invalid attribute 'xmlns:its'
[        ] [CHROME]:Fontconfig error: "/etc/fonts/conf.d/11-lcdfilter-default.conf", line 6: invalid attribute 'version'
[        ] [CHROME]:Fontconfig warning: "/etc/fonts/conf.d/11-lcdfilter-default.conf", line 8: unknown element "description"
[        ] [CHROME]:Fontconfig warning: "/etc/fonts/conf.d/20-unhint-small-vera.conf", line 4: unknown element "its:rules"
[        ] [CHROME]:Fontconfig warning: "/etc/fonts/conf.d/20-unhint-small-vera.conf", line 5: unknown element "its:translateRule"
[        ] [CHROME]:Fontconfig error: "/etc/fonts/conf.d/20-unhint-small-vera.conf", line 5: invalid attribute 'translate'
[        ] [CHROME]:Fontconfig error: "/etc/fonts/conf.d/20-unhint-small-vera.conf", line 5: invalid attribute 'selector'
[        ] [CHROME]:Fontconfig error: "/etc/fonts/conf.d/20-unhint-small-vera.conf", line 6: invalid attribute 'xmlns:its'
[        ] [CHROME]:Fontconfig error: "/etc/fonts/conf.d/20-unhint-small-vera.conf", line 6: invalid attribute 'version'
[        ] [CHROME]:Fontconfig warning: "/etc/fonts/conf.d/20-unhint-small-vera.conf", line 8: unknown element "description"
[        ] [CHROME]:Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 4: unknown element "its:rules"
[        ] [CHROME]:Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 5: unknown element "its:translateRule"
[        ] [CHROME]:Fontconfig error: "/etc/fonts/conf.d/30-metric-aliases.conf", line 5: invalid attribute 'translate'
[        ] [CHROME]:Fontconfig error: "/etc/fonts/conf.d/30-metric-aliases.conf", line 5: invalid attribute 'selector'
[        ] [CHROME]:Fontconfig error: "/etc/fonts/conf.d/30-metric-aliases.conf", line 6: invalid attribute 'xmlns:its'
[        ] [CHROME]:Fontconfig error: "/etc/fonts/conf.d/30-metric-aliases.conf", line 6: invalid attribute 'version'
[        ] [CHROME]:Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 8: unknown element "description"
[        ] [CHROME]:Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 4: unknown element "its:rules"
[        ] [CHROME]:Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 5: unknown element "its:translateRule"
[        ] [CHROME]:Fontconfig error: "/etc/fonts/conf.d/40-nonlatin.conf", line 5: invalid attribute 'translate'
[        ] [CHROME]:Fontconfig error: "/etc/fonts/conf.d/40-nonlatin.conf", line 5: invalid attribute 'selector'
[        ] [CHROME]:Fontconfig error: "/etc/fonts/conf.d/40-nonlatin.conf", line 6: invalid attribute 'xmlns:its'
[        ] [CHROME]:Fontconfig error: "/etc/fonts/conf.d/40-nonlatin.conf", line 6: invalid attribute 'version'
[        ] [CHROME]:Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 8: unknown element "description"
[        ] [CHROME]:Fontconfig warning: "/etc/fonts/conf.d/45-generic.conf", line 4: unknown element "its:rules"
[        ] [CHROME]:Fontconfig warning: "/etc/fonts/conf.d/45-generic.conf", line 5: unknown element "its:translateRule"
[        ] [CHROME]:Fontconfig error: "/etc/fonts/conf.d/45-generic.conf", line 5: invalid attribute 'translate'
[        ] [CHROME]:Fontconfig error: "/etc/fonts/conf.d/45-generic.conf", line 5: invalid attribute 'selector'
[        ] [CHROME]:Fontconfig error: "/etc/fonts/conf.d/45-generic.conf", line 6: invalid attribute 'xmlns:its'
[        ] [CHROME]:Fontconfig error: "/etc/fonts/conf.d/45-generic.conf", line 6: invalid attribute 'version'
[        ] [CHROME]:Fontconfig warning: "/etc/fonts/conf.d/45-generic.conf", line 8: unknown element "description"
[        ] [CHROME]:Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 4: unknown element "its:rules"
[        ] [CHROME]:Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 5: unknown element "its:translateRule"
[        ] [CHROME]:Fontconfig error: "/etc/fonts/conf.d/45-latin.conf", line 5: invalid attribute 'translate'
[        ] [CHROME]:Fontconfig error: "/etc/fonts/conf.d/45-latin.conf", line 5: invalid attribute 'selector'
[        ] [CHROME]:Fontconfig error: "/etc/fonts/conf.d/45-latin.conf", line 6: invalid attribute 'xmlns:its'
[        ] [CHROME]:Fontconfig error: "/etc/fonts/conf.d/45-latin.conf", line 6: invalid attribute 'version'
[        ] [CHROME]:Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 8: unknown element "description"
[        ] [CHROME]:Fontconfig warning: "/etc/fonts/conf.d/49-sansserif.conf", line 4: unknown element "its:rules"
[        ] [CHROME]:Fontconfig warning: "/etc/fonts/conf.d/49-sansserif.conf", line 5: unknown element "its:translateRule"
[        ] [CHROME]:Fontconfig error: "/etc/fonts/conf.d/49-sansserif.conf", line 5: invalid attribute 'translate'
[        ] [CHROME]:Fontconfig error: "/etc/fonts/conf.d/49-sansserif.conf", line 5: invalid attribute 'selector'
[        ] [CHROME]:Fontconfig error: "/etc/fonts/conf.d/49-sansserif.conf", line 6: invalid attribute 'xmlns:its'
[        ] [CHROME]:Fontconfig error: "/etc/fonts/conf.d/49-sansserif.conf", line 6: invalid attribute 'version'
[        ] [CHROME]:Fontconfig warning: "/etc/fonts/conf.d/49-sansserif.conf", line 8: unknown element "description"
[        ] [CHROME]:Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 4: unknown element "its:rules"
[        ] [CHROME]:Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 5: unknown element "its:translateRule"
[        ] [CHROME]:Fontconfig error: "/etc/fonts/conf.d/50-user.conf", line 5: invalid attribute 'translate'
[        ] [CHROME]:Fontconfig error: "/etc/fonts/conf.d/50-user.conf", line 5: invalid attribute 'selector'
[        ] [CHROME]:Fontconfig error: "/etc/fonts/conf.d/50-user.conf", line 6: invalid attribute 'xmlns:its'
[        ] [CHROME]:Fontconfig error: "/etc/fonts/conf.d/50-user.conf", line 6: invalid attribute 'version'
[        ] [CHROME]:Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 8: unknown element "description"
[        ] [CHROME]:Fontconfig warning: "/etc/fonts/conf.d/51-local.conf", line 4: unknown element "its:rules"
[        ] [CHROME]:Fontconfig warning: "/etc/fonts/conf.d/51-local.conf", line 5: unknown element "its:translateRule"
[        ] [CHROME]:Fontconfig error: "/etc/fonts/conf.d/51-local.conf", line 5: invalid attribute 'translate'
[        ] [CHROME]:Fontconfig error: "/etc/fonts/conf.d/51-local.conf", line 5: invalid attribute 'selector'
[        ] [CHROME]:Fontconfig error: "/etc/fonts/conf.d/51-local.conf", line 6: invalid attribute 'xmlns:its'
[        ] [CHROME]:Fontconfig error: "/etc/fonts/conf.d/51-local.conf", line 6: invalid attribute 'version'
[        ] [CHROME]:Fontconfig warning: "/etc/fonts/conf.d/51-local.conf", line 8: unknown element "description"
[        ] [CHROME]:Fontconfig warning: "/etc/fonts/conf.d/60-generic.conf", line 4: unknown element "its:rules"
[        ] [CHROME]:Fontconfig warning: "/etc/fonts/conf.d/60-generic.conf", line 5: unknown element "its:translateRule"
[        ] [CHROME]:Fontconfig error: "/etc/fonts/conf.d/60-generic.conf", line 5: invalid attribute 'translate'
[        ] [CHROME]:Fontconfig error: "/etc/fonts/conf.d/60-generic.conf", line 5: invalid attribute 'selector'
[        ] [CHROME]:Fontconfig error: "/etc/fonts/conf.d/60-generic.conf", line 6: invalid attribute 'xmlns:its'
[        ] [CHROME]:Fontconfig error: "/etc/fonts/conf.d/60-generic.conf", line 6: invalid attribute 'version'
[        ] [CHROME]:Fontconfig warning: "/etc/fonts/conf.d/60-generic.conf", line 8: unknown element "description"
[        ] [CHROME]:Fontconfig warning: "/etc/fonts/conf.d/60-latin.conf", line 4: unknown element "its:rules"
[        ] [CHROME]:Fontconfig warning: "/etc/fonts/conf.d/60-latin.conf", line 5: unknown element "its:translateRule"
[        ] [CHROME]:Fontconfig error: "/etc/fonts/conf.d/60-latin.conf", line 5: invalid attribute 'translate'
[        ] [CHROME]:Fontconfig error: "/etc/fonts/conf.d/60-latin.conf", line 5: invalid attribute 'selector'
[        ] [CHROME]:Fontconfig error: "/etc/fonts/conf.d/60-latin.conf", line 6: invalid attribute 'xmlns:its'
[        ] [CHROME]:Fontconfig error: "/etc/fonts/conf.d/60-latin.conf", line 6: invalid attribute 'version'
[        ] [CHROME]:Fontconfig warning: "/etc/fonts/conf.d/60-latin.conf", line 8: unknown element "description"
[        ] [CHROME]:Fontconfig warning: "/etc/fonts/conf.d/65-fonts-persian.conf", line 34: unknown element "its:rules"
[        ] [CHROME]:Fontconfig warning: "/etc/fonts/conf.d/65-fonts-persian.conf", line 35: unknown element "its:translateRule"
[        ] [CHROME]:Fontconfig error: "/etc/fonts/conf.d/65-fonts-persian.conf", line 35: invalid attribute 'translate'
[        ] [CHROME]:Fontconfig error: "/etc/fonts/conf.d/65-fonts-persian.conf", line 35: invalid attribute 'selector'
[        ] [CHROME]:Fontconfig error: "/etc/fonts/conf.d/65-fonts-persian.conf", line 36: invalid attribute 'xmlns:its'
[        ] [CHROME]:Fontconfig error: "/etc/fonts/conf.d/65-fonts-persian.conf", line 36: invalid attribute 'version'
[        ] [CHROME]:Fontconfig warning: "/etc/fonts/conf.d/65-nonlatin.conf", line 4: unknown element "its:rules"
[        ] [CHROME]:Fontconfig warning: "/etc/fonts/conf.d/65-nonlatin.conf", line 5: unknown element "its:translateRule"
[        ] [CHROME]:Fontconfig error: "/etc/fonts/conf.d/65-nonlatin.conf", line 5: invalid attribute 'translate'
[        ] [CHROME]:Fontconfig error: "/etc/fonts/conf.d/65-nonlatin.conf", line 5: invalid attribute 'selector'
[        ] [CHROME]:Fontconfig error: "/etc/fonts/conf.d/65-nonlatin.conf", line 6: invalid attribute 'xmlns:its'
[        ] [CHROME]:Fontconfig error: "/etc/fonts/conf.d/65-nonlatin.conf", line 6: invalid attribute 'version'
[        ] [CHROME]:Fontconfig warning: "/etc/fonts/conf.d/65-nonlatin.conf", line 8: unknown element "description"
[        ] [CHROME]:Fontconfig warning: "/etc/fonts/conf.d/69-unifont.conf", line 4: unknown element "its:rules"
[        ] [CHROME]:Fontconfig warning: "/etc/fonts/conf.d/69-unifont.conf", line 5: unknown element "its:translateRule"
[        ] [CHROME]:Fontconfig error: "/etc/fonts/conf.d/69-unifont.conf", line 5: invalid attribute 'translate'
[        ] [CHROME]:Fontconfig error: "/etc/fonts/conf.d/69-unifont.conf", line 5: invalid attribute 'selector'
[        ] [CHROME]:Fontconfig error: "/etc/fonts/conf.d/69-unifont.conf", line 6: invalid attribute 'xmlns:its'
[        ] [CHROME]:Fontconfig error: "/etc/fonts/conf.d/69-unifont.conf", line 6: invalid attribute 'version'
[        ] [CHROME]:Fontconfig warning: "/etc/fonts/conf.d/70-no-bitmaps.conf", line 4: unknown element "its:rules"
[        ] [CHROME]:Fontconfig warning: "/etc/fonts/conf.d/70-no-bitmaps.conf", line 5: unknown element "its:translateRule"
[        ] [CHROME]:Fontconfig error: "/etc/fonts/conf.d/70-no-bitmaps.conf", line 5: invalid attribute 'translate'
[        ] [CHROME]:Fontconfig error: "/etc/fonts/conf.d/70-no-bitmaps.conf", line 5: invalid attribute 'selector'
[        ] [CHROME]:Fontconfig error: "/etc/fonts/conf.d/70-no-bitmaps.conf", line 6: invalid attribute 'xmlns:its'
[        ] [CHROME]:Fontconfig error: "/etc/fonts/conf.d/70-no-bitmaps.conf", line 6: invalid attribute 'version'
[        ] [CHROME]:Fontconfig warning: "/etc/fonts/conf.d/70-no-bitmaps.conf", line 8: unknown element "description"
[        ] [CHROME]:Fontconfig warning: "/etc/fonts/conf.d/80-delicious.conf", line 4: unknown element "its:rules"
[        ] [CHROME]:Fontconfig warning: "/etc/fonts/conf.d/80-delicious.conf", line 5: unknown element "its:translateRule"
[        ] [CHROME]:Fontconfig error: "/etc/fonts/conf.d/80-delicious.conf", line 5: invalid attribute 'translate'
[        ] [CHROME]:Fontconfig error: "/etc/fonts/conf.d/80-delicious.conf", line 5: invalid attribute 'selector'
[        ] [CHROME]:Fontconfig error: "/etc/fonts/conf.d/80-delicious.conf", line 6: invalid attribute 'xmlns:its'
[        ] [CHROME]:Fontconfig error: "/etc/fonts/conf.d/80-delicious.conf", line 6: invalid attribute 'version'
[        ] [CHROME]:Fontconfig warning: "/etc/fonts/conf.d/90-synthetic.conf", line 4: unknown element "its:rules"
[        ] [CHROME]:Fontconfig warning: "/etc/fonts/conf.d/90-synthetic.conf", line 5: unknown element "its:translateRule"
[        ] [CHROME]:Fontconfig error: "/etc/fonts/conf.d/90-synthetic.conf", line 5: invalid attribute 'translate'
[        ] [CHROME]:Fontconfig error: "/etc/fonts/conf.d/90-synthetic.conf", line 5: invalid attribute 'selector'
[        ] [CHROME]:Fontconfig error: "/etc/fonts/conf.d/90-synthetic.conf", line 6: invalid attribute 'xmlns:its'
[        ] [CHROME]:Fontconfig error: "/etc/fonts/conf.d/90-synthetic.conf", line 6: invalid attribute 'version'
[ +217 ms] [CHROME]:
[   +1 ms] [CHROME]:DevTools listening on ws://127.0.0.1:38439/devtools/browser/8c680ba0-7bdc-4748-ad83-4c51fbfc88ec
[ +752 ms] DwdsInjector: Received request for entrypoint at http://localhost:42501/main_module.bootstrap.js
[  +14 ms] MetadataProvider: Loading debug metadata...
[  +34 ms] MetadataProvider: Loaded debug metadata (sound null safety)
[  +20 ms] DwdsInjector: Injected debugging metadata for entrypoint at http://localhost:42501/main_module.bootstrap.js
[+4131 ms] ChromeProxyService: Initializing expression compiler for main_module.bootstrap.js with sound null safety: true
[  +98 ms] DevHandler: Debug service listening on ws://127.0.0.1:38109/nZYXYV_YPa4=/ws

[  +20 ms] This app is linked to the debug service: ws://127.0.0.1:38109/nZYXYV_YPa4=/ws
[  +11 ms] Debug service listening on ws://127.0.0.1:38109/nZYXYV_YPa4=/ws
[        ] 💪 Running with sound null safety 💪
[   +3 ms] 🔥  To hot restart changes while running, press "r" or "R".
[        ] For a more detailed help message, press "h". To quit, press "q".
[   +1 ms] An Observatory debugger and profiler on Chrome is available at: http://127.0.0.1:38109/nZYXYV_YPa4=
[+6515 ms] The Flutter DevTools debugger and profiler on Chrome is available at: http://127.0.0.1:9100?uri=http://127.0.0.1:38109/nZYXYV_YPa4=
[+8343 ms] DevHandler: Stopped debug service on ws://127.0.0.1:44456

[ +130 ms] Application finished.
[   +6 ms] "flutter run" took 44,184ms.
[ +172 ms] ensureAnalyticsSent: 168ms
[   +2 ms] Running shutdown hooks
[        ] Shutdown hooks complete
[        ] exiting with code 0

flutter analyze
Analyzing home_hero...
No issues found! (ran in 1.8s)

flutter doctor -v
[✓] Flutter (Channel stable, 2.8.1, on Ubuntu 20.04.3 LTS 5.4.0-91-generic, locale en_US.UTF-8)
    • Flutter version 2.8.1 at /home/josh/development/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 77d935af4d (13 days 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 /home/josh/Android/Sdk
    • Platform android-31, build-tools 31.0.0
    • Java binary at: /snap/android-studio/115/android-studio/jre/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
    • All Android licenses accepted.

[✓] Chrome - develop for the web
    • CHROME_EXECUTABLE = /snap/bin/chromium

[✓] Android Studio (version 2020.3)
    • Android Studio at /snap/android-studio/115/android-studio
    • Flutter plugin version 62.0.1
    • Dart plugin version 203.8452
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)

[✓] VS Code
    • VS Code at /snap/code/current
    • Flutter extension can be installed from:
      🔨 https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[✓] Connected device (1 available)
    • Chrome (web) • chrome • web-javascript • Chromium 96.0.4664.110 snap

• No issues found!

Duplicate of https://github.com/flutter/flutter/issues/36220
Follow up in that issue, also check https://github.com/flutter/flutter/issues/30647#issuecomment-480980280 for a workaround


text:
'package:flutter/src/widgets/binding.dart': Failed assertion: line 849 pos 12: 'debugBuildingDirtyElements': is not true.

'package:flutter/src/widgets/binding.dart': Failed assertion: line 849 pos 12: 'debugBuildingDirtyElements': is not true.
Either the assertion indicates an error in the framework itself, or we should provide substantially more information in this error message to help you determine and fix the underlying cause.
In either case, please report this assertion by filing a bug on GitHub:
https://github.com/flutter/flutter/issues/new?template=2_bug.md
This is happening for any code be it the default dart code in flutter

Hi @Souryadeep0325, Thanks for filing the issue. Please share the output of flutter doctor -v and steps to reproduce the issue.


text:
TAP failure finalizeCoverage is missing formatter parameter host_entrypoint.dart:507:9: Error: No named parameter with the name 'formatter'.

formatter parameter removed in https://github.com/flutter/flutter/pull/98513
Used in g3 tool here: https://source.corp.google.com/piper///depot/google3/mobile/flutter/testing/flutter_test/host_entrypoint/lib/host_entrypoint.dart;l=507;ws=tap-prod-presubmit%2F173605486;cl=4?snapshot=4
This needs a g3fix or it won't build when it rolls.  Also it's making some PR Google testing FRoB runs fail cl/430863274

cc @christopherfujino @bkonyi

Wait looks like there was a g3fix cl/429313216 maybe I'm just confused by the FRoB UI since it's not in that tab, probably because it's post-submit?

ok, per internal discussion, it sounds like this is WAI, Ben's PR did have a breaking change, but the g3fix was applied correctly.

authors: christopherfujino jmagman