sdk
sdk copied to clipboard
Crash in VMServiceEmbedderHooks.createTempDir on MacOS
dart version: 3.10.* 3.11.0-93.1.beta
flutter version: 3.38.0-0.2.pre 3.39.0-0.1.pre
on macOS 13.7.8, the latest version of intel x86 CPU of macOS.
After a cold reboot, first time of running flutter run -d macos or flutter attach works fine.
But second time fails, and the third also
Again, reboot machine, it works only once.
This issue also reported in flutter: https://github.com/flutter/flutter/issues/173450 https://github.com/flutter/flutter/issues/149258 https://github.com/flutter/devtools/issues/9539 The flutter team labels it P2.
Maybe Dart team could have higher priority?
the crash stack:
_createDevFS: (-32603) Internal error
_createDevFS: Unexpected exception:PathAccessException: Creation of temporary directory failed, path = '/tmp' (OS Error: Operation not permitted, errno = 1)
#0 _checkForErrorResponse (dart:io/common.dart:58:9)
#1 _Directory.createTemp.<anonymous closure> (dart:io/directory_impl.dart:167:7)
<asynchronous suspension>
#2 createTempDirCallback (dart:vmservice_io:118:16)
<asynchronous suspension>
#3 DevFS._createDevFS (dart:_vmservice/devfs.dart:197:21)
<asynchronous suspension>
#4 VMService._routeRequestImpl (dart:_vmservice:759:16)
<asynchronous suspension>
#5 VMService.routeRequest (dart:_vmservice:726:22)
<asynchronous suspension>
#6 WebSocketClient.post (dart:vmservice_io/vmservice_server.dart:64:3)
<asynchronous suspension>
Exited
Thanks