Repository navigation
Description
Steps to reproduce
1.open project with vscode
2.'flutter run' with vscode terminal
Expected results
i hope vscdoe running app and Hot refresh
Actual results
app is running ,but vscode terminal report crash
Code sample
Code sample
Details
Logs
Flutter crash report.
Please report a bug at https://github.com/flutter/flutter/issues.
command
flutter run --no-enable-impeller
exception
RPCError: _createDevFS: (-32603) Internal error
_createDevFS: Unexpected exception:PathNotFoundException: Creation of temporary directory failed, path = '~/Library/Developer/CoreSimulator/Devices/9C4C4804-B47D-4414-B71F-032FD83825F3/data/Containers/Data/Application/9A51BEFB-A515-4E88-A179-C0CE82A6D6B7/tmp' (OS Error: No such file or directory, errno = 2)
#0 _checkForErrorResponse (dart:io/common.dart:55:9)
#1 _Directory.createTemp.<anonymous closure> (dart:io/directory_impl.dart:152:7)
<asynchronous suspension>
#2 createTempDirCallback (dart:vmservice_io:190:16)
<asynchronous suspension>
#3 DevFS._createDevFS (dart:_vmservice/devfs.dart:182:21)
<asynchronous suspension>
#4 VMService._routeRequestImpl (dart:_vmservice:811:16)
<asynchronous suspension>
#5 VMService.routeRequest (dart:_vmservice:774:22)
<asynchronous suspension>#0 new _OutstandingRequest (package:vm_service/src/vm_service.dart:1928:45)
#1 VmService._call (package:vm_service/src/vm_service.dart:2493:21)
#2 VmService.callServiceExtension (package:vm_service/src/vm_service.dart:2464:14)
#3 FlutterVmService.createDevFS (package:flutter_tools/src/vmservice.dart:1133:20)
#4 DevFS.create (package:flutter_tools/src/devfs.dart:516:61)
#5 FlutterDevice.setupDevFS (package:flutter_tools/src/resident_runner.dart:393:19)
#6 HotRunner._initDevFS (package:flutter_tools/src/run_hot.dart:449:23)
#7 HotRunner.attach (package:flutter_tools/src/run_hot.dart:266:41)
<asynchronous suspension>
#8 RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:753:27)
<asynchronous suspension>
#9 FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1297:27)
<asynchronous suspension>
#10 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#11 CommandRunner.runCommand (package:args/command_runner.dart:212:13)
<asynchronous suspension>
#12 FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:339:9)
<asynchronous suspension>
#13 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#14 FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:285:5)
<asynchronous suspension>
#15 run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:115:9)
<asynchronous suspension>
#16 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#17 main (package:flutter_tools/executable.dart:90:3)
<asynchronous suspension>flutter doctor
�[32m[✓]�[39m Flutter (Channel stable, 3.13.9, on macOS 14.2 23C64 darwin-arm64, locale zh-Hans-CN)
�[32m•�[39m Flutter version 3.13.9 on channel stable at ~/Documents/sdk/flutter
�[32m•�[39m Upstream repository https://github.com/flutter/flutter.git
�[32m•�[39m Framework revision d211f42860 (7 months ago), 2023-10-25 13:42:25 -0700
�[32m•�[39m Engine revision 0545f8705d
�[32m•�[39m Dart version 3.1.5
�[32m•�[39m DevTools version 2.25.0
�[32m•�[39m Pub download mirror https://pub.flutter-io.cn
�[32m•�[39m Flutter download mirror https://storage.flutter-io.cn
�[32m[✓]�[39m Android toolchain - develop for Android devices (Android SDK version 34.0.0)
�[32m•�[39m Android SDK at ~/Library/Android/sdk
�[32m•�[39m Platform android-34-ext11, build-tools 34.0.0
�[32m•�[39m ANDROID_HOME = ~/Library/Android/sdk
�[32m•�[39m Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
�[32m•�[39m Java version OpenJDK Runtime Environment (build 17.0.10+0-17.0.10b1087.21-11572160)
�[32m•�[39m All Android licenses accepted.
�[32m[✓]�[39m Xcode - develop for iOS and macOS (Xcode 15.3)
�[32m•�[39m Xcode at /Applications/Xcode.app/Contents/Developer
�[32m•�[39m Build 15E204a
�[32m•�[39m CocoaPods version 1.15.0
�[32m[✓]�[39m Chrome - develop for the web
�[32m•�[39m Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
�[32m[✓]�[39m Android Studio (version 2023.3)
�[32m•�[39m Android Studio at /Applications/Android Studio.app/Contents
�[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 17.0.10+0-17.0.10b1087.21-11572160)
�[32m[✓]�[39m VS Code (version 1.89.0)
�[32m•�[39m VS Code at ~/Downloads/Visual Studio Code.app/Contents
�[32m•�[39m Flutter extension version 3.88.0
�[32m[✓]�[39m Connected device (3 available)
�[32m•�[39m iPhone 15 Pro Max (mobile) • 9C4C4804-B47D-4414-B71F-032FD83825F3 • ios • com.apple.CoreSimulator.SimRuntime.iOS-17-4
(simulator)
�[32m•�[39m macOS (desktop) • macos • darwin-arm64 • macOS 14.2 23C64 darwin-arm64
�[32m•�[39m Chrome (web) • chrome • web-javascript • Google Chrome 124.0.6367.156
�[32m[✓]�[39m Network resources
�[32m•�[39m All expected network resources are available.
�[32m•�[39m No issues found!
Flutter Doctor output
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.13.9, on macOS 14.2 23C64 darwin-arm64, locale
zh-Hans-CN)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.3)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2023.3)
[✓] VS Code (version 1.89.0)
[✓] Connected device (3 available)
[✓] Network resources
• No issues found!
Activity
huycozy commentedon May 10, 2024
Hi @KaneForYu
Do you see this issue every time running project or just once? If it's every time, could you check if it occurs on a new Flutter project or only on your project?
KaneForYu commentedon May 11, 2024
hi @huycozy This issue occurred when I upgraded my project from flutter3.0.0 to flutter3.0.03.13.9, but it won't occur when I build a new test project.
huycozy commentedon May 12, 2024
Thanks for checking it on a new project. To confirm the steps, did the crash occur when you triggered
hot reload/hot restartor justrun project? Does the crash disappear or persist on your project?I checked this LOC in vm_service.dart#L1775-L1782:
And also the error code at vm_service.dart#L1938-L1939:
It could be version change issue (
jsonrpc?). So if you see the issue persists on the latest Flutter stable channel 3.19.6, please share the new stack trace.jixiaoyong commentedon May 17, 2024
Hello, I also ran into a similar problem today when I tried
run project.After manually creating the missing directory (
tmp) it runs successfully again.Here are the details:
tmpdirectory is missing. Some information about the directory:drwx------@ 4 username staff 128 May 17 16:17 /Users/username/Library/Containers/io.github.username.appnamePathNotFoundExceptionwas thrown and can run as expected if I manually open ittmp, and tried to run the project again, the project ran successfully and created some directories like this(cloud_clipboard is my app name):tmpdirectory, this exception happens again. After deleting the entire directory/Users/username/Library/Containers/io.github.username.appnameand trying to run the project, it ran successfully.Hope this information can help you in some way.
Here is the full log when I try to run my project:
flutter doctor:
github-actions commentedon Jun 2, 2024
Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now.
If you find this problem please file a new issue with the same description, what happens, logs and the output of 'flutter doctor -v'. All system setups can be slightly different so it's always better to open new issues and reference the related ones.
Thanks for your contribution.
github-actions commentedon Jun 16, 2024
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 -vand a minimal reproduction of the issue.