Skip to content

when starting dds: Bad state: Failed to start Dart Development ServiceΒ #57073

@andrewkolos

Description

@andrewkolos

On the 3.27 beta of Flutter, we are seeing this crash affecting many clients: flutter/flutter#158537. That thread documents the error messages we see coming from the tool. For quick reference, the one we see the most is

StateError: Bad state: Failed to start Dart Development Service
at DartDevelopmentService.startDartDevelopmentService(dds.dart:114)
at <asynchronous gap>(async)
at FlutterDevice.connect.<anonymous closure>(resident_runner.dart:295)
at <asynchronous gap>(async)

Expected behavior: the error message explains why dds failed to start

Here is the call site where the flutter tool enters package:dds: https://github.com/flutter/flutter/blob/04d3d1a4c3f005beb8cf37fb4f66ad6b7b8d666f/packages/flutter_tools/lib/src/resident_runner.dart#L291-L313.

cc @bkonyi

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-pkgUsed for miscellaneous pkg/ packages not associated with specific area- teams.pkg-ddsFor issues related to the Dart Development Servicetype-bugIncorrect behavior (everything from a crash to more subtle misbehavior)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions