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. #48629

Closed
long1eu opened this issue Mar 21, 2022 · 1 comment
Labels
area-web Use area-web for Dart web related issues, including the DDC and dart2js compilers and JS interop. closed-duplicate Closed in favor of an existing report crash Process exits with SIGSEGV, SIGABRT, etc. An unhandled exception is not a crash.

Comments

@long1eu
Copy link

long1eu commented Mar 21, 2022

Target dart2js failed: Exception: .dart_tool/flutter_build/1d8a7e17755c385f5f018965fb9ccbf2/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>
@a-siva a-siva added area-web Use area-web for Dart web related issues, including the DDC and dart2js compilers and JS interop. crash Process exits with SIGSEGV, SIGABRT, etc. An unhandled exception is not a crash. labels Mar 21, 2022
@sigmundch
Copy link
Member

Thanks for the bug report! I believe this is a duplicate of #47916, especially if your project is using package:freezed. That issue has been fixed in our main branch, but hasn't yet been released. There is an ongoing hotfix to get this out in the current beta and stable channels.

@sigmundch sigmundch added the closed-duplicate Closed in favor of an existing report label Mar 22, 2022
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. closed-duplicate Closed in favor of an existing report crash Process exits with SIGSEGV, SIGABRT, etc. An unhandled exception is not a crash.
Projects
None yet
Development

No branches or pull requests

3 participants