Skip to content

flutter run doesn't unforward ports used for remote debugging. #45948

@blasten

Description

@blasten

Steps to Reproduce

flutter run -v in examples/hello_world

Target Platform: android

Unlike flutter attach, flutter run never calls device.unforward(..) which removes the port binding.

I tested on v1.9.1+hotfix.6 and master.

Logs

[STDERR] [   +6 ms] Error waiting for a debug connection: ProcessException: Process exited abnormally:2019-12-02T14:07:18.406306: 
2019-12-02T14:07:18.406419: [STDERR]            adb: error: cannot bind listener: Too many open files
[STDERR]              Command: /usr/local/share/android-sdk/platform-tools/adb -s ZY22458D8C forward tcp:0 tcp:44386

Full log: https://gist.github.com/blasten/2845cae36c8d238a760a1b91a39ed9ab

cc @zanderso

Metadata

Metadata

Assignees

Labels

a: tests"flutter test", flutter_test, or one of our testsc: flakeTests that sometimes, but not always, incorrectly passtoolAffects the "flutter" command-line tool. See also t: labels.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions