Skip to content

iOS devicelab tests are flaking after libimobiledevice update: Flutter could not access the local network #185384

@jmagman

Description

@jmagman

The tree became very flaky after I landed #181932.

[2026-04-21 19:08:26.376932] [STDOUT] stdout: [   +2 ms] Application launched on the device. Waiting for Dart VM Service url.
[2026-04-21 19:08:26.377054] [STDOUT] stdout: [        ] Checking for advertised Dart VM Services...
[2026-04-21 19:08:26.378546] [STDOUT] stdout: [   +1 ms] #0      _NativeSocket.send (dart:io-patch/socket_patch.dart:1513:34)
[2026-04-21 19:08:26.378565] [STDOUT] stdout:            #1      _RawDatagramSocket.send (dart:io-patch/socket_patch.dart:3037:15)
[2026-04-21 19:08:26.378595] [STDOUT] stdout:            #2      MDnsClient.lookup (package:multicast_dns/multicast_dns.dart:227:22)
[2026-04-21 19:08:26.378606] [STDOUT] stdout:            #3      MDnsVmServiceDiscovery._doPollingVmService (package:flutter_tools/src/mdns_discovery.dart:308:66)
[2026-04-21 19:08:26.378614] [STDOUT] stdout:            <asynchronous suspension>
[2026-04-21 19:08:26.378644] [STDOUT] stdout:            #4      MDnsVmServiceDiscovery._pollingVmService.<anonymous closure> (package:flutter_tools/src/mdns_discovery.dart:241:62)
[2026-04-21 19:08:26.378656] [STDOUT] stdout:            <asynchronous suspension>
[2026-04-21 19:08:26.378663] [STDOUT] stdout: 
[2026-04-21 19:08:26.378684] [STDOUT] stderr: [        ] Flutter could not access the local network.
[2026-04-21 19:08:26.378708] [STDOUT] stderr: 
[2026-04-21 19:08:26.378731] [STDOUT] stderr:            Please ensure your IDE or terminal app has permission to access devices on the local network. This allows Flutter to connect to the Dart VM.
[2026-04-21 19:08:26.378759] [STDOUT] stderr: 
[2026-04-21 19:08:26.378768] [STDOUT] stderr:            You can grant this permission in System Settings > Privacy & Security > Local Network.
[2026-04-21 19:08:26.378882] [STDOUT] stderr: 
[2026-04-21 19:08:26.378899] [STDOUT] stderr:            SocketException: Send failed (OS Error: No route to host, errno = 65), address = 0.0.0.0, port = 5353
[2026-04-21 19:08:26.378928] [STDOUT] stderr: 
[2026-04-21 19:08:26.379023] [STDOUT] stdout: [        ] mDNS query failed. Checking for an interface with a ipv4 link local address.
[2026-04-21 19:08:26.379355] [STDOUT] stdout: [        ] Found interface "en0":
[2026-04-21 19:08:26.379370] [STDOUT] stdout: [        ] 	Bound address: "100.127.108.109" 
[2026-04-21 19:08:26.379461] [STDOUT] stdout: [        ] Found interface "en7":
[2026-04-21 19:08:26.379513] [STDOUT] stdout: [        ] 	Bound address: "169.254.229.139" link local
[2026-04-21 19:08:26.379567] [STDOUT] stdout: [        ] An interface with an ipv4 link local address was found.

Examples:
https://logs.chromium.org/logs/flutter/buildbucket/cr-buildbucket/8683860726673847345/+/u/run_rrect_blur_perf_ios__timeline_summary/stdout
https://logs.chromium.org/logs/flutter/buildbucket/cr-buildbucket/8683860726673847345/+/u/run_rrect_blur_perf_ios__timeline_summary/stdout

Image

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work lista: tests"flutter test", flutter_test, or one of our testsc: flakeTests that sometimes, but not always, incorrectly passinfra: auto flake botIssues with the bot that files flake issuesplatform-iosiOS applications specificallyteam-iosOwned by iOS platform teamtriaged-iosTriaged by iOS platform team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions