{"action":"created","issue":{"url":"https://api.github.com/repos/dart-lang/sdk/issues/34261","repository_url":"https://api.github.com/repos/dart-lang/sdk","labels_url":"https://api.github.com/repos/dart-lang/sdk/issues/34261/labels{/name}","comments_url":"https://api.github.com/repos/dart-lang/sdk/issues/34261/comments","events_url":"https://api.github.com/repos/dart-lang/sdk/issues/34261/events","html_url":"https://github.com/dart-lang/sdk/issues/34261","id":354105432,"node_id":"MDU6SXNzdWUzNTQxMDU0MzI=","number":34261,"title":"Received \"The compiler is broken\" message from Dart2JS","user":{"login":"ajrcarey","id":12753545,"node_id":"MDQ6VXNlcjEyNzUzNTQ1","avatar_url":"https://avatars2.githubusercontent.com/u/12753545?v=4","gravatar_id":"","url":"https://api.github.com/users/ajrcarey","html_url":"https://github.com/ajrcarey","followers_url":"https://api.github.com/users/ajrcarey/followers","following_url":"https://api.github.com/users/ajrcarey/following{/other_user}","gists_url":"https://api.github.com/users/ajrcarey/gists{/gist_id}","starred_url":"https://api.github.com/users/ajrcarey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajrcarey/subscriptions","organizations_url":"https://api.github.com/users/ajrcarey/orgs","repos_url":"https://api.github.com/users/ajrcarey/repos","events_url":"https://api.github.com/users/ajrcarey/events{/privacy}","received_events_url":"https://api.github.com/users/ajrcarey/received_events","type":"User","site_admin":false},"labels":[{"id":219928173,"node_id":"MDU6TGFiZWwyMTk5MjgxNzM=","url":"https://api.github.com/repos/dart-lang/sdk/labels/area-dart2js","name":"area-dart2js","color":"c7def8","default":false},{"id":219928222,"node_id":"MDU6TGFiZWwyMTk5MjgyMjI=","url":"https://api.github.com/repos/dart-lang/sdk/labels/needs-info","name":"needs-info","color":"e2668f","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-08-26T15:53:48Z","updated_at":"2018-09-25T18:01:10Z","closed_at":null,"author_association":"NONE","body":"During a compilation from Dart 2.0 code to Javascript, the following message was received:\r\n\r\n```\r\nDart2Js finished with:\r\n\r\npackages/duet_foundation/src/query/upsert/query.dart:17:40:\r\nInternal Error: The compiler crashed when compiling this element.\r\n  @override Promise<UpsertQueryResult> execute(\r\n                                       ^\r\nThe compiler is broken.\r\n\r\nWhen compiling the above element, the compiler crashed. It is not\r\npossible to tell if this is caused by a problem in your program or\r\nnot. Regardless, the compiler should not crash.\r\n\r\nThe Dart team would greatly appreciate if you would take a moment to\r\nreport this problem at http://dartbug.com/new.\r\n\r\nPlease include the following information:\r\n\r\n* the name and version of your operating system,\r\n\r\n* the Dart SDK build number (2.0.0), and\r\n\r\n* the entire message you see here (including the full stack trace\r\n  below as well as the source location above).\r\n\r\nThe compiler crashed: NoSuchMethodError: The getter 'thisLocal' was called on null.\r\nReceiver: null\r\nTried calling: thisLocal\r\n#0      Object.noSuchMethod (dart:core/runtime/libobject_patch.dart:46:5)\r\n#1      LocalsHandler.startFunction (file:///b/build/slave/dart-sdk-linux-stable/build/sdk/pkg/compiler/lib/src/ssa/locals_handler.dart:240:51)\r\n#2      KernelSsaGraphBuilder.openFunction (file:///b/build/slave/dart-sdk-linux-stable/build/sdk/pkg/compiler/lib/src/ssa/builder_kernel.dart:1309:19)\r\n#3      KernelSsaGraphBuilder.buildFunctionNode (file:///b/build/slave/dart-sdk-linux-stable/build/sdk/pkg/compiler/lib/src/ssa/builder_kernel.dart:987:5)\r\n#4      KernelSsaGraphBuilder.build.<anonymous closure> (file:///b/build/slave/dart-sdk-linux-stable/build/sdk/pkg/compiler/lib/src/ssa/builder_kernel.dart:203:15)\r\n#5      CompilerDiagnosticReporter.withCurrentElement (file:///b/build/slave/dart-sdk-linux-stable/build/sdk/pkg/compiler/lib/src/compiler.dart:750:15)\r\n#6      KernelSsaGraphBuilder.build (file:///b/build/slave/dart-sdk-linux-stable/build/sdk/pkg/compiler/lib/src/ssa/builder_kernel.dart:188:21)\r\n#7      KernelSsaBuilder.build.<anonymous closure> (file:///b/build/slave/dart-sdk-linux-stable/build/sdk/pkg/compiler/lib/src/kernel/kernel_backend_strategy.dart:116:22)\r\n#8      CompilerTask.measure (file:///b/build/slave/dart-sdk-linux-stable/build/sdk/pkg/compiler/lib/src/common/tasks.dart:63:51)\r\n#9      KernelSsaBuilder.build (file:///b/build/slave/dart-sdk-linux-stable/build/sdk/pkg/compiler/lib/src/kernel/kernel_backend_strategy.dart:102:17)\r\n#10     SsaBuilderTask.build (file:///b/build/slave/dart-sdk-linux-stable/build/sdk/pkg/compiler/lib/src/ssa/ssa.dart:96:21)\r\n#11     SsaFunctionCompiler.compile (file:///b/build/slave/dart-sdk-linux-stable/build/sdk/pkg/compiler/lib/src/ssa/ssa.dart:44:29)\r\n#12     JavaScriptBackend.codegen (file:///b/build/slave/dart-sdk-linux-stable/build/sdk/pkg/compiler/lib/src/js_backend/backend.dart:700:26)\r\n#13     KernelCodegenWorkItem.run (file:///b/build/slave/dart-sdk-linux-stable/build/sdk/pkg/compiler/lib/src/kernel/kernel_backend_strategy.dart:85:21)\r\n#14     Compiler.emptyQueue.<anonymous closure>.<anonymous closure>.<anonymous closure>.<anonymous closure>.<anonymous closure> (file:///b/build/slave/dart-sdk-linux-stable/build/sdk/pkg/compiler/lib/src/compiler.dart:428:70)\r\n#15     CompilerTask.measureSubtask (file:///b/build/slave/dart-sdk-linux-stable/build/sdk/pkg/compiler/lib/src/common/tasks.dart:178:35)\r\n#16     Compiler.emptyQueue.<anonymous closure>.<anonymous closure>.<anonymous closure>.<anonymous closure> (file:///b/build/slave/dart-sdk-linux-stable/build/sdk/pkg/compiler/lib/src/compiler.dart:428:32)\r\n#17     CompilerTask.measureSubtask (file:///b/build/slave/dart-sdk-linux-stable/build/sdk/pkg/compiler/lib/src/common/tasks.dart:178:35)\r\n#18     Compiler.emptyQueue.<anonymous closure>.<anonymous closure>.<anonymous closure> (file:///b/build/slave/dart-sdk-linux-stable/build/sdk/pkg/compiler/lib/src/compiler.dart:426:28)\r\n#19     CompilerDiagnosticReporter.withCurrentElement (file:///b/build/slave/dart-sdk-linux-stable/build/sdk/pkg/compiler/lib/src/compiler.dart:750:15)\r\n#20     Compiler.emptyQueue.<anonymous closure>.<anonymous closure> (file:///b/build/slave/dart-sdk-linux-stable/build/sdk/pkg/compiler/lib/src/compiler.dart:424:18)\r\n#21     EnqueuerStrategy.processWorkItem (file:///b/build/slave/dart-sdk-linux-stable/build/sdk/pkg/compiler/lib/src/enqueue.dart:501:6)\r\n#22     CodegenEnqueuer._forEach (file:///b/build/slave/dart-sdk-linux-stable/build/sdk/pkg/compiler/lib/src/js_backend/enqueuer.dart:247:20)\r\n#23     CodegenEnqueuer.forEach (file:///b/build/slave/dart-sdk-linux-stable/build/sdk/pkg/compiler/lib/src/js_backend/enqueuer.dart:262:5)\r\n#24     Compiler.emptyQueue.<anonymous closure> (file:///b/build/slave/dart-sdk-linux-stable/build/sdk/pkg/compiler/lib/src/compiler.dart:420:16)\r\n#25     CompilerTask.measureSubtask (file:///b/build/slave/dart-sdk-linux-stable/build/sdk/pkg/compiler/lib/src/common/tasks.dart:178:35)\r\n#26     Compiler.emptyQueue (file:///b/build/slave/dart-sdk-linux-stable/build/sdk/pkg/compiler/lib/src/compiler.dart:419:14)\r\n#27     Compiler.processQueue.<anonymous closure> (file:///b/build/slave/dart-sdk-linux-stable/build/sdk/pkg/compiler/lib/src/compiler.dart:441:7)\r\n#28     CompilerTask.measureSubtask (file:///b/build/slave/dart-sdk-linux-stable/build/sdk/pkg/compiler/lib/src/common/tasks.dart:178:35)\r\n#29     Compiler.processQueue (file:///b/build/slave/dart-sdk-linux-stable/build/sdk/pkg/compiler/lib/src/compiler.dart:438:14)\r\n#30     Compiler.generateJavaScriptCode (file:///b/build/slave/dart-sdk-linux-stable/build/sdk/pkg/compiler/lib/src/compiler.dart:359:5)\r\n#31     Compiler.compileLoadedLibraries.<anonymous closure> (file:///b/build/slave/dart-sdk-linux-stable/build/sdk/pkg/compiler/lib/src/compiler.dart:385:38)\r\n#32     CompilerTask.measureSubtask (file:///b/build/slave/dart-sdk-linux-stable/build/sdk/pkg/compiler/lib/src/common/tasks.dart:178:35)\r\n#33     Compiler.compileLoadedLibraries (file:///b/build/slave/dart-sdk-linux-stable/build/sdk/pkg/compiler/lib/src/compiler.dart:379:16)\r\n#34     Compiler.runInternal (file:///b/build/slave/dart-sdk-linux-stable/build/sdk/pkg/compiler/lib/src/compiler.dart:277:5)\r\n<asynchronous suspension>\r\n#35     Compiler.run.<anonymous closure>.<anonymous closure> (file:///b/build/slave/dart-sdk-linux-stable/build/sdk/pkg/compiler/lib/src/compiler.dart:216:38)\r\n#36     new Future.sync (dart:async/future.dart:224:31)\r\n#37     Compiler.run.<anonymous closure> (file:///b/build/slave/dart-sdk-linux-stable/build/sdk/pkg/compiler/lib/src/compiler.dart:216:20)\r\n#38     CompilerTask.measureSubtask (file:///b/build/slave/dart-sdk-linux-stable/build/sdk/pkg/compiler/lib/src/common/tasks.dart:178:35)\r\n#39     Compiler.run (file:///b/build/slave/dart-sdk-linux-stable/build/sdk/pkg/compiler/lib/src/compiler.dart:213:41)\r\n#40     CompilerImpl.run.<anonymous closure>.<anonymous closure> (file:///b/build/slave/dart-sdk-linux-stable/build/sdk/pkg/compiler/lib/src/apiimpl.dart:148:22)\r\n#41     _RootZone.runUnary (dart:async/zone.dart:1379:54)\r\n#42     _FutureListener.handleValue (dart:async/future_impl.dart:129:18)\r\n#43     Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:642:45)\r\n#44     Future._propagateToListeners (dart:async/future_impl.dart:671:32)\r\n#45     Future._completeWithValue (dart:async/future_impl.dart:486:5)\r\n#46     Future._asyncComplete.<anonymous closure> (dart:async/future_impl.dart:516:7)\r\n#47     _microtaskLoop (dart:async/schedule_microtask.dart:41:21)\r\n#48     _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)\r\n#49     _runPendingImmediateCallback (dart:isolate/runtime/libisolate_patch.dart:113:13)\r\n#50     _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:166:5)\r\n```\r\n\r\nSubmitting as instructed by the compiler :)\r\n\r\nThis is on Dart 2.0.0 running on linux 64. There are no analysis issues with the code. It should theroetically run on flutter as well, I will try and find time to test that out later on and report back.\r\n\r\nLet me know what I can do to help."},"comment":{"url":"https://api.github.com/repos/dart-lang/sdk/issues/comments/424442681","html_url":"https://github.com/dart-lang/sdk/issues/34261#issuecomment-424442681","issue_url":"https://api.github.com/repos/dart-lang/sdk/issues/34261","id":424442681,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNDQ0MjY4MQ==","user":{"login":"sigmundch","id":2049220,"node_id":"MDQ6VXNlcjIwNDkyMjA=","avatar_url":"https://avatars3.githubusercontent.com/u/2049220?v=4","gravatar_id":"","url":"https://api.github.com/users/sigmundch","html_url":"https://github.com/sigmundch","followers_url":"https://api.github.com/users/sigmundch/followers","following_url":"https://api.github.com/users/sigmundch/following{/other_user}","gists_url":"https://api.github.com/users/sigmundch/gists{/gist_id}","starred_url":"https://api.github.com/users/sigmundch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sigmundch/subscriptions","organizations_url":"https://api.github.com/users/sigmundch/orgs","repos_url":"https://api.github.com/users/sigmundch/repos","events_url":"https://api.github.com/users/sigmundch/events{/privacy}","received_events_url":"https://api.github.com/users/sigmundch/received_events","type":"User","site_admin":false},"created_at":"2018-09-25T18:01:10Z","updated_at":"2018-09-25T18:01:10Z","author_association":"MEMBER","body":"@ajrcarey - in this case, the most helpful thing would be to have some code snippets to see what the compiler was trying to do.\r\n\r\nIf by any chance your code is open-source, you could give us a pointer at how/where you compile your app. If your app is not available openly, another option is to share the body of `execute` (from packages/duet_foundation/src/query/upsert/query.dart:17:40)\r\n\r\n"}}
{"actor":{"display_login":"sigmundch"}}