Issue title: flutter run unexpected crash
 Issue body: Flutter crash report; please file at https://github.com/flutter/flutter/issues.

## command

flutter --no-color run --machine --track-widget-creation --device-id=745e7f57 lib\main.dart

## exception

RpcException: JSON-RPC error -32000: There are no running service protocol handlers.

```
package:json_rpc_2/src/client.dart 110:64              Client.sendRequest
package:json_rpc_2/src/peer.dart 79:15                 Peer.sendRequest
package:flutter_tools/src/vmservice.dart 316:13        VMService._sendRequest
package:flutter_tools/src/vmservice.dart 851:60        VM.invokeRpcRaw
===== asynchronous gap ===========================
package:flutter_tools/src/vmservice.dart 872:49        VM.invokeRpc
===== asynchronous gap ===========================
package:flutter_tools/src/vmservice.dart 941:12        VM.runInView
package:flutter_tools/src/vmservice.dart 1455:20       FlutterView.runFromSource
===== asynchronous gap ===========================
package:flutter_tools/src/run_hot.dart 372:24          HotRunner._launchInView
package:flutter_tools/src/run_hot.dart 387:19          HotRunner._launchFromDevFS
===== asynchronous gap ===========================
package:flutter_tools/src/run_hot.dart 458:11          HotRunner._restartFromSources
===== asynchronous gap ===========================
package:flutter_tools/src/run_hot.dart 546:46          HotRunner.restart
===== asynchronous gap ===========================
package:flutter_tools/src/commands/daemon.dart 874:19  AppInstance.restart
package:flutter_tools/src/commands/daemon.dart 544:18  AppDomain.restart.<fn>
package:flutter_tools/src/base/context.dart 153:29     AppContext.run.<fn>
===== asynchronous gap ===========================
dart:async/zone.dart 1124:13                           _rootRun
dart:async/zone.dart 1021:19                           _CustomZone.run
dart:async/zone.dart 1516:10                           _runZoned
dart:async/zone.dart 1463:12                           runZoned
package:flutter_tools/src/base/context.dart 152:18     AppContext.run
===== asynchronous gap ===========================
package:flutter_tools/src/commands/daemon.dart 887:20  AppInstance._runInZone
package:flutter_tools/src/commands/daemon.dart 543:32  AppDomain.restart
===== asynchronous gap ===========================
package:flutter_tools/src/commands/daemon.dart 189:34  Domain.handleCommand.<fn>
dart:async/future.dart 224:31                          new Future.sync
package:flutter_tools/src/commands/daemon.dart 186:77  Domain.handleCommand
package:flutter_tools/src/commands/daemon.dart 145:26  Daemon._handleRequest
dart:async/zone.dart 1132:38                           _rootRunUnary
dart:async/zone.dart 1029:19                           _CustomZone.runUnary
dart:async/zone.dart 931:7                             _CustomZone.runUnaryGuarded
dart:async/stream_impl.dart 336:11                     _BufferingStreamSubscription._sendData
dart:async/stream_impl.dart 263:7                      _BufferingStreamSubscription._add
dart:async/stream_pipe.dart 132:11                     _ForwardingStreamSubscription._add
dart:async/stream_pipe.dart 232:10                     _MapStream._handleData
dart:async/stream_pipe.dart 164:13                     _ForwardingStreamSubscription._handleData
dart:async/zone.dart 1132:38                           _rootRunUnary
dart:async/zone.dart 1029:19                           _CustomZone.runUnary
dart:async/zone.dart 931:7                             _CustomZone.runUnaryGuarded
dart:async/stream_impl.dart 336:11                     _BufferingStreamSubscription._sendData
dart:async/stream_impl.dart 263:7                      _BufferingStreamSubscription._add
dart:async/stream_pipe.dart 132:11                     _ForwardingStreamSubscription._add
dart:async/stream_pipe.dart 207:12                     _WhereStream._handleData
dart:async/stream_pipe.dart 164:13                     _ForwardingStreamSubscription._handleData
dart:async/zone.dart 1132:38                           _rootRunUnary
dart:async/zone.dart 1029:19                           _CustomZone.runUnary
dart:async/zone.dart 931:7                             _CustomZone.runUnaryGuarded
dart:async/stream_impl.dart 336:11                     _BufferingStreamSubscription._sendData
dart:async/stream_impl.dart 263:7                      _BufferingStreamSubscription._add
dart:async/stream_transformers.dart 68:11              _SinkTransformerStreamSubscription._add
dart:async/stream_transformers.dart 15:11              _EventSinkWrapper.add
dart:convert/string_conversion.dart 236:11             _StringAdapterSink.add
dart:convert/line_splitter.dart 150:13                 _LineSplitterSink._addLines
dart:convert/line_splitter.dart 125:5                  _LineSplitterSink.addSlice
dart:convert/string_conversion.dart 163:5              StringConversionSinkMixin.add
dart:async/stream_transformers.dart 120:24             _SinkTransformerStreamSubscription._handleData
dart:async/zone.dart 1132:38                           _rootRunUnary
dart:async/zone.dart 1029:19                           _CustomZone.runUnary
dart:async/zone.dart 931:7                             _CustomZone.runUnaryGuarded
dart:async/stream_impl.dart 336:11                     _BufferingStreamSubscription._sendData
dart:async/stream_impl.dart 263:7                      _BufferingStreamSubscription._add
dart:async/stream_transformers.dart 68:11              _SinkTransformerStreamSubscription._add
dart:async/stream_transformers.dart 15:11              _EventSinkWrapper.add
dart:convert/string_conversion.dart 236:11             _StringAdapterSink.add
dart:convert/string_conversion.dart 241:7              _StringAdapterSink.addSlice
dart:convert/string_conversion.dart 312:20             _Utf8ConversionSink.addSlice
dart:convert/string_conversion.dart 305:5              _Utf8ConversionSink.add
dart:convert/chunked_conversion.dart 72:18             _ConverterStreamEventSink.add
dart:async/stream_transformers.dart 120:24             _SinkTransformerStreamSubscription._handleData
dart:async/zone.dart 1132:38                           _rootRunUnary
dart:async/zone.dart 1029:19                           _CustomZone.runUnary
dart:async/zone.dart 931:7                             _CustomZone.runUnaryGuarded
dart:async/stream_impl.dart 336:11                     _BufferingStreamSubscription._sendData
dart:async/stream_impl.dart 263:7                      _BufferingStreamSubscription._add
dart:async/stream_controller.dart 764:19               _SyncStreamController._sendData
dart:async/stream_controller.dart 640:7                _StreamController._add
dart:async/stream_controller.dart 586:5                _StreamController.add
dart:io-patch/socket_patch.dart 1786:41                _Socket._onData
dart:async/zone.dart 1136:13                           _rootRunUnary
dart:async/zone.dart 1029:19                           _CustomZone.runUnary
dart:async/zone.dart 931:7                             _CustomZone.runUnaryGuarded
dart:async/stream_impl.dart 336:11                     _BufferingStreamSubscription._sendData
dart:async/stream_impl.dart 263:7                      _BufferingStreamSubscription._add
dart:async/stream_controller.dart 764:19               _SyncStreamController._sendData
dart:async/stream_controller.dart 640:7                _StreamController._add
dart:async/stream_controller.dart 586:5                _StreamController.add
dart:io-patch/socket_patch.dart 1335:33                new _RawSocket.<fn>
dart:io-patch/socket_patch.dart 856:14                 _NativeSocket.issueReadEvent.issue
dart:async/schedule_microtask.dart 41:21               _microtaskLoop
dart:async/schedule_microtask.dart 50:5                _startMicrotaskLoop
dart:isolate-patch/isolate_patch.dart 116:13           _runPendingImmediateCallback
dart:isolate-patch/isolate_patch.dart 173:5            _RawReceivePortImpl._handleMessage
```

## flutter doctor

```
[✓] Flutter (Channel stable, v1.7.8+hotfix.4, on Microsoft Windows [Version 10.0.17134.950], locale zh-CN)
    • Flutter version 1.7.8+hotfix.4 at C:\flutter\flutter
    • Framework revision 20e59316b8 (5 weeks ago), 2019-07-18 20:04:33 -0700
    • Engine revision fee001c93f
    • Dart version 2.4.0

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.0)
    • Android SDK at C:\Users\folio\AppData\Local\Android\sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-29, build-tools 29.0.0
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)
    • All Android licenses accepted.

[✓] Android Studio (version 3.4)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin version 38.2.1
    • Dart plugin version 183.6270
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)

[✓] Connected device (1 available)
    • ONEPLUS A5000 • 745e7f57 • android-arm64 • Android 9 (API 28)

• No issues found!
```

 Comments: 
 Comment 0: Closing as a duplicate of #39809. If you believe it's a different issue, feel free to re-open!
 Comment 1: 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 -v` and a minimal reproduction of the issue.
{'source': 'GithubIssues', 'repo_name_with_owner': 'flutter/flutter', 'issue_id': 482941430, 'repo_stars': 152526.0}