-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot start vm_service for a flutter test. #53262
Comments
/cc @bkonyi @derekxu16 |
So I've done some digging, and I think this might be a tricky one to resolve. First off, I've always assumed that invoking Another important point to remember is that the creation of isolates is not controlled completely by the Dart VM, as the embedder is responsible for initializing much of an isolate's state. The service isolate is no exception, and the embedder has a say in how and if the service isolate is initialized. In the standalone embedder (i.e., On the other hand, the Flutter engine takes a different approach. Instead of always initializing the service isolate and leaving the HTTP server disabled by default, if Unfortunately, I don't think resolving this issue will be as simple as always starting the service isolate in the Flutter engine as that will lead to performance regressions in benchmarks that don't explicitly pass We could potentially change |
I'm going to close this issue and move discussion over to flutter/flutter#132865 as this is not a Dart SDK issue. |
Steps:
test
with the code belowCopy the test to a dart project and see the test succeed.
The test code:
The text was updated successfully, but these errors were encountered: