Skip to content

Crash in VMServiceEmbedderHooks.createTempDir on MacOS #62182

@pedia

Description

@pedia

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:
flutter/flutter#173450
flutter/flutter#149258
flutter/devtools#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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions