Skip to content

[tool_crash] FileSystemException: Directory watcher closed unexpectedly, null #173834

@Crucialjun

Description

@Crucialjun

Command

flutter widget-preview start

Steps to Reproduce

  1. ...
  2. ...
  3. ...

Logs

FileSystemException: Directory watcher closed unexpectedly, null

#0      _FileSystemWatcher._listenOnSocket.<anonymous closure> (dart:io-patch/file_patch.dart:408:11)
#1      _ExpandStream._handleData (dart:async/stream_pipe.dart:266:30)
#2      _ForwardingStreamSubscription._handleData (dart:async/stream_pipe.dart:184:13)
#3      _rootRunUnary (dart:async/zone.dart:1546:13)
#4      _CustomZone.runUnary (dart:async/zone.dart:1429:19)
#5      _CustomZone.runUnaryGuarded (dart:async/zone.dart:1329:7)
#6      _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:381:11)
#7      _BufferingStreamSubscription._add (dart:async/stream_impl.dart:312:7)
#8      _SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:798:19)
#9      _StreamController._add (dart:async/stream_controller.dart:663:7)
#10     _StreamController.add (dart:async/stream_controller.dart:618:5)
#11     new _RawSocket.<anonymous closure> (dart:io-patch/socket_patch.dart:2338:33)
#12     _NativeSocket.issueReadEvent.issue (dart:io-patch/socket_patch.dart:1648:18)
#13     _microtaskLoop (dart:async/schedule_microtask.dart:40:35)
#14     _startMicrotaskLoop (dart:async/schedule_microtask.dart:49:5)
#15     _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:127:13)
#16     _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:194:5)
�[32m[✓]�[39m Flutter (Channel stable, 3.35.0, on Microsoft Windows [Version 10.0.26100.4656], locale en-US) [507ms]
    �[32m•�[39m Flutter version 3.35.0 on channel stable at C:\flutter
    �[32m•�[39m Upstream repository https://github.com/flutter/flutter.git
    �[32m•�[39m Framework revision b896255557 (14 hours ago), 2025-08-13 17:14:08 -0700
    �[32m•�[39m Engine revision 1e9a811bf8
    �[32m•�[39m Dart version 3.9.0
    �[32m•�[39m DevTools version 2.48.0
    �[32m•�[39m Feature flags: enable-web, enable-linux-desktop, enable-macos-desktop, enable-windows-desktop, enable-android, enable-ios, cli-animations, enable-lldb-debugging

�[32m[✓]�[39m Windows Version (Windows 11 or higher, 24H2, 2009) [3.7s]

�[33m[!]�[39m Android toolchain - develop for Android devices (Android SDK version 36.0.0) [3.8s]
    �[32m•�[39m Android SDK at C:\Users\Nicholas\AppData\Local\Android\sdk
    �[32m•�[39m Emulator version 36.1.9.0 (build_id 13823996) (CL:N/A)
    �[32m•�[39m Platform android-36, build-tools 36.0.0
    �[32m•�[39m Java binary at: C:\Program Files\Android\Android Studio\jbr\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"`.
    �[32m•�[39m Java version OpenJDK Runtime Environment (build 21.0.6+-13391695-b895.109)
    �[33m!�[39m Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses

�[32m[✓]�[39m Chrome - develop for the web [293ms]
    �[32m•�[39m Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

�[33m[!]�[39m Visual Studio - develop Windows apps (Visual Studio Community 2022 17.14.11) [292ms]
    �[32m•�[39m Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
    �[32m•�[39m Visual Studio Community 2022 version 17.14.36401.2
    �[31m✗�[39m Visual Studio is missing necessary components. Please re-run the Visual Studio installer for the "Desktop development with C++" workload, and include these components:
        MSVC v142 - VS 2019 C++ x64/x86 build tools
         - If there are multiple build tool versions available, install the latest
        C++ CMake tools for Windows
        Windows 10 SDK

�[32m[✓]�[39m Android Studio (version 2025.1.2) [6ms]
    �[32m•�[39m Android Studio at C:\Program Files\Android\Android Studio
    �[32m•�[39m Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    �[32m•�[39m Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    �[32m•�[39m Java version OpenJDK Runtime Environment (build 21.0.6+-13391695-b895.109)

�[32m[✓]�[39m VS Code (version 1.103.1) [4ms]
    �[32m•�[39m VS Code at C:\Users\Nicholas\AppData\Local\Programs\Microsoft VS Code
    �[32m•�[39m Flutter extension version 3.117.20250731

�[32m[✓]�[39m VS Code (version 1.104.0-insider) [4ms]
    �[32m•�[39m VS Code at C:\Users\Nicholas\AppData\Local\Programs\Microsoft VS Code Insiders
    �[32m•�[39m Flutter extension version 3.117.20250731

�[32m[✓]�[39m Connected device (3 available) [165ms]
    �[32m•�[39m Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.26100.4656]
    �[32m•�[39m Chrome (web)      • chrome  • web-javascript • Google Chrome 138.0.7204.184
    �[32m•�[39m Edge (web)        • edge    • web-javascript • Microsoft Edge 139.0.3405.86

�[32m[✓]�[39m Network resources [1,010ms]
    �[32m•�[39m All expected network resources are available.

�[33m!�[39m Doctor found issues in 2 categories.

Flutter Application Metadata

Type: malformed
Version: 0.0.1
Material: true
Android X: false
Module: false
Plugin: false
Android package: null
iOS bundle identifier: null
Creation channel: null
Creation framework version: null

Metadata

Metadata

Assignees

No one assigned

    Labels

    r: duplicateIssue is closed as a duplicate of an existing issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions