Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The compiler crashed: NoSuchMethodError: The getter 'boxedVariables' was called on null. #47916

Closed
mono0926 opened this issue Dec 14, 2021 · 21 comments
Assignees
Labels
area-web Use area-web for Dart web related issues, including the DDC and dart2js compilers and JS interop. web-dart2js

Comments

@mono0926
Copy link

mono0926 commented Dec 14, 2021

Run flutter build web --target lib/main.dart on my internal project, and the compiler crashes.
Sorry, I couldn't make a reproducible public code.

Log:

Target dart2js failed: Exception: .dart_tool/flutter_build/6c1142c37fb0b5a7878591c90dbc00fe/app.dill:
Internal Error: The compiler crashed when compiling this element.
The compiler is broken.
The compiler crashed: NoSuchMethodError: The getter 'boxedVariables' was called on null.
Receiver: null
Tried calling: boxedVariables
#0      JsKernelToElementMap.makeRecordContainer (package:compiler/src/js_model/element_map_impl.dart:1769:14)
#1      ClosureDataBuilder.createClosureEntities.<anonymous closure> (package:compiler/src/js_model/closure.dart:328:23)
#2      _LinkedHashMapMixin.forEach (dart:collection-patch/compact_hash.dart:539:8)
#3      ClosureDataBuilder.createClosureEntities (package:compiler/src/js_model/closure.dart:326:19)
#4      JsClosedWorldBuilder.convertClosedWorld (package:compiler/src/js_model/js_world_builder.dart:161:41)
#5      JsBackendStrategy.createJClosedWorld (package:compiler/src/js_model/js_strategy.dart:175:52)
#6      Compiler.closeResolution (package:compiler/src/compiler.dart:573:25)
#7      Compiler.computeClosedWorld (package:compiler/src/compiler.dart:433:9)
#8      Compiler.compileFromKernel.<anonymous closure>.<anonymous closure> (package:compiler/src/compiler.dart:530:17)
#9      CompilerTask.measureSubtask (package:compiler/src/common/tasks.dart:181:35)
#10     Compiler.compileFromKernel.<anonymous closure> (package:compiler/src/compiler.dart:529:44)
#11     CompilerTask.measureSubtask (package:compiler/src/common/tasks.dart:181:35)
#12     Compiler.compileFromKernel (package:compiler/src/compiler.dart:528:14)
#13     Compiler.runInternal (package:compiler/src/compiler.dart:333:15)
<asynchronous suspension>


This tracker is for issues related to:

  • dart2js
  • Dart SDK Version: 2.15.0
  • Flutter Version: 2.8.0
  • macOS 12.1
@lrhn lrhn added area-web Use area-web for Dart web related issues, including the DDC and dart2js compilers and JS interop. web-dart2js labels Dec 14, 2021
@rakudrama
Copy link
Member

It is hard to guess where to start with this because the part that tells us where the error happened is not specific.

Target dart2js failed: Exception: .dart_tool/flutter_build/6c1142c37fb0b5a7878591c90dbc00fe/app.dill:
Internal Error: The compiler crashed when compiling this element.

The first step might be to make this message a little more helpful.

@mono0926
Copy link
Author

mono0926 commented Dec 22, 2021

I re-run the command.

# with `-v` option
flutter build web --target lib/main.dart -v
Log
[   +3 ms] Compiling lib/main.dart for the Web...
[   +5 ms] Initializing file store
[   +1 ms] Done initializing file store
[  +25 ms] Skipping target: web_entrypoint
[   +1 ms] Skipping target: gen_localizations
[        ] Skipping target: web_static_assets
[        ] dart2js: Starting due to {}
[+17650 ms] Persisting file store
[   +2 ms] Done persisting file store
[   +1 ms] Target dart2js failed: Exception: .dart_tool/flutter_build/82c6d2cda0b93f3d25dc7baaf0db73ae/app.dill:
           Internal Error: The compiler crashed when compiling this element.
           The compiler is broken.
           
           When compiling the above element, the compiler crashed. It is not
           possible to tell if this is caused by a problem in your program or
           not. Regardless, the compiler should not crash.
           
           The Dart team would greatly appreciate if you would take a moment to
           report this problem at http://dartbug.com/new.
           
           Please include the following information:
           
           * the name and version of your operating system,
           
           * the Dart SDK build number (2.15.1), and
           
           * the entire message you see here (including the full stack trace
             below as well as the source location above).
           
           The compiler crashed: NoSuchMethodError: The getter 'boxedVariables' was called on null.
           Receiver: null
           Tried calling: boxedVariables
           #0      JsKernelToElementMap.makeRecordContainer (package:compiler/src/js_model/element_map_impl.dart:1769:14)
           #1      ClosureDataBuilder.createClosureEntities.<anonymous closure> (package:compiler/src/js_model/closure.dart:328:23)
           #2      _LinkedHashMapMixin.forEach (dart:collection-patch/compact_hash.dart:539:8)
           #3      ClosureDataBuilder.createClosureEntities (package:compiler/src/js_model/closure.dart:326:19)
           #4      JsClosedWorldBuilder.convertClosedWorld (package:compiler/src/js_model/js_world_builder.dart:161:41)
           #5      JsBackendStrategy.createJClosedWorld (package:compiler/src/js_model/js_strategy.dart:175:52)
           #6      Compiler.closeResolution (package:compiler/src/compiler.dart:573:25)
           #7      Compiler.computeClosedWorld (package:compiler/src/compiler.dart:433:9)
           #8      Compiler.compileFromKernel.<anonymous closure>.<anonymous closure> (package:compiler/src/compiler.dart:530:17)
           #9      CompilerTask.measureSubtask (package:compiler/src/common/tasks.dart:181:35)
           #10     Compiler.compileFromKernel.<anonymous closure> (package:compiler/src/compiler.dart:529:44)
           #11     CompilerTask.measureSubtask (package:compiler/src/common/tasks.dart:181:35)
           #12     Compiler.compileFromKernel (package:compiler/src/compiler.dart:528:14)
           #13     Compiler.runInternal (package:compiler/src/compiler.dart:333:15)
           <asynchronous suspension>
           
           
[  +23 ms] Compiling lib/main.dart for the Web... (completed in 17.7s)
[   +1 ms] "flutter web" took 18,572ms.
[   +3 ms] Exception: Failed to compile application for the Web.
[        ] 
           #0      throwToolExit (package:flutter_tools/src/base/common.dart:10:3)
           #1      buildWeb (package:flutter_tools/src/web/compile.dart:82:5)
           <asynchronous suspension>
           #2      BuildWebCommand.runCommand (package:flutter_tools/src/commands/build_web.dart:117:5)
           <asynchronous suspension>
           #3      FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1140:27)
           <asynchronous suspension>
           #4      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #5      CommandRunner.runCommand (package:args/command_runner.dart:209:13)
           <asynchronous suspension>
           #6      FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:288:9)
           <asynchronous suspension>
           #7      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #8      FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:236:5)
           <asynchronous suspension>
           #9      run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:62:9)
           <asynchronous suspension>
           #10     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #11     main (package:flutter_tools/executable.dart:94:3)
           <asynchronous suspension>
           
           
[ +228 ms] ensureAnalyticsSent: 144ms
[   +1 ms] Running shutdown hooks
[        ] Shutdown hooks complete
[        ] exiting with code 1
  • Dart SDK Version: 2.15.1
  • Flutter Version: 2.8.1

And, also reproduced in 2.9.0-0.1.pre/2.16.0-80.1.beta.

@sigmundch
Copy link
Member

@rakudrama I believe to get additional info we probably need to land some changes in the compiler first.

In particular,

Target dart2js failed: Exception: .dart_tool/flutter_build/6c1142c37fb0b5a7878591c90dbc00fe/app.dill:

Is likely due to how flutter tools are invoking dart2js. It's quite likely that they use the 2 step approach of first compiling to dill and then running the backend. I'm not sure if flutter tools provide a flag to bypass this mode (/cc @yjbanov ). Even if they do, I don't expect it to tell us more (other than report a different URI for the entrypoint of the application). I don't expect more info because the issue is coming up in a phase that is not recording which element was being processed when the error was encountered. We could however change the compiler to do so.

At a glance, it appears there is an invariant broken where we expect every closure model converted to the JS world to have a non-null scopeInfo property, but in this case the scope info is null. Looking at the scope_visitor, the rules that ensure the scopeInfo is assigned are subtle and it's quite likely we are breaking this invariant.

copybara-service bot pushed a commit that referenced this issue Jan 5, 2022
This should help investigation of #47916.

Change-Id: I1db9d97e963593ab7f8778c8470328419633155d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/226220
Reviewed-by: Sigmund Cherem <[email protected]>
Commit-Queue: Stephen Adams <[email protected]>
@rakudrama
Copy link
Member

After the above change, it is likely that the error will show up with a source location.
If the source location looks like foo.dart@12345+1 it means 12345 characters into source file foo.dart.
Hopefully this will allow us identify the file/class/method where the problem occurs.

@mono0926
Copy link
Author

mono0926 commented Jan 6, 2022

@rakudrama

Thanks, I'll try it when the Dart version included in the latest Flutter master version is 2.16.0-154.0.dev or higher.
Current latest is Flutter 2.9.0-1.0.pre.256(Dart 2.16.0-144.0.dev).

@mono0926
Copy link
Author

mono0926 commented Jan 13, 2022

@rakudrama

I've confirmed with Dart 2.16.0-159.0.dev

Log
Compiling lib/main.dart for the Web...                          
Target dart2js failed: Exception: xxx/category.freezed.dart:663:17:
Internal Error: The compiler crashed when compiling this element.
  const factory _Icon([String iconName]) = _$_Icon;
                ^
The compiler is broken.

When compiling the above element, the compiler crashed. It is not
possible to tell if this is caused by a problem in your program or
not. Regardless, the compiler should not crash.

The Dart team would greatly appreciate if you would take a moment to
report this problem at http://dartbug.com/new.

Please include the following information:

* the name and version of your operating system,

* the Dart SDK build number (2.16.0-159.0.dev), and

* the entire message you see here (including the full stack trace
  below as well as the source location above).

The compiler crashed: NoSuchMethodError: The getter 'boxedVariables' was called on null.
Receiver: null
Tried calling: boxedVariables
#0      JsKernelToElementMap.makeRecordContainer (package:compiler/src/js_model/element_map_impl.dart:1769:14)
#1      ClosureDataBuilder.createClosureEntities.processModel (package:compiler/src/js_model/closure.dart:329:23)
#2      ClosureDataBuilder.createClosureEntities.<anonymous closure>.<anonymous closure> (package:compiler/src/js_model/closure.dart:389:9)
#3      CompilerDiagnosticReporter.withCurrentElement (package:compiler/src/compiler.dart:898:15)
#4      ClosureDataBuilder.createClosureEntities.<anonymous closure> (package:compiler/src/js_model/closure.dart:388:17)
#5      _LinkedHashMapMixin.forEach (dart:collection-patch/compact_hash.dart:539:8)
#6      ClosureDataBuilder.createClosureEntities (package:compiler/src/js_model/closure.dart:387:19)
#7      JsClosedWorldBuilder.convertClosedWorld (package:compiler/src/js_model/js_world_builder.dart:161:41)
#8      JsBackendStrategy.createJClosedWorld (package:compiler/src/js_model/js_strategy.dart:175:52)
#9      Compiler.closeResolution (package:compiler/src/compiler.dart:594:25)
#10     Compiler.computeClosedWorld (package:compiler/src/compiler.dart:464:9)
#11     Compiler.compileFromKernel.<anonymous closure>.<anonymous closure> (package:compiler/src/compiler.dart:561:17)
#12     CompilerTask.measureSubtask (package:compiler/src/common/tasks.dart:181:35)
#13     Compiler.compileFromKernel.<anonymous closure> (package:compiler/src/compiler.dart:560:44)
#14     CompilerTask.measureSubtask (package:compiler/src/common/tasks.dart:181:35)
#15     Compiler.compileFromKernel (package:compiler/src/compiler.dart:559:14)
#16     Compiler.runInternal (package:compiler/src/compiler.dart:363:17)
<asynchronous suspension>
#17     main (package:compiler/src/dart2js.dart:1373:3)
<asynchronous suspension>


Compiling lib/main.dart for the Web...                             17.9s
Exception: Failed to compile application for the Web.

It says the error occurs here:

abstract class _Icon implements CategoryIcon {
  const factory _Icon([String iconName]) = _$_Icon; // HERE!

  factory _Icon.fromJson(Map<String, dynamic> json) = _$_Icon.fromJson;

  String get iconName;
  @JsonKey(ignore: true)
  _$IconCopyWith<_Icon> get copyWith => throw _privateConstructorUsedError;
}

That is internal huge Flutter project, so I tried to create reproduciable simple project, but it was succeeded to build 🤔

@DenisovAV
Copy link

I've got the same issue. After changing the type of parameters to named ones and regenerating the freezed files, everything was compiled

@mono0926
Copy link
Author

@DenisovAV

Thanks, that workaround also fixed my issue 👍

I keep this issue open since the problem is still unresolved.

@sigmundch
Copy link
Member

We are still working on trying to reproduce this, but haven't quite managed to.

@DenisovAV - by chance do you have a small example we can use?

@mono0926 - on your example:

  • what version of freezed are you using?
  • I'm guessing _Icon is generated by freezed. What does the original declaration of Icon/CategoryIcon look like? I tried to create a snippet that would generate code such as what you have, but I couldn't quite replicate it.

@sigmundch
Copy link
Member

sigmundch commented Jan 21, 2022

Playing around with the patterns I saw in the generated code I was able to create a standalone repro:

abstract class A {
  const A._();
  const factory A([String field]) = B;
}

abstract class B extends A {
  const B._() : super._();
  const factory B([String field]) = C;

  String get field;
}

class C extends B {
  const C([this.field = '']) : super._();

  final String field;
}

main() {
  A.new;
}

This also crashes with the same error.

/cc @rakudrama

(edit: simplified the names of the classes in the repro)

@rakudrama
Copy link
Member

Nice repro. The debug version of dart2js crashes earlier with an assertion failure.

@duttaoindril
Copy link

duttaoindril commented Feb 11, 2022

Hi, I'm getting this error now, what should I do to fix this?

Verbose Build Logs on Stable Channel
 $ flutter build web --release -t lib/main.dart --web-renderer canvaskit --no-sound-null-safety --verbose
[ +154 ms] executing: sysctl hw.optional.arm64
[  +39 ms] Exit code 0 from: sysctl hw.optional.arm64
[   +3 ms] hw.optional.arm64: 1
[   +7 ms] executing: [/Users/duttaoindril/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[  +39 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] db747aa1331bd95bc9b3874c842261ca2d302cd5
[   +1 ms] executing: [/Users/duttaoindril/flutter/] git tag --points-at db747aa1331bd95bc9b3874c842261ca2d302cd5
[  +65 ms] Exit code 0 from: git tag --points-at db747aa1331bd95bc9b3874c842261ca2d302cd5
[        ] 2.10.1
[  +13 ms] executing: [/Users/duttaoindril/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[  +20 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] origin/stable
[        ] executing: [/Users/duttaoindril/flutter/] git ls-remote --get-url origin
[  +20 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] https://github.com/flutter/flutter.git
[ +156 ms] executing: [/Users/duttaoindril/flutter/] git rev-parse --abbrev-ref HEAD
[  +31 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] stable
[   +9 ms] executing: sw_vers -productName
[  +21 ms] Exit code 0 from: sw_vers -productName
[        ] macOS
[        ] executing: sw_vers -productVersion
[  +20 ms] Exit code 0 from: sw_vers -productVersion
[        ] 12.2
[        ] executing: sw_vers -buildVersion
[  +18 ms] Exit code 0 from: sw_vers -buildVersion
[        ] 21D49
[ +103 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +5 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'WindowsUwpEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +57 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update.
[        ] Artifact Instance of 'GradleWrapper' is not required, skipping update.
[        ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'FlutterSdk' is not required, skipping update.
[        ] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'WindowsUwpEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FontSubsetArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'PubDependencies' is not required, skipping update.
[ +150 ms] Skipping pub get: version match.
[  +68 ms] Found plugin cloud_firestore at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-3.1.6/
[   +8 ms] Found plugin cloud_firestore_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore_web-2.6.6/
[   +3 ms] Found plugin cloud_functions at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_functions-3.2.5/
[   +2 ms] Found plugin cloud_functions_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_functions_web-4.2.6/
[  +10 ms] Found plugin firebase_analytics at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_analytics-9.0.5/
[   +3 ms] Found plugin firebase_analytics_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_analytics_web-0.4.0+5/
[   +1 ms] Found plugin firebase_auth at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth-3.3.5/
[   +3 ms] Found plugin firebase_auth_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_web-3.3.6/
[   +1 ms] Found plugin firebase_core at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core-1.11.0/
[   +2 ms] Found plugin firebase_core_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core_web-1.5.3/
[   +1 ms] Found plugin firebase_messaging at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-11.2.5/
[   +3 ms] Found plugin firebase_messaging_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging_web-2.2.6/
[   +2 ms] Found plugin firebase_performance at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_performance-0.8.0+4/
[   +2 ms] Found plugin firebase_performance_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_performance_web-0.1.0+4/
[   +1 ms] Found plugin firebase_storage at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_storage-10.2.5/
[   +2 ms] Found plugin firebase_storage_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_storage_web-3.2.6/
[   +3 ms] Found plugin flutter_plugin_android_lifecycle at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_plugin_android_lifecycle-2.0.5/
[   +9 ms] Found plugin image_picker at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.8.4+4/
[        ] Found plugin image_picker_for_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker_for_web-2.1.5/
[   +7 ms] Found plugin location at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/location-4.3.0/
[   +2 ms] Found plugin location_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/location_web-3.1.1/
[   +5 ms] Found plugin path_provider at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider-2.0.8/
[   +1 ms] Found plugin path_provider_android at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_android-2.0.11/
[   +1 ms] Found plugin path_provider_ios at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_ios-2.0.7/
[   +1 ms] Found plugin path_provider_linux at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_linux-2.1.5/
[   +1 ms] Found plugin path_provider_macos at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_macos-2.0.5/
[   +1 ms] Found plugin path_provider_windows at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_windows-2.0.5/
[   +9 ms] Found plugin share_plus at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/share_plus-3.0.4/
[   +1 ms] Found plugin share_plus_macos at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/share_plus_macos-2.0.2/
[   +1 ms] Found plugin share_plus_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/share_plus_web-2.0.4/
[   +4 ms] Found plugin sqflite at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-2.0.2/
[   +5 ms] Found plugin url_launcher at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher-6.0.18/
[        ] Found plugin url_launcher_android at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_android-6.0.14/
[        ] Found plugin url_launcher_ios at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_ios-6.0.14/
[        ] Found plugin url_launcher_linux at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_linux-2.0.3/
[        ] Found plugin url_launcher_macos at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_macos-2.0.3/
[   +1 ms] Found plugin url_launcher_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_web-2.0.6/
[        ] Found plugin url_launcher_windows at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_windows-2.0.2/
[   +2 ms] Found plugin video_player at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/video_player-2.2.14/
[   +2 ms] Found plugin video_player_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/video_player_web-2.0.6/
[   +2 ms] Found plugin webview_flutter at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/webview_flutter-2.8.0/
[   +2 ms] Found plugin webview_flutter_android at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/webview_flutter_android-2.8.2/
[   +2 ms] Found plugin webview_flutter_wkwebview at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/webview_flutter_wkwebview-2.7.1/
[  +46 ms] Found plugin cloud_firestore at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-3.1.6/
[   +1 ms] Found plugin cloud_firestore_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore_web-2.6.6/
[   +1 ms] Found plugin cloud_functions at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_functions-3.2.5/
[   +1 ms] Found plugin cloud_functions_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_functions_web-4.2.6/
[   +2 ms] Found plugin firebase_analytics at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_analytics-9.0.5/
[   +1 ms] Found plugin firebase_analytics_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_analytics_web-0.4.0+5/
[        ] Found plugin firebase_auth at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth-3.3.5/
[        ] Found plugin firebase_auth_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_web-3.3.6/
[        ] Found plugin firebase_core at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core-1.11.0/
[        ] Found plugin firebase_core_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core_web-1.5.3/
[        ] Found plugin firebase_messaging at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-11.2.5/
[        ] Found plugin firebase_messaging_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging_web-2.2.6/
[        ] Found plugin firebase_performance at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_performance-0.8.0+4/
[   +1 ms] Found plugin firebase_performance_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_performance_web-0.1.0+4/
[        ] Found plugin firebase_storage at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_storage-10.2.5/
[        ] Found plugin firebase_storage_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_storage_web-3.2.6/
[   +1 ms] Found plugin flutter_plugin_android_lifecycle at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_plugin_android_lifecycle-2.0.5/
[   +3 ms] Found plugin image_picker at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.8.4+4/
[   +1 ms] Found plugin image_picker_for_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker_for_web-2.1.5/
[   +2 ms] Found plugin location at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/location-4.3.0/
[   +1 ms] Found plugin location_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/location_web-3.1.1/
[   +2 ms] Found plugin path_provider at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider-2.0.8/
[        ] Found plugin path_provider_android at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_android-2.0.11/
[        ] Found plugin path_provider_ios at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_ios-2.0.7/
[        ] Found plugin path_provider_linux at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_linux-2.1.5/
[        ] Found plugin path_provider_macos at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_macos-2.0.5/
[        ] Found plugin path_provider_windows at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_windows-2.0.5/
[   +2 ms] Found plugin share_plus at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/share_plus-3.0.4/
[        ] Found plugin share_plus_macos at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/share_plus_macos-2.0.2/
[        ] Found plugin share_plus_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/share_plus_web-2.0.4/
[        ] Found plugin sqflite at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-2.0.2/
[   +3 ms] Found plugin url_launcher at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher-6.0.18/
[        ] Found plugin url_launcher_android at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_android-6.0.14/
[        ] Found plugin url_launcher_ios at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_ios-6.0.14/
[        ] Found plugin url_launcher_linux at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_linux-2.0.3/
[   +1 ms] Found plugin url_launcher_macos at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_macos-2.0.3/
[        ] Found plugin url_launcher_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_web-2.0.6/
[        ] Found plugin url_launcher_windows at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_windows-2.0.2/
[        ] Found plugin video_player at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/video_player-2.2.14/
[   +3 ms] Found plugin video_player_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/video_player_web-2.0.6/
[   +1 ms] Found plugin webview_flutter at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/webview_flutter-2.8.0/
[   +2 ms] Found plugin webview_flutter_android at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/webview_flutter_android-2.8.2/
[        ] Found plugin webview_flutter_wkwebview at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/webview_flutter_wkwebview-2.7.1/
[  +27 ms] Generating /Users/duttaoindril/Documents/GitHub/areahype/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java
[  +70 ms] executing: sysctl hw.optional.arm64
[  +17 ms] Exit code 0 from: sysctl hw.optional.arm64
[        ] hw.optional.arm64: 1
[        ] executing: /usr/bin/arch -arm64e xcrun xcodebuild -version
[ +156 ms] Exit code 0 from: /usr/bin/arch -arm64e xcrun xcodebuild -version
[        ] Xcode 13.2.1
           Build version 13C100
[   +1 ms] objc[83420]: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libamsupport.dylib (0x1edc7f678) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x10828c2c8). One of
the two will be used. Which one is undefined.
           objc[83420]: Class AMSupportURLSession is implemented in both /usr/lib/libamsupport.dylib (0x1edc7f6c8) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x10828c318). One of the two
           will be used. Which one is undefined.
[ +161 ms] Building without sound null safety
[   +1 ms] For more information see https://dart.dev/null-safety/unsound-null-safety
[  +13 ms] Found plugin cloud_firestore at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-3.1.6/
[   +2 ms] Found plugin cloud_firestore_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore_web-2.6.6/
[        ] Found plugin cloud_functions at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_functions-3.2.5/
[        ] Found plugin cloud_functions_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_functions_web-4.2.6/
[   +3 ms] Found plugin firebase_analytics at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_analytics-9.0.5/
[        ] Found plugin firebase_analytics_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_analytics_web-0.4.0+5/
[        ] Found plugin firebase_auth at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth-3.3.5/
[   +1 ms] Found plugin firebase_auth_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_web-3.3.6/
[   +3 ms] Found plugin firebase_core at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core-1.11.0/
[   +2 ms] Found plugin firebase_core_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core_web-1.5.3/
[   +2 ms] Found plugin firebase_messaging at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-11.2.5/
[   +4 ms] Found plugin firebase_messaging_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging_web-2.2.6/
[        ] Found plugin firebase_performance at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_performance-0.8.0+4/
[   +1 ms] Found plugin firebase_performance_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_performance_web-0.1.0+4/
[   +1 ms] Found plugin firebase_storage at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_storage-10.2.5/
[        ] Found plugin firebase_storage_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_storage_web-3.2.6/
[   +1 ms] Found plugin flutter_plugin_android_lifecycle at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_plugin_android_lifecycle-2.0.5/
[   +4 ms] Found plugin image_picker at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.8.4+4/
[        ] Found plugin image_picker_for_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker_for_web-2.1.5/
[   +1 ms] Found plugin location at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/location-4.3.0/
[        ] Found plugin location_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/location_web-3.1.1/
[   +1 ms] Found plugin path_provider at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider-2.0.8/
[        ] Found plugin path_provider_android at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_android-2.0.11/
[        ] Found plugin path_provider_ios at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_ios-2.0.7/
[        ] Found plugin path_provider_linux at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_linux-2.1.5/
[   +4 ms] Found plugin path_provider_macos at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_macos-2.0.5/
[        ] Found plugin path_provider_windows at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_windows-2.0.5/
[  +26 ms] Found plugin share_plus at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/share_plus-3.0.4/
[        ] Found plugin share_plus_macos at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/share_plus_macos-2.0.2/
[        ] Found plugin share_plus_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/share_plus_web-2.0.4/
[   +1 ms] Found plugin sqflite at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-2.0.2/
[   +7 ms] Found plugin url_launcher at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher-6.0.18/
[        ] Found plugin url_launcher_android at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_android-6.0.14/
[        ] Found plugin url_launcher_ios at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_ios-6.0.14/
[        ] Found plugin url_launcher_linux at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_linux-2.0.3/
[        ] Found plugin url_launcher_macos at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_macos-2.0.3/
[        ] Found plugin url_launcher_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_web-2.0.6/
[        ] Found plugin url_launcher_windows at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_windows-2.0.2/
[        ] Found plugin video_player at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/video_player-2.2.14/
[  +10 ms] Found plugin video_player_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/video_player_web-2.0.6/
[   +3 ms] Found plugin webview_flutter at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/webview_flutter-2.8.0/
[        ] Found plugin webview_flutter_android at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/webview_flutter_android-2.8.2/
[        ] Found plugin webview_flutter_wkwebview at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/webview_flutter_wkwebview-2.7.1/
[  +22 ms] Found plugin cloud_firestore at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-3.1.6/
[   +1 ms] Found plugin cloud_firestore_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore_web-2.6.6/
[        ] Found plugin cloud_functions at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_functions-3.2.5/
[        ] Found plugin cloud_functions_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_functions_web-4.2.6/
[   +2 ms] Found plugin firebase_analytics at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_analytics-9.0.5/
[        ] Found plugin firebase_analytics_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_analytics_web-0.4.0+5/
[        ] Found plugin firebase_auth at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth-3.3.5/
[   +7 ms] Found plugin firebase_auth_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_web-3.3.6/
[        ] Found plugin firebase_core at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core-1.11.0/
[        ] Found plugin firebase_core_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core_web-1.5.3/
[        ] Found plugin firebase_messaging at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-11.2.5/
[        ] Found plugin firebase_messaging_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging_web-2.2.6/
[        ] Found plugin firebase_performance at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_performance-0.8.0+4/
[        ] Found plugin firebase_performance_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_performance_web-0.1.0+4/
[        ] Found plugin firebase_storage at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_storage-10.2.5/
[        ] Found plugin firebase_storage_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_storage_web-3.2.6/
[   +2 ms] Found plugin flutter_plugin_android_lifecycle at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_plugin_android_lifecycle-2.0.5/
[   +3 ms] Found plugin image_picker at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.8.4+4/
[        ] Found plugin image_picker_for_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker_for_web-2.1.5/
[   +1 ms] Found plugin location at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/location-4.3.0/
[   +1 ms] Found plugin location_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/location_web-3.1.1/
[   +1 ms] Found plugin path_provider at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider-2.0.8/
[        ] Found plugin path_provider_android at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_android-2.0.11/
[        ] Found plugin path_provider_ios at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_ios-2.0.7/
[        ] Found plugin path_provider_linux at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_linux-2.1.5/
[        ] Found plugin path_provider_macos at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_macos-2.0.5/
[   +1 ms] Found plugin path_provider_windows at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_windows-2.0.5/
[   +4 ms] Found plugin share_plus at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/share_plus-3.0.4/
[        ] Found plugin share_plus_macos at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/share_plus_macos-2.0.2/
[        ] Found plugin share_plus_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/share_plus_web-2.0.4/
[        ] Found plugin sqflite at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-2.0.2/
[   +1 ms] Found plugin url_launcher at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher-6.0.18/
[   +1 ms] Found plugin url_launcher_android at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_android-6.0.14/
[        ] Found plugin url_launcher_ios at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_ios-6.0.14/
[        ] Found plugin url_launcher_linux at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_linux-2.0.3/
[        ] Found plugin url_launcher_macos at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_macos-2.0.3/
[        ] Found plugin url_launcher_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_web-2.0.6/
[        ] Found plugin url_launcher_windows at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_windows-2.0.2/
[        ] Found plugin video_player at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/video_player-2.2.14/
[        ] Found plugin video_player_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/video_player_web-2.0.6/
[        ] Found plugin webview_flutter at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/webview_flutter-2.8.0/
[        ] Found plugin webview_flutter_android at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/webview_flutter_android-2.8.2/
[        ] Found plugin webview_flutter_wkwebview at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/webview_flutter_wkwebview-2.7.1/
[   +3 ms] Compiling lib/main.dart for the Web...
[  +10 ms] Initializing file store
[   +2 ms] Done initializing file store
[  +54 ms] Skipping target: web_entrypoint
[   +2 ms] Skipping target: gen_localizations
[   +2 ms] Skipping target: web_static_assets
[        ] dart2js: Starting due to {}
[+16007 ms] Persisting file store
[  +15 ms] Done persisting file store
[   +7 ms] Target dart2js failed: Exception: .dart_tool/flutter_build/14bbd9e31a26866a2106dc38f75d690c/app.dill:
           Internal Error: The compiler crashed when compiling this element.
           The compiler is broken.
           
           When compiling the above element, the compiler crashed. It is not
           possible to tell if this is caused by a problem in your program or
           not. Regardless, the compiler should not crash.
           
           The Dart team would greatly appreciate if you would take a moment to
           report this problem at http://dartbug.com/new.
           
           Please include the following information:
           
           * the name and version of your operating system,
           
           * the Dart SDK build number (2.16.1), and
           
           * the entire message you see here (including the full stack trace
             below as well as the source location above).
           
           The compiler crashed: NoSuchMethodError: The getter 'boxedVariables' was called on null.
           Receiver: null
           Tried calling: boxedVariables
           #0      JsKernelToElementMap.makeRecordContainer (package:compiler/src/js_model/element_map_impl.dart:1769:14)
           #1      ClosureDataBuilder.createClosureEntities.<anonymous closure> (package:compiler/src/js_model/closure.dart:328:23)
           #2      _LinkedHashMapMixin.forEach (dart:collection-patch/compact_hash.dart:539:8)
           #3      ClosureDataBuilder.createClosureEntities (package:compiler/src/js_model/closure.dart:326:19)
           #4      JsClosedWorldBuilder.convertClosedWorld (package:compiler/src/js_model/js_world_builder.dart:161:41)
           #5      JsBackendStrategy.createJClosedWorld (package:compiler/src/js_model/js_strategy.dart:175:52)
           #6      Compiler.closeResolution (package:compiler/src/compiler.dart:594:25)
           #7      Compiler.computeClosedWorld (package:compiler/src/compiler.dart:464:9)
           #8      Compiler.compileFromKernel.<anonymous closure>.<anonymous closure> (package:compiler/src/compiler.dart:561:17)
           #9      CompilerTask.measureSubtask (package:compiler/src/common/tasks.dart:181:35)
           #10     Compiler.compileFromKernel.<anonymous closure> (package:compiler/src/compiler.dart:560:44)
           #11     CompilerTask.measureSubtask (package:compiler/src/common/tasks.dart:181:35)
           #12     Compiler.compileFromKernel (package:compiler/src/compiler.dart:559:14)
           #13     Compiler.runInternal (package:compiler/src/compiler.dart:363:17)
           <asynchronous suspension>
           #14     main (package:compiler/src/dart2js.dart:1373:3)
           <asynchronous suspension>
           
           
[  +21 ms] Compiling lib/main.dart for the Web... (completed in 16.1s)
[   +4 ms] "flutter web" took 17,318ms.
[  +13 ms] Exception: Failed to compile application for the Web.
[        ] 
           #0      throwToolExit (package:flutter_tools/src/base/common.dart:10:3)
           #1      buildWeb (package:flutter_tools/src/web/compile.dart:82:5)
           <asynchronous suspension>
           #2      BuildWebCommand.runCommand (package:flutter_tools/src/commands/build_web.dart:117:5)
           <asynchronous suspension>
           #3      FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1161:27)
           <asynchronous suspension>
           #4      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #5      CommandRunner.runCommand (package:args/command_runner.dart:209:13)
           <asynchronous suspension>
           #6      FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:281:9)
           <asynchronous suspension>
           #7      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #8      FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:229:5)
           <asynchronous suspension>
           #9      run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:62:9)
           <asynchronous suspension>
           #10     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #11     main (package:flutter_tools/executable.dart:94:3)
           <asynchronous suspension>
           
           
[ +253 ms] ensureAnalyticsSent: 248ms
[   +1 ms] Running shutdown hooks
[        ] Shutdown hooks complete
[        ] exiting with code 1

Verbose Build Logs on Dev Channel (actually beta since dev is gone now)

$ flutter build web --release -t lib/main.dart --web-renderer canvaskit --no-sound-null-safety --verbose
[ +144 ms] executing: sysctl hw.optional.arm64
[  +35 ms] Exit code 0 from: sysctl hw.optional.arm64
[   +3 ms] hw.optional.arm64: 1
[   +8 ms] executing: [/Users/duttaoindril/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[  +21 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] fdd0af78bbda27e1084ec859b27765d927cbe27e
[   +1 ms] executing: [/Users/duttaoindril/flutter/] git tag --points-at fdd0af78bbda27e1084ec859b27765d927cbe27e
[  +29 ms] Exit code 0 from: git tag --points-at fdd0af78bbda27e1084ec859b27765d927cbe27e
[        ] 2.10.0-0.3.pre
[  +15 ms] executing: [/Users/duttaoindril/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[  +22 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] origin/dev
[        ] executing: [/Users/duttaoindril/flutter/] git ls-remote --get-url origin
[  +21 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] https://github.com/flutter/flutter.git
[ +152 ms] executing: [/Users/duttaoindril/flutter/] git rev-parse --abbrev-ref HEAD
[  +29 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] dev
[   +8 ms] executing: sw_vers -productName
[  +20 ms] Exit code 0 from: sw_vers -productName
[        ] macOS
[        ] executing: sw_vers -productVersion
[  +20 ms] Exit code 0 from: sw_vers -productVersion
[        ] 12.2
[        ] executing: sw_vers -buildVersion
[  +19 ms] Exit code 0 from: sw_vers -buildVersion
[        ] 21D49
[  +66 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +3 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'WindowsUwpEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +49 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update.
[        ] Artifact Instance of 'GradleWrapper' is not required, skipping update.
[        ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'FlutterSdk' is not required, skipping update.
[        ] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'WindowsUwpEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FontSubsetArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'PubDependencies' is not required, skipping update.
[ +142 ms] Skipping pub get: version match.
[  +67 ms] Found plugin cloud_firestore at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-3.1.6/
[   +7 ms] Found plugin cloud_firestore_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore_web-2.6.6/
[   +2 ms] Found plugin cloud_functions at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_functions-3.2.5/
[   +3 ms] Found plugin cloud_functions_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_functions_web-4.2.6/
[   +5 ms] Found plugin firebase_analytics at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_analytics-9.0.5/
[   +5 ms] Found plugin firebase_analytics_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_analytics_web-0.4.0+5/
[   +3 ms] Found plugin firebase_auth at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth-3.3.5/
[   +1 ms] Found plugin firebase_auth_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_web-3.3.6/
[   +2 ms] Found plugin firebase_core at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core-1.11.0/
[   +1 ms] Found plugin firebase_core_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core_web-1.5.3/
[   +1 ms] Found plugin firebase_messaging at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-11.2.5/
[   +1 ms] Found plugin firebase_messaging_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging_web-2.2.6/
[   +1 ms] Found plugin firebase_performance at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_performance-0.8.0+4/
[   +1 ms] Found plugin firebase_performance_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_performance_web-0.1.0+4/
[        ] Found plugin firebase_storage at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_storage-10.2.5/
[   +2 ms] Found plugin firebase_storage_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_storage_web-3.2.6/
[   +3 ms] Found plugin flutter_plugin_android_lifecycle at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_plugin_android_lifecycle-2.0.5/
[   +7 ms] Found plugin image_picker at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.8.4+4/
[        ] Found plugin image_picker_for_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker_for_web-2.1.5/
[   +3 ms] Found plugin location at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/location-4.3.0/
[   +3 ms] Found plugin location_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/location_web-3.1.1/
[   +4 ms] Found plugin path_provider at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider-2.0.8/
[   +1 ms] Found plugin path_provider_android at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_android-2.0.11/
[   +1 ms] Found plugin path_provider_ios at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_ios-2.0.7/
[   +1 ms] Found plugin path_provider_linux at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_linux-2.1.5/
[   +1 ms] Found plugin path_provider_macos at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_macos-2.0.5/
[        ] Found plugin path_provider_windows at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_windows-2.0.5/
[   +8 ms] Found plugin share_plus at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/share_plus-3.0.4/
[        ] Found plugin share_plus_macos at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/share_plus_macos-2.0.2/
[   +1 ms] Found plugin share_plus_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/share_plus_web-2.0.4/
[   +2 ms] Found plugin sqflite at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-2.0.2/
[   +4 ms] Found plugin url_launcher at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher-6.0.18/
[   +1 ms] Found plugin url_launcher_android at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_android-6.0.14/
[        ] Found plugin url_launcher_ios at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_ios-6.0.14/
[        ] Found plugin url_launcher_linux at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_linux-2.0.3/
[   +1 ms] Found plugin url_launcher_macos at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_macos-2.0.3/
[        ] Found plugin url_launcher_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_web-2.0.6/
[        ] Found plugin url_launcher_windows at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_windows-2.0.2/
[   +1 ms] Found plugin video_player at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/video_player-2.2.14/
[   +1 ms] Found plugin video_player_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/video_player_web-2.0.6/
[   +2 ms] Found plugin webview_flutter at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/webview_flutter-2.8.0/
[   +3 ms] Found plugin webview_flutter_android at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/webview_flutter_android-2.8.2/
[   +2 ms] Found plugin webview_flutter_wkwebview at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/webview_flutter_wkwebview-2.7.1/
[  +44 ms] Found plugin cloud_firestore at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-3.1.6/
[        ] Found plugin cloud_firestore_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore_web-2.6.6/
[        ] Found plugin cloud_functions at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_functions-3.2.5/
[   +1 ms] Found plugin cloud_functions_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_functions_web-4.2.6/
[   +3 ms] Found plugin firebase_analytics at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_analytics-9.0.5/
[   +1 ms] Found plugin firebase_analytics_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_analytics_web-0.4.0+5/
[        ] Found plugin firebase_auth at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth-3.3.5/
[   +1 ms] Found plugin firebase_auth_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_web-3.3.6/
[        ] Found plugin firebase_core at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core-1.11.0/
[        ] Found plugin firebase_core_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core_web-1.5.3/
[        ] Found plugin firebase_messaging at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-11.2.5/
[        ] Found plugin firebase_messaging_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging_web-2.2.6/
[   +1 ms] Found plugin firebase_performance at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_performance-0.8.0+4/
[   +1 ms] Found plugin firebase_performance_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_performance_web-0.1.0+4/
[        ] Found plugin firebase_storage at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_storage-10.2.5/
[        ] Found plugin firebase_storage_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_storage_web-3.2.6/
[   +1 ms] Found plugin flutter_plugin_android_lifecycle at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_plugin_android_lifecycle-2.0.5/
[   +2 ms] Found plugin image_picker at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.8.4+4/
[   +1 ms] Found plugin image_picker_for_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker_for_web-2.1.5/
[   +4 ms] Found plugin location at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/location-4.3.0/
[   +1 ms] Found plugin location_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/location_web-3.1.1/
[   +2 ms] Found plugin path_provider at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider-2.0.8/
[        ] Found plugin path_provider_android at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_android-2.0.11/
[        ] Found plugin path_provider_ios at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_ios-2.0.7/
[        ] Found plugin path_provider_linux at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_linux-2.1.5/
[        ] Found plugin path_provider_macos at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_macos-2.0.5/
[        ] Found plugin path_provider_windows at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_windows-2.0.5/
[   +3 ms] Found plugin share_plus at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/share_plus-3.0.4/
[   +2 ms] Found plugin share_plus_macos at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/share_plus_macos-2.0.2/
[        ] Found plugin share_plus_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/share_plus_web-2.0.4/
[   +1 ms] Found plugin sqflite at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-2.0.2/
[   +4 ms] Found plugin url_launcher at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher-6.0.18/
[        ] Found plugin url_launcher_android at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_android-6.0.14/
[        ] Found plugin url_launcher_ios at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_ios-6.0.14/
[   +1 ms] Found plugin url_launcher_linux at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_linux-2.0.3/
[   +1 ms] Found plugin url_launcher_macos at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_macos-2.0.3/
[        ] Found plugin url_launcher_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_web-2.0.6/
[        ] Found plugin url_launcher_windows at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_windows-2.0.2/
[        ] Found plugin video_player at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/video_player-2.2.14/
[        ] Found plugin video_player_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/video_player_web-2.0.6/
[   +1 ms] Found plugin webview_flutter at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/webview_flutter-2.8.0/
[   +1 ms] Found plugin webview_flutter_android at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/webview_flutter_android-2.8.2/
[        ] Found plugin webview_flutter_wkwebview at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/webview_flutter_wkwebview-2.7.1/
[  +18 ms] Generating /Users/duttaoindril/Documents/GitHub/areahype/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java
[  +78 ms] executing: sysctl hw.optional.arm64
[  +15 ms] Exit code 0 from: sysctl hw.optional.arm64
[        ] hw.optional.arm64: 1
[        ] executing: /usr/bin/arch -arm64e xcrun xcodebuild -version
[  +96 ms] Exit code 0 from: /usr/bin/arch -arm64e xcrun xcodebuild -version
[        ] Xcode 13.2.1
           Build version 13C100
[        ] objc[88825]: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libamsupport.dylib (0x1edc7f678) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x103b382c8). One of
the two will be used. Which one is undefined.
           objc[88825]: Class AMSupportURLSession is implemented in both /usr/lib/libamsupport.dylib (0x1edc7f6c8) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x103b38318). One of the two
           will be used. Which one is undefined.
[  +86 ms] Building without sound null safety
[        ] For more information see https://dart.dev/null-safety/unsound-null-safety
[  +13 ms] Found plugin cloud_firestore at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-3.1.6/
[   +2 ms] Found plugin cloud_firestore_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore_web-2.6.6/
[        ] Found plugin cloud_functions at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_functions-3.2.5/
[        ] Found plugin cloud_functions_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_functions_web-4.2.6/
[   +4 ms] Found plugin firebase_analytics at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_analytics-9.0.5/
[        ] Found plugin firebase_analytics_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_analytics_web-0.4.0+5/
[        ] Found plugin firebase_auth at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth-3.3.5/
[   +1 ms] Found plugin firebase_auth_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_web-3.3.6/
[        ] Found plugin firebase_core at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core-1.11.0/
[        ] Found plugin firebase_core_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core_web-1.5.3/
[        ] Found plugin firebase_messaging at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-11.2.5/
[        ] Found plugin firebase_messaging_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging_web-2.2.6/
[        ] Found plugin firebase_performance at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_performance-0.8.0+4/
[        ] Found plugin firebase_performance_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_performance_web-0.1.0+4/
[        ] Found plugin firebase_storage at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_storage-10.2.5/
[        ] Found plugin firebase_storage_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_storage_web-3.2.6/
[   +6 ms] Found plugin flutter_plugin_android_lifecycle at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_plugin_android_lifecycle-2.0.5/
[   +3 ms] Found plugin image_picker at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.8.4+4/
[        ] Found plugin image_picker_for_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker_for_web-2.1.5/
[   +1 ms] Found plugin location at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/location-4.3.0/
[        ] Found plugin location_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/location_web-3.1.1/
[   +4 ms] Found plugin path_provider at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider-2.0.8/
[        ] Found plugin path_provider_android at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_android-2.0.11/
[        ] Found plugin path_provider_ios at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_ios-2.0.7/
[        ] Found plugin path_provider_linux at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_linux-2.1.5/
[        ] Found plugin path_provider_macos at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_macos-2.0.5/
[        ] Found plugin path_provider_windows at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_windows-2.0.5/
[   +8 ms] Found plugin share_plus at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/share_plus-3.0.4/
[   +4 ms] Found plugin share_plus_macos at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/share_plus_macos-2.0.2/
[   +1 ms] Found plugin share_plus_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/share_plus_web-2.0.4/
[   +1 ms] Found plugin sqflite at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-2.0.2/
[   +4 ms] Found plugin url_launcher at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher-6.0.18/
[        ] Found plugin url_launcher_android at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_android-6.0.14/
[        ] Found plugin url_launcher_ios at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_ios-6.0.14/
[        ] Found plugin url_launcher_linux at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_linux-2.0.3/
[        ] Found plugin url_launcher_macos at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_macos-2.0.3/
[   +3 ms] Found plugin url_launcher_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_web-2.0.6/
[        ] Found plugin url_launcher_windows at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_windows-2.0.2/
[        ] Found plugin video_player at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/video_player-2.2.14/
[        ] Found plugin video_player_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/video_player_web-2.0.6/
[        ] Found plugin webview_flutter at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/webview_flutter-2.8.0/
[        ] Found plugin webview_flutter_android at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/webview_flutter_android-2.8.2/
[        ] Found plugin webview_flutter_wkwebview at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/webview_flutter_wkwebview-2.7.1/
[  +11 ms] Found plugin cloud_firestore at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-3.1.6/
[        ] Found plugin cloud_firestore_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore_web-2.6.6/
[        ] Found plugin cloud_functions at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_functions-3.2.5/
[        ] Found plugin cloud_functions_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_functions_web-4.2.6/
[   +1 ms] Found plugin firebase_analytics at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_analytics-9.0.5/
[        ] Found plugin firebase_analytics_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_analytics_web-0.4.0+5/
[        ] Found plugin firebase_auth at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth-3.3.5/
[        ] Found plugin firebase_auth_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_web-3.3.6/
[        ] Found plugin firebase_core at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core-1.11.0/
[        ] Found plugin firebase_core_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core_web-1.5.3/
[        ] Found plugin firebase_messaging at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-11.2.5/
[        ] Found plugin firebase_messaging_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging_web-2.2.6/
[        ] Found plugin firebase_performance at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_performance-0.8.0+4/
[        ] Found plugin firebase_performance_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_performance_web-0.1.0+4/
[        ] Found plugin firebase_storage at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_storage-10.2.5/
[        ] Found plugin firebase_storage_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_storage_web-3.2.6/
[   +1 ms] Found plugin flutter_plugin_android_lifecycle at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_plugin_android_lifecycle-2.0.5/
[   +2 ms] Found plugin image_picker at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.8.4+4/
[        ] Found plugin image_picker_for_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker_for_web-2.1.5/
[   +2 ms] Found plugin location at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/location-4.3.0/
[   +1 ms] Found plugin location_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/location_web-3.1.1/
[   +3 ms] Found plugin path_provider at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider-2.0.8/
[        ] Found plugin path_provider_android at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_android-2.0.11/
[        ] Found plugin path_provider_ios at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_ios-2.0.7/
[   +5 ms] Found plugin path_provider_linux at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_linux-2.1.5/
[   +3 ms] Found plugin path_provider_macos at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_macos-2.0.5/
[        ] Found plugin path_provider_windows at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_windows-2.0.5/
[   +5 ms] Found plugin share_plus at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/share_plus-3.0.4/
[        ] Found plugin share_plus_macos at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/share_plus_macos-2.0.2/
[        ] Found plugin share_plus_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/share_plus_web-2.0.4/
[        ] Found plugin sqflite at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-2.0.2/
[   +1 ms] Found plugin url_launcher at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher-6.0.18/
[        ] Found plugin url_launcher_android at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_android-6.0.14/
[        ] Found plugin url_launcher_ios at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_ios-6.0.14/
[        ] Found plugin url_launcher_linux at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_linux-2.0.3/
[   +2 ms] Found plugin url_launcher_macos at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_macos-2.0.3/
[   +1 ms] Found plugin url_launcher_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_web-2.0.6/
[        ] Found plugin url_launcher_windows at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_windows-2.0.2/
[        ] Found plugin video_player at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/video_player-2.2.14/
[        ] Found plugin video_player_web at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/video_player_web-2.0.6/
[        ] Found plugin webview_flutter at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/webview_flutter-2.8.0/
[        ] Found plugin webview_flutter_android at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/webview_flutter_android-2.8.2/
[        ] Found plugin webview_flutter_wkwebview at /Users/duttaoindril/flutter/.pub-cache/hosted/pub.dartlang.org/webview_flutter_wkwebview-2.7.1/
[  +11 ms] Compiling lib/main.dart for the Web...
[  +10 ms] Initializing file store
[  +35 ms] web_entrypoint: Starting due to {InvalidatedReasonKind.inputChanged: The following inputs have updated contents: /Users/duttaoindril/flutter/packages/flutter_tools/lib/src/build_system/targets/web.dart}
[   +2 ms] Skipping target: gen_localizations
[   +4 ms] web_static_assets: Starting due to {}
[  +36 ms] web_entrypoint: Complete
[   +4 ms] web_static_assets: Complete
[        ] dart2js: Starting due to {}
[+15638 ms] Persisting file store
[  +12 ms] Done persisting file store
[   +7 ms] Target dart2js failed: Exception: .dart_tool/flutter_build/44967c994d824db48bd8ddee21843126/app.dill:
           Internal Error: The compiler crashed when compiling this element.
           The compiler is broken.
           
           When compiling the above element, the compiler crashed. It is not
           possible to tell if this is caused by a problem in your program or
           not. Regardless, the compiler should not crash.
           
           The Dart team would greatly appreciate if you would take a moment to
           report this problem at http://dartbug.com/new.
           
           Please include the following information:
           
           * the name and version of your operating system,
           
           * the Dart SDK build number (2.16.0-134.5.beta), and
           
           * the entire message you see here (including the full stack trace
             below as well as the source location above).
           
           The compiler crashed: NoSuchMethodError: The getter 'boxedVariables' was called on null.
           Receiver: null
           Tried calling: boxedVariables
           #0      JsKernelToElementMap.makeRecordContainer (package:compiler/src/js_model/element_map_impl.dart:1769:14)
           #1      ClosureDataBuilder.createClosureEntities.<anonymous closure> (package:compiler/src/js_model/closure.dart:328:23)
           #2      _LinkedHashMapMixin.forEach (dart:collection-patch/compact_hash.dart:539:8)
           #3      ClosureDataBuilder.createClosureEntities (package:compiler/src/js_model/closure.dart:326:19)
           #4      JsClosedWorldBuilder.convertClosedWorld (package:compiler/src/js_model/js_world_builder.dart:161:41)
           #5      JsBackendStrategy.createJClosedWorld (package:compiler/src/js_model/js_strategy.dart:175:52)
           #6      Compiler.closeResolution (package:compiler/src/compiler.dart:594:25)
           #7      Compiler.computeClosedWorld (package:compiler/src/compiler.dart:464:9)
           #8      Compiler.compileFromKernel.<anonymous closure>.<anonymous closure> (package:compiler/src/compiler.dart:561:17)
           #9      CompilerTask.measureSubtask (package:compiler/src/common/tasks.dart:181:35)
           #10     Compiler.compileFromKernel.<anonymous closure> (package:compiler/src/compiler.dart:560:44)
           #11     CompilerTask.measureSubtask (package:compiler/src/common/tasks.dart:181:35)
           #12     Compiler.compileFromKernel (package:compiler/src/compiler.dart:559:14)
           #13     Compiler.runInternal (package:compiler/src/compiler.dart:363:17)
           <asynchronous suspension>
           #14     main (package:compiler/src/dart2js.dart:1373:3)
           <asynchronous suspension>
           
           
[  +16 ms] Compiling lib/main.dart for the Web... (completed in 15.8s)
[   +4 ms] "flutter web" took 16,727ms.
[  +13 ms] Exception: Failed to compile application for the Web.
[        ] 
           #0      throwToolExit (package:flutter_tools/src/base/common.dart:10:3)
           #1      buildWeb (package:flutter_tools/src/web/compile.dart:82:5)
           <asynchronous suspension>
           #2      BuildWebCommand.runCommand (package:flutter_tools/src/commands/build_web.dart:117:5)
           <asynchronous suspension>
           #3      FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1161:27)
           <asynchronous suspension>
           #4      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #5      CommandRunner.runCommand (package:args/command_runner.dart:209:13)
           <asynchronous suspension>
           #6      FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:281:9)
           <asynchronous suspension>
           #7      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #8      FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:229:5)
           <asynchronous suspension>
           #9      run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:62:9)
           <asynchronous suspension>
           #10     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #11     main (package:flutter_tools/executable.dart:94:3)
           <asynchronous suspension>
           
           
[ +257 ms] ensureAnalyticsSent: 252ms
[   +2 ms] Running shutdown hooks
[        ] Shutdown hooks complete
[        ] exiting with code 1

@duttaoindril
Copy link

Thank you @sigmundch for being so thorough with this - Taking inspo from your comment, I removed all the .new calls in my code and it fixed the bug. I second his repro.

@sigmundch
Copy link
Member

@rakudrama - looking at the report from @Miiite in #48491, I noticed that the use of optional parameters was not relevant, then I noticed that the use of super wasn't either. Here is a smaller repro:

abstract class A {
  const factory A() = B;
}

abstract class B implements A {
  const factory B() = C;
}

class C implements B {
  const C();
}

main() {
  A.new;
}

Any insights so far from the broken assertion?

@dopecoder
Copy link

dopecoder commented Mar 3, 2022

Experiencing the same issue, unable to find a fix for this. The error seems to suggest what @sigmundch has reproed.

 Target dart2js failed: Exception: Warning: The 'dart2js' entrypoint script is deprecated, please use 'dart compile js' instead.
           lib/app/pages/signals/application/signal-actor-bloc/signal-actor-bloc.cg.freezed.dart:5940:17:
           Internal Error: The compiler crashed when compiling this element.
             const factory _ReportInaccurateSignalFailure(SignalsFailure failure) =
                           ^
           The compiler is broken.
           
           When compiling the above element, the compiler crashed. It is not
           possible to tell if this is caused by a problem in your program or
           not. Regardless, the compiler should not crash.
           
           The Dart team would greatly appreciate if you would take a moment to
           report this problem at http://dartbug.com/new.
           
           Please include the following information:
           
           * the name and version of your operating system,
           
           * the Dart SDK build number (2.17.0-165.0.dev), and
           
           * the entire message you see here (including the full stack trace
             below as well as the source location above).
           
           The compiler crashed: NoSuchMethodError: The getter 'boxedVariables' was called on null.
           Receiver: null
           Tried calling: boxedVariables
           #0      Object.noSuchMethod (dart:core-patch/object_patch.dart:38:5)
           #1      JsKernelToElementMap.makeRecordContainer (package:compiler/src/js_model/element_map_impl.dart:1770:14)
           #2      ClosureDataBuilder.createClosureEntities.processModel (package:compiler/src/js_model/closure.dart:329:23)
           #3      ClosureDataBuilder.createClosureEntities.<anonymous closure>.<anonymous closure>
(package:compiler/src/js_model/closure.dart:389:9)
           #4      CompilerDiagnosticReporter.withCurrentElement (package:compiler/src/compiler.dart:1025:15)
           #5      ClosureDataBuilder.createClosureEntities.<anonymous closure> (package:compiler/src/js_model/closure.dart:388:17)
           #6      _LinkedHashMapMixin.forEach (dart:collection-patch/compact_hash.dart:579:13)
           #7      ClosureDataBuilder.createClosureEntities (package:compiler/src/js_model/closure.dart:387:19)
           #8      JsClosedWorldBuilder.convertClosedWorld (package:compiler/src/js_model/js_world_builder.dart:161:41)
           #9      JsBackendStrategy.createJClosedWorld (package:compiler/src/js_model/js_strategy.dart:174:52)
           #10     Compiler.closeResolution (package:compiler/src/compiler.dart:610:25)
           #11     Compiler.computeClosedWorld (package:compiler/src/compiler.dart:470:9)
           #12     Compiler.compileFromKernel.<anonymous closure>.<anonymous closure> (package:compiler/src/compiler.dart:572:17)
           #13     CompilerTask.measureSubtask (package:compiler/src/common/tasks.dart:181:35)
           #14     Compiler.compileFromKernel.<anonymous closure> (package:compiler/src/compiler.dart:571:44)
           #15     CompilerTask.measureSubtask (package:compiler/src/common/tasks.dart:181:35)
           #16     Compiler.compileFromKernel (package:compiler/src/compiler.dart:570:14)
           #17     Compiler.runInternal (package:compiler/src/compiler.dart:372:17)
           <asynchronous suspension>
           #18     main (package:compiler/src/dart2js.dart:1392:3)
           <asynchronous suspension>
           
           
[  +17 ms] Compiling lib/main.dart for the Web... (completed in 30.2s)
[   +1 ms] "flutter web" took 31,363ms.
[   +4 ms] Exception: Failed to compile application for the Web.
[        ] 
           #0      throwToolExit (package:flutter_tools/src/base/common.dart:10:3)
           #1      buildWeb (package:flutter_tools/src/web/compile.dart:81:5)
           <asynchronous suspension>
           #2      BuildWebCommand.runCommand (package:flutter_tools/src/commands/build_web.dart:112:5)
           <asynchronous suspension>
           #3      FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1165:27)
           <asynchronous suspension>
           #4      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #5      CommandRunner.runCommand (package:args/command_runner.dart:209:13)
           <asynchronous suspension>
           #6      FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:281:9)
           <asynchronous suspension>
           #7      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #8      FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:229:5)
           <asynchronous suspension>
           #9      run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:62:9)
           <asynchronous suspension>
           #10     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #11     main (package:flutter_tools/executable.dart:94:3)
           <asynchronous suspension>
           
           
[  +90 ms] ensureAnalyticsSent: 88ms
[   +1 ms] Running shutdown hooks
[        ] Shutdown hooks complete
[        ] exiting with code 1

@rakudrama
Copy link
Member

In the Kernel IR, uses of a redirecting constructor are replaced by uses of the target.
This appears to happen for just one step of redirection.

For the small example above, the IR is as follows.
(I added B.new; to main)
B._#new#tearOff calls C(), a generative constructor.
A._#new#tearOff calls B(), a redirecting const factory constructor.

@johnniwinther It seems that the CFE should fully lower the feature or leave it in-place. Currently the K-model ignores redirecting construstors, so it seems that the intention was to fully lower.
Are there impediments to full lowering, e.g. modularity concerns?

library from "file://47916.dart" as 479 {

  abstract class A extends core::Object {
    static final field dynamic _redirecting# = <dynamic>[#C1]/*isLegacy*/;
    static factory •() → 479::A
      return 479::B::•();
    static method _#new#tearOff() → 479::A
      return 479::B::•();
  }
  abstract class B extends core::Object implements 479::A {
    static final field dynamic _redirecting# = <dynamic>[#C2]/*isLegacy*/;
    static factory •() → 479::B
      return new 479::C::•();
    static method _#new#tearOff() → 479::B
      return new 479::C::•();
  }
  class C extends core::Object implements 479::B /*hasConstConstructor*/  {
    const constructor •() → 479::C
      : super core::Object::•()
      ;
    static method _#new#tearOff() → 479::C
      return new 479::C::•();
  }
  static method main() → dynamic {
    #C3;
    #C4;
  }
}
...
constants  {
  #C1 = constructor-tearoff 479::A::•
  #C2 = constructor-tearoff 479::B::•
  #C3 = static-tearoff 479::A::_#new#tearOff
  #C4 = static-tearoff 479::B::_#new#tearOff
  ...
}

@johnniwinther
Copy link
Member

It is an error in the lowering. A should have invoked its effective target, C, and not it's immediate target B.

I'll work on a fix.

@johnniwinther johnniwinther self-assigned this Mar 8, 2022
@dopecoder
Copy link

dopecoder commented Mar 14, 2022

Hi @johnniwinther, Will this be included as hotfix? As I checked the latest version of dart in flutter master channel is 2.17.0-182.0.dev. But this commit is included in versions starting from 2.17.0-188.0.dev.

Is there a way to change dart version in flutter sdk?

copybara-service bot pushed a commit that referenced this issue Mar 22, 2022
The tear-off lowering for a redirecting factory called the
immediate target (even when this was also a redirecting factory)
instead of the effective target. This caused problem in backends
that don't support redirecting factories directly.

Closes #47916

Change-Id: I708c59dae9d210e0eb6dab4d01c6a044f6b2fd00
copybara-service bot pushed a commit that referenced this issue Mar 28, 2022
The tear-off lowering for a redirecting factory called the
immediate target (even when this was also a redirecting factory)
instead of the effective target. This caused problem in backends
that don't support redirecting factories directly.

Closes #47916

Change-Id: Iafb11c42c1e99e70ed44b0835473a8c69e995b01
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/235780
Reviewed-by: Chloe Stefantsova <[email protected]>
Commit-Queue: Johnni Winther <[email protected]>
@timfong888
Copy link

Hi, I have this problem with almost every flutter project I am creating.

@sigmundch
Copy link
Member

@timfong888 - thanks for letting us know.

Note that the fix landed a few months ago and was subsequently cherry-picked into Dart and Flutter release channels, so all fixes have been available since Flutter 2.10.4. If you are on the latest version of Flutter and are seeing a similar error, it is quite possible it is caused by something else. If that's the case, could you file a new bug with more details so we can investigate?

@timfong888
Copy link

@sigmundch thanks for getting back. I am using CodeMagic to run the builds (the errors were the same as I was getting locally, but I thought a fresh VM each build would eliminate some environment issues).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-web Use area-web for Dart web related issues, including the DDC and dart2js compilers and JS interop. web-dart2js
Projects
None yet
Development

No branches or pull requests

9 participants