Skip to content

Flutter test stucks at "event":"test.startedProcess" when running it from Run button #8233

Open
@huycozy

Description

@huycozy

I encounter this on Android Studio IDE while it works well on VS Code IDE.

Steps to reproduce

  1. Click on Run button on the left of the test
  2. Observe the run output and see it's stuck as the output log follows:
[{"event":"test.startedProcess","params":{"vmServiceUri":"http://127.0.0.1:62047/VFPfi0PrluM=/"}}]
Demo screenshot/video
Screen.Recording.2025-05-29.at.11.20.15.mov

The test only stuck if I ran the test from IDE's UI with Run button, but it's successful when running with CLI in terminal:

flutter git:(master) ✗ fpr test /Users/huym4/Documents/WORKING/SDK/flutter_pr/packages/flutter/test/material/page_transitions_theme_test.dart
00:05 +38: All tests passed! 
flutter doctor -v
[!] Flutter (Channel master, 3.33.0-1.0.pre.211, on macOS 15.5 24F74 darwin-arm64, locale en-US) [10.0s]
    • Flutter version 3.33.0-1.0.pre.211 on channel master at /Users/huym4/Documents/WORKING/SDK/flutter_pr
    ! Warning: `flutter` on your path resolves to /Users/huym4/Documents/WORKING/SDK/flutter/bin/flutter, which is not
      inside your current Flutter SDK checkout at /Users/huym4/Documents/WORKING/SDK/flutter_pr. Consider adding
      /Users/huym4/Documents/WORKING/SDK/flutter_pr/bin to the front of your path.
    ! Warning: `dart` on your path resolves to /Users/huym4/Documents/WORKING/SDK/flutter/bin/dart, which is not inside
      your current Flutter SDK checkout at /Users/huym4/Documents/WORKING/SDK/flutter_pr. Consider adding
      /Users/huym4/Documents/WORKING/SDK/flutter_pr/bin to the front of your path.
    ! Unknown upstream repository.
      Reinstall Flutter by following instructions at https://flutter.dev/setup.
    • Framework revision 1430fc8e8d (4 days ago), 2025-05-24 23:59:26 -0400
    • Engine revision 1430fc8e8d
    • Dart version 3.9.0 (build 3.9.0-169.0.dev)
    • DevTools version 2.46.0
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to
      perform update checks and upgrades.

[✓] Android toolchain - develop for Android devices (Android SDK version 36.0.0) [10.1s]
    • Android SDK at /Users/huym4/Library/Android/sdk
    • Emulator version 35.5.10.0 (build_id 13402964) (CL:N/A)
    • Platform android-36, build-tools 36.0.0
    • ANDROID_HOME = /Users/huym4/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
      This is the JDK bundled with the latest Android Studio installation on this machine.
      To manually set the JDK path, use: `flutter config --jdk-dir="path/to/jdk"`.
    • Java version OpenJDK Runtime Environment (build 21.0.6+-13368085-b895.109)
    • All Android licenses accepted.

[!] Xcode - develop for iOS and macOS (Xcode 16.2) [5.4s]
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 16C5032a
    ✗ CocoaPods not installed.
        CocoaPods is a package manager for iOS or macOS platform code.
        Without CocoaPods, plugins will not work on iOS or macOS.
        For more info, see https://flutter.dev/to/platform-plugins
      For installation instructions, see https://guides.cocoapods.org/using/getting-started.html#installation

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

[✓] Android Studio (version 2024.3) [8ms]
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 21.0.6+-13368085-b895.109)

[✓] VS Code (version 1.100.2) [7ms]
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.110.0

[✓] Connected device (2 available) [5.8s]
    • macOS (desktop) • macos  • darwin-arm64   • macOS 15.5 24F74 darwin-arm64
    • Chrome (web)    • chrome • web-javascript • Google Chrome 136.0.7103.114
    ! Error: Browsing on the local area network for Huy’s iPhone 15 Pro. Ensure the device is unlocked and attached with a
      cable or associated with the same local area network as this Mac.
      The device must be opted into Developer Mode to connect wirelessly. (code -27)

[✓] Network resources [333ms]
    • All expected network resources are available.

! Doctor found issues in 2 categories.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions