-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
Closed
Copy link
Labels
toolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.
Description
Steps to Reproduce
I've set up ADB port-forwarding and tried to run a Flutter app this way, building it on a workstation and forwarding ADB to a Pixel plugged into a laptop.
Other ADB commands work correctly (I can run adb devices on the workstation and detect the Pixel as connected).
The app starts, and locally to the laptop, I can run flutter logs to see the actual logs.
The app starts, but the run command fails after this, which means that hot reload will not work in this setup.
Logs
Launching lib/main.dart on Pixel in debug mode...
Installing leafy.apk... 4.7s
Unhandled exception:
Exception: Error connecting to observatory: WebSocketChannelException: WebSocketChannelException: SocketException: OS Error: Connection refused, errno = 111, address = 127.0.0.1, port = 50096
#0 throwToolExit (package:flutter_tools/src/base/common.dart:29)
#1 VM.invokeRpcRaw (package:flutter_tools/src/vmservice.dart:733)
<asynchronous suspension>
#2 VM._fetchDirect (package:flutter_tools/src/vmservice.dart:563)
<asynchronous suspension>
#3 ServiceObject.reload (package:flutter_tools/src/vmservice.dart:411)
<asynchronous suspension>
#4 VMService.getVM (package:flutter_tools/src/vmservice.dart:239)
#5 FlutterDevice.getVMs (package:flutter_tools/src/resident_runner.dart:97)
<asynchronous suspension>
#6 ResidentRunner.connectToServiceProtocol (package:flutter_tools/src/resident_runner.dart:559)
<asynchronous suspension>
#7 ColdRunner.run (package:flutter_tools/src/run_cold.dart:63)
<asynchronous suspension>
#8 RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:339)
<asynchronous suspension>
#9 FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:220)
<asynchronous suspension>
#10 RunCommand.verifyThenRunCommand (package:flutter_tools/src/commands/run.dart:227)
<asynchronous suspension>
#11 FlutterCommand.run (package:flutter_tools/src/runner/flutter_command.dart:162)
<asynchronous suspension>
#12 CommandRunner.runCommand (package:args/command_runner.dart:194)
<asynchronous suspension>
#13 FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:277)
<asynchronous suspension>
#14 CommandRunner.run.<anonymous closure> (package:args/command_runner.dart:109)
#15 new Future.sync (dart:async/future.dart:222)
#16 CommandRunner.run (package:args/command_runner.dart:109)
#17 FlutterCommandRunner.run (package:flutter_tools/src/runner/flutter_command_runner.dart:161)
#18 run.<anonymous closure> (package:flutter_tools/executable.dart:142)
<asynchronous suspension>
#19 AppContext._run (package:flutter_tools/src/base/context.dart:76)
<asynchronous suspension>
#20 AppContext.runInZone.<anonymous closure> (package:flutter_tools/src/base/context.dart:66)
#21 _rootRun (dart:async/zone.dart:1120)
#22 _CustomZone.run (dart:async/zone.dart:1001)
#23 runZoned (dart:async/zone.dart:1467)
#24 AppContext.runInZone (package:flutter_tools/src/base/context.dart:65)
#25 run (package:flutter_tools/executable.dart:114)
<asynchronous suspension>
#26 main (package:flutter_tools/executable.dart:67)
<asynchronous suspension>
#27 main.<anonymous closure> (file:///build/work/7803d26f580997e096b222ffceb40a3e/google3/blaze-out/host/bin/mobile/flutter/tools/snapshot.build/mobile/flutter/tools/flutter_tools.dart:21)
#28 AppContext._run (package:flutter_tools/src/base/context.dart:76)
<asynchronous suspension>
#29 AppContext.runInZone.<anonymous closure> (package:flutter_tools/src/base/context.dart:66)
#30 _rootRun (dart:async/zone.dart:1120)
#31 _CustomZone.run (dart:async/zone.dart:1001)
#32 runZoned (dart:async/zone.dart:1467)
#33 AppContext.runInZone (package:flutter_tools/src/base/context.dart:65)
#34 main (file:///build/work/7803d26f580997e096b222ffceb40a3e/google3/blaze-out/host/bin/mobile/flutter/tools/snapshot.build/mobile/flutter/tools/flutter_tools.dart:20)
<asynchronous suspension>
#35 _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:263)
#36 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:151)Flutter Doctor
g3 tooling
For more information about diagnosing and reporting Flutter bugs, please see https://flutter.io/bug-reports/.
Metadata
Metadata
Assignees
Labels
toolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.