-
Notifications
You must be signed in to change notification settings - Fork 327
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
Flutter service extensions disabled after a hot-restart #8490
Comments
This may not be just a testing only issue. I noticed that the Performance Overlay button on the performance page becomes disabled after a hot restart, indicating that we are not getting the service extension event registered event after a hot restart is performed. |
I just saw this too, not while running tests. This seems to be more widespread - we are losing the Flutter service extensions after a hot-restart. |
If I run an app with |
Just to clarify, service extensions registered using |
I haven't been able to reproduce this anymore. I'm lowering this to P2, but if I encounter it again I will investigate more. |
I noticed that if you start a test with a connection to a live app, trigger a hot-restart, and then try to call a service extension from Flutter, the test will fail because the service extension is never re-registered.
I'm pretty sure this is the same underlying cause as #7313, when DWDS was connecting directly to the VM Service URI instead of the DDS URI.
Because DDS intercepts the
streamListen
request and sends back all of the service extensions it is aware of, these service extensions are never sent back to the DevTools test infra VM service connection.Here is the code we will likely need to modify (where we get the VM service URI and connect to it):
devtools/packages/devtools_app/test/test_infra/flutter_test_driver.dart
Lines 327 to 358 in 9bd0125
@bkonyi Do you happen to know how we could get the DDS URI here instead? Thanks!
The text was updated successfully, but these errors were encountered: