text:
Native crash in SkScalerContext_FreeType_Base::generateGlyphImage

Steps to Reproduce
We have not found a way to reproduce it on our devices.
Expected results:
Engine does not cause the app to crash.
Actual results:
Since we upgraded from v1.9.1 to v1.12.13+hotfix.7 (engine version a67792536ca236a971d0efbcfd7af4efb8f6c119), releasing with flutter build apk --split-per-abi, we see crashes on Android (tracked in Crashlytics). This crash is, as far as we can see, only happening for the armeabi-v7a APK, on Android Versions 5-9.
From our tracking we can see that sometimes the app crashes as soon as it starts up, but we also have cases where the user interacts with the app for a few minutes and then it crashes. It amounts to about 5% of our sessions with that APK crashing.

Logs
I have symbolized the crashes with libflutter.so. The "(Fehlt)" (German for "missing") parts are from libc.so, libart.so and libutils.so which I have not symbolized. The Stacktraces are not always 100% the same, so I just pasted some variations of them.
Crashed: Thread: SIGSEGV  0x0000000000000028
       at SkScalerContext_FreeType_Base::generateGlyphImage(FT_FaceRec_*, SkGlyph const&, SkMatrix const&) + 545(SkFontHost_FreeType_common.cpp:545)
       at _Unwind_VRS_Interpret + 417(Unwind-EHABI.cpp:417)
       at (Fehlt)()
       at CBB_add_asn1_oid_from_text + 599(cbb.c:599)
       at std::__1::collate<wchar_t>::do_compare(wchar_t const*, wchar_t const*, wchar_t const*, wchar_t const*) const + 314(__locale:314)
       at _Unwind_VRS_Interpret + 417(Unwind-EHABI.cpp:417)
       at SkGpuDevice::drawEdgeAAImageSet(SkCanvas::ImageSetEntry const*, int, SkPoint const*, SkMatrix const*, SkPaint const&, SkCanvas::SrcRectConstraint) + 481(SkGpuDevice_drawTexture.cpp:481)
       at (Fehlt)()
       at tonic::DartClassProvider::GetClassByName(char const*) + 20(dart_class_provider.cc:20)
       at SkGpuDevice::drawEdgeAAImageSet(SkCanvas::ImageSetEntry const*, int, SkPoint const*, SkMatrix const*, SkPaint const&, SkCanvas::SrcRectConstraint) + 481(SkGpuDevice_drawTexture.cpp:481)
       at skia_png_reciprocal2 + 3444(png.c:3444)
       at (Fehlt)()
       at (Fehlt)()
       at (Fehlt)()
       at std::__1::__stdinbuf<wchar_t>::pbackfail(unsigned int) + 183(__std_stream:183)
       at (Fehlt)()
       at _Unwind_VRS_Interpret + 417(Unwind-EHABI.cpp:417)
       at _Unwind_VRS_Interpret + 417(Unwind-EHABI.cpp:417)
       at _Unwind_VRS_Interpret + 417(Unwind-EHABI.cpp:417)
       at _Unwind_VRS_Interpret + 417(Unwind-EHABI.cpp:417)
       at _Unwind_VRS_Interpret + 417(Unwind-EHABI.cpp:417)
       at _Unwind_VRS_Interpret + 417(Unwind-EHABI.cpp:417)
       at (Fehlt)()
       at (Fehlt)()
       at (Fehlt)()
       at (Fehlt)()
       at (Fehlt)()
       at (Fehlt)()
       at (Fehlt)()
       at (Fehlt)()
       at (Fehlt)()
       at _Unwind_VRS_Interpret + 417(Unwind-EHABI.cpp:417)
       at (Fehlt)()

Crashed: Thread: SIGSEGV  0x0000000000000028
       at SkScalerContext_FreeType_Base::generateGlyphImage(FT_FaceRec_*, SkGlyph const&, SkMatrix const&) + 545(SkFontHost_FreeType_common.cpp:545)
       at (Fehlt)()
       at _Unwind_VRS_Interpret + 417(Unwind-EHABI.cpp:417)
       at _Unwind_VRS_Interpret + 417(Unwind-EHABI.cpp:417)
       at (Fehlt)()
       at _Unwind_VRS_Interpret + 417(Unwind-EHABI.cpp:417)
       at std::__1::collate<wchar_t>::do_compare(wchar_t const*, wchar_t const*, wchar_t const*, wchar_t const*) const + 314(__locale:314)
       at (Fehlt)()
       at (Fehlt)()
       at SkGpuDevice::drawEdgeAAImageSet(SkCanvas::ImageSetEntry const*, int, SkPoint const*, SkMatrix const*, SkPaint const&, SkCanvas::SrcRectConstraint) + 481(SkGpuDevice_drawTexture.cpp:481)
       at tonic::DartClassProvider::GetClassByName(char const*) + 20(dart_class_provider.cc:20)
       at SkGpuDevice::drawEdgeAAImageSet(SkCanvas::ImageSetEntry const*, int, SkPoint const*, SkMatrix const*, SkPaint const&, SkCanvas::SrcRectConstraint) + 481(SkGpuDevice_drawTexture.cpp:481)
       at skia_png_reciprocal2 + 3444(png.c:3444)
       at (Fehlt)()
       at (Fehlt)()
       at (Fehlt)()
       at _Unwind_VRS_Interpret + 417(Unwind-EHABI.cpp:417)
       at (Fehlt)()
       at _Unwind_VRS_Interpret + 417(Unwind-EHABI.cpp:417)
       at _Unwind_VRS_Interpret + 417(Unwind-EHABI.cpp:417)
       at _Unwind_VRS_Interpret + 417(Unwind-EHABI.cpp:417)
       at (Fehlt)()
       at (Fehlt)()
       at _Unwind_VRS_Interpret + 417(Unwind-EHABI.cpp:417)
       at _Unwind_VRS_Interpret + 417(Unwind-EHABI.cpp:417)
       at (Fehlt)()
       at (Fehlt)()
       at (Fehlt)()
       at (Fehlt)()
       at (Fehlt)()
       at (Fehlt)()
       at (Fehlt)()
       at (Fehlt)()
       at (Fehlt)()
       at (Fehlt)()
       at (Fehlt)()
       at (Fehlt)()
       at (Fehlt)()
       at (Fehlt)()
       at (Fehlt)()
       at (Fehlt)()
       at (Fehlt)()
       at (Fehlt)()
       at (Fehlt)()
       at _Unwind_VRS_Interpret + 417(Unwind-EHABI.cpp:417)
       at (Fehlt)()

Crashed: Thread: SIGSEGV  0x0000000000000028
       at SkScalerContext_FreeType_Base::generateGlyphImage(FT_FaceRec_*, SkGlyph const&, SkMatrix const&) + 545(SkFontHost_FreeType_common.cpp:545)
       at _Unwind_VRS_Interpret + 417(Unwind-EHABI.cpp:417)
       at std::__1::__stdoutbuf<wchar_t>::xsputn(wchar_t const*, int) + 320(__std_stream:320)
       at (Fehlt)()
       at (Fehlt)()
       at (Fehlt)()
       at (Fehlt)()
       at (Fehlt)()
       at (Fehlt)()
       at (Fehlt)()
       at (Fehlt)()
       at (Fehlt)()
       at (Fehlt)()
       at (Fehlt)()
       at (Fehlt)()
       at _Unwind_VRS_Interpret + 417(Unwind-EHABI.cpp:417)
       at _Unwind_VRS_Interpret + 417(Unwind-EHABI.cpp:417)
       at _Unwind_VRS_Interpret + 417(Unwind-EHABI.cpp:417)
       at _Unwind_VRS_Interpret + 417(Unwind-EHABI.cpp:417)
       at _Unwind_VRS_Interpret + 417(Unwind-EHABI.cpp:417)
       at _Unwind_VRS_Interpret + 417(Unwind-EHABI.cpp:417)
       at (Fehlt)()
       at (Fehlt)()
       at (Fehlt)()
       at (Fehlt)()
       at (Fehlt)()
       at (Fehlt)()
       at (Fehlt)()
       at (Fehlt)()
       at (Fehlt)()
       at (Fehlt)()
       at (Fehlt)()
       at (Fehlt)()
       at (Fehlt)()
       at _Unwind_VRS_Interpret + 417(Unwind-EHABI.cpp:417)
       at (Fehlt)()

Crashed: Thread: SIGSEGV  0x0000000000000028
       at SkScalerContext_FreeType_Base::generateGlyphImage(FT_FaceRec_*, SkGlyph const&, SkMatrix const&) + 545(SkFontHost_FreeType_common.cpp:545)
       at (anonymous namespace)::convert_8_to_1(unsigned int) + 288(SkFontHost_FreeType_common.cpp:288)
       at (Fehlt)()
       at (Fehlt)()
       at (Fehlt)()
       at (Fehlt)()
       at _Unwind_VRS_Interpret + 417(Unwind-EHABI.cpp:417)
       at _Unwind_VRS_Interpret + 417(Unwind-EHABI.cpp:417)
       at _Unwind_VRS_Interpret + 417(Unwind-EHABI.cpp:417)
       at _Unwind_VRS_Interpret + 417(Unwind-EHABI.cpp:417)
       at _Unwind_VRS_Interpret + 417(Unwind-EHABI.cpp:417)
       at _Unwind_VRS_Interpret + 417(Unwind-EHABI.cpp:417)
       at (Fehlt)()
       at (Fehlt)()
       at (Fehlt)()
       at (Fehlt)()
       at (Fehlt)()
       at (Fehlt)()
       at (Fehlt)()
       at (Fehlt)()
       at (Fehlt)()
       at (Fehlt)()
       at (Fehlt)()
       at (Fehlt)()
       at (Fehlt)()
       at (Fehlt)()
       at (Fehlt)()
       at (Fehlt)()
       at (Fehlt)()
       at (Fehlt)()
       at (Fehlt)()
       at (Fehlt)()
       at (Fehlt)()
       at (Fehlt)()
       at (Fehlt)()
       at (Fehlt)()
       at _Unwind_VRS_Interpret + 417(Unwind-EHABI.cpp:417)
       at (Fehlt)()

Might be related to #50438

Triage: cc @jason-simmons I suspect we will need some help from the Skia folks on this. It looks to me that the SkScalarContext is not intialized but I must admit I am not sure who sets that up.

Unfortunately, without a reduced test case, this isn't actionable. I am closing this for now but please reopen if you have a test case.

authors: JimvanKleef chinmaygarde


text:
E/flutter ( 8084): [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: SocketException: OS Error: Connection refused, errno = 111, address = localhost, port = 43992

Hello everyone,
I have some problems when I run my application in an android emulator and with the google chrome device. My application works well only in IOS with an iPhone.
The problem is on my drop-down and the call to my api, I suppose.
In iPhone device I can see in the dropDownButton the data as a list of the API but not in the others devices.
This is a part of the code that i use to communicate with my api :
 // Creation of deviceGet object with device data
  var deviceGet = new List<Device>();
  Future<void> GetDevice() async {
    // CHANGED
    await GET.url(url1).then((response) {
      //END CHANGED
      setState(() {
        Iterable list = json.decode(response.body);
        deviceGet = list.map((model) => Device.fromJson(model)).toList();
      });
    });
  }

  Future<String> getCommands(String deviceName1, String commandName1) async {
    String deviceName = deviceName1;
    String commandName = commandName1;

    var url = "http://localhost:48082/api/v1/device/name/" +
        deviceName +
        "/command/" +
        commandName1;
    //we have to wait to get the data so we use 'await'
    http.Response response = await http.get(
      //Uri.encodeFull removes all the dashes or extra characters present in our Uri
      Uri.encodeFull(url),
    );

    //print(response.body);
    final body = json.decode(response.body);
    //print(body['readings'][0]['value']);
    value = body['readings'][0]['value'];
 }

This is my debug console error:

/flutter ( 8084): [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: SocketException: OS Error: Connection refused, errno = 111, address = localhost, port = 43992
E/flutter ( 8084): #0      IOClient.send
package:http/src/io_client.dart:33
E/flutter ( 8084): <asynchronous suspension>
E/flutter ( 8084): #1      BaseClient._sendUnstreamed
package:http/src/base_client.dart:176
E/flutter ( 8084): #2      BaseClient.get
package:http/src/base_client.dart:35
E/flutter ( 8084): #3      get.<anonymous closure>
package:http/http.dart:46
E/flutter ( 8084): #4      _withClient
package:http/http.dart:166
E/flutter ( 8084): #5      get
package:http/http.dart:46
E/flutter ( 8084): #6      GET.url
package:interface_edge/Get.dart:9
E/flutter ( 8084): #7      Chart1State.GetDevice
package:interface_edge/Chart1.dart:47
E/flutter ( 8084): #8      Chart1State.wait
package:interface_edge/Chart1.dart:85
E/flutter ( 8084): #9      Chart1State.initState
package:interface_edge/Chart1.dart:91
E/flutter ( 8084): #10     StatefulElement._firstBuild
package:flutter/…/widgets/framework.dart:4428
E/flutter ( 8084): #11     ComponentElement.mount
package:flutter/…/widgets/framework.dart:4274
E/flutter ( 8084): #12     Element.inflateWidget
package:flutter/…/widgets/framework.dart:3269
E/flutter ( 8084): #13     Element.updateChild
package:flutter/…/widgets/framework.dart:3063
E/flutter ( 8084): #14     ComponentElement.performRebuild
package:flutter/…/widgets/framework.dart:4316
E/flutter ( 8084): #15     Element.rebuild
E/flutter ( 8084): #21     Element.inflateWidget
package:flutter/…/widgets/framework.dart:3269
E/flutter ( 8084): #22     Element.updateChild
package:flutter/…/widgets/framework.dart:3063
E/flutter ( 8084): #23     SingleChildRenderObjectElement.mount
package:flutter/…/widgets/framework.dart:5518
E/flutter ( 8084): #24     Element.inflateWidget
package:flutter/…/widgets/framework.dart:3269
E/flutter ( 8084): #25     Element.updateChild
package:flutter/…/widgets/framework.dart:3063
E/flutter ( 8084): #26     ComponentElement.performRebuild
package:flutter/…/widgets/framework.dart:4316
E/flutter ( 8084): #27     Element.rebuild
package:flutter/…/widgets/framework.dart:4020
E/flutter ( 8084): #28     ComponentElement._firstBuild
package:flutter/…/widgets/framework.dart:4279
E/flutter ( 8084): #29     ComponentElement.mount
package:flutter/…/widgets/framework.dart:4274
E/flutter ( 8084): #30     Element.inflateWidget
package:flutter/…/widgets/framework.dart:3269
E/flutter ( 8084): #31     Element.updateChild
package:flutter/…/widgets/framework.dart:3063
E/flutter ( 8084): #32     ComponentElement.performRebuild
package:flutter/…/widgets/framework.dart:4316
E/flutter ( 8084): #33     Element.rebuild
package:flutter/…/widgets/framework.dart:4020
E/flutter ( 8084): #34     ComponentElement._firstBuild
package:flutter/…/widgets/framework.dart:4279
E/flutter ( 8084): #35     ComponentElement.mount
E/flutter ( 8084): #36     ParentDataElement.mount
package:flutter/…/widgets/framework.dart:4690
E/flutter ( 8084): #37     Element.inflateWidget
package:flutter/…/widgets/framework.dart:3269
E/flutter ( 8084): #38     Element.updateChild
package:flutter/…/widgets/framework.dart:3063
E/flutter ( 8084): #39     ComponentElement.performRebuild
package:flutter/…/widgets/framework.dart:4316
E/flutter ( 8084): #40     Element.rebuild
package:flutter/…/widgets/framework.dart:4020
E/flutter ( 8084): #41     ComponentElement._firstBuild
package:flutter/…/widgets/framework.dart:4279
E/flutter ( 8084): #42     StatefulElement._firstBuild
package:flutter/…/widgets/framework.dart:4454
E/flutter ( 8084): #43     ComponentElement.mount
package:flutter/…/widgets/framework.dart:4274
E/flutter ( 8084): #44     Element.inflateWidget
package:flutter/…/widgets/framework.dart:3269
E/flutter ( 8084): #45     Element.updateChild
package:flutter/…/widgets/framework.dart:3063
E/flutter ( 8084): #46     ComponentElement.performRebuild
package:flutter/…/widgets/framework.dart:4316
E/flutter ( 8084): #47     Element.rebuild
package:flutter/…/widgets/framework.dart:4020
E/flutter ( 8084): #48     ComponentEle

This is my flutter analyze :
Analyzing chat...

   info • Name types using UpperCamelCase • lib/commandsData.dart:1:7 • camel_case_types
   info • Name types using UpperCamelCase • lib/deviceData.dart:1:7 • camel_case_types
   info • This function has a return type of 'Future<String>', but doesn't end with a return statement •
          lib/getterMarche.dart:25:18 • missing_return
   info • Name non-constant identifiers using lowerCamelCase • lib/main.dart:62:16 •
          non_constant_identifier_names
   info • This function has a return type of 'Future<String>', but doesn't end with a return statement •
          lib/main.dart:73:18 • missing_return
   info • The value of the local variable 'commandName' isn't used • lib/main.dart:75:12 •
          unused_local_variable
   info • This function has a return type of 'List<String>', but doesn't end with a return statement •
          lib/main.dart:94:16 • missing_return

7 issues found. (ran in 6.5s)

This is the flutter doctor -v
[✓] Flutter (Channel dev, v1.13.5, on Mac OS X 10.15.1 19B88, locale fr-FR)
    • Flutter version 1.13.5 at /Users/wassimbenjabria/flutter
    • Framework revision 41a911099b (9 weeks ago), 2019-12-19 13:48:02 -0800
    • Engine revision 0f90e6546b
    • Dart version 2.8.0 (build 2.8.0-dev.0.0 aa6709974d)

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at /Users/wassimbenjabria/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-29, build-tools 29.0.2
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.3, Build version 11C29
    • CocoaPods version 1.8.4

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

[✓] Android Studio (version 3.5)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin installed
    • Dart plugin version 191.8593
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)

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

[✓] Connected device (3 available)
    • AOSP on IA Emulator • emulator-5554 • android-x86    • Android 9 (API 28) (emulator)
    • Chrome              • chrome        • web-javascript • Google Chrome 79.0.3945.130
    • Web Server          • web-server    • web-javascript • Flutter Tools

• No issues found!

Hi @wassim6975
Please refrain from posting screenshots
to better address the issue, would be helpful
if you could post a minimal code sample to reproduce the problem
Thank you

Thank your for your answer and you're great job in flutter.
Sorry for the screenshots ... i didn't know.
Here is a part of a code with one dropDownButton
import 'dart:convert';
import 'package:flutter/material.dart';

import 'Get.dart';
import 'Device.dart';
import 'deviceData.dart';

var url1 = "http://localhost:48082/api/v1/device";

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

class MyApp extends StatelessWidget {
  @override
  build(context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      title: 'My App',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: MyListScreen(),
    );
  }
}

class MyListScreen extends StatefulWidget {
  @override
  createState() => _MyListScreenState();
}

class _MyListScreenState extends State {
  List<deviceData> dataDevice = deviceData.getDevicesData();
  List<DropdownMenuItem<deviceData>> listDropDevice;
  deviceData deviceSelection;

  // Creation of deviceGet object with device data
  var deviceGet = new List<Device>();
  Future<void> GetDevice() async {
    // CHANGED
    await GET.url(url1).then((response) {
      //END CHANGED
      setState(() {
        Iterable list = json.decode(response.body);
        deviceGet = list.map((model) => Device.fromJson(model)).toList();
      });
    });
  }

  Future<void> wait() async {
    await GetDevice();
  }

  initState() {
    super.initState();

    wait().then((result) {
      var nbrDevice = deviceGet.length;
      for (int i = 0; i < nbrDevice;) {
        dataDevice.add(deviceData(deviceGet[i].name, i));
        i = i + 1;
      }
      listDropDevice = buildDropdownMenuItems(dataDevice);
    });
  }

  List<DropdownMenuItem<deviceData>> buildDropdownMenuItems(List devices) {
    List<DropdownMenuItem<deviceData>> items = List();
    for (deviceData device1 in devices) {
      items.add(
        DropdownMenuItem(
          value: device1,
          child: Text(device1.name),
        ),
      );
    }
    return items;
  }

  onChange(deviceData selectionUtilisateur) {
    setState(() {
      deviceSelection = selectionUtilisateur;
    });
  }

  @override
  build(context) {
    return Scaffold(
        appBar: AppBar(
          title: Text("Device List"),
        ),
        body: Column(children: <Widget>[
          Center(child: Text("")),
          DropdownButton(
              value: deviceSelection,
              items: listDropDevice,
              onChanged: onChange,
              hint: Text("Select the device")),
        ]));
  }
}

Hi @wassim6975
[ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: SocketException: OS Error: Connection refused, errno = 111, address = localhost, port = 43992
says port 43992 but you've var url1 = "http://localhost:48082/api/v1/device";  port 48082
Are you sure you're using proper port?
Probably not an issue with Flutter itself
Thank you

I'm sure for my port (48082), but i don't understand the error port 43992 because i don't use it.

@wassim6975
can you see the same error if you try to replace localhost with 10.0.2.2? (for android emulator)

My call of the API doesn't work with 10.0.2.2. (it loads without stopping) and of course it doesn't work with any device.
i tried with 127.0.0.1 my API and it worked with Iphone device.

Hi @wassim6975
the problem might be with http according to this issue
Thank you

Hi @iapicca , thanks for the answer. Do you know how i can solve this http problem ?

Hi @wassim6975
I feel a déjà vu about your problem, but I don't remember the fix.
I see a fix in dart 2.7 https://github.com/dart-lang/sdk/issues/12693#issuecomment-567558502
could you try setting it as below
version: 1.0.0+1

environment:
  sdk: ">=2.7.0 <3.0.0" // <= HERE

dependencies:
  flutter:
    sdk: flutter

and make sure you are using http 0.12.0+4,
to be clear this is more a guess than a proposed solution.
Thank you

HI @iapicca
I tried all what you advised me, but it still doesn't work.

This doesn't really look like a Flutter bug to me. There seems to be something wrong with the networking setup.

please try and change 'localhost' with 10.0.2.2.
It worked for me, i had a backend service running on my localhost but from flutter running app it was failing to connect (also giving wrong port) , so i changed the localost to 10.0.2.2 and it worked

none of this actually worked for me :/
this command worker "adb reverse tcp:5000 tcp:5000"

It worked for me, i had a backend service running on my localhost but from flutter running app it was failing to connect (also giving wrong port) , so i changed the localost to 10.0.2.2 and it worked
This worked for me also. You made my day. Now I have to build more Scenes (lol). Thanks for sharing
@tinashehondo
Thanks
Sohil

none of this actually worked for me :/
this command worker "adb reverse tcp:5000 tcp:5000"

Thanks for this. I can resolve my problem with that command. But, i have an answer. do I have to run it all the time?

instead of using 127.0.0.1 in the  URL of your code like this < String all_authors_api = "http://127.0.0.1:8000/api/authors"; > ,
you have to use 10.0.2.2 so your URL will be like this < String all_authors_api = "http://10.0.2.2:8000/api/authors"; > But this is for an Android emulators , I don't try using it with Iphone emulator.

In my case, back-end is Laravel,
I run Laravel server on host 0.0.0.0 with port 80,
php artisan serve --host 0.0.0.0 --port 80
now it works,

user your machine ip ->ipconfig on window

source: gharchive/issue

authors: AbeerSul TahaTesser VladyslavBondarenko erbaafidotama goderbauer iapicca mMartinCore mohamed213sal slydogshah tinashehondo wassim6975 ziagit

repo: flutter/flutter

license_type: permissive

license_source: github-api


text:
AnimatedSwitcher with conditional render problem

Steps to Reproduce

write code using AnimatedSwitcher with conditional render like the following snippets

                        /// TabBarContent
                        AnimatedSwitcher(
                          duration: Duration(milliseconds: 400),
                          child: [
                            CourseDetailsIntroduce(
                                key: ValueKey<String>("details_introduce"),
                                course: course),
                            CourseDetailsComment(
                                key: ValueKey<String>("details_comment"))
                          ][_tabController.index],
                        ),

The child content of the AnimatedSwitcher is different height, the first one is higher then the second one.
When switch from tab1 to tab2, then you can see the content of tab2 is appear from bottom to top, not hold its original position.

Expected results:
The content of tab is no moving horizontally.
Actual results:
see the following gif.

Without seeing anymore code, we cannot deduce what the problem is. However, this doesn't look like a bug with flutter, but with your app ui code.

Hi @liudonghua123
can you please provide your flutter doctor -v and flutter run --verbose?
Also, to better address the issue, would be helpful if you could post a minimal code sample to reproduce the problem
Thank you

@TahaTesser @joekendal Thanks for interesting in this issue, I write a small demo to demonstrate this issue, see https://dartpad.cn/1af2ade4cde5ed5862b8481fe5b89d32 or http://dartpad.dev/1af2ade4cde5ed5862b8481fe5b89d32.
This problem exists in web platform (dartpad) too.

Here is my flutter doctor output.
D:\code\flutter\flutter_chips_input>flutter doctor -v
[✓] Flutter (Channel unknown, v1.18.0-7.0.pre.1, on Microsoft Windows [Version
    10.0.18363.778], locale en-US)
    • Flutter version 1.18.0-7.0.pre.1 at D:\apps\flutter
    • Framework revision 3495ba76c4 (6 days ago), 2020-04-21 15:42:33 +0800
    • Engine revision 2bde4f0ae4
    • Dart version 2.9.0 (build 2.9.0-1.0.dev a12c36dd97)

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at D:\apps\android_sdk
    • Platform android-29, build-tools 29.0.2
    • ANDROID_HOME = D:\apps\android_sdk
    • Java binary at: D:\apps\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b04)
    • 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.4)
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
    • Visual Studio Community 2019 version 16.5.30011.22

[✓] Android Studio (version 3.6)
    • Android Studio at D:\apps\Android Studio
    • Flutter plugin version 45.1.1
    • Dart plugin version 192.7761
    • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b04)

[✓] VS Code, 64-bit edition (version 1.44.2)
    • VS Code at C:\Program Files\Microsoft VS Code
    • Flutter extension version 3.9.1

[✓] Connected device (4 available)
    • Android SDK built for x86 64 • emulator-5554 • android-x64    • Android 10 (API 29)
      (emulator)
    • Windows                      • Windows       • windows-x64    • Microsoft Windows
      [Version 10.0.18363.778]
    • Chrome                       • chrome        • web-javascript • Google Chrome
      81.0.4044.122
    • Web Server                   • web-server    • web-javascript • Flutter Tools

• No issues found!

D:\code\flutter\flutter_chips_input>

Hi @liudonghua123
Do would be solved by implementing #48217 this?

@TahaTesser Hi, I tried to use IndexedStack with AnimatedSwitcher, it did not have this problem, however using IndexedStack will case another problem, the height of IndexedStack will always use the maxium height of the children. If I navigate to a tight height tab, then there will some blank spaces below it. see https://github.com/flutter/flutter/issues/55464 for more details. So I dropped this solution.
The first version of code is write using TabBar and TabBarView, but using TabBarView will case not have size problem. Because I need to use TabBarView in a Column, the children of TabBarView is dynamic height, I can't give a specified height to the TabBarView. see https://github.com/flutter/flutter/issues/54968 for more details.
For the demo code, I can make it work expected by wrapping the conditional rendering child with Container, but this fix will not work for mine own code. I think if the key reasons found or bugs fixed for the demo code, then mine code will work too.

For me, the best solution is to use TabBar and TabBarView, and make TabBarView to fit the children's height ,like the Wrap widget does.
In this way, the logic is clear, and the switch animation is also fit my designs.

For me, the best solution is to use TabBar and TabBarView, and make TabBarView to fit the children's height ,like the Wrap widget does.
In this way, the logic is clear, and the switch animation is also fit my designs.

@liudonghua123
Do you have a clear solution for this issue?
I'm stuck in this situation as you did before.

@ChickenAhn Currently, I do not have a perfect solution, I use the code mentioned in the issue.

@liudonghua123, @ChickenAhn
Had the same issue today
The "problem" is the alignment (center) if previous widget and current widget have different heights.
By default, AnimatedSwitcher uses this method to layout both widget:
static Widget defaultLayoutBuilder(Widget currentChild, List<Widget> previousChildren) {
    return Stack(
      children: <Widget>[
        ...previousChildren,
        if (currentChild != null) currentChild,
      ],
      alignment: Alignment.center,
    );
  }

My Solution is just to adjust this by layoutBuilder:
              AnimatedSwitcher(
                  layoutBuilder: (Widget currentChild, List<Widget> previousChildren) {
                    return Stack(
                      children: <Widget>[
                        ...previousChildren,
                        if (currentChild != null) currentChild,
                      ],
                      alignment: Alignment.topCenter,
                    );
                  },
              child: (...)

@moodstubos, Thanks for the workable solution.  😄

@liudonghua123 Have you achieved swipe animation with the AnimatedSwitcher approach?
Or any other elegant solution you can propose?

@chakrihacker Hi, I did not achieve the same swipe animation with the AnimatedSwitcher compare to the TabView animation.

How about using my package? https://pub.dev/packages/animated_indexed_stack

authors: ChickenAhn TahaTesser chakrihacker jascodes joekendal liudonghua123 moodstubos


text:
move the calculator into //examples/calculator?

It doesn't look like the calculator is available from the flutter_gallery app, but the source does live in //examples/flutter_gallery/lib/demo/calculator/. Should we move it into it's own directory in //examples? We use the calculator app in demos.

Is anyone maintaining the calculator? If a new user tries to load it up, what would be their experience?

We should either:

Make the calculator a demo that we're proud to show (and then decide where we want to show it)
Decide to scrap it as a demo.

I'm currently leaning towards (1), which is #4535.  If we decide to scrap the calculator, we should do that by closing bug #4535.

um.. can I get the code to the calculator example you guys were talking about?

I think this is it: https://github.com/flutter/flutter/tree/master/examples/flutter_gallery/lib/demo/calculator
Hope that helps!

authors: abarth devoncarew raveesh-me sethladd


text:
[linux]: flutter builds linux application successfully. Error Launching aplication on linux : failed to Initialize EGL

Steps to Reproduce

Run flutter build -d linux -v.
Update the files as follows: ...
...

Expected results:
Actual results: <!--

logs
partha-vrathi@Aspire-E5-571G:~/Desktop/flutter_apps/v_card$ flutter build linux
[ +320 ms] executing: [/home/parthasarathi/snap/flutter/common/flutter/] git -c
log.showSignature=false log -n 1 --pretty=format:%H
[  +87 ms] Exit code 0 from: git -c log.showSignature=false log -n 1
--pretty=format:%H
[   +1 ms] 3a5a3eaf68fc47796b54a16217d45f224f74388a
[   +1 ms] executing: [/home/parthasarathi/snap/flutter/common/flutter/] git tag
--contains HEAD
[ +493 ms] Exit code 0 from: git tag --contains HEAD
[   +4 ms] executing: [/home/parthasarathi/snap/flutter/common/flutter/] git
describe --match *.*.*-*.*.pre --first-parent --long --tags
[  +43 ms] Exit code 0 from: git describe --match *.*.*-*.*.pre --first-parent
--long --tags
[   +1 ms] 1.21.0-5.0.pre-97-g3a5a3eaf6
[  +21 ms] executing: [/home/parthasarathi/snap/flutter/common/flutter/] git
rev-parse --abbrev-ref --symbolic @{u}
[  +12 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] origin/master
[        ] executing: [/home/parthasarathi/snap/flutter/common/flutter/] git
ls-remote --get-url origin
[  +12 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] https://github.com/flutter/flutter.git
[ +125 ms] executing: [/home/parthasarathi/snap/flutter/common/flutter/] git
rev-parse --abbrev-ref HEAD
[  +11 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] master
[ +101 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required,
skipping update.
[   +1 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required,
skipping update.
[   +1 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required,
skipping update.
[   +1 ms] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping
update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping
update.
[   +6 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required,
skipping update.
[   +1 ms] Artifact Instance of 'MacOSEngineArtifacts' 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.
[   +1 ms] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required,
skipping update.
[   +1 ms] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required,
skipping update.
[   +1 ms] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required,
skipping update.
[  +18 ms] Artifact Instance of 'MaterialFonts' is not required, skipping
update.
[   +1 ms] Artifact Instance of 'GradleWrapper' is not required, skipping
update.
[   +1 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required,
skipping update.
[   +1 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required,
skipping update.
[   +1 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required,
skipping update.
[   +1 ms] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping
update.
[   +1 ms] 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 'MacOSEngineArtifacts' is not required, skipping
update.
[   +4 ms] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required,
skipping update.
[   +1 ms] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required,
skipping update.
[   +1 ms] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required,
skipping update.
[   +1 ms] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required,
skipping update.
[   +1 ms] Artifact Instance of 'IosUsbArtifacts' is not required, skipping
update.
[        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping
update.
[        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping
update.
[   +5 ms] Artifact Instance of 'IosUsbArtifacts' is not required, skipping
update.
[        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping
update.
[        ] Artifact Instance of 'FontSubsetArtifacts' is not required, skipping
update.
[ +562 ms] Generating
/home/parthasarathi/Desktop/flutter_apps/v_card/android/app/src/main/java/io/flu
tter/plugins/GeneratedPluginRegistrant.java
[ +152 ms] Building Linux application...
[  +19 ms] executing: [build/linux/release/] cmake -G Ninja
-DCMAKE_BUILD_TYPE=Release /home/parthasarathi/Desktop/flutter_apps/v_card/linux
[+2669 ms] -- The CXX compiler identification is Clang 6.0.0
[ +110 ms] -- Check for working CXX compiler: /snap/flutter/21/usr/bin/clang++
[ +313 ms] -- Check for working CXX compiler: /snap/flutter/21/usr/bin/clang++
-- works
[   +4 ms] -- Detecting CXX compiler ABI info
[ +254 ms] -- Detecting CXX compiler ABI info - done
[  +19 ms] -- Detecting CXX compile features
[+1210 ms] -- Detecting CXX compile features - done
[ +987 ms] -- Found PkgConfig: /snap/flutter/21/usr/bin/pkg-config (found version "0.29.1")
[   +3 ms] -- Checking for module 'gtk+-3.0'
[ +677 ms] --   Found gtk+-3.0, version 3.22.30
[ +473 ms] -- Checking for module 'glib-2.0'
[ +165 ms] --   Found glib-2.0, version 2.56.4
[ +211 ms] -- Checking for module 'gio-2.0'
[  +96 ms] --   Found gio-2.0, version 2.56.4
[ +285 ms] -- Configuring done
[ +298 ms] -- Generating done
[   +2 ms] -- Build files have been written to: /home/parthasarathi/Desktop/flutter_apps/v_card/build/linux/release
[  +88 ms] executing: ninja -C build/linux/release install
[  +31 ms] ninja: Entering directory `build/linux/release'
[+57902 ms] [1/6] Generating /home/parthasarathi/Desktop/flutter_apps/v_card/linux/flutter/ephemeral/libflutter_linux_gtk.so,
/home/parthasarathi/Desktop/flutter_apps/v_card/linux/flutter/ephemeral/flutter_linux/fl_basic_message_channel.h,
/home/parthasarathi/Desktop/flutter_apps/v_card/linux/flutter/ephemeral/flutter_linux/fl_binary_codec.h,
/home/parthasarathi/Desktop/flutter_apps/v_card/linux/flutter/ephemeral/flutter_linux/fl_binary_messenger.h,
/home/parthasarathi/Desktop/flutter_apps/v_card/linux/flutter/ephemeral/flutter_linux/fl_dart_project.h,
/home/parthasarathi/Desktop/flutter_apps/v_card/linux/flutter/ephemeral/flutter_linux/fl_engine.h,
/home/parthasarathi/Desktop/flutter_apps/v_card/linux/flutter/ephemeral/flutter_linux/fl_json_message_codec.h,
/home/parthasarathi/Desktop/flutter_apps/v_card/linux/flutter/ephemeral/flutter_linux/fl_json_method_codec.h,
/home/parthasarathi/Desktop/flutter_apps/v_card/linux/flutter/ephemeral/flutter_linux/fl_message_codec.h,
/home/parthasarathi/Desktop/flutter_apps/v_card/linux/flutter/ephemeral/flutter_linux/fl_method_call.h,
/home/parthasarathi/Desktop/flutter_apps/v_card/linux/flutter/ephemeral/flutter_linux/fl_method_channel.h,
/home/parthasarathi/Desktop/flutter_apps/v_card/linux/flutter/ephemeral/flutter_linux/fl_method_codec.h,
/home/parthasarathi/Desktop/flutter_apps/v_card/linux/flutter/ephemeral/flutter_linux/fl_method_response.h,
/home/parthasarathi/Desktop/flutter_apps/v_card/linux/flutter/ephemeral/flutter_linux/fl_plugin_registrar.h,
/home/parthasarathi/Desktop/flutter_apps/v_card/linux/flutter/ephemeral/flutter_linux/fl_plugin_registry.h,
/home/parthasarathi/Desktop/flutter_apps/v_card/linux/flutter/ephemeral/flutter_linux/fl_standard_message_codec.h,
/home/parthasarathi/Desktop/flutter_apps/v_card/linux/flutter/ephemeral/flutter_linux/fl_standard_method_codec.h,
/home/parthasarathi/Desktop/flutter_apps/v_card/linux/flutter/ephemeral/flutter_linux/fl_string_codec.h,
/home/parthasarathi/Desktop/flutter_apps/v_card/linux/flutter/ephemeral/flutter_linux/fl_value.h,
/home/parthasarathi/Desktop/flutter_apps/v_card/linux/flutter/ephemeral/flutter_linux/fl_view.h,
/home/parthasarathi/Desktop/flutter_apps/v_card/linux/flutter/ephemeral/flutter_linux/flutter_linux.h, _phony_
[  +27 ms] [ +317 ms] executing: [/home/parthasarathi/snap/flutter/common/flutter/] git -c log.showSignature=false log -n 1
--pretty=format:%H
[  +16 ms] [  +75 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] [        ] 3a5a3eaf68fc47796b54a16217d45f224f74388a
[        ] [   +1 ms] executing: [/home/parthasarathi/snap/flutter/common/flutter/] git tag --contains HEAD
[        ] [ +326 ms] Exit code 0 from: git tag --contains HEAD
[        ] [   +2 ms] executing: [/home/parthasarathi/snap/flutter/common/flutter/] git describe --match *.*.*-*.*.pre --first-parent
--long --tags
[   +1 ms] [  +26 ms] Exit code 0 from: git describe --match *.*.*-*.*.pre --first-parent --long --tags
[        ] [        ] 1.21.0-5.0.pre-97-g3a5a3eaf6
[        ] [  +13 ms] executing: [/home/parthasarathi/snap/flutter/common/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[        ] [   +5 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] [        ] origin/master
[        ] [        ] executing: [/home/parthasarathi/snap/flutter/common/flutter/] git ls-remote --get-url origin
[        ] [   +5 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] [        ] https://github.com/flutter/flutter.git
[        ] [  +83 ms] executing: [/home/parthasarathi/snap/flutter/common/flutter/] git rev-parse --abbrev-ref HEAD
[        ] [  +15 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] [   +1 ms] master
[        ] [ +107 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[  +24 ms] [        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[        ] [   +5 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.
[        ] [  +17 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'GradleWrapper' is not required, skipping update.
[        ] [        ] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] [        ] 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.
[  +12 ms] [        ] Artifact Instance of 'FlutterSdk' is not required, skipping update.
[  +10 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.
[        ] [        ] 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.
[        ] [ +218 ms] Initializing file store
[        ] [  +57 ms] Skipping target: gen_localizations
[        ] [   +2 ms] unpack_linux: Starting due to {}
[        ] [+1043 ms] unpack_linux: Complete
[        ] [  +73 ms] kernel_snapshot: Starting due to {}
[        ] [  +77 ms] /home/parthasarathi/snap/flutter/common/flutter/bin/cache/dart-sdk/bin/dart --disable-dart-dev
/home/parthasarathi/snap/flutter/common/flutter/bin/cache/artifacts/engine/linux-x64/frontend_server.dart.snapshot --sdk-root
/home/parthasarathi/snap/flutter/common/flutter/bin/cache/artifacts/engine/common/flutter_patched_sdk_product/ --target=flutter
-Ddart.developer.causal_async_stacks=false -Ddart.vm.profile=false -Ddart.vm.product=true --bytecode-options=source-positions --aot
--tfa --packages /home/parthasarathi/Desktop/flutter_apps/v_card/.packages --output-dill
/home/parthasarathi/Desktop/flutter_apps/v_card/.dart_tool/flutter_build/629db35bf3530c65b95d6f3239fe9477/app.dill --depfile
/home/parthasarathi/Desktop/flutter_apps/v_card/.dart_tool/flutter_build/629db35bf3530c65b95d6f3239fe9477/kernel_snapshot.d
package:v_card/main.dart
[  +19 ms] [+33835 ms] kernel_snapshot: Complete
[        ] [+1716 ms] aot_elf_release: Starting due to {InvalidatedReason.inputChanged}
[        ] [  +16 ms] executing:
/home/parthasarathi/snap/flutter/common/flutter/bin/cache/artifacts/engine/linux-x64-release/gen_snapshot --deterministic
--snapshot_kind=app-aot-elf
--elf=/home/parthasarathi/Desktop/flutter_apps/v_card/.dart_tool/flutter_build/629db35bf3530c65b95d6f3239fe9477/app.so --strip
--no-causal-async-stacks --lazy-async-stacks
/home/parthasarathi/Desktop/flutter_apps/v_card/.dart_tool/flutter_build/629db35bf3530c65b95d6f3239fe9477/app.dill
[   +2 ms] [+15143 ms] aot_elf_release: Complete
[   +3 ms] [  +70 ms] linux_aot_bundle: Starting due to {InvalidatedReason.inputChanged}
[        ] [   +6 ms] linux_aot_bundle: Complete
[        ] [ +114 ms] release_bundle_linux_assets: Starting due to {}
[        ] [ +761 ms] release_bundle_linux_assets: Complete
[   +6 ms] [ +185 ms] Persisting file store
[        ] [  +29 ms] Done persisting file store
[        ] [  +19 ms] build succeeded.
[        ] [  +21 ms] "flutter assemble" took 53,452ms.
[        ] [ +238 ms] ensureAnalyticsSent: 227ms
[        ] [   +4 ms] Running shutdown hooks
[   +4 ms] [        ] Shutdown hooks complete
[        ] [   +1 ms] exiting with code 0
[+2752 ms] [2/6] Building CXX object CMakeFiles/v_card.dir/flutter/generated_plugin_registrant.cc.o
[  +21 ms] [3/6] Building CXX object CMakeFiles/v_card.dir/main.cc.o
[  +30 ms] [4/6] Building CXX object CMakeFiles/v_card.dir/my_application.cc.o
[+1098 ms] [5/6] Linking CXX executable v_card
[        ] [5/6] Install the project...
[  +34 ms] -- Install configuration: "Release"
[        ] -- Installing: /home/parthasarathi/Desktop/flutter_apps/v_card/build/linux/release/bundle/v_card
[   +1 ms] -- Set runtime path of "/home/parthasarathi/Desktop/flutter_apps/v_card/build/linux/release/bundle/v_card" to "$ORIGIN/lib"
[        ] -- Installing: /home/parthasarathi/Desktop/flutter_apps/v_card/build/linux/release/bundle/data/icudtl.dat
[   +2 ms] -- Installing: /home/parthasarathi/Desktop/flutter_apps/v_card/build/linux/release/bundle/lib/libflutter_linux_gtk.so
[ +177 ms] -- Installing: /home/parthasarathi/Desktop/flutter_apps/v_card/build/linux/release/bundle/data/flutter_assets
[  +13 ms] -- Installing: /home/parthasarathi/Desktop/flutter_apps/v_card/build/linux/release/bundle/data/flutter_assets/images
[        ] -- Installing:
/home/parthasarathi/Desktop/flutter_apps/v_card/build/linux/release/bundle/data/flutter_assets/images/photo.jpg
[   +4 ms] -- Installing: /home/parthasarathi/Desktop/flutter_apps/v_card/build/linux/release/bundle/data/flutter_assets/packages
[        ] -- Installing:
/home/parthasarathi/Desktop/flutter_apps/v_card/build/linux/release/bundle/data/flutter_assets/packages/cupertino_icons
[        ] -- Installing:
/home/parthasarathi/Desktop/flutter_apps/v_card/build/linux/release/bundle/data/flutter_assets/packages/cupertino_icons/assets
[   +5 ms] -- Installing:
/home/parthasarathi/Desktop/flutter_apps/v_card/build/linux/release/bundle/data/flutter_assets/packages/cupertino_icons/assets/Cupertin
oIcons.ttf
[  +10 ms] -- Installing:
/home/parthasarathi/Desktop/flutter_apps/v_card/build/linux/release/bundle/data/flutter_assets/FontManifest.json
[        ] -- Installing: /home/parthasarathi/Desktop/flutter_apps/v_card/build/linux/release/bundle/data/flutter_assets/fonts
[        ] -- Installing:
/home/parthasarathi/Desktop/flutter_apps/v_card/build/linux/release/bundle/data/flutter_assets/fonts/MaterialIcons-Regular.ttf
[   +1 ms] -- Installing:
/home/parthasarathi/Desktop/flutter_apps/v_card/build/linux/release/bundle/data/flutter_assets/fonts/SourceSansPro-Regular.ttf
[   +1 ms] -- Installing:
/home/parthasarathi/Desktop/flutter_apps/v_card/build/linux/release/bundle/data/flutter_assets/fonts/BerkshireSwash-Regular.ttf
[   +9 ms] -- Installing:
/home/parthasarathi/Desktop/flutter_apps/v_card/build/linux/release/bundle/data/flutter_assets/fonts/MaterialIcons-Regular.otf
[        ] -- Installing:
/home/parthasarathi/Desktop/flutter_apps/v_card/build/linux/release/bundle/data/flutter_assets/AssetManifest.json
[        ] -- Installing: /home/parthasarathi/Desktop/flutter_apps/v_card/build/linux/release/bundle/data/flutter_assets/NOTICES
[        ] -- Installing: /home/parthasarathi/Desktop/flutter_apps/v_card/build/linux/release/bundle/lib/libapp.so
[  +66 ms] Building Linux application... (completed in 70.2s)
[   +3 ms] "flutter linux" took 71,029ms.
[ +276 ms] ensureAnalyticsSent: 263ms
[   +4 ms] Running shutdown hooks
[        ] Shutdown hooks complete
[        ] exiting with code 0

parthasarathi@Aspire-E5-571G:~/Desktop/flutter_apps/v_card/build/linux/release$ ./v_card
** (v_card:17892): WARNING **: 18:40:07.391: Failed to setup renderer: Failed to initialze EGL

(v_card:17892): Gdk-CRITICAL **: 18:40:07.391: gdk_visual_get_screen: assertion 'GDK_IS_VISUAL (visual)' failed

(v_card:17892): Gdk-CRITICAL **: 18:40:07.391: gdk_window_new: assertion 'gdk_visual_get_screen (attributes->visual) == screen' failed

(v_card:17892): Gtk-CRITICAL **: 18:40:07.392: gtk_widget_register_window: assertion 'GDK_IS_WINDOW (window)' failed

(v_card:17892): GLib-GObject-CRITICAL **: 18:40:07.392: g_object_ref: assertion 'G_IS_OBJECT (object)' failed
Segmentation fault (core dumped)
 -->

<details>
  <summary>Logs</summary>

<!--
      Run your application with `flutter run --verbose` and attach all the
      log output below between the lines with the backticks. If there is an
      exception, please see if the error message includes enough information
      to explain how to solve the issue.
-->
parthasarathi@Aspire-E5-571G:~/Desktop/flutter_apps/v_card$ flutter run -d linux --verbose
[ +327 ms] executing: [/home/parthasarathi/snap/flutter/common/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[  +87 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] 3a5a3eaf68fc47796b54a16217d45f224f74388a
[   +1 ms] executing: [/home/parthasarathi/snap/flutter/common/flutter/] git tag --contains HEAD
[ +514 ms] Exit code 0 from: git tag --contains HEAD
[   +4 ms] executing: [/home/parthasarathi/snap/flutter/common/flutter/] git describe --match *.*.*-*.*.pre --first-parent --long
--tags
[  +47 ms] Exit code 0 from: git describe --match *.*.*-*.*.pre --first-parent --long --tags
[        ] 1.21.0-5.0.pre-97-g3a5a3eaf6
[  +21 ms] executing: [/home/parthasarathi/snap/flutter/common/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[   +9 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] origin/master
[        ] executing: [/home/parthasarathi/snap/flutter/common/flutter/] git ls-remote --get-url origin
[   +9 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] https://github.com/flutter/flutter.git
[ +128 ms] executing: [/home/parthasarathi/snap/flutter/common/flutter/] git rev-parse --abbrev-ref HEAD
[  +12 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] master
[ +148 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +5 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.
[  +95 ms] executing: /home/parthasarathi/Android/Sdk/platform-tools/adb devices -l
[  +58 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[  +51 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 'MacOSEngineArtifacts' is not required, skipping update.
[   +3 ms] 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.
[ +223 ms] executing: /home/parthasarathi/Android/Sdk/platform-tools/adb devices -l
[ +416 ms] Generating
/home/parthasarathi/Desktop/flutter_apps/v_card/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java
[ +259 ms] Starting incremental build...
[  +15 ms] Initializing file store
[  +73 ms] Skipping target: gen_localizations
[  +23 ms] complete
[  +17 ms] Launching lib/main.dart on Linux in debug mode...
[  +27 ms] /home/parthasarathi/snap/flutter/common/flutter/bin/cache/dart-sdk/bin/dart --disable-dart-dev
/home/parthasarathi/snap/flutter/common/flutter/bin/cache/artifacts/engine/linux-x64/frontend_server.dart.snapshot --sdk-root
/home/parthasarathi/snap/flutter/common/flutter/bin/cache/artifacts/engine/common/flutter_patched_sdk/ --incremental --target=flutter
--debugger-module-names --experimental-emit-debug-metadata -Ddart.developer.causal_async_stacks=true --output-dill
/tmp/flutter_tools.NEKQWE/flutter_tool.LIIOTV/app.dill --packages .packages -Ddart.vm.profile=false -Ddart.vm.product=false
--bytecode-options=source-positions,local-var-info,debugger-stops,instance-field-initializers,keep-unreachable-code,avoid-closure-call-
instructions --enable-asserts --track-widget-creation --filesystem-scheme org-dartlang-root --initialize-from-dill
build/cache.dill.track.dill
[  +83 ms] Building Linux application...
[ +119 ms] <- compile package:v_card/main.dart
[  +80 ms] List of devices attached
[  +20 ms] List of devices attached
[  +74 ms] executing: [build/linux/debug/] cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug
/home/parthasarathi/Desktop/flutter_apps/v_card/linux
[ +483 ms] -- The CXX compiler identification is Clang 6.0.0
[  +13 ms] -- Check for working CXX compiler: /snap/flutter/21/usr/bin/clang++
[ +287 ms] -- Check for working CXX compiler: /snap/flutter/21/usr/bin/clang++ -- works
[   +1 ms] -- Detecting CXX compiler ABI info
[ +245 ms] -- Detecting CXX compiler ABI info - done
[  +23 ms] -- Detecting CXX compile features
[+1424 ms] -- Detecting CXX compile features - done
[  +29 ms] -- Found PkgConfig: /snap/flutter/21/usr/bin/pkg-config (found version "0.29.1")
[   +4 ms] -- Checking for module 'gtk+-3.0'
[ +155 ms] --   Found gtk+-3.0, version 3.22.30
[ +514 ms] -- Checking for module 'glib-2.0'
[ +154 ms] --   Found glib-2.0, version 2.56.4
[ +386 ms] -- Checking for module 'gio-2.0'
[ +108 ms] --   Found gio-2.0, version 2.56.4
[ +413 ms] -- Configuring done
[  +47 ms] -- Generating done
[  +29 ms] -- Build files have been written to: /home/parthasarathi/Desktop/flutter_apps/v_card/build/linux/debug
[   +9 ms] executing: ninja -C build/linux/debug install
[  +31 ms] ninja: Entering directory `build/linux/debug'
[+48739 ms] [1/6] Generating /home/parthasarathi/Desktop/flutter_apps/v_card/linux/flutter/ephemeral/libflutter_linux_gtk.so,
/home/parthasarathi/Desktop/flutter_apps/v_card/linux/flutter/ephemeral/flutter_linux/fl_basic_message_channel.h,
/home/parthasarathi/Desktop/flutter_apps/v_card/linux/flutter/ephemeral/flutter_linux/fl_binary_codec.h,
/home/parthasarathi/Desktop/flutter_apps/v_card/linux/flutter/ephemeral/flutter_linux/fl_binary_messenger.h,
/home/parthasarathi/Desktop/flutter_apps/v_card/linux/flutter/ephemeral/flutter_linux/fl_dart_project.h,
/home/parthasarathi/Desktop/flutter_apps/v_card/linux/flutter/ephemeral/flutter_linux/fl_engine.h,
/home/parthasarathi/Desktop/flutter_apps/v_card/linux/flutter/ephemeral/flutter_linux/fl_json_message_codec.h,
/home/parthasarathi/Desktop/flutter_apps/v_card/linux/flutter/ephemeral/flutter_linux/fl_json_method_codec.h,
/home/parthasarathi/Desktop/flutter_apps/v_card/linux/flutter/ephemeral/flutter_linux/fl_message_codec.h,
/home/parthasarathi/Desktop/flutter_apps/v_card/linux/flutter/ephemeral/flutter_linux/fl_method_call.h,
/home/parthasarathi/Desktop/flutter_apps/v_card/linux/flutter/ephemeral/flutter_linux/fl_method_channel.h,
/home/parthasarathi/Desktop/flutter_apps/v_card/linux/flutter/ephemeral/flutter_linux/fl_method_codec.h,
/home/parthasarathi/Desktop/flutter_apps/v_card/linux/flutter/ephemeral/flutter_linux/fl_method_response.h,
/home/parthasarathi/Desktop/flutter_apps/v_card/linux/flutter/ephemeral/flutter_linux/fl_plugin_registrar.h,
/home/parthasarathi/Desktop/flutter_apps/v_card/linux/flutter/ephemeral/flutter_linux/fl_plugin_registry.h,
/home/parthasarathi/Desktop/flutter_apps/v_card/linux/flutter/ephemeral/flutter_linux/fl_standard_message_codec.h,
/home/parthasarathi/Desktop/flutter_apps/v_card/linux/flutter/ephemeral/flutter_linux/fl_standard_method_codec.h,
/home/parthasarathi/Desktop/flutter_apps/v_card/linux/flutter/ephemeral/flutter_linux/fl_string_codec.h,
/home/parthasarathi/Desktop/flutter_apps/v_card/linux/flutter/ephemeral/flutter_linux/fl_value.h,
/home/parthasarathi/Desktop/flutter_apps/v_card/linux/flutter/ephemeral/flutter_linux/fl_view.h,
/home/parthasarathi/Desktop/flutter_apps/v_card/linux/flutter/ephemeral/flutter_linux/flutter_linux.h, _phony_
[  +14 ms] [ +543 ms] executing: [/home/parthasarathi/snap/flutter/common/flutter/] git -c log.showSignature=false log -n 1
--pretty=format:%H
[        ] [ +123 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] [        ] 3a5a3eaf68fc47796b54a16217d45f224f74388a
[        ] [   +1 ms] executing: [/home/parthasarathi/snap/flutter/common/flutter/] git tag --contains HEAD
[        ] [ +597 ms] Exit code 0 from: git tag --contains HEAD
[        ] [   +3 ms] executing: [/home/parthasarathi/snap/flutter/common/flutter/] git describe --match *.*.*-*.*.pre --first-parent
--long --tags
[        ] [  +88 ms] Exit code 0 from: git describe --match *.*.*-*.*.pre --first-parent --long --tags
[        ] [        ] 1.21.0-5.0.pre-97-g3a5a3eaf6
[        ] [  +25 ms] executing: [/home/parthasarathi/snap/flutter/common/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[        ] [  +11 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] [        ] origin/master
[        ] [        ] executing: [/home/parthasarathi/snap/flutter/common/flutter/] git ls-remote --get-url origin
[        ] [  +11 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] [        ] https://github.com/flutter/flutter.git
[        ] [ +191 ms] executing: [/home/parthasarathi/snap/flutter/common/flutter/] git rev-parse --abbrev-ref HEAD
[        ] [  +32 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] [        ] master
[        ] [ +174 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[        ] [   +5 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.
[        ] [  +17 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'GradleWrapper' is not required, skipping update.
[        ] [        ] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] [        ] 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 '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.
[        ] [ +346 ms] Initializing file store
[        ] [  +59 ms] Skipping target: gen_localizations
[        ] [  +34 ms] unpack_linux: Starting due to {}
[        ] [+4852 ms] unpack_linux: Complete
[        ] [ +120 ms] kernel_snapshot: Starting due to {}
[        ] [ +154 ms] /home/parthasarathi/snap/flutter/common/flutter/bin/cache/dart-sdk/bin/dart --disable-dart-dev
/home/parthasarathi/snap/flutter/common/flutter/bin/cache/artifacts/engine/linux-x64/frontend_server.dart.snapshot --sdk-root
/home/parthasarathi/snap/flutter/common/flutter/bin/cache/artifacts/engine/common/flutter_patched_sdk/ --target=flutter
-Ddart.developer.causal_async_stacks=true -Ddart.vm.profile=false -Ddart.vm.product=false
--bytecode-options=source-positions,local-var-info,debugger-stops,instance-field-initializers,keep-unreachable-code,avoid-closure-call-
instructions --enable-asserts --track-widget-creation --packages /home/parthasarathi/Desktop/flutter_apps/v_card/.packages
--output-dill /home/parthasarathi/Desktop/flutter_apps/v_card/.dart_tool/flutter_build/8eee0d93651dec401612cb8b1f6c5096/app.dill
--depfile /home/parthasarathi/Desktop/flutter_apps/v_card/.dart_tool/flutter_build/8eee0d93651dec401612cb8b1f6c5096/kernel_snapshot.d
package:v_card/main.dart
[  +12 ms] [+33020 ms] kernel_snapshot: Complete
[   +9 ms] [+2147 ms] debug_bundle_linux_assets: Starting due to {}
[        ] [ +863 ms] debug_bundle_linux_assets: Complete
[        ] [+2968 ms] Persisting file store
[        ] [  +30 ms] Done persisting file store
[        ] [  +21 ms] build succeeded.
[        ] [  +21 ms] "flutter assemble" took 44,689ms.
[        ] [ +242 ms] ensureAnalyticsSent: 231ms
[        ] [   +8 ms] Running shutdown hooks
[        ] [        ] Shutdown hooks complete
[        ] [  +12 ms] exiting with code 0
[+1855 ms] [2/6] Building CXX object CMakeFiles/v_card.dir/my_application.cc.o
[ +180 ms] [3/6] Building CXX object CMakeFiles/v_card.dir/main.cc.o
[  +78 ms] [4/6] Building CXX object CMakeFiles/v_card.dir/flutter/generated_plugin_registrant.cc.o
[ +448 ms] [5/6] Linking CXX executable v_card
[        ] [5/6] Install the project...
[ +348 ms] -- Install configuration: "Debug"
[        ] -- Installing: /home/parthasarathi/Desktop/flutter_apps/v_card/build/linux/debug/bundle/v_card
[        ] -- Set runtime path of "/home/parthasarathi/Desktop/flutter_apps/v_card/build/linux/debug/bundle/v_card" to "$ORIGIN/lib"
[        ] -- Installing: /home/parthasarathi/Desktop/flutter_apps/v_card/build/linux/debug/bundle/data/icudtl.dat
[   +3 ms] -- Installing: /home/parthasarathi/Desktop/flutter_apps/v_card/build/linux/debug/bundle/lib/libflutter_linux_gtk.so
[ +349 ms] -- Installing: /home/parthasarathi/Desktop/flutter_apps/v_card/build/linux/debug/bundle/data/flutter_assets
[        ] -- Installing: /home/parthasarathi/Desktop/flutter_apps/v_card/build/linux/debug/bundle/data/flutter_assets/images
[        ] -- Installing: /home/parthasarathi/Desktop/flutter_apps/v_card/build/linux/debug/bundle/data/flutter_assets/images/photo.jpg
[  +16 ms] -- Installing: /home/parthasarathi/Desktop/flutter_apps/v_card/build/linux/debug/bundle/data/flutter_assets/kernel_blob.bin
[  +76 ms] -- Installing: /home/parthasarathi/Desktop/flutter_apps/v_card/build/linux/debug/bundle/data/flutter_assets/packages
[        ] -- Installing:
/home/parthasarathi/Desktop/flutter_apps/v_card/build/linux/debug/bundle/data/flutter_assets/packages/cupertino_icons
[   +1 ms] -- Installing:
/home/parthasarathi/Desktop/flutter_apps/v_card/build/linux/debug/bundle/data/flutter_assets/packages/cupertino_icons/assets
[   +1 ms] -- Installing:
/home/parthasarathi/Desktop/flutter_apps/v_card/build/linux/debug/bundle/data/flutter_assets/packages/cupertino_icons/assets/CupertinoI
cons.ttf
[   +1 ms] -- Installing:
/home/parthasarathi/Desktop/flutter_apps/v_card/build/linux/debug/bundle/data/flutter_assets/FontManifest.json
[   +1 ms] -- Installing: /home/parthasarathi/Desktop/flutter_apps/v_card/build/linux/debug/bundle/data/flutter_assets/fonts
[        ] -- Installing:
/home/parthasarathi/Desktop/flutter_apps/v_card/build/linux/debug/bundle/data/flutter_assets/fonts/MaterialIcons-Regular.ttf
[        ] -- Installing:
/home/parthasarathi/Desktop/flutter_apps/v_card/build/linux/debug/bundle/data/flutter_assets/fonts/SourceSansPro-Regular.ttf
[        ] -- Installing:
/home/parthasarathi/Desktop/flutter_apps/v_card/build/linux/debug/bundle/data/flutter_assets/fonts/BerkshireSwash-Regular.ttf
[        ] -- Installing:
/home/parthasarathi/Desktop/flutter_apps/v_card/build/linux/debug/bundle/data/flutter_assets/fonts/MaterialIcons-Regular.otf
[        ] -- Installing:
/home/parthasarathi/Desktop/flutter_apps/v_card/build/linux/debug/bundle/data/flutter_assets/AssetManifest.json
[   +2 ms] -- Installing: /home/parthasarathi/Desktop/flutter_apps/v_card/build/linux/debug/bundle/data/flutter_assets/NOTICES
[  +48 ms] Building Linux application... (completed in 56.9s)
[+1068 ms] ** (v_card:18459): WARNING **: 18:44:07.117: Failed to setup renderer: Failed to initialze EGL
[   +1 ms] (v_card:18459): Gdk-CRITICAL **: 18:44:07.117: gdk_visual_get_screen: assertion 'GDK_IS_VISUAL (visual)' failed
[        ] (v_card:18459): Gdk-CRITICAL **: 18:44:07.117: gdk_window_new: assertion 'gdk_visual_get_screen (attributes->visual) ==
screen' failed
[   +1 ms] (v_card:18459): Gtk-CRITICAL **: 18:44:07.117: gtk_widget_register_window: assertion 'GDK_IS_WINDOW (window)' failed
[   +2 ms] (v_card:18459): GLib-GObject-CRITICAL **: 18:44:07.117: g_object_ref: assertion 'G_IS_OBJECT (object)' failed
[ +784 ms] Error waiting for a debug connection: The log reader stopped unexpectedly.
[   +6 ms] Error launching application on Linux.
[   +6 ms] "flutter run" took 60,144ms.
[  +25 ms]
           #0      throwToolExit (package:flutter_tools/src/base/common.dart:14:3)
           #1      RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:598:7)
           <asynchronous suspension>
           #2      FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:885:18)
           #3      _rootRunUnary (dart:async/zone.dart:1198:47)
           #4      _CustomZone.runUnary (dart:async/zone.dart:1100:19)
           #5      _FutureListener.handleValue (dart:async/future_impl.dart:143:18)
           #6      Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:696:45)
           #7      Future._propagateToListeners (dart:async/future_impl.dart:725:32)
           #8      Future._completeWithValue (dart:async/future_impl.dart:529:5)
           #9      _AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:40:15)
           #10     _completeOnAsyncReturn (dart:async-patch/async_patch.dart:311:13)
           #11     RunCommand.usageValues (package:flutter_tools/src/commands/run.dart)
           #12     _rootRunUnary (dart:async/zone.dart:1198:47)
           #13     _CustomZone.runUnary (dart:async/zone.dart:1100:19)
           #14     _FutureListener.handleValue (dart:async/future_impl.dart:143:18)
           #15     Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:696:45)
           #16     Future._propagateToListeners (dart:async/future_impl.dart:725:32)
           #17     Future._completeWithValue (dart:async/future_impl.dart:529:5)
           #18     Future._asyncCompleteWithValue.<anonymous closure> (dart:async/future_impl.dart:567:7)
           #19     _rootRun (dart:async/zone.dart:1190:13)
           #20     _CustomZone.run (dart:async/zone.dart:1093:19)
           #21     _CustomZone.runGuarded (dart:async/zone.dart:997:7)
           #22     _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:1037:23)
           #23     _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
           #24     _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
           #25     _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:118:13)
           #26     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:169:5)

[ +236 ms] ensureAnalyticsSent: 230ms
[   +2 ms] Running shutdown hooks
[        ] Shutdown hook priority 4
[  +11 ms] Shutdown hooks complete
[   +1 ms] exiting with code 1

parthasarathi@Aspire-E5-571G:~/Desktop/flutter_apps/v_card$ flutter analyze
Analyzing v_card...
No issues found! (ran in 14.2s;)

[✓] Flutter (Channel master, 1.21.0-6.0.pre.97, on Linux, locale en_IN)
    • Flutter version 1.21.0-6.0.pre.97 at /home/parthasarathi/snap/flutter/common/flutter
    • Framework revision 3a5a3eaf68 (2 days ago), 2020-07-29 10:05:40 -0700
    • Engine revision a9910e409c
    • Dart version 2.10.0 (build 2.10.0-1.0.dev 24c7666def)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.1)
    • Android SDK at /home/parthasarathi/Android/Sdk
    • Platform android-30, build-tools 30.0.1
    • Java binary at: /home/parthasarathi/Downloads/android-studio/jre/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
    • All Android licenses accepted.

[✓] Chrome - develop for the web
    • Chrome at google-chrome

[✓] Linux toolchain - develop for Linux desktop
    • clang version 6.0.0-1ubuntu2 (tags/RELEASE_600/final)
    • cmake version 3.10.2
    • ninja version 1.8.2
    • pkg-config version 0.29.1

[✓] Android Studio (version 4.0)
    • Android Studio at /home/parthasarathi/Downloads/android-studio
    • Flutter plugin version 47.1.2
    • Dart plugin version 193.7361
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)

[✓] VS Code (version 1.47.2)
    • VS Code at /usr/share/code
    • Flutter extension version 3.12.2

[✓] Connected device (3 available)
    • Linux (desktop)  • linux      • linux-x64      • Linux
    • Web Server (web) • web-server • web-javascript • Flutter Tools
    • Chrome (web)     • chrome     • web-javascript • Google Chrome 84.0.4147.89

• No issues found!

cc @csells

Looks like the same as the current logging+crash in https://github.com/flutter/flutter/issues/60429


text:
luci sdk tasks are running twice

For every commit we are running the same task twice, this has impacted our capacity usage since the sdk repo was enabled on luci.
The reason for this is that we enabled the app but we didn't disable the webhook meaning that every time there is a new commit the webhook api gets called twice: one for the web_hook configuration and one for the github app.
\cc. @keyonghan

After talking with @godofredoc, I've disabled the webhook. @godofredoc is monitoring behavior to see if this fixes the problem.

Moving to P2 as we believe the problem is now fixed

This is now running as expected.

Issue reproduced in: https://github.com/flutter/flutter/pull/62445

I think this is a different issue. Are we using the new config files? is the builder duplicated in the new files?

I looked for the configs but could not find them

Cocoon is using https://github.com/flutter/cocoon/blob/master/app_dart/dev/luci_try_builders.json at this moment.

We are actually triggering the build twice:

The webhook seems to be called twice:

This debug info was triggered when labeling via _checkForLabelsAndTests. Two labels were added, causing two debug records in the log.

Does adding a label causes a synchronize?

It shouldn't. Otherwise, we will see three runs (first commit, then two labels). I am still debugging.

This happens only on flutter/flutter repo. flutter/engine tasks are not triggered multiple times.

Debug on pr: https://github.com/flutter/flutter/pull/63401
Webhood was trigger once at 10:27:29

The builders were scheduled twice at 10:27:19 and 10:27:30

Is it possible from recipe/config side, we somehow are triggering the builders twice for flutter repo? @godofredoc

Or the luci status was not disabled appropriately that it still has tests running againt it?

With webhook disabled, it is verified that no replicated tasks are scheduled. Closing.
One recent PR:

authors: godofredoc keyonghan kf6gpe


text:
Some analyzer ignore are not working anymore on 1.20.0

Hello!
I updated my SDK version from 1.17.3 to 1.20.0 and these ignore are not working anymore:
// ignore: undefined_prefixed_name
ui.platformViewRegistry.registerViewFactory(viewType, (int viewId) {

// ignore: uri_does_not_exist
import 'dart:web_audio';

// ignore: undefined_method
static final audioContext = AudioContext();

Ex:

Target of URI doesn't exist: 'dart:web_audio'.
Try creating the file referenced by the URI, or Try using a URI for a file that does exist. dart(uri_does_not_exist)

The ignore is for the right error.
Other ignores are working as expected. Reverted to 1.17.3 to be sure and they are working.
If I add the error like this in analysis_options.yaml, it stops showing the error in VS Code:
errors:
        uri_does_not_exist: ignore

But if I add the file in exclude like this in analysis_options.yaml, the error is still there in VS Code:
analyzer:
    exclude:
        - lib/managers/sound/data/sound_web.dart

Although running flutter analyze ignores it correctly.
Flutter doctor:
[√] Flutter (Channel unknown, 1.20.0, on Microsoft Windows [Version 10.0.18363.959], locale en-US)
    • Flutter version 1.20.0 at C:\dev\flutter
    • Framework revision 840c9205b3 (7 days ago), 2020-08-04 20:55:12 -0700
    • Engine revision c8e3b94853
    • Dart version 2.9.0

[X] Android toolchain - develop for Android devices
    X Unable to locate Android SDK.
      Install Android Studio from: https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK components.
      (or visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed instructions).
      If the Android SDK has been installed to a custom location, set ANDROID_SDK_ROOT to that location.
      You may also want to add it to your PATH environment variable.

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

[!] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed instructions).

[√] VS Code (version 1.47.3)
    • VS Code at C:\Users\Obs\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.13.2

[√] Connected device (3 available)
    • Web Server (web) • web-server • web-javascript • Flutter Tools
    • Chrome (web)     • chrome     • web-javascript • Google Chrome 84.0.4147.105
    • Edge (web)       • edge       • web-javascript • Microsoft Edge 84.0.522.52

I can reproduce this on the latest master 1.21.0-8.0.pre.176 and can't on 1.17.5 but it seems to be intended.

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

// ignore: unused_import
import 'package:flutter/services.dart/';

// ignore: uri_does_not_exist
import 'aaaaaaaaaaaaaaaaaaaa';

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

flutter doctor -v
[√] Flutter (Channel master, 1.21.0-8.0.pre.176, on Microsoft Windows [Version 10.0.19041.388], locale en-US)
    • Flutter version 1.21.0-8.0.pre.176 at C:\Development\flutter_master
    • Framework revision d9637ed784 (3 hours ago), 2020-08-11 23:51:03 -0400
    • Engine revision 6381b1511b
    • Dart version 2.10.0 (build 2.10.0-11.0.dev)

[√] Android toolchain - develop for Android devices (Android SDK version 30.0.1)
    • Android SDK at C:\Users\marku\AppData\Local\Android\sdk
    • Platform android-30, build-tools 30.0.1
    • Java binary at: C:\Users\marku\AppData\Local\JetBrains\Toolbox\apps\AndroidStudio\ch-0\193.6626763\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.6.5)
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
    • Visual Studio Community 2019 version 16.6.30320.27
    • Windows 10 SDK version 10.0.18362.0

[√] Android Studio (version 4.0)
    • Android Studio at C:\Users\marku\AppData\Local\JetBrains\Toolbox\apps\AndroidStudio\ch-0\193.6626763
    • Flutter plugin version 47.1.2
    • Dart plugin version 193.7361
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[√] Connected device (4 available)
    • SM G950F (mobile) • ce12171c51cc001c03 • android-arm64  • Android 9 (API 28)
    • Windows (desktop) • windows            • windows-x64    • Microsoft Windows [Version 10.0.19041.388]
    • Web Server (web)  • web-server         • web-javascript • Flutter Tools
    • Chrome (web)      • chrome             • web-javascript • Google Chrome 84.0.4147.105

• No issues found!

Logs
On latest master
C:\Users\marku\Desktop\triage\master>flm analyze
Analyzing master...

  error - Target of URI doesn't exist: 'aaaaaaaaaaaaaaaaaaaa' - lib\main.dart:7:8 - uri_does_not_exist

1 issue found. (ran in 1.3s)

On 1.17.5
C:\Users\marku\Desktop\triage\stable17>fl17 analyze
Analyzing stable17...
No issues found! (ran in 1.1s)

dart.dev states that

Version note: As of Dart 2.8, you can’t stop error rules from being applied to individual files or lines of code.

but the version for 1.17.5 is 2.8.4 so it shouldn't have worked there either?
C:\Users\marku\Desktop\triage\stable17>fl17 --version
Flutter 1.17.5 • channel unknown • unknown source
Framework • revision 8af6b2f038 (6 weeks ago) • 2020-06-30 12:53:55 -0700
Engine • revision ee76268252
Tools • Dart 2.8.4

Maybe this was deprecated as it should have been at some point but I'll leave it open for clarification in case I'm mistaken. Feel free to close if this is working as intended.

Same problem here. flutter doctor output:
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, 1.20.0, on Mac OS X 10.14.6 18G103, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 11.3.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.0)
[✓] VS Code (version 1.48.0)
[✓] Connected device (3 available)

I think this is the same as upstream issue https://github.com/dart-lang/sdk/issues/42977

You're right, closing this issue as a duplicate.

authors: markusaksli-nc miniBloq mraleph obshksw


text:
Flaky engine crash in fading_child_animation_perf__timeline_summary

From https://ci.chromium.org/ui/p/flutter/builders/prod/Mac_android fading_child_animation_perf__timeline_summary/340/overview
F/libc    ( 9622): Fatal signal 11 (SIGSEGV), code 1, fault addr 0x0 in tid 9639 (1.ui)
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'motorola/athene/athene:7.0/NPJS25.93-14-18/3:user/release-keys'
Revision: 'p2a0'
ABI: 'arm'
pid: 9622, tid: 9639, name: 1.ui  >>> com.example.macrobenchmarks <<<
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
r0 8ea0a020  r1 00000000  r2 00000000  r3 ae8f0a08
r4 95e45cfc  r5 00000001  r6 9115b6c0  r7 00000000
r8 95ccc510  r9 95ccc514  sl 9115b6a0  fp 00000000
ip 00000030  sp 95ccc438  lr 00000000  pc 9670c2e0  cpsr 600e0030
backtrace:
#00 pc 004372e0  /data/app/com.example.macrobenchmarks-1/lib/arm/libflutter.so (offset 0x502000)
#01 pc 00000000  <unknown>

@flutter-symbolizer-bot engine#07afcf7d0f122f35366385112411085087e02c8b https://github.com/flutter/flutter/issues/76611#issue-814623859 android profile arm

Looks like another instance that would be helped by https://github.com/dart-lang/sdk/issues/44814. /cc @jason-simmons

We haven't seen this recently and Jason has already patched our usage of the timeline.

authors: chinmaygarde zanderso


text:
would be nice having a flutter google maps plugin made with flutter

so google maps will works on every platform..

Hi @renanyoy
Google map is a service that supports various platforms and Flutter runs on those platforms, your proposal should Google maps platform itself
Closing, If you disagree, please write in the comments and I will reopen it.
Thank you

sorry, I though google maps addon was made by flutter team..

@renanyoy
The plugin (which basically runs the native google maps code)  is developed by the Flutter team, not the actual Google maps platform.

authors: TahaTesser renanyoy