Git Product home page Git Product logo

Comments (10)

DanTup avatar DanTup commented on June 28, 2024

Very odd - do these show up if you run flutter emulators?

If not, can you enable the Flutter Daemon log and restart VS Code, reproduce the issue, then provide the log file? Thanks!

from dart-code.

xni06 avatar xni06 commented on June 28, 2024

Very odd - do these show up if you run flutter emulators?

√ ags % flutter emulators
3 available emulators:

apple_ios_simulator                                                                                                 • iOS Simulator
• Apple  • ios
INFO    | Storing crashdata in: /tmp/android-rhisiart/emu-crash-34.1.19.db, detection is enabled for process: 88721 • INFO    | Storing crashdata in:
/tmp/android-rhisiart/emu-crash-34.1.19.db, detection is enabled for process: 88721 •        • android
Pixel_8_Pro_API_33                                                                                                  • Pixel 8 Pro API 33
• Google • android

To run an emulator, run 'flutter emulators --launch <emulator id>'.
To create a new emulator, run 'flutter emulators --create [--name xyz]'.

You can find more information on managing emulators at the links below:
  https://developer.android.com/studio/run/managing-avds
  https://developer.android.com/studio/command-line/avdmanager

from dart-code.

DanTup avatar DanTup commented on June 28, 2024

Do you see the same if you run emulator from the Android SDK directly?

C:\Users\danny\AppData\Local\Android\sdk\tools\emulator.exe -list-avds

You can find your SDK path by running flutter config --machine if you don't know it. emulator won't have a .exe if you're not on Windows, and it might be in the emulator folder or the tool folder.

My guess is that something is failing in this command in the SDK, and when Flutter is scraping the output for emulators it just reads the error as if it is an emulator (in which case the fix is probably in Flutter to skip over the lines that seem like errors in the output?).

from dart-code.

xni06 avatar xni06 commented on June 28, 2024
√ ags % flutter config --machine                                      
{
  "android-studio-dir": "/Applications/Android Studio.app",
  "android-sdk": "/Users/rhisiart/Library/android/sdk"
}
√ ags % /Users/rhisiart/Library/android/sdk/tools/emulator -list-avds 
Pixel_8_Pro_API_33

from dart-code.

DanTup avatar DanTup commented on June 28, 2024

hmm, well that's a little odd!

Could you file an issue at https://github.com/flutter/flutter/ and include both your outputs from above (running emulator -list-avds directly, and flutter emulators).

It's also worth seeing whether running /Users/rhisiart/Library/android/sdk/emulator/emulator -list-avds is any different (since I seem to have two copies of emulator in emulator/ and tools/ and Flutter seems to check for both).

from dart-code.

xni06 avatar xni06 commented on June 28, 2024
~ % /Users/rhisiart/Library/android/sdk/tools/emulator -list-avds 
Pixel_8_Pro_API_33

√ ~ % /Users/rhisiart/Library/android/sdk/emulator/emulator -list-avds
INFO    | Storing crashdata in: /tmp/android-rhisiart/emu-crash-34.1.19.db, detection is enabled for process: 95538
WARNING | Crash annotation is very large (16415), only 16384 bytes will be recorded, 31 bytes are lost.
Pixel_8_Pro_API_33

from dart-code.

DanTup avatar DanTup commented on June 28, 2024

Ah, that's interesting. Apparently the emulator one is new, so the new one is writing errors and the old one is not.

Please include the output of all three things in an issue in flutter/flutter. Probably a reasonable fix would be to ignore the lines that contain | as it seems like they're not going to be emulator names.

There's another question about what's crashing and why, but that's probably a question/bug for the Android SDK rather than Dart/Flutter.

Thanks!

from dart-code.

xni06 avatar xni06 commented on June 28, 2024

Thanks @DanTup

flutter/flutter#146125

from dart-code.

DanTup avatar DanTup commented on June 28, 2024

I'm filtering these bogus items out client-side until a fix ships in Flutter (and for SDKs prior to that fix).

from dart-code.

DanTup avatar DanTup commented on June 28, 2024

What are the chances that I add a filter today and then I managed to reproduce this:

image

😄

from dart-code.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.