-
Notifications
You must be signed in to change notification settings - Fork 340
Description
Describe the bug
When you build any app using Flutter, in my case I created a new app using the empty app template that comes with Flutter/VS Code. So to clarify if you create a new app using VS Code (View/Command Pallete/Empty Application) then select Run the app will build successfully and run on my real Android phone. It could be a few minutes latter that the app exits and displays this error. This happens on two different Android phones and two different USB cables. I'm also getting the error 'Unhandled exception:
FileSystemException: writeFrom failed, path = '' (OS Error: The pipe is being closed. , errno = 232)' which may be caused by the daemon exiting?
To Reproduce
Steps to reproduce the behavior:
- create a new app using VS Code (View/Command Pallete/Empty Application)
- Select Run the app (start debuging) and theapp will build successfully and run on my real Android phone.
- Some time latter (could be a couple ofminutes) I get a popup message saying "The Dart Tooling Daemon connection has terminated."
.
Expected behavior
The app should continue to run in debug mode without any errors and stay connected to device
Please complete the following information:
You can run the Dart: Collect Diagnostic Information command from the VS Code command palette (F1) to easily capture this information or provide it manually.
Dart Code extension: 3.122.0
Flutter extension: 3.122.0 (activated)
App: Visual Studio Code
App Host: desktop
Version: win 1.105.1
Workspace type: Flutter (LSP)
Workspace name: flutter_application_1
Dart (3.9.2): C:\Users\pcira\dev\flutter\bin\cache\dart-sdk
Flutter (3.35.7): C:\Users\pcira\dev\flutter (Pixel 7 Pro (android-arm64/android))
Output from 'dart info'
C:\Users\pcira\dev\flutter\bin\cache\dart-sdk\bin\dart.exe info
If providing this information as part of reporting a bug, please review the information
below to ensure it only contains things you're comfortable posting publicly.
General info
- Dart 3.9.2 (stable) (Wed Aug 27 03:49:40 2025 -0700) on "windows_x64"
- on windows / "Windows 11 Pro" 10.0 (Build 26200)
- locale is en-US
Project info
- sdk constraint: '^3.9.2'
- dependencies: flutter
- dev_dependencies: flutter_lints, flutter_test
Process info
| Memory | CPU | Elapsed time | Command line |
|---|---|---|---|
| 28 MB | -- | dart.exe | |
| 111 MB | -- | dart.exe | |
| 121 MB | -- | dart.exe | |
| 95 MB | -- | dart.exe |
Output from 'flutter doctor'
C:\Users\pcira\dev\flutter\bin\flutter.bat doctor -v
[√] Flutter (Channel stable, 3.35.7, on Microsoft Windows [Version 10.0.26200.7171], locale en-US) [358ms]
• Flutter version 3.35.7 on channel stable at C:\Users\pcira\dev\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision adc9010625 (3 weeks ago), 2025-10-21 14:16:03 -0400
• Engine revision 035316565a
• Dart version 3.9.2
• DevTools version 2.48.0
• Feature flags: enable-web, enable-linux-desktop, enable-macos-desktop, enable-windows-desktop, enable-android, enable-ios, cli-animations, enable-lldb-debugging
[√] Windows Version (11 Pro 64-bit, 25H2, 2009) [1,411ms]
[√] Android toolchain - develop for Android devices (Android SDK version 36.0.0) [3.4s]
• Android SDK at C:\Users\pcira\AppData\Local\Android\sdk
• Emulator version 36.2.12.0 (build_id 14214601) (CL:N/A)
• Platform android-36, build-tools 36.0.0
• Java binary at: C:\Program Files\java\jdk-17.0.12\bin\java
This JDK is specified in your Flutter configuration.
To change the current JDK, run: `flutter config --jdk-dir="path/to/jdk"`.
• Java version Java(TM) SE Runtime Environment (build 17.0.12+8-LTS-286)
• All Android licenses accepted.
[√] Chrome - develop for the web [109ms]
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.14.20) [106ms]
• Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
• Visual Studio Community 2022 version 17.14.36705.20
• Windows 10 SDK version 10.0.26100.0
[√] Android Studio (version 2025.2.1) [9ms]
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 21.0.8+-14196175-b1038.72)
[√] VS Code (version 1.105.1) [6ms]
• VS Code at C:\Users\pcira\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.122.0
[√] Connected device (4 available) [637ms]
• Pixel 7 Pro (mobile) • 2B021FDH300DXJ • android-arm64 • Android 16 (API 36)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.26200.7171]
• Chrome (web) • chrome • web-javascript • Google Chrome 142.0.7444.136
• Edge (web) • edge • web-javascript • Microsoft Edge 142.0.3595.53
[√] Network resources [1,346ms]
• All expected network resources are available.
• No issues found!