Skip to content

Connecting to the VM Service is taking longer than expected... #80228

Closed

Description

@evil123

debug mode run app,

Connecting to the VM Service is taking longer than expected...
Still attempting to connect to the VM Service...
If you do NOT see the Flutter application running, it might have crashed. The device logs (e.g. from adb or XCode) might have more details.
If you do see the Flutter application running on the device, try re-running with --host-vmservice-port to use a specific port known to be available.
Exception attempting to connect to the VM Service: SocketException: Connection failed, address = 127.0.0.1, port = 49920
This was attempt #50. Will retry in 0:00:01.600000.

flutter doctor -v

[✓] Flutter (Channel stable, 2.0.4, on macOS 11.2.3 20D91 darwin-x64, locale zh-Hans-CN)
    • Flutter version 2.0.4 at /Users/evil/Downloads/flutter
    • Framework revision b1395592de (10 days ago), 2021-04-01 14:25:01 -0700
    • Engine revision 2dce47073a
    • Dart version 2.12.2
    • Pub download mirror https://mirrors.tuna.tsinghua.edu.cn/dart-pub
    • Flutter download mirror https://mirrors.tuna.tsinghua.edu.cn/flutter

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Users/evil/Library/Android/sdk
    • Platform android-30, build-tools 30.0.3
    • ANDROID_HOME = /Users/evil/Library/Android/sdk
    • 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 at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.4, Build version 12D4e
    • CocoaPods version 1.10.1

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

[✓] Android Studio (version 4.0)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 51.0.1
    • Dart plugin version 193.7547
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)

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

[✓] Connected device (2 available)
    • AOSP on IA Emulator (mobile) • emulator-5554 • android-x86    • Android 9 (API 28) (emulator)
    • Chrome (web)                 • chrome        • web-javascript • Google Chrome 89.0.4389.90

• No issues found!
  i need help

Activity

  1. evil123 commented on Apr 11, 2021

    @evil123
    Author

    flutter run -v

    [ +206 ms] Starting: Intent { act=android.intent.action.RUN flg=0x20000000 cmp=com.example.demo6/.MainActivity (has extras) }
    [        ] Waiting for observatory port to be available...
    [+1038 ms] Observatory URL on device: http://127.0.0.1:45069/-lfSrIGW8Mo=/
    [   +1 ms] executing: /Users/evil/Library/Android/sdk/platform-tools/adb -s emulator-5554 forward tcp:0 tcp:45069
    [  +14 ms] 53089
    [        ] Forwarded host port 53089 to device port 45069 for Observatory
    [   +8 ms] Caching compiled dill
    [  +48 ms] Connecting to service protocol: http://127.0.0.1:53089/-lfSrIGW8Mo=/
    [  +18 ms] Exception attempting to connect to the VM Service: SocketException: Connection failed, address = 127.0.0.1, port = 53089
    [        ] This was attempt #1. Will retry in 0:00:00.100000.
    [ +103 ms] Exception attempting to connect to the VM Service: SocketException: Connection failed, address = 127.0.0.1, port = 53089
    [        ] This was attempt #2. Will retry in 0:00:00.200000.
    [ +204 ms] Exception attempting to connect to the VM Service: SocketException: Connection failed, address = 127.0.0.1, port = 53089
    [        ] This was attempt #3. Will retry in 0:00:00.400000.
    [ +401 ms] Exception attempting to connect to the VM Service: SocketException: Connection failed, address = 127.0.0.1, port = 53089
    [        ] This was attempt #4. Will retry in 0:00:00.800000.
    [ +803 ms] Exception attempting to connect to the VM Service: SocketException: Connection failed, address = 127.0.0.1, port = 53089
    [        ] This was attempt #5. Will retry in 0:00:01.600000.
    [+1603 ms] Exception attempting to connect to the VM Service: SocketException: Connection failed, address = 127.0.0.1, port = 53089
    [        ] This was attempt #6. Will retry in 0:00:01.600000.
    [+1604 ms] Exception attempting to connect to the VM Service: SocketException: Connection failed, address = 127.0.0.1, port = 53089
    [        ] This was attempt #7. Will retry in 0:00:01.600000.
    [+1606 ms] Exception attempting to connect to the VM Service: SocketException: Connection failed, address = 127.0.0.1, port = 53089
    [        ] This was attempt #8. Will retry in 0:00:01.600000.
    [+1604 ms] Exception attempting to connect to the VM Service: SocketException: Connection failed, address = 127.0.0.1, port = 53089
    [   +1 ms] This was attempt #9. Will retry in 0:00:01.600000.
    [+1608 ms] Connecting to the VM Service is taking longer than expected...
  2. TahaTesser commented on Apr 12, 2021

    @TahaTesser
    Contributor

    Hi @evil123
    Can you please try this possible soution

  3. added
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on Apr 12, 2021
  4. evil123 commented on Apr 12, 2021

    @evil123
    Author

    Hi @evil123
    Can you please try this possible soution

    I tried but still can't work

  5. removed
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on Apr 12, 2021
  6. evil123 commented on Apr 12, 2021

    @evil123
    Author

    I tried but still can't work
    QQ20210413-004409@2x

  7. evil123 commented on Apr 12, 2021

    @evil123
    Author

    I closed the AdGuard software and solved the problem,thank you author.

  8. TahaTesser commented on Apr 13, 2021

    @TahaTesser
    Contributor

    Hi @evil123
    Glad you resolved the issue, given your last message I feel safe to close this issue if you disagree please write in the comments and I will reopen it.
    Thank you

  9. added
    r: solvedIssue is closed as solved
    and removed
    in triagePresently being triaged by the triage team
    on Apr 13, 2021
  10. Kimsoyens87 commented on Jun 4, 2021

    @Kimsoyens87

    similar problem here. how can i fix this on android?

  11. rulila52 commented on Jun 7, 2021

    @rulila52

    similar problem. working from windows, not mac os

  12. github-actions commented on Jul 31, 2021

    @github-actions

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

  13. locked as resolved and limited conversation to collaborators on Jul 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    r: solvedIssue is closed as solved

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions