Skip to content

Devtools not usable when attached to application running in custom embedder #9519

@planetmarshall

Description

@planetmarshall

Summary

When devtools is attached to a Flutter application running in a custom embedder, limited functionality is available.

Steps to reproduce

  1. Launch the demo GLFW embedder. In the console, the VM URL will be output, for example The Dart VM service is listening on http://127.0.0.1:38217/ajHHm0ZNdFs=/
  2. Following the documentation in Using-the-Dart-Development-Service-(DDS)-and-Flutter-DevTools-with-a-custom-Flutter-Engine-Embedding, run the dart development service as follows, passing the above URI:
$ dart development-service --serve-devtools --vm-service-uri=http://127.0.0.1:38217/ajHHm0ZNdFs=/
 {"state":"started","ddsUri":"http://127.0.0.1:38961/p_UkyRqO53E=/","devToolsUri":"http://127.0.0.1:38961/p_UkyRqO53E=/devtools/?uri=ws://127.0.0.1:38961/p_UkyRqO53E=/ws","dtd":{"uri":"ws://127.0.0.1:36099/vkodRgwXROU="}}
  1. Open the devToolsUri in a browser

Expected result

Image (Image from same application run in the Linux Desktop embedder)

Devtools launches in a browser and is fully usable

Actual result

Devtools launches but displayed information is incorrect and most functionality is not available.

  • Flutter Inspector and Debugger tabs are not present.

Flutter DevTools tab:

Image
  • Connected app type is incorrect. Reports Flutter native (profile build), is actually a debug build

Performance tab:

Non functional - just a spinning wheel (an error ParallelWaitError: Exception: No Flutter Views to query: {type: FlutterViewList, views: []} appears in the web developer console log`

See also

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