-
Notifications
You must be signed in to change notification settings - Fork 1.7k
The compiler crashed: NoSuchMethodError: The getter 'boxedVariables' was called on null. #49409
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
Comments
I've tried to update dart sdk to latest version 2.17.5 The compiler crashed: NoSuchMethodError: The getter 'boxedVariables' was called on null. Error still there |
Thanks for filing an issue, @Xyzcancer. Do you have a code sample we can use to reproduce the issue? |
I'm having the same issue. It's very hard to narrow down the cause, as my project is very large. (Flutter 3.0.4, Dart 2.17.5, macOS 10.15)
|
I haven't) I'm working on project covered by NDA, so to solve this I need to know how to find that piece of code. |
@Xyzcancer - By chance is your code using context: The cryptic error message you see is a byte-offset location in the SDK sources (we rarely see this kind of error message, but we should fix that to be less cryptic). Looking up that offset points to the definition of the If it's possible for your team to use the Flutter beta releases, you should be able to confirm whether this issue was fixed. If not, the workaround (using a closure instead of a constructor-tearoff for BIgInt) should hopefully let you move past this error for the time being. I'm tentatively closing this as a duplicate of #48776, but let me know if that's not accurate. |
Thanks. My crash was caused by the same issue - the offset in my log points to the patched |
Thanks, good to know! |
Unfortunately I faced this issue on project that protected by NDA, so I
can’t share repo with you. Maybe you can advise me a way that I can find
exact location in my code that leads to the issue?
…On Sat, 9 Jul 2022 at 03:03, Mayank Patke ***@***.***> wrote:
Thanks for filing an issue, @Xyzcancer <https://github.com/Xyzcancer>. Do
you have a code sample we can use to reproduce the issue?
—
Reply to this email directly, view it on GitHub
<#49409 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACJBWXWKYOULKOTQNTAVJV3VTCXT3ANCNFSM524KJHSQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@Xyzcancer: The line As sigmundch mentioned above, the fix for this issue was included in Dart 2.18, so you may not need this workaround if you're able to update your Flutter installation. |
Hi, I've tried to build Chrome Extension with those commands, but both have failed with the same stacktrace
flutter build web --web-renderer html --csp
flutter build web
macOS 12.4 MacBookPro M1 Pro
Dart SDK version: 2.17.3 (stable) (Wed Jun 1 11:06:41 2022 +0200) on "macos_arm64"
Target dart2js failed: Exception: Warning: The 'dart2js' entrypoint script is deprecated, please use 'dart compile js' instead.
org-dartlang-sdk:///lib/_internal/js_runtime/lib/core_patch.dart@5829+1:
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:1770:14)
#1 ClosureDataBuilder.createClosureEntities.processModel (package:compiler/src/js_model/closure.dart:329:23)
#2 ClosureDataBuilder.createClosureEntities.. (package:compiler/src/js_model/closure.dart:389:9)
#3 DiagnosticReporter.withCurrentElement (package:compiler/src/diagnostics/diagnostic_listener.dart:143:15)
#4 ClosureDataBuilder.createClosureEntities. (package:compiler/src/js_model/closure.dart:388:17)
#5 _LinkedHashMapMixin.forEach (dart:collection-patch/compact_hash.dart:614:13)
#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:174:52)
#9 Compiler.closeResolution (package:compiler/src/compiler.dart:684:25)
#10 Compiler.computeClosedWorld (package:compiler/src/compiler.dart:377:9)
#11 Compiler.produceClosedWorld (package:compiler/src/compiler.dart:537:11)
#12 Compiler.runSequentialPhases (package:compiler/src/compiler.dart:634:15)
#13 Compiler.runInternal. (package:compiler/src/compiler.dart:305:7)
#14 Compiler.runInternal (package:compiler/src/compiler.dart:304:5)
#15 main (package:compiler/src/dart2js.dart:1407:3)
The text was updated successfully, but these errors were encountered: