-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Flutter compiler suddenly stopped working #60389
Comments
If I downgrade to flutter 3.29.0 or 3.29.1 then the problem disappears. Upgrading causes it to re-appear. I've run flutter clean but it doesn't help. |
Same issue here. After reinstalling Flutter (via fvm), Flutter doctor:
Never had issues with Flutter installed via fvm so far. |
@jensjoha Do you know how this can happen? (Also why don't we report an error instead of crashing?) |
For reference, here's my flutter doctor:
I've also tried deleting my local pub-cache but that didn't help either. |
From the the command:
Specifically this part:
and the way it's crashing I'm guessing there's been some thing wrong with the files in this folder. |
Thanks, that fixed things. |
Target dart2js failed: ProcessException: Process exited abnormally with exit code 253:
.dart_tool/flutter_build/2b895b047c2de07e6cc46404a9075afa/main.dart:
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 (3.7.2), and
the entire message you see here (including the full stack trace
below as well as the source location above).
The compiler crashed: Crash when compiling
file:///Users/andrew/Intellij/rememberit/client/modules/rememberit_web/.dart_tool/flutter_build/2b895b047c2de07e6cc46404a9075afa/main.dart:
Unexpected Kernel SDK Version f6ed8d7 (expected 9594995).
#0 BinaryBuilder._readAndVerifySdkHash (package:kernel/binary/ast_from_binary.dart:657)
#1 BinaryBuilder._verifyComponentInitialBytes (package:kernel/binary/ast_from_binary.dart:874)
#2 BinaryBuilder.readComponent. (package:kernel/binary/ast_from_binary.dart:697)
#3 Timeline.timeSync (dart:developer/timeline.dart:188)
#4 BinaryBuilder.readComponent (package:kernel/binary/ast_from_binary.dart:695)
#5 ProcessedOptions.loadComponent (package:front_end/src/base/processed_options.dart:590)
#6 ProcessedOptions.loadAdditionalDills (package:front_end/src/base/processed_options.dart:572)
#7 generateKernelInternal. (package:front_end/src/kernel_generator_impl.dart:114)
#8 withCrashReporting (package:front_end/src/base/crash.dart:139)
#9 compile. (package:front_end/src/api_unstable/dart2js.dart:166)
#10 CompilerContext.clear (package:front_end/src/base/compiler_context.dart:77)
#11 compile (package:front_end/src/api_unstable/dart2js.dart:164)
#12 _loadFromSource (package:compiler/src/phase/load_kernel.dart:372)
#13 run (package:compiler/src/phase/load_kernel.dart:486)
#14 Compiler.loadKernel (package:compiler/src/compiler.dart:428)
#15 Compiler.produceKernel (package:compiler/src/compiler.dart:437)
#16 Compiler.runSequentialPhases (package:compiler/src/compiler.dart:722)
#17 Compiler.runInternal. (package:compiler/src/compiler.dart:339)
#18 Compiler.runInternal (package:compiler/src/compiler.dart:338)
#19 Compiler.run. (package:compiler/src/compiler.dart:250)
#20 compile. (package:compiler/compiler_api.dart:273)
#21 compile.compilationDone (package:compiler/src/dart2js.dart:777)
#22 main (package:compiler/src/dart2js.dart:1327)
Command: /Users/andrew/fvm/versions/3.29.2/bin/cache/dart-sdk/bin/dart compile js
--platform-binaries=/Users/andrew/fvm/versions/3.29.2/bin/cache/flutter_web_sdk/kernel --invoker=flutter_tool -Ddart.vm.product=true
-DFLUTTER_WEB_USE_SKIA=true -DFLUTTER_WEB_USE_SKWASM=false
-DFLUTTER_WEB_CANVASKIT_URL=https://www.gstatic.com/flutter-canvaskit/18b71d647a292a980abb405ac7d16fe1f0b20434/ --native-null-assertions
--no-source-maps -o /Users/andrew/Intellij/rememberit/client/modules/rememberit_web/.dart_tool/flutter_build/2b895b047c2de07e6cc46404a9075afa/app.dill
--packages=/Users/andrew/Intellij/rememberit/client/modules/rememberit_web/.dart_tool/package_config.json --cfe-only
/Users/andrew/Intellij/rememberit/client/modules/rememberit_web/.dart_tool/flutter_build/2b895b047c2de07e6cc46404a9075afa/main.dart
#0 RunResult.throwException (package:flutter_tools/src/base/process.dart:118:5)
#1 _DefaultProcessUtils.run (package:flutter_tools/src/base/process.dart:344:19)
#2 Dart2JSTarget.build (package:flutter_tools/src/build_system/targets/web.dart:201:5)
#3 _BuildInstance._invokeInternal (package:flutter_tools/src/build_system/build_system.dart:876:9)
#4 Future.wait. (dart:async/future.dart:528:21)
#5 _BuildInstance.invokeTarget (package:flutter_tools/src/build_system/build_system.dart:814:32)
#6 Future.wait. (dart:async/future.dart:528:21)
#7 _BuildInstance.invokeTarget (package:flutter_tools/src/build_system/build_system.dart:814:32)
#8 FlutterBuildSystem.build (package:flutter_tools/src/build_system/build_system.dart:637:16)
#9 WebBuilder.buildWeb (package:flutter_tools/src/web/compile.dart:93:34)
#10 BuildWebCommand.runCommand (package:flutter_tools/src/commands/build_web.dart:253:5)
#11 FlutterCommand.run. (package:flutter_tools/src/runner/flutter_command.dart:1558:27)
#12 AppContext.run. (package:flutter_tools/src/base/context.dart:154:19)
#13 CommandRunner.runCommand (package:args/command_runner.dart:212:13)
#14 FlutterCommandRunner.runCommand. (package:flutter_tools/src/runner/flutter_command_runner.dart:496:9)
#15 AppContext.run. (package:flutter_tools/src/base/context.dart:154:19)
#16 FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:431:5)
#17 run.. (package:flutter_tools/runner.dart:98:11)
#18 AppContext.run. (package:flutter_tools/src/base/context.dart:154:19)
#19 main (package:flutter_tools/executable.dart:99:3)
Compiling lib/main.dart for the Web... 441ms
Error: Failed to compile application for the Web
The text was updated successfully, but these errors were encountered: