Compiler Error #51463
Labels
area-web
Use area-web for Dart web related issues, including the DDC and dart2js compilers and JS interop.
dart2js-crash
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
web-dart2js
As requested. Stumbled upon this one today.
OS Info: Darwin alloa 22.2.0 Darwin Kernel Version 22.2.0: Fri Nov 11 02:08:47 PST 2022; root:xnu-8792.61.2~4/RELEASE_X86_64 x86_64
flutter doctor
Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, 3.3.5, on macOS 13.1 22C65 darwin-x64, locale en-US) [✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1) [✓] Xcode - develop for iOS and macOS (Xcode 14.2) [✓] Chrome - develop for the web [✓] Android Studio (version 2020.3) [✓] VS Code (version 1.75.1) [✓] Connected device (3 available) [✓] HTTP Host Availability• No issues found!
StackTrace
Target dart2js failed: Exception: Warning: The 'dart2js' entrypoint script is deprecated, please use 'dart compile js' instead. lib/comm/services/snack_bar_service.dart:20:3: Internal Error: The compiler crashed when compiling this element. SnackBarService(Id serviceId, ServiceSpec spec) ^ 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.18.2), and
the entire message you see here (including the full stack trace
below as well as the source location above).
The compiler crashed: type 'HTypeKnown' is not a subtype of type 'HLocalValue'
#0 LocalsHandler.getLocal (package:compiler/src/ssa/locals_handler.dart:423:7)
#1 LocalsHandler.readLocal (package:compiler/src/ssa/locals_handler.dart:399:32)
#2 KernelSsaGraphBuilder.visitVariableGet (package:compiler/src/ssa/builder.dart:3493:29)
#3 VariableGet.accept (package:kernel/ast.dart:4194:44)
#4 KernelSsaGraphBuilder._normalizeAndBuildArguments. (package:compiler/src/ssa/builder.dart:1076:49)
#5 List.forEach (dart:core-patch/growable_array.dart:416:8)
#6 KernelSsaGraphBuilder._normalizeAndBuildArguments (package:compiler/src/ssa/builder.dart:1074:35)
#7 KernelSsaGraphBuilder._inlineSuperInitializer (package:compiler/src/ssa/builder.dart:1123:36)
#8 KernelSsaGraphBuilder._buildInitializers (package:compiler/src/ssa/builder.dart:1035:9)
#9 KernelSsaGraphBuilder._inlineSuperOrRedirectCommon. (package:compiler/src/ssa/builder.dart:1182:7)
#10 KernelSsaGraphBuilder._inlinedFrom. (package:compiler/src/ssa/builder.dart:925:21)
#11 DiagnosticReporter.withCurrentElement (package:compiler/src/diagnostics/diagnostic_listener.dart:142:15)
#12 KernelSsaGraphBuilder._inlinedFrom (package:compiler/src/ssa/builder.dart:923:14)
#13 KernelSsaGraphBuilder._inlineSuperOrRedirectCommon (package:compiler/src/ssa/builder.dart:1157:5)
#14 KernelSsaGraphBuilder._inlineSuperInitializer (package:compiler/src/ssa/builder.dart:1142:5)
#15 KernelSsaGraphBuilder._buildInitializers (package:compiler/src/ssa/builder.dart:1035:9)
#16 KernelSsaGraphBuilder._inlineSuperOrRedirectCommon. (package:compiler/src/ssa/builder.dart:1182:7)
#17 KernelSsaGraphBuilder._inlinedFrom. (package:compiler/src/ssa/builder.dart:925:21)
#18 DiagnosticReporter.withCurrentElement (package:compiler/src/diagnostics/diagnostic_listener.dart:142:15)
#19 KernelSsaGraphBuilder._inlinedFrom (package:compiler/src/ssa/builder.dart:923:14)
#20 KernelSsaGraphBuilder._inlineSuperOrRedirectCommon (package:compiler/src/ssa/builder.dart:1157:5)
#21 KernelSsaGraphBuilder._inlineSuperInitializer (package:compiler/src/ssa/builder.dart:1142:5)
#22 KernelSsaGraphBuilder._buildInitializers (package:compiler/src/ssa/builder.dart:1035:9)
#23 KernelSsaGraphBuilder._buildConstructor (package:compiler/src/ssa/builder.dart:752:5)
#24 KernelSsaGraphBuilder.build. (package:compiler/src/ssa/builder.dart:493:11)
#25 DiagnosticReporter.withCurrentElement (package:compiler/src/diagnostics/diagnostic_listener.dart:142:15)
#26 KernelSsaGraphBuilder.build (package:compiler/src/ssa/builder.dart:432:21)
#27 KernelSsaBuilder.build. (package:compiler/src/js_model/js_strategy.dart:513:22)
#28 CompilerTask.measure (package:compiler/src/common/tasks.dart:66:51)
#29 KernelSsaBuilder.build (package:compiler/src/js_model/js_strategy.dart:496:18)
#30 SsaBuilderTask.build (package:compiler/src/ssa/ssa.dart:350:21)
#31 SsaFunctionCompiler.compile (package:compiler/src/ssa/ssa.dart:82:29)
#32 OnDemandCodegenResults.getCodegenResults (package:compiler/src/common/codegen.dart:442:30)
#33 JsBackendStrategy.generateCode (package:compiler/src/js_model/js_strategy.dart:320:43)
#34 KernelCodegenWorkItem.run (package:compiler/src/js_model/js_strategy.dart:463:29)
#35 Compiler.emptyQueue..... (package:compiler/src/compiler.dart:740:70)
#36 CompilerTask.measureSubtask (package:compiler/src/common/tasks.dart:181:35)
#37 Compiler.emptyQueue.... (package:compiler/src/compiler.dart:740:32)
#38 CompilerTask.measureSubtask (package:compiler/src/common/tasks.dart:181:35)
#39 Compiler.emptyQueue... (package:compiler/src/compiler.dart:738:28)
#40 DiagnosticReporter.withCurrentElement (package:compiler/src/diagnostics/diagnostic_listener.dart:142:15)
#41 Compiler.emptyQueue.. (package:compiler/src/compiler.dart:736:18)
#42 CodegenEnqueuer._forEach (package:compiler/src/js_backend/enqueuer.dart:252:12)
#43 CodegenEnqueuer.forEach (package:compiler/src/js_backend/enqueuer.dart:268:5)
#44 Compiler.emptyQueue. (package:compiler/src/compiler.dart:732:16)
#45 CompilerTask.measureSubtask (package:compiler/src/common/tasks.dart:181:35)
#46 Compiler.emptyQueue (package:compiler/src/compiler.dart:731:14)
#47 Compiler.processQueue. (package:compiler/src/compiler.dart:755:7)
#48 CompilerTask.measureSubtask (package:compiler/src/common/tasks.dart:181:35)
#49 Compiler.processQueue (package:compiler/src/compiler.dart:749:14)
#50 Compiler.runCodegenEnqueuer (package:compiler/src/compiler.dart:500:5)
#51 Compiler.runSequentialPhases (package:compiler/src/compiler.dart:684:23)
#52 Compiler.runInternal. (package:compiler/src/compiler.dart:309:7)
#53 Compiler.runInternal (package:compiler/src/compiler.dart:308:5)
#54 main (package:compiler/src/dart2js.dart:1424:3)
Compiling lib/main_dev.dart for the Web... 38.9s
Exception: Failed to compile application for the Web.
The text was updated successfully, but these errors were encountered: