Repository: flutter
Issue: Crash when compiling flutter_tools.dart at character offset null: Unsupported operation: Cannot extract a non-Windows file path from a file URI with an authority
Labels: c: crash,tool,dependency: dart,P2,team-tool,triaged-tool

<!-- Thank you for using Flutter!

     If you are looking for support, please check out our documentation
     or consider asking a question on Stack Overflow:
      * https://flutter.dev/
      * https://api.flutter.dev/
      * https://stackoverflow.com/questions/tagged/flutter?sort=frequent

     If you have found a bug or if our documentation doesn't have an answer
     to what you're looking for, then fill out the template below. Please read
     our guide to filing a bug first: https://flutter.dev/docs/resources/bug-reports
-->

## Steps to Reproduce

<!-- Please tell us exactly how to reproduce the problem you are running into. -->

1. I was previously running the flutter version 1.17.5 without problems
2. I Ran the `flutter upgrade` to get the new stable version.
3. And I got the following error log,

## Logs

<!--
      Include the full logs of the commands you are running between the lines
      with the backticks below. If you are running any "flutter" commands,
      please include the output of running them with "--verbose"; for example,
      the output of running "flutter --verbose create foo".
-->

```
    ~/Workspace/FlutterProjects/flutter-sdk/flutter    master                                                16:45:36 
❯ flutter channel master
Building flutter tool...
Crash when compiling file://users/tiagoantunes/Workspace/FlutterProjects/flutter-sdk/flutter/packages/flutter_tools/bin/flutter_tools.dart,
at character offset null:
Unsupported operation: Cannot extract a non-Windows file path from a file URI with an authority
#0      _Uri._toFilePath (dart:core/uri.dart:2725:7)
#1      _Uri.toFilePath (dart:core/uri.dart:2720:65)
#2      _IoFileSystemEntity.exists (package:front_end/src/api_prototype/standard_file_system.dart:55:51)
#3      HybridFileSystemEntity.exists (package:front_end/src/fasta/hybrid_file_system.dart:51:51)
<asynchronous suspension>
#4      ProcessedOptions._readFile (package:front_end/src/base/processed_options.dart:506:47)
#5      ProcessedOptions._createPackagesFromFile (package:front_end/src/base/processed_options.dart:531:32)
#6      ProcessedOptions.createPackagesFromFile (package:front_end/src/base/processed_options.dart:596:17)
#7      ProcessedOptions._getPackages (package:front_end/src/base/processed_options.dart:472:32)
#8      ProcessedOptions.getUriTranslator (package:front_end/src/base/processed_options.dart:426:38)
<asynchronous suspension>
#9      generateKernelInternal.<anonymous closure> (package:front_end/src/kernel_generator_impl.dart:74:49)
#10     withCrashReporting (package:front_end/src/fasta/crash.dart:122:24)
#11     generateKernelInternal (package:front_end/src/kernel_generator_impl.dart:73:10)
#12     generateKernel.<anonymous closure> (package:front_end/src/kernel_generator_impl.dart:53:18)
#13     CompilerContext.runWithOptions.<anonymous closure> (package:front_end/src/fasta/compiler_context.dart:135:20)
<asynchronous suspension>
#14     CompilerContext.runWithOptions.<anonymous closure> (package:front_end/src/fasta/compiler_context.dart)
#15     CompilerContext.runInContext.<anonymous closure>.<anonymous closure> (package:front_end/src/fasta/compiler_context.dart:123:46)
#16     new Future.sync (dart:async/future.dart:223:31)
#17     CompilerContext.runInContext.<anonymous closure> (package:front_end/src/fasta/compiler_context.dart:123:19)
#18     _rootRun (dart:async/zone.dart:1190:13)
#19     _CustomZone.run (dart:async/zone.dart:1093:19)
#20     _runZoned (dart:async/zone.dart:1630:10)
#21     runZoned (dart:async/zone.dart:1550:10)
#22     CompilerContext.runInContext (package:front_end/src/fasta/compiler_context.dart:122:12)
#23     CompilerContext.runWithOptions (package:front_end/src/fasta/compiler_context.dart:133:10)
#24     generateKernel (package:front_end/src/kernel_generator_impl.dart:52:32)
#25     kernelForModule (package:front_end/src/api_prototype/kernel_generator.dart:99:17)
#26     SingleShotCompilerWrapper.compileInternal (file:///b/s/w/ir/cache/builder/src/third_party/dart/pkg/vm/bin/kernel_service.dart:441:17)
#27     Compiler.compile.<anonymous closure> (file:///b/s/w/ir/cache/builder/src/third_party/dart/pkg/vm/bin/kernel_service.dart:208:45)
#28     new Future.<anonymous closure> (dart:async/future.dart:175:37)
#29     _rootRun (dart:async/zone.dart:1182:47)
#30     _CustomZone.run (dart:async/zone.dart:1093:19)
#31     _CustomZone.runGuarded (dart:async/zone.dart:997:7)
#32     _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:1037:23)
#33     _rootRun (dart:async/zone.dart:1190:13)
#34     _CustomZone.run (dart:async/zone.dart:1093:19)
#35     _CustomZone.bindCallback.<anonymous closure> (dart:async/zone.dart:1021:23)
#36     Timer._createTimer.<anonymous closure> (dart:async-patch/timer_patch.dart:18:15)
#37     _Timer._runTimers (dart:isolate-patch/timer_impl.dart:397:19)
#38     _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:428:5)
#39     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:168:12)


#0      _Uri._toFilePath (dart:core/uri.dart:2725:7)
#1      _Uri.toFilePath (dart:core/uri.dart:2720:65)
#2      _IoFileSystemEntity.exists (package:front_end/src/api_prototype/standard_file_system.dart:55:51)
#3      HybridFileSystemEntity.exists (package:front_end/src/fasta/hybrid_file_system.dart:51:51)
<asynchronous suspension>
#4      ProcessedOptions._readFile (package:front_end/src/base/processed_options.dart:506:47)
#5      ProcessedOptions._createPackagesFromFile (package:front_end/src/base/processed_options.dart:531:32)
#6      ProcessedOptions.createPackagesFromFile (package:front_end/src/base/processed_options.dart:596:17)
#7      ProcessedOptions._getPackages (package:front_end/src/base/processed_options.dart:472:32)
#8      ProcessedOptions.getUriTranslator (package:front_end/src/base/processed_options.dart:426:38)
<asynchronous suspension>
#9      generateKernelInternal.<anonymous closure> (package:front_end/src/kernel_generator_impl.dart:74:49)
#10     withCrashReporting (package:front_end/src/fasta/crash.dart:122:24)
#11     generateKernelInternal (package:front_end/src/kernel_generator_impl.dart:73:10)
#12     generateKernel.<anonymous closure> (package:front_end/src/kernel_generator_impl.dart:53:18)
#13     CompilerContext.runWithOptions.<anonymous closure> (package:front_end/src/fasta/compiler_context.dart:135:20)
<asynchronous suspension>
#14     CompilerContext.runWithOptions.<anonymous closure> (package:front_end/src/fasta/compiler_context.dart)
#15     CompilerContext.runInContext.<anonymous closure>.<anonymous closure> (package:front_end/src/fasta/compiler_context.dart:123:46)
#16     new Future.sync (dart:async/future.dart:223:31)
#17     CompilerContext.runInContext.<anonymous closure> (package:front_end/src/fasta/compiler_context.dart:123:19)
#18     _rootRun (dart:async/zone.dart:1190:13)
#19     _CustomZone.run (dart:async/zone.dart:1093:19)
#20     _runZoned (dart:async/zone.dart:1630:10)
#21     runZoned (dart:async/zone.dart:1550:10)
#22     CompilerContext.runInContext (package:front_end/src/fasta/compiler_context.dart:122:12)
#23     CompilerContext.runWithOptions (package:front_end/src/fasta/compiler_context.dart:133:10)
#24     generateKernel (package:front_end/src/kernel_generator_impl.dart:52:32)
#25     kernelForModule (package:front_end/src/api_prototype/kernel_generator.dart:99:17)
#26     SingleShotCompilerWrapper.compileInternal (file:///b/s/w/ir/cache/builder/src/third_party/dart/pkg/vm/bin/kernel_service.dart:441:17)
#27     Compiler.compile.<anonymous closure> (file:///b/s/w/ir/cache/builder/src/third_party/dart/pkg/vm/bin/kernel_service.dart:208:45)
#28     new Future.<anonymous closure> (dart:async/future.dart:175:37)
#29     _rootRun (dart:async/zone.dart:1182:47)
#30     _CustomZone.run (dart:async/zone.dart:1093:19)
#31     _CustomZone.runGuarded (dart:async/zone.dart:997:7)
#32     _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:1037:23)
#33     _rootRun (dart:async/zone.dart:1190:13)
#34     _CustomZone.run (dart:async/zone.dart:1093:19)
#35     _CustomZone.bindCallback.<anonymous closure> (dart:async/zone.dart:1021:23)
#36     Timer._createTimer.<anonymous closure> (dart:async-patch/timer_patch.dart:18:15)
#37     _Timer._runTimers (dart:isolate-patch/timer_impl.dart:397:19)
#38     _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:428:5)
#39     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:168:12)

```

<!-- If possible, paste the output of running `flutter doctor -v` here. -->

```
flutter doctor -v
Building flutter tool...
Crash when compiling file://users/tiagoantunes/Workspace/FlutterProjects/flutter-sdk/flutter/packages/flutter_tools/bin/flutter_tools.dart,
at character offset null:
Unsupported operation: Cannot extract a non-Windows file path from a file URI with an authority
#0      _Uri._toFilePath (dart:core/uri.dart:2725:7)
#1      _Uri.toFilePath (dart:core/uri.dart:2720:65)
#2      _IoFileSystemEntity.exists (package:front_end/src/api_prototype/standard_file_system.dart:55:51)
#3      HybridFileSystemEntity.exists (package:front_end/src/fasta/hybrid_file_system.dart:51:51)
<asynchronous suspension>
#4      ProcessedOptions._readFile (package:front_end/src/base/processed_options.dart:506:47)
#5      ProcessedOptions._createPackagesFromFile (package:front_end/src/base/processed_options.dart:531:32)
#6      ProcessedOptions.createPackagesFromFile (package:front_end/src/base/processed_options.dart:596:17)
#7      ProcessedOptions._getPackages (package:front_end/src/base/processed_options.dart:472:32)
#8      ProcessedOptions.getUriTranslator (package:front_end/src/base/processed_options.dart:426:38)
<asynchronous suspension>
#9      generateKernelInternal.<anonymous closure> (package:front_end/src/kernel_generator_impl.dart:74:49)
#10     withCrashReporting (package:front_end/src/fasta/crash.dart:122:24)
#11     generateKernelInternal (package:front_end/src/kernel_generator_impl.dart:73:10)
#12     generateKernel.<anonymous closure> (package:front_end/src/kernel_generator_impl.dart:53:18)
#13     CompilerContext.runWithOptions.<anonymous closure> (package:front_end/src/fasta/compiler_context.dart:135:20)
<asynchronous suspension>
#14     CompilerContext.runWithOptions.<anonymous closure> (package:front_end/src/fasta/compiler_context.dart)
#15     CompilerContext.runInContext.<anonymous closure>.<anonymous closure> (package:front_end/src/fasta/compiler_context.dart:123:46)
#16     new Future.sync (dart:async/future.dart:223:31)
#17     CompilerContext.runInContext.<anonymous closure> (package:front_end/src/fasta/compiler_context.dart:123:19)
#18     _rootRun (dart:async/zone.dart:1190:13)
#19     _CustomZone.run (dart:async/zone.dart:1093:19)
#20     _runZoned (dart:async/zone.dart:1630:10)
#21     runZoned (dart:async/zone.dart:1550:10)
#22     CompilerContext.runInContext (package:front_end/src/fasta/compiler_context.dart:122:12)
#23     CompilerContext.runWithOptions (package:front_end/src/fasta/compiler_context.dart:133:10)
#24     generateKernel (package:front_end/src/kernel_generator_impl.dart:52:32)
#25     kernelForModule (package:front_end/src/api_prototype/kernel_generator.dart:99:17)
#26     SingleShotCompilerWrapper.compileInternal (file:///b/s/w/ir/cache/builder/src/third_party/dart/pkg/vm/bin/kernel_service.dart:441:17)
#27     Compiler.compile.<anonymous closure> (file:///b/s/w/ir/cache/builder/src/third_party/dart/pkg/vm/bin/kernel_service.dart:208:45)
#28     new Future.<anonymous closure> (dart:async/future.dart:175:37)
#29     _rootRun (dart:async/zone.dart:1182:47)
#30     _CustomZone.run (dart:async/zone.dart:1093:19)
#31     _CustomZone.runGuarded (dart:async/zone.dart:997:7)
#32     _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:1037:23)
#33     _rootRun (dart:async/zone.dart:1190:13)
#34     _CustomZone.run (dart:async/zone.dart:1093:19)
#35     _CustomZone.bindCallback.<anonymous closure> (dart:async/zone.dart:1021:23)
#36     Timer._createTimer.<anonymous closure> (dart:async-patch/timer_patch.dart:18:15)
#37     _Timer._runTimers (dart:isolate-patch/timer_impl.dart:397:19)
#38     _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:428:5)
#39     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:168:12)


#0      _Uri._toFilePath (dart:core/uri.dart:2725:7)
#1      _Uri.toFilePath (dart:core/uri.dart:2720:65)
#2      _IoFileSystemEntity.exists (package:front_end/src/api_prototype/standard_file_system.dart:55:51)
#3      HybridFileSystemEntity.exists (package:front_end/src/fasta/hybrid_file_system.dart:51:51)
<asynchronous suspension>
#4      ProcessedOptions._readFile (package:front_end/src/base/processed_options.dart:506:47)
#5      ProcessedOptions._createPackagesFromFile (package:front_end/src/base/processed_options.dart:531:32)
#6      ProcessedOptions.createPackagesFromFile (package:front_end/src/base/processed_options.dart:596:17)
#7      ProcessedOptions._getPackages (package:front_end/src/base/processed_options.dart:472:32)
#8      ProcessedOptions.getUriTranslator (package:front_end/src/base/processed_options.dart:426:38)
<asynchronous suspension>
#9      generateKernelInternal.<anonymous closure> (package:front_end/src/kernel_generator_impl.dart:74:49)
#10     withCrashReporting (package:front_end/src/fasta/crash.dart:122:24)
#11     generateKernelInternal (package:front_end/src/kernel_generator_impl.dart:73:10)
#12     generateKernel.<anonymous closure> (package:front_end/src/kernel_generator_impl.dart:53:18)
#13     CompilerContext.runWithOptions.<anonymous closure> (package:front_end/src/fasta/compiler_context.dart:135:20)
<asynchronous suspension>
#14     CompilerContext.runWithOptions.<anonymous closure> (package:front_end/src/fasta/compiler_context.dart)
#15     CompilerContext.runInContext.<anonymous closure>.<anonymous closure> (package:front_end/src/fasta/compiler_context.dart:123:46)
#16     new Future.sync (dart:async/future.dart:223:31)
#17     CompilerContext.runInContext.<anonymous closure> (package:front_end/src/fasta/compiler_context.dart:123:19)
#18     _rootRun (dart:async/zone.dart:1190:13)
#19     _CustomZone.run (dart:async/zone.dart:1093:19)
#20     _runZoned (dart:async/zone.dart:1630:10)
#21     runZoned (dart:async/zone.dart:1550:10)
#22     CompilerContext.runInContext (package:front_end/src/fasta/compiler_context.dart:122:12)
#23     CompilerContext.runWithOptions (package:front_end/src/fasta/compiler_context.dart:133:10)
#24     generateKernel (package:front_end/src/kernel_generator_impl.dart:52:32)
#25     kernelForModule (package:front_end/src/api_prototype/kernel_generator.dart:99:17)
#26     SingleShotCompilerWrapper.compileInternal (file:///b/s/w/ir/cache/builder/src/third_party/dart/pkg/vm/bin/kernel_service.dart:441:17)
#27     Compiler.compile.<anonymous closure> (file:///b/s/w/ir/cache/builder/src/third_party/dart/pkg/vm/bin/kernel_service.dart:208:45)
#28     new Future.<anonymous closure> (dart:async/future.dart:175:37)
#29     _rootRun (dart:async/zone.dart:1182:47)
#30     _CustomZone.run (dart:async/zone.dart:1093:19)
#31     _CustomZone.runGuarded (dart:async/zone.dart:997:7)
#32     _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:1037:23)
#33     _rootRun (dart:async/zone.dart:1190:13)
#34     _CustomZone.run (dart:async/zone.dart:1093:19)
#35     _CustomZone.bindCallback.<anonymous closure> (dart:async/zone.dart:1021:23)
#36     Timer._createTimer.<anonymous closure> (dart:async-patch/timer_patch.dart:18:15)
#37     _Timer._runTimers (dart:isolate-patch/timer_impl.dart:397:19)
#38     _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:428:5)
#39     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:168:12)
```