Open vsmenon opened 5 years ago
Hard to say - we aren't actively working on it, but haven't "fixed" it as far as we know. The primary users hitting it were flutter web users who don't seem to be reporting it any more but most of them have moved off of build_web_compilers now.
Leaving it open makes it more discoverable, which is nice.
Removing myself as the assignee since there is no ongoing work here
For others that are experiencing this problem you can also try using the master branch of flutter which uses a different compilation strategy and shouldn't have this problem. It isn't completely polished yet (source_maps/debugging are in a state of flux) but it should be improving quickly.
Is it something that should still happen on an Angular app ?
Happens a lot when merging a branch while webdev serve
is running
Dart: 2.10.2 Angular: 6.0.0 build_web_compiler: 2.11.0
Angular does still use this code path and may still experience this issue
I can repro this by updating back and forth between revisions. I could send more info @google if you're interested. Using Angular.
We get this from time to time:
build_web_compilers:ddc on lib/routes/login/login.template.ddc.module:
Failed to initialize incremental compiler, throwing away old state.
This is likely a result of https://github.com/dart-lang/sdk/issues/38102, if
you are consistently seeing this problem please see that issue.
The specific exception that was encountered was:
type 'Field' is not a subtype of type 'Procedure?' in type cast
#0 BinaryBuilder.readProcedure (package:kernel/binary/ast_from_binary.dart:1674:38)
#1 BinaryBuilder._readProcedureList.<anonymous closure> (package:kernel/binary/ast_from_binary.dart:1248:14)
#2 new List.generate (dart:core-patch/array_patch.dart:64:28)
#3 BinaryBuilder._readProcedureList (package:kernel/binary/ast_from_binary.dart:1246:32)
#4 BinaryBuilder.readClassPartialContent (package:kernel/binary/ast_from_binary.dart:1511:31)
#5 BinaryBuilder.readClass (package:kernel/binary/ast_from_binary.dart:1403:7)
#6 BinaryBuilder._readClassList.<anonymous closure> (package:kernel/binary/ast_from_binary.dart:1207:16)
#7 new List.generate (dart:core-patch/array_patch.dart:64:28)
#8 BinaryBuilder._readClassList (package:kernel/binary/ast_from_binary.dart:1205:37)
#9 BinaryBuilder.readLibrary (package:kernel/binary/ast_from_binary.dart:1175:5)
#10 BinaryBuilder._readOneComponent (package:kernel/binary/ast_from_binary.dart:873:9)
#11 BinaryBuilder.readComponent.<anonymous closure> (package:kernel/binary/ast_from_binary.dart:657:34)
#12 Timeline.timeSync (dart:developer/timeline.dart:157:22)
#13 BinaryBuilder.readComponent (package:kernel/binary/ast_from_binary.dart:627:21)
#14 ProcessedOptions.loadComponent (package:front_end/src/base/processed_options.dart:467:10)
#15 initializeIncrementalCompiler (package:front_end/src/api_unstable/modular_incremental_compilation.dart:210:33)
<asynchronous suspension>
#16 _compile (package:dev_compiler/src/kernel/command.dart:300:21)
<asynchronous suspension>
#17 compile (package:dev_compiler/src/kernel/command.dart:50:12)
<asynchronous suspension>
#18 _CompilerWorker.performRequest (package:dev_compiler/ddc.dart:68:18)
<asynchronous suspension>
#19 AsyncWorkerLoop.run (package:bazel_worker/src/worker/async_worker_loop.dart:35:20)
<asynchronous suspension>
#20 internalMain (package:dev_compiler/ddc.dart:31:5)
<asynchronous suspension>
@jodinathan that looks like https://github.com/dart-lang/sdk/issues/49261 which should be resolved at head
Still happening with dart-dev-runner
occasionally.
@parren-google - can you file a buganizer with the stack trace and reproduction instructions for surfacing this issue with dart-dev-runner
?
We still have several reports of errors in the wild where DDC (kernel-based) crashes on invalid kernel input when invoking
initializeIncrementalCompiler
:Or for example:
See https://github.com/dart-lang/build/issues/2362
@natebosch @jakemac53 - should we catch and return a specific error code from DDC for this?
fyi @jensjoha