Skip to content
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 at pub build #19721

Closed
DartBot opened this issue Jun 29, 2014 · 5 comments
Closed

dart2js: compiler crashes at pub build #19721

DartBot opened this issue Jun 29, 2014 · 5 comments

Comments

@DartBot
Copy link

DartBot commented Jun 29, 2014

This issue was originally filed by rillo...@gmail.com


What steps will reproduce the problem?

  1. Download the attached source code (or get from the following)
    https://github.com/rillomas/polymer_intl_sample/archive/3afa30245168e730a1b68beb253b239c85f97eab.zip
  2. unzip, run 'pub get' and 'pub build'

What is the expected output? What do you see instead?

Loading source assets... (0.4s)
Loading smoke/src/default_transformer transformers... (0.8s)
Loading observe transformers... (0.5s)
Loading polymer/src/build/mirrors_remover transformers... (0.3s)
Loading polymer transformers... (0.7s)
Building polymer_intl_sample... (2.3s)
[Info from Dart2JS]:
Compiling polymer_intl_sample|web/index.html_bootstrap.dart...

The compiler crashed when compiling this element.
  Element.created() : super._created() {
  ^^^^^^^
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 (build number could not be determined), and

* the entire message you see here (including the full stack trace
  below as well as the source location above).

Build error:
Transform Dart2JS on polymer_intl_sample|web/index.html_bootstrap.dart threw error: The null object does not have a gett
er 'implementation'.

NoSuchMethodError: method not found: 'implementation'
Receiver: null
Arguments: []
dart:core
Object.noSuchMethod
e:\b\build\slave\dart-editor-win-dev\build\dart\sdk\lib_internal\compiler\implementation\deferred_load.dart 176
DeferredLoadTask.outputUnitForElement
e:\b\build\slave\dart-editor-win-dev\build\dart\sdk\lib_internal\compiler\implementation\deferred_load.dart 194
DeferredLoadTask.inSameOutputUnit
e:\b\build\slave\dart-editor-win-dev\build\dart\sdk\lib_internal\compiler\implementation\ssa\builder.dart 1192
SsaBuilder.tryInlineMethod.meetsHardConstraints
e:\b\build\slave\dart-editor-win-dev\build\dart\sdk\lib_internal\compiler\implementation\ssa\builder.dart 1306
SsaBuilder.tryInlineMethod
e:\b\build\slave\dart-editor-win-dev\build\dart\sdk\lib_internal\compiler\implementation\ssa\builder.dart 4520
SsaBuilder.pushInvokeStatic
e:\b\build\slave\dart-editor-win-dev\build\dart\sdk\lib_internal\compiler\implementation\ssa\builder.dart 4265
SsaBuilder.visitStaticSend
e:\b\build\slave\dart-editor-win-dev\build\dart\sdk\lib_internal\compiler\implementation\resolved_visitor.dart 52
ResolvedVisitor.visitSend
e:\b\build\slave\dart-editor-win-dev\build\dart\sdk\lib_internal\compiler\implementation\tree\nodes.dart 355
Send.accept
e:\b\build\slave\dart-editor-win-dev\build\dart\sdk\lib_internal\compiler\implementation\ssa\builder.dart 2309
SsaBuilder.visit
e:\b\build\slave\dart-editor-win-dev\build\dart\sdk\lib_internal\compiler\implementation\ssa\builder.dart 2356
SsaBuilder.visitExpressionStatement
e:\b\build\slave\dart-editor-win-dev\build\dart\sdk\lib_internal\compiler\implementation\tree\nodes.dart 1048
ExpressionStatement.accept
e:\b\build\slave\dart-editor-win-dev\build\dart\sdk\lib_internal\compiler\implementation\ssa\builder.dart 2309
SsaBuilder.visit
e:\b\build\slave\dart-editor-win-dev\build\dart\sdk\lib_internal\compiler\implementation\ssa\builder.dart 2318
SsaBuilder.visitBlock
e:\b\build\slave\dart-editor-win-dev\build\dart\sdk\lib_internal\compiler\implementation\tree\nodes.dart 575
Block.accept
e:\b\build\slave\dart-editor-win-dev\build\dart\sdk\lib_internal\compiler\implementation\ssa\builder.dart 1448
SsaBuilder.buildMethod
e:\b\build\slave\dart-editor-win-dev\build\dart\sdk\lib_internal\compiler\implementation\ssa\builder.dart 48
SsaBuilderTask.build.<fn>.<fn>
e:\b\build\slave\dart-editor-win-dev\build\dart\sdk\lib_internal\compiler\implementation\compiler.dart 663
Compiler.withCurrentElement
e:\b\build\slave\dart-editor-win-dev\build\dart\sdk\lib_internal\compiler\implementation\compiler.dart 684
Compiler.withCurrentElement
e:\b\build\slave\dart-editor-win-dev\build\dart\sdk\lib_internal\compiler\implementation\compiler.dart 664
Compiler.withCurrentElement
e:\b\build\slave\dart-editor-win-dev\build\dart\sdk\lib_internal\compiler\implementation\ssa\builder.dart 36
SsaBuilderTask.build.<fn>
e:\b\build\slave\dart-editor-win-dev\build\dart\sdk\lib_internal\compiler\implementation\compiler.dart 1806
CompilerTask.measure
e:\b\build\slave\dart-editor-win-dev\build\dart\sdk\lib_internal\compiler\implementation\ssa\builder.dart 34
SsaBuilderTask.build
e:\b\build\slave\dart-editor-win-dev\build\dart\sdk\lib_internal\compiler\implementation\js_backend\backend.dart 1203
JavaScriptBackend.codegen
e:\b\build\slave\dart-editor-win-dev\build\dart\sdk\lib_internal\compiler\implementation\compiler.dart 1469
Compiler.codegen
e:\b\build\slave\dart-editor-win-dev\build\dart\sdk\lib_internal\compiler\implementation\compiler.dart 167
CodegenWorkItem.run
e:\b\build\slave\dart-editor-win-dev\build\dart\sdk\lib_internal\compiler\implementation\compiler.dart 1359
Compiler.processQueue.<fn>.<fn>
e:\b\build\slave\dart-editor-win-dev\build\dart\sdk\lib_internal\compiler\implementation\compiler.dart 663
Compiler.withCurrentElement
e:\b\build\slave\dart-editor-win-dev\build\dart\sdk\lib_internal\compiler\implementation\compiler.dart 678
Compiler.withCurrentElement
e:\b\build\slave\dart-editor-win-dev\build\dart\sdk\lib_internal\compiler\implementation\compiler.dart 664
Compiler.withCurrentElement
e:\b\build\slave\dart-editor-win-dev\build\dart\sdk\lib_internal\compiler\implementation\compiler.dart 1359
Compiler.processQueue.<fn>
e:\b\build\slave\dart-editor-win-dev\build\dart\sdk\lib_internal\compiler\implementation\enqueue.dart 556
Enqueuer.forEach
e:\b\build\slave\dart-editor-win-dev\build\dart\sdk\lib_internal\compiler\implementation\compiler.dart 1358
Compiler.processQueue
e:\b\build\slave\dart-editor-win-dev\build\dart\sdk\lib_internal\compiler\implementation\compiler.dart 1294
Compiler.compileLoadedLibraries
e:\b\build\slave\dart-editor-win-dev\build\dart\sdk\lib_internal\compiler\implementation\compiler.dart 1167
Compiler.runCompiler.<fn>
dart:isolate
_RawReceivePortImpl._handleMessage
Build failed.

What version of the product are you using? On what operating system?

OS: Windows 8.1 x64
Dart: 1.5.1 stable

Please provide any additional information below.


Attachment:
polymer_intl_sample-3afa30245168e730a1b68beb253b239c85f97eab.zip (13.82 KB)

@kasperl
Copy link

kasperl commented Jun 30, 2014

cc @johnniwinther.
Added Area-Dart2JS, Triaged labels.
Changed the title to: "dart2js: compiler crashes at pub build".

@johnniwinther
Copy link
Member

cc @sigurdm.

@sigurdm
Copy link
Contributor

sigurdm commented Jun 30, 2014

Added Started label.

@sigurdm
Copy link
Contributor

sigurdm commented Jul 1, 2014

The problem was with the handling of custom elements.
This CL should solve the bug: https://codereview.chromium.org/368593002/

@sigurdm
Copy link
Contributor

sigurdm commented Jul 3, 2014

Added Fixed label.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants