You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Every time I attempt to build my code, I get a compiler crash.
dart fix --apply output:
Computing fixes in <REDACTED>... 11.3s
Nothing to fix!
dart --version output: Dart SDK version: 3.4.1 (stable) (Tue May 21 15:46:25 2024 +0000) on "macos_x64"
Building a flutter app in Android Studio. Tried restarting IDE, ran clear caches and restart. Still crashes.
Attempting to compile from the command line also crashes.
Command: flutter build web
Output:
Target dart2js failed: ProcessException: Process exited abnormally with exit code 253:
.dart_tool/flutter_build/5c5fce35a7df90664eb2e1ee3b00fbe6/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 ( MacOS 14.5)
* the Dart SDK build number (3.4.1)
* 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:
Concurrent modification during iteration: Instance(length:2) of '_GrowableList'.
#0 ListIterator.moveNext (dart:_internal/iterable.dart:348:7)
#1 BodyBuilder._unaliasTypeAliasedConstructorInvocations (package:front_end/src/fasta/kernel/body_builder.dart:1640:12)
#2 BodyBuilder.performDelayedActions (package:front_end/src/fasta/kernel/body_builder.dart:1755:7)
#3 SourceLoader.buildOutlineExpressions (package:front_end/src/fasta/source/source_loader.dart:2827:30)
#4 KernelTarget.buildOutlines.<anonymous closure> (package:front_end/src/fasta/kernel/kernel_target.dart:549:14)
<asynchronous suspension>
#5 withCrashReporting (package:front_end/src/fasta/crash.dart:133:12)
<asynchronous suspension>
#6 KernelTarget.buildOutlines (package:front_end/src/fasta/kernel/kernel_target.dart:415:12)
<asynchronous suspension>
#7 _buildInternal (package:front_end/src/kernel_generator_impl.dart:150:7)
<asynchronous suspension>
#8 withCrashReporting (package:front_end/src/fasta/crash.dart:133:12)
<asynchronous suspension>
#9 compile.<anonymous closure> (package:front_end/src/api_unstable/dart2js.dart:197:37)
<asynchronous suspension>
#10 CompilerContext.clear (package:front_end/src/fasta/compiler_context.dart:139:3)
<asynchronous suspension>
#11 compile (package:front_end/src/api_unstable/dart2js.dart:195:36)
<asynchronous suspension>
#12 _loadFromSource (package:compiler/src/phase/load_kernel.dart:317:29)
<asynchronous suspension>
#13 run (package:compiler/src/phase/load_kernel.dart:411:36)
<asynchronous suspension>
#14 Compiler.loadKernel (package:compiler/src/compiler.dart:392:9)
<asynchronous suspension>
#15 Compiler.produceKernel (package:compiler/src/compiler.dart:399:36)
<asynchronous suspension>
#16 Compiler.runSequentialPhases (package:compiler/src/compiler.dart:636:20)
<asynchronous suspension>
#17 Compiler.runInternal.<anonymous closure> (package:compiler/src/compiler.dart:316:7)
<asynchronous suspension>
#18 Compiler.runInternal (package:compiler/src/compiler.dart:315:5)
<asynchronous suspension>
#19 Compiler.run.<anonymous closure> (package:compiler/src/compiler.dart:236:11)
<asynchronous suspension>
#20 compile.<anonymous closure> (package:compiler/compiler_api.dart:256:30)
<asynchronous suspension>
#21 compile.compilationDone (package:compiler/src/dart2js.dart:730:3)
<asynchronous suspension>
#22 main (package:compiler/src/dart2js.dart:1233:3)
<asynchronous suspension>
Command: /Users/REDACTED/flutter/bin/cache/dart-sdk/bin/dart --disable-dart-dev
/Users/REDACTED/flutter/bin/cache/dart-sdk/bin/snapshots/dart2js.dart.snapshot --platform-binaries=/Users/REDACTED/flutter/bin/cache/flutter_web_sdk/kernel
--invoker=flutter_tool -Ddart.vm.product=true -DFLUTTER_WEB_CANVASKIT_URL=https://www.gstatic.com/flutter-canvaskit/55eae6864b296dd9f43b2cc7577ec256e5c32a8d/
-DFLUTTER_WEB_AUTO_DETECT=true --native-null-assertions --no-source-maps -o
/Users/REDACTED/GitHub/REDACTED/.dart_tool/flutter_build/5c5fce35a7df90664eb2e1ee3b00fbe6/app.dill --packages=.dart_tool/package_config.json --cfe-only
/Users/REDACTED/GitHub/REDACTED/.dart_tool/flutter_build/5c5fce35a7df90664eb2e1ee3b00fbe6/main.dart
#0 RunResult.throwException (package:flutter_tools/src/base/process.dart:125:5)
#1 _DefaultProcessUtils.run (package:flutter_tools/src/base/process.dart:321:19)
<asynchronous suspension>
#2 Dart2JSTarget.build (package:flutter_tools/src/build_system/targets/web.dart:193:5)
<asynchronous suspension>
#3 _BuildInstance._invokeInternal (package:flutter_tools/src/build_system/build_system.dart:875:9)
<asynchronous suspension>
#4 Future.wait.<anonymous closure> (dart:async/future.dart:524:21)
<asynchronous suspension>
#5 _BuildInstance.invokeTarget (package:flutter_tools/src/build_system/build_system.dart:813:32)
<asynchronous suspension>
#6 Future.wait.<anonymous closure> (dart:async/future.dart:524:21)
<asynchronous suspension>
#7 _BuildInstance.invokeTarget (package:flutter_tools/src/build_system/build_system.dart:813:32)
<asynchronous suspension>
#8 FlutterBuildSystem.build (package:flutter_tools/src/build_system/build_system.dart:642:16)
<asynchronous suspension>
#9 WebBuilder.buildWeb (package:flutter_tools/src/web/compile.dart:92:34)
<asynchronous suspension>
#10 BuildWebCommand.runCommand (package:flutter_tools/src/commands/build_web.dart:230:5)
<asynchronous suspension>
#11 FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1394:27)
<asynchronous suspension>
#12 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:19)
<asynchronous suspension>
#13 CommandRunner.runCommand (package:args/command_runner.dart:212:13)
<asynchronous suspension>
#14 FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:372:9)
<asynchronous suspension>
#15 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:19)
<asynchronous suspension>
#16 FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:308:5)
<asynchronous suspension>
#17 run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:130:9)
<asynchronous suspension>
#18 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:19)
<asynchronous suspension>
#19 main (package:flutter_tools/executable.dart:93:3)
<asynchronous suspension>
Compiling lib/main.dart for the Web... 7.1s
Error: Failed to compile application for the Web.
Let me know what other information you need. Suggestions for a work around would also be appreciated
The text was updated successfully, but these errors were encountered:
The same behavior was reported on this Flutter issue. The current status of that seems to be that a cherrypick into a Flutter release is pending. As a workaround I see mention of downgrading your version of Flutter.
Closing this out as this is technically fixed on the Dart side, feel free to follow up on the Flutter issue.
Every time I attempt to build my code, I get a compiler crash.
dart fix --apply output:
dart --version output:
Dart SDK version: 3.4.1 (stable) (Tue May 21 15:46:25 2024 +0000) on "macos_x64"
Building a flutter app in Android Studio. Tried restarting IDE, ran clear caches and restart. Still crashes.
Attempting to compile from the command line also crashes.
Command: flutter build web
Output:
Let me know what other information you need. Suggestions for a work around would also be appreciated
The text was updated successfully, but these errors were encountered: