Skip to content

[tool_crash] FileSystemException: Deletion failed, OS Error: The system cannot find the path specified., errno = 3 #106953

Closed as not planned

Description

@michaelpitter

Command

flutter pub get

Steps to Reproduce

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

Logs

FileSystemException: Deletion failed, OS Error: The system cannot find the path specified.
, errno = 3

#0      _Directory._deleteSync (dart:io/directory_impl.dart:201:7)
#1      FileSystemEntity.deleteSync (dart:io/file_system_entity.dart:412:7)
#2      ForwardingFileSystemEntity.deleteSync (package:file/src/forwarding/forwarding_file_system_entity.dart:70:16)
#3      ErrorHandlingDirectory.deleteSync.<anonymous closure> (package:flutter_tools/src/base/error_handling_io.dart:486:22)
#4      _runSync (package:flutter_tools/src/base/error_handling_io.dart:597:14)
#5      ErrorHandlingDirectory.deleteSync (package:flutter_tools/src/base/error_handling_io.dart:485:12)
#6      _createPlatformPluginSymlinks (package:flutter_tools/src/flutter_plugins.dart:1047:22)
#7      createPluginSymlinks (package:flutter_tools/src/flutter_plugins.dart:996:5)
#8      refreshPluginsList (package:flutter_tools/src/flutter_plugins.dart:1087:5)
<asynchronous suspension>
#9      FlutterProject.ensureReadyForPlatformSpecificTooling (package:flutter_tools/src/project.dart:359:5)
<asynchronous suspension>
#10     PackagesGetCommand.runCommand (package:flutter_tools/src/commands/packages.dart:177:5)
<asynchronous suspension>
#11     FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1194:27)
<asynchronous suspension>
#12     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#13     CommandRunner.runCommand (package:args/command_runner.dart:209:13)
<asynchronous suspension>
#14     FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:281:9)
<asynchronous suspension>
#15     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#16     FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:229:5)
[✓] Flutter (Channel master, 3.1.0-0.0.pre.86, on Microsoft Windows [Version 10.0.19043.1165], locale en-US)
    • Flutter version 3.1.0-0.0.pre.86 at C:\scr\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision baf6b61c15 (3 months ago), 2022-04-11 03:54:06 -0400
    • Engine revision a5466fa0d7
    • Dart version 2.18.0 (build 2.18.0-9.0.dev)
    • DevTools version 2.12.2

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at C:\Users\MichaelPitter\AppData\Local\Android\Sdk
    • Platform android-32, build-tools 30.0.3
    • ANDROID_HOME = C:\Users\MichaelPitter\AppData\Local\Android\Sdk
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 11.0.12+7-b1504.28-7817840)
    • All Android licenses accepted.

[✓] Chrome - develop for the web
    • Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

[✓] Visual Studio - develop for Windows (Visual Studio Community 2019 16.11.15)
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
    • Visual Studio Community 2019 version 16.11.32510.428
    • Windows 10 SDK version 10.0.19041.0

[✓] Android Studio (version 2021.2)
    • 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 11.0.12+7-b1504.28-7817840)

[✓] VS Code (version 1.68.1)
    • VS Code at C:\Users\MichaelPitter\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.42.0

[✓] Connected device (4 available)
    • 2201116SG (mobile) • cf685c33c854 • android-arm64  • Android 11 (API 30)
    • Windows (desktop)  • windows      • windows-x64    • Microsoft Windows [Version 10.0.19043.1165]
    • Chrome (web)       • chrome       • web-javascript • Google Chrome 103.0.5060.66
    • Edge (web)         • edge         • web-javascript • Microsoft Edge 103.0.1264.37

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!

Flutter Application Metadata

Type: app
Version: 1.0.0+1
Material: true
Android X: false
Module: false
Plugin: false
Android package: null
iOS bundle identifier: null
Creation channel: dev
Creation framework version: 25caf14

Plugins

flutter_barcode_scanner-2.0.0
flutter_config-2.0.0
flutter_plugin_android_lifecycle-2.0.6
google_maps_flutter-2.1.7
location-4.4.0
location_web-3.1.1
path_provider_linux-2.1.6
path_provider_windows-2.0.6
shared_preferences-2.0.15
shared_preferences_android-2.0.12
shared_preferences_ios-2.1.1
shared_preferences_linux-2.1.1
shared_preferences_macos-2.0.4
shared_preferences_web-2.0.4
shared_preferences_windows-2.1.1
url_launcher-6.1.3
url_launcher_android-6.0.17
url_launcher_ios-6.0.17
url_launcher_linux-3.0.1
url_launcher_macos-3.0.1
url_launcher_web-2.0.11
url_launcher_windows-3.0.1
webview_flutter-3.0.4
webview_flutter_android-2.8.11
webview_flutter_wkwebview-2.7.5

Activity

  1. added
    in triage
    on Jul 1, 2022
  2. darshankawar commented on Jul 1, 2022

    @darshankawar
    Member

    I don't see a similar issue present already, so labeling for further investigation from team.

    /cc @christopherfujino

  3. added
    c: crash
    tool
    and removed
    in triage
    on Jul 1, 2022
  4. SteplerPaulo commented on Sep 26, 2022

    @SteplerPaulo

    For Window user run

    flutter clean

    Delete android/app/build

    dart pub get
    flutter pub get

    and then try adding args into .vscode/launch.json file

    {
    "version": "0.2.0",
    "configurations": [
    {
    "name": "Dart",
    "type": "dart",
    "request": "launch",
    "program": "lib/main.dart",
    "args": [
    "--flavor",
    "dev" //development or staging or production
    ]
    }
    ]
    }

  5. added
    P2
    on Sep 26, 2022
  6. added
    team-tool
    triaged-tool
    on Jul 8, 2023
  7. nirgranth commented on Dec 20, 2023

    @nirgranth

    flutter pub cache clean
    same result

  8. added
    r: solved
    on Jan 2, 2024
  9. github-actions commented on Jan 16, 2024

    @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.

  10. locked as resolved and limited conversation to collaborators on Jan 16, 2024
  11. unlocked this conversation on Apr 22, 2024
  12. darshankawar commented on Apr 22, 2024

    @darshankawar
    Member

    Reopening this, as this wasn't solved and we are getting similar tool crash on 3.19.x version.
    See : #147149

  13. removed
    r: solved
    on Apr 22, 2024
  14. christopherfujino commented on Apr 22, 2024

    @christopherfujino
    Contributor

    Here's a recent stacktrace, originally from #147149

    Command

    flutter --no-color pub get
    

    Logs

    FileSystemException: Deletion failed, OS Error: The system cannot find the path specified.
    , errno = 3

    #0      _Directory._deleteSync (dart:io/directory_impl.dart:188:7)
    #1      FileSystemEntity.deleteSync (dart:io/file_system_entity.dart:407:7)
    #2      ForwardingFileSystemEntity.deleteSync (package:file/src/forwarding/forwarding_file_system_entity.dart:70:16)
    #3      ErrorHandlingDirectory.deleteSync.<anonymous closure> (package:flutter_tools/src/base/error_handling_io.dart:479:22)
    #4      _runSync (package:flutter_tools/src/base/error_handling_io.dart:587:14)
    #5      ErrorHandlingDirectory.deleteSync (package:flutter_tools/src/base/error_handling_io.dart:478:12)
    #6      _createPlatformPluginSymlinks (package:flutter_tools/src/flutter_plugins.dart:1076:22)
    #7      createPluginSymlinks (package:flutter_tools/src/flutter_plugins.dart:1012:5)
    #8      refreshPluginsList (package:flutter_tools/src/flutter_plugins.dart:1122:5)
    <asynchronous suspension>
    #9      FlutterProject.ensureReadyForPlatformSpecificTooling (package:flutter_tools/src/project.dart:369:5)
    <asynchronous suspension>
    #10     PackagesGetCommand.runCommand (package:flutter_tools/src/commands/packages.dart:382:7)
    <asynchronous suspension>
    #11     FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1389:27)
    <asynchronous suspension>
    #12     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:19)
    <asynchronous suspension>
    #13     CommandRunner.runCommand (package:args/command_runner.dart:212:13)
    <asynchronous suspension>
    #14     FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:355:9)
    <asynchronous suspension>
    #15     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:19)
    <asynchronous suspension>
    #16     FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:295:5)
    
    [!] Flutter (Channel stable, 3.19.4, on Microsoft Windows [Version 10.0.22631.3447], locale en-TZ)
        • Flutter version 3.19.4 on channel stable at C:\src\flutter
        ! Warning: `dart` on your path resolves to C:\tools\dart-sdk\bin\dart.exe, which is not inside your current Flutter SDK checkout at C:\src\flutter. Consider adding C:\src\flutter\bin to the front of your path.
        • Upstream repository https://github.com/flutter/flutter.git
        • Framework revision 68bfaea224 (5 weeks ago), 2024-03-20 15:36:31 -0700
        • Engine revision a5c24f538d
        • Dart version 3.3.2
        • DevTools version 2.31.1
        • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.
    
    [✓] Windows Version (Installed version of Windows is version 10 or higher)
    
    [✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
        • Android SDK at C:\Users\Japhr\AppData\Local\Android\sdk
        • Platform android-34, build-tools 34.0.0
        • Java binary at: C:\Program Files\Android\Android Studio\jbr\bin\java
        • Java version OpenJDK Runtime Environment (build 17.0.9+0--11185874)
        • All Android licenses accepted.
    
    [✓] Chrome - develop for the web
        • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
    
    [!] Visual Studio - develop Windows apps (Visual Studio Build Tools 2019 16.11.34)
        • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools
        • Visual Studio Build Tools 2019 version 16.11.34601.136
        ✗ The current Visual Studio installation is incomplete.
          Please use Visual Studio Installer to complete the installation or reinstall Visual Studio.
    
    [✓] Android Studio (version 2023.2)
        • 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 17.0.9+0--11185874)
    
    [✓] VS Code (version 1.88.1)
        • VS Code at C:\Users\Japhr\AppData\Local\Programs\Microsoft VS Code
        • Flutter extension can be installed from:
          🔨 https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
    
    [✓] Connected device (3 available)
        • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.22631.3447]
        • Chrome (web)      • chrome  • web-javascript • Google Chrome 124.0.6367.60
        • Edge (web)        • edge    • web-javascript • Microsoft Edge 123.0.2420.97
    
    [✓] Network resources
        • All expected network resources are available.
    
    ! Doctor found issues in 2 categories.
    
    

    Flutter Application Metadata

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

    Plugins

    file_selector_linux-0.9.2+1
    file_selector_macos-0.9.3+3
    file_selector_windows-0.9.3+1
    firebase_core-2.30.0
    firebase_core_web-2.15.0
    firebase_messaging-14.8.2
    firebase_messaging_web-3.8.2
    flutter_local_notifications-9.9.1
    flutter_plugin_android_lifecycle-2.0.19
    fluttertoast-8.2.5
    google_maps_flutter-2.6.1
    google_maps_flutter_android-2.7.0
    google_maps_flutter_ios-2.6.0
    google_maps_flutter_web-0.5.6+2
    image_gallery_saver-1.7.1
    image_picker-0.8.9
    image_picker_android-0.8.10
    image_picker_for_web-2.2.0
    image_picker_ios-0.8.10
    image_picker_linux-0.2.1+1
    image_picker_macos-0.2.1+1
    image_picker_windows-0.2.1+1
    open_file-3.3.2
    path_provider-2.1.3
    path_provider_android-2.2.4
    path_provider_foundation-2.3.2
    path_provider_linux-2.2.1
    path_provider_windows-2.2.1
    permission_handler-11.3.1
    permission_handler_android-12.0.5
    permission_handler_apple-9.4.4
    permission_handler_html-0.1.1
    permission_handler_windows-0.2.1
    printing-5.12.0
    sqflite-2.3.3
    webview_flutter-4.7.0
    webview_flutter_android-3.16.0
    webview_flutter_wkwebview-3.13.0

  15. added
    r: invalid
    on Jul 14, 2025
  16. github-actions commented on Jul 28, 2025

    @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.

  17. locked as resolved and limited conversation to collaborators on Jul 28, 2025
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

    P2c: crashr: invalidteam-tooltooltriaged-tool

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions