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
dart2js compiler crashes when compiling deferred libraries #17110
Comments
cc @floitschG. |
Steps to reproduce: dart --version |
I was playing around with @MirrorsUsed and it seems like if I add @MirrorsUsed to the deferred libraries the error goes away, but it doesn't split the code... it's all one big chunk: pavelgj/angular_deferred_sample@87dce09 How do mirrors affect code splitting? |
False alarm, the error is still there. I think I just accidentally ran it with stable sdk. |
Thanks for the report. Added Started label. |
Set owner to @sigurdm. |
Issue #17887 has been merged into this issue. |
any updates on this? |
Yes - It should be fixed by https://codereview.chromium.org/180843012/ I forgot to mark it. Can you confirm? Added Fixed label. |
No, still seeing the error... very similar stacktrace but different line numbers (sending via email). |
Added Triaged label. |
Added Accepted label. |
Added Fixed label. |
web/web_sandbox.dart:1:1: Error: The compiler crashed when compiling this element.
//@Injectables(const[Profiler, RootScope, AstParser])
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 (1.2.0-dev.5.15), and
* the entire message you see here (including the full stack trace
below as well as the source location above).
The compiler crashed: The null object does not have a getter 'implementation'.
NoSuchMethodError : method not found: 'implementation'
Receiver: null
Arguments: []
0 Object.noSuchMethod (dart:core-patch/object_patch.dart:45)
1 DeferredLoadTask.outputUnitForElement (file:///Volumes/data/b/build/slave/dart-editor-mac-dev/build/dart/sdk/lib/_internal/compiler/implementation/deferred_load.dart:145)
2 CodeEmitterTask.computeNeededClasses (file:///Volumes/data/b/build/slave/dart-editor-mac-dev/build/dart/sdk/lib/_internal/compiler/implementation/js_emitter/code_emitter_task.dart:1168)
3 CodeEmitterTask.assembleProgram.<anonymous closure> (file:///Volumes/data/b/build/slave/dart-editor-mac-dev/build/dart/sdk/lib/_internal/compiler/implementation/js_emitter/code_emitter_task.dart:1267)
4 CompilerTask.measure (file:///Volumes/data/b/build/slave/dart-editor-mac-dev/build/dart/sdk/lib/_internal/compiler/implementation/compiler.dart:1623)
5 CodeEmitterTask.assembleProgram (file:///Volumes/data/b/build/slave/dart-editor-mac-dev/build/dart/sdk/lib/_internal/compiler/implementation/js_emitter/code_emitter_task.dart:1262)
6 JavaScriptBackend.assembleProgram (file:///Volumes/data/b/build/slave/dart-editor-mac-dev/build/dart/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart:1197)
7 Compiler.compileLoadedLibraries (file:///Volumes/data/b/build/slave/dart-editor-mac-dev/build/dart/sdk/lib/_internal/compiler/implementation/compiler.dart:1128)
8 Compiler.runCompiler.<anonymous closure> (file:///Volumes/data/b/build/slave/dart-editor-mac-dev/build/dart/sdk/lib/_internal/compiler/implementation/compiler.dart:1008)
9 _rootRunUnary (dart:async/zone.dart:717)
10 _RootZone.runUnary (dart:async/zone.dart:854)
11 _Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:439)
12 _Future._propagateToListeners (dart:async/future_impl.dart:522)
13 _Future._complete (dart:async/future_impl.dart:303)
14 Future.forEach.nextElement (dart:async/future.dart:286)
15 _rootRunUnary (dart:async/zone.dart:717)
16 _RootZone.runUnary (dart:async/zone.dart:854)
17 _Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:439)
18 _Future._propagateToListeners (dart:async/future_impl.dart:522)
19 _Future._complete (dart:async/future_impl.dart:303)
20 _Future._asyncComplete.<anonymous closure> (dart:async/future_impl.dart:354)
21 _asyncRunCallbackLoop (dart:async/schedule_microtask.dart:23)
22 _asyncRunCallback (dart:async/schedule_microtask.dart:32)
23 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:119)
The text was updated successfully, but these errors were encountered: