Repository navigation
Closed
Labels
P1High-priority issues at the top of the work listHigh-priority issues at the top of the work lista: tests"flutter test", flutter_test, or one of our tests"flutter test", flutter_test, or one of our testsc: flakeTests that sometimes, but not always, incorrectly passTests that sometimes, but not always, incorrectly passplatform-macosBuilding on or for macOS specificallyBuilding on or for macOS specificallyteam-webOwned by Web platform teamOwned by Web platform teamtoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.triaged-webTriaged by Web platform teamTriaged by Web platform team
Description
The hot_restart_web_ddc_library_bundle_test.dart test is failing intermittently on the web_tool_tests shard due to a port collision. Discovered when upgrading to Xcode 26
It seems like the test runner is failing to create a server socket because the requested port is already in use by another process.
03:00 +5 -1: /Volumes/Work/.../web.shard/hot_restart_web_ddc_library_bundle_test.dart: Hot restart (index.html: flutter.js (load)), DDC library bundle format: true: hot restart works without error and newly added code executes [E]
Exception: Received app.stop event while waiting for app.started event
[ +524 ms] SocketException: Failed to create server socket (OS Error: Address already in use, errno = 48), address = ::, port = 49159
#0 _NativeSocket.bind (dart:io-patch/socket_patch.dart:1216:7)
<asynchronous suspension>
#1 _RawServerSocket.bind.<anonymous closure> (dart:io-patch/socket_patch.dart:2163:12)
...
Failed to establish connection with the application instance in Chrome.
This can happen if the websocket connection used by the web tooling is unable to correctly establish a connection, for example due to a firewall.
Build: https://ci.chromium.org/ui/p/flutter/builders/try/Mac%20web_tool_tests/68517/overview
log: https://logs.chromium.org/logs/flutter/buildbucket/cr-buildbucket/8683790484627116449/+/u/run_test.dart_for_web_tool_tests_shard_and_subshard_1_1/stdout?format=raw
Metadata
Metadata
Assignees
Labels
P1High-priority issues at the top of the work listHigh-priority issues at the top of the work lista: tests"flutter test", flutter_test, or one of our tests"flutter test", flutter_test, or one of our testsc: flakeTests that sometimes, but not always, incorrectly passTests that sometimes, but not always, incorrectly passplatform-macosBuilding on or for macOS specificallyBuilding on or for macOS specificallyteam-webOwned by Web platform teamOwned by Web platform teamtoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.triaged-webTriaged by Web platform teamTriaged by Web platform team
Activity
mdebbar commentedon Aug 19, 2026
This was a one-off error. I don't see it in the last 200 runs of
Mac web_tool_tests.github-actions commentedon Sep 2, 2026
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.