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

CRASH : Failed to compile application for the Web. #46866

Closed
KTOLE18 opened this issue Aug 10, 2021 · 4 comments
Closed

CRASH : Failed to compile application for the Web. #46866

KTOLE18 opened this issue Aug 10, 2021 · 4 comments
Labels
area-web Use area-web for Dart web related issues, including the DDC and dart2js compilers and JS interop. needs-info We need additional information from the issue author (auto-closed after 14 days if no response) web-dart2js

Comments

@KTOLE18
Copy link

KTOLE18 commented Aug 10, 2021

Target dart2js failed: Exception: lib/Views/inspection_checklist.dart:1138:16:
Internal Error: The compiler crashed when compiling this element.
List inspectionTabViews() {
^
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 (2.14.0-301.2.beta), and

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

The compiler crashed: Unsupported operation: Unhandled node InvalidExpression(<invalid:lib/Views/inspection_checklist.dart:1437:88: Error: This couldn't be parsed.
(file.bytes != null) ? file.bytes;
^>) (InvalidExpression)
#0 ScopeModelBuilder.defaultNode (package:compiler/src/ir/scope_visitor.dart:126:7)
#1 Visitor.defaultTreeNode (package:kernel/visitor.dart:806:39)
#2 TreeVisitor.defaultExpression (package:kernel/visitor.dart:191:43)
#3 TreeVisitor.visitInvalidExpression (package:kernel/visitor.dart:193:55)
#4 InvalidExpression.accept (package:kernel/ast.dart:3725:44)
#5 ScopeModelBuilder.visitNode (package:compiler/src/ir/scope_visitor.dart:129:18)
#6 ScopeModelBuilder._handleExpression (package:compiler/src/ir/scope_visitor.dart:176:33)
#7 ScopeModelBuilder.visitConditionalExpression (package:compiler/src/ir/scope_visitor.dart:1016:22)
#8 ConditionalExpression.accept (package:kernel/ast.dart:6681:44)
#9 ScopeModelBuilder.visitNode (package:compiler/src/ir/scope_visitor.dart:129:18)
#10 ScopeModelBuilder._handleExpression (package:compiler/src/ir/scope_visitor.dart:176:33)
#11 ScopeModelBuilder.visitAsExpression (package:compiler/src/ir/scope_visitor.dart:778:20)
#12 AsExpression.accept (package:kernel/ast.dart:7401:44)
#13 ScopeModelBuilder.visitNode (package:compiler/src/ir/scope_visitor.dart:129:18)
#14 ScopeModelBuilder._handleExpression (package:compiler/src/ir/scope_visitor.dart:176:33)
#15 ScopeModelBuilder._handleVariableDeclaration (package:compiler/src/ir/scope_visitor.dart:341:26)
#16 ScopeModelBuilder.visitVariableDeclaration (package:compiler/src/ir/scope_visitor.dart:347:5)
#17 VariableDeclaration.accept (package:kernel/ast.dart:10361:43)
#18 ScopeModelBuilder.visitNode (package:compiler/src/ir/scope_visitor.dart:129:18)
#19 ScopeModelBuilder.visitNodes (package:compiler/src/ir/scope_visitor.dart:190:39)
#20 ScopeModelBuilder.visitBlock (package:compiler/src/ir/scope_visitor.dart:1315:5)
#21 Block.accept (package:kernel/ast.dart:8821:43)
#22 ScopeModelBuilder.visitNode (package:compiler/src/ir/scope_visitor.dart:129:18)
#23 ScopeModelBuilder.visitIfStatement (package:compiler/src/ir/scope_visitor.dart:1425:5)
#24 IfStatement.accept (package:kernel/ast.dart:9725:43)
#25 ScopeModelBuilder.visitNode (package:compiler/src/ir/scope_visitor.dart:129:18)
#26 ScopeModelBuilder.visitNodes (package:compiler/src/ir/scope_visitor.dart:190:39)
#27 ScopeModelBuilder.visitBlock (package:compiler/src/ir/scope_visitor.dart:1315:5)
#28 Block.accept (package:kernel/ast.dart:8821:43)
#29 ScopeModelBuilder.visitNode (package:compiler/src/ir/scope_visitor.dart:129:18)
#30 ScopeModelBuilder.visitTryCatch. (package:compiler/src/ir/scope_visitor.dart:297:7)
#31 VariableCollectorMixin.visitInVariableScope (package:compiler/src/ir/scope.dart:111:6)
#32 ScopeModelBuilder.visitTryCatch (package:compiler/src/ir/scope_visitor.dart:296:5)
#33 TryCatch.accept (package:kernel/ast.dart:9854:43)
#34 ScopeModelBuilder.visitNode (package:compiler/src/ir/scope_visitor.dart:129:18)
#35 ScopeModelBuilder.visitNodes (package:compiler/src/ir/scope_visitor.dart:190:39)
#36 ScopeModelBuilder.visitBlock (package:compiler/src/ir/scope_visitor.dart:1315:5)
#37 Block.accept (package:kernel/ast.dart:8821:43)
#38 ScopeModelBuilder.visitNode (package:compiler/src/ir/scope_visitor.dart:129:18)
#39 ScopeModelBuilder.visitFunctionNode (package:compiler/src/ir/scope_visitor.dart:838:7)
#40 FunctionNode.accept (package:kernel/ast.dart:3502:38)
#41 ScopeModelBuilder.visitNode (package:compiler/src/ir/scope_visitor.dart:129:18)
#42 ScopeModelBuilder.visitFunctionExpression.. (package:compiler/src/ir/scope_visitor.dart:677:9)
#43 VariableCollectorMixin.visitInVariableScope (package:compiler/src/ir/scope.dart:111:6)
#44 ScopeModelBuilder.visitFunctionExpression. (package:compiler/src/ir/scope_visitor.dart:676:7)
#45 ScopeModelBuilder.enterNewScope (package:compiler/src/ir/scope_visitor.dart:280:18)
#46 ScopeModelBuilder.visitInvokable (package:compiler/src/ir/scope_visitor.dart:595:5)
#47 ScopeModelBuilder.visitFunctionExpression (package:compiler/src/ir/scope_visitor.dart:675:5)
#48 FunctionExpression.accept (package:kernel/ast.dart:8275:44)
#49 ScopeModelBuilder.visitNode (package:compiler/src/ir/scope_visitor.dart:129:18)
#50 ScopeModelBuilder._handleExpression (package:compiler/src/ir/scope_visitor.dart:176:33)
#51 ScopeModelBuilder.visitArguments (package:compiler/src/ir/scope_visitor.dart:976:29)
#52 ScopeModelBuilder.visitConstructorInvocation (package:compiler/src/ir/scope_visitor.dart:1001:5)
#53 ConstructorInvocation.accept (package:kernel/ast.dart:6386:44)
#54 ScopeModelBuilder.visitNode (package:compiler/src/ir/scope_visitor.dart:129:18)
#55 ScopeModelBuilder._handleExpression (package:compiler/src/ir/scope_visitor.dart:176:33)
#56 ScopeModelBuilder.visitArguments (package:compiler/src/ir/scope_visitor.dart:976:29)
#57 ScopeModelBuilder.visitConstructorInvocation (package:compiler/src/ir/scope_visitor.dart:1001:5)
#58 ConstructorInvocation.accept (package:kernel/ast.dart:6386:44)
#59 ScopeModelBuilder.visitNode (package:compiler/src/ir/scope_visitor.dart:129:18)
#60 ScopeModelBuilder._handleExpression (package:compiler/src/ir/scope_visitor.dart:176:33)
#61 ScopeModelBuilder.visitExpressions (package:compiler/src/ir/scope_visitor.dart:203:18)
#62 ScopeModelBuilder.visitListLiteral (package:compiler/src/ir/scope_visitor.dart:847:37)
#63 ListLiteral.accept (package:kernel/ast.dart:7944:44)
#64 ScopeModelBuilder.visitNode (package:compiler/src/ir/scope_visitor.dart:129:18)
#65 ScopeModelBuilder._handleExpression (package:compiler/src/ir/scope_visitor.dart:176:33)
#66 ScopeModelBuilder.visitArguments (package:compiler/src/ir/scope_visitor.dart:976:29)
#67 ScopeModelBuilder.visitConstructorInvocation (package:compiler/src/ir/scope_visitor.dart:1001:5)
#68 ConstructorInvocation.accept (package:kernel/ast.dart:6386:44)
#69 ScopeModelBuilder.visitNode (package:compiler/src/ir/scope_visitor.dart:129:18)
#70 ScopeModelBuilder._handleExpression (package:compiler/src/ir/scope_visitor.dart:176:33)
#71 ScopeModelBuilder.visitExpressions (package:compiler/src/ir/scope_visitor.dart:203:18)
#72 ScopeModelBuilder.visitListLiteral (package:compiler/src/ir/scope_visitor.dart:847:37)
#73 ListLiteral.accept (package:kernel/ast.dart:7944:44)
#74 ScopeModelBuilder.visitNode (package:compiler/src/ir/scope_visitor.dart:129:18)
#75 ScopeModelBuilder._handleExpression (package:compiler/src/ir/scope_visitor.dart:176:33)
#76 ScopeModelBuilder.visitArguments (package:compiler/src/ir/scope_visitor.dart:976:29)
#77 ScopeModelBuilder.visitConstructorInvocation (package:compiler/src/ir/scope_visitor.dart:1001:5)
#78 ConstructorInvocation.accept (package:kernel/ast.dart:6386:44)
#79 ScopeModelBuilder.visitNode (package:compiler/src/ir/scope_visitor.dart:129:18)
#80 ScopeModelBuilder._handleExpression (package:compiler/src/ir/scope_visitor.dart:176:33)
#81 ScopeModelBuilder.visitExpressions (package:compiler/src/ir/scope_visitor.dart:203:18)
#82 ScopeModelBuilder.visitListLiteral (package:compiler/src/ir/scope_visitor.dart:847:37)
#83 ListLiteral.accept (package:kernel/ast.dart:7944:44)
#84 ScopeModelBuilder.visitNode (package:compiler/src/ir/scope_visitor.dart:129:18)
#85 ScopeModelBuilder._handleExpression (package:compiler/src/ir/scope_visitor.dart:176:33)
#86 ScopeModelBuilder.visitArguments (package:compiler/src/ir/scope_visitor.dart:976:29)
#87 ScopeModelBuilder.visitConstructorInvocation (package:compiler/src/ir/scope_visitor.dart:1001:5)
#88 ConstructorInvocation.accept (package:kernel/ast.dart:6386:44)
#89 ScopeModelBuilder.visitNode (package:compiler/src/ir/scope_visitor.dart:129:18)
#90 ScopeModelBuilder._handleExpression (package:compiler/src/ir/scope_visitor.dart:176:33)
#91 ScopeModelBuilder.visitExpressions (package:compiler/src/ir/scope_visitor.dart:203:18)
#92 ScopeModelBuilder.visitArguments (package:compiler/src/ir/scope_visitor.dart:974:47)
#93 ScopeModelBuilder.visitInstanceInvocation (package:compiler/src/ir/scope_visitor.dart:1071:39)
#94 InstanceInvocation.accept (package:kernel/ast.dart:5312:44)
#95 ScopeModelBuilder.visitNode (package:compiler/src/ir/scope_visitor.dart:129:18)
#96 ScopeModelBuilder._handleExpression (package:compiler/src/ir/scope_visitor.dart:176:33)
#97 ScopeModelBuilder.visitExpressionStatement (package:compiler/src/ir/scope_visitor.dart:1345:23)
#98 ExpressionStatement.accept (package:kernel/ast.dart:8765:43)
#99 ScopeModelBuilder.visitNode (package:compiler/src/ir/scope_visitor.dart:129:18)
#100 ScopeModelBuilder.visitIfStatement (package:compiler/src/ir/scope_visitor.dart:1425:5)
#101 IfStatement.accept (package:kernel/ast.dart:9725:43)
#102 ScopeModelBuilder.visitNode (package:compiler/src/ir/scope_visitor.dart:129:18)
#103 ScopeModelBuilder.visitNodes (package:compiler/src/ir/scope_visitor.dart:190:39)
#104 ScopeModelBuilder.visitBlock (package:compiler/src/ir/scope_visitor.dart:1315:5)
#105 Block.accept (package:kernel/ast.dart:8821:43)
#106 ScopeModelBuilder.visitNode (package:compiler/src/ir/scope_visitor.dart:129:18)
#107 ScopeModelBuilder.visitBlockExpression (package:compiler/src/ir/scope_visitor.dart:1268:5)
#108 BlockExpression.accept (package:kernel/ast.dart:8457:44)
#109 ScopeModelBuilder.visitNode (package:compiler/src/ir/scope_visitor.dart:129:18)
#110 ScopeModelBuilder._handleExpression (package:compiler/src/ir/scope_visitor.dart:176:33)
#111 ScopeModelBuilder.visitArguments (package:compiler/src/ir/scope_visitor.dart:976:29)
#112 ScopeModelBuilder.visitConstructorInvocation (package:compiler/src/ir/scope_visitor.dart:1001:5)
#113 ConstructorInvocation.accept (package:kernel/ast.dart:6386:44)
#114 ScopeModelBuilder.visitNode (package:compiler/src/ir/scope_visitor.dart:129:18)
#115 ScopeModelBuilder._handleExpression (package:compiler/src/ir/scope_visitor.dart:176:33)
#116 ScopeModelBuilder.visitArguments (package:compiler/src/ir/scope_visitor.dart:976:29)
#117 ScopeModelBuilder.visitConstructorInvocation (package:compiler/src/ir/scope_visitor.dart:1001:5)
#118 ConstructorInvocation.accept (package:kernel/ast.dart:6386:44)
#119 ScopeModelBuilder.visitNode (package:compiler/src/ir/scope_visitor.dart:129:18)
#120 ScopeModelBuilder._handleExpression (package:compiler/src/ir/scope_visitor.dart:176:33)
#121 ScopeModelBuilder.visitArguments (package:compiler/src/ir/scope_visitor.dart:976:29)
#122 ScopeModelBuilder.visitConstructorInvocation (package:compiler/src/ir/scope_visitor.dart:1001:5)
#123 ConstructorInvocation.accept (package:kernel/ast.dart:6386:44)
#124 ScopeModelBuilder.visitNode (package:compiler/src/ir/scope_visitor.dart:129:18)
#125 ScopeModelBuilder._handleExpression (package:compiler/src/ir/scope_visitor.dart:176:33)
#126 ScopeModelBuilder.visitExpressions (package:compiler/src/ir/scope_visitor.dart:203:18)
#127 ScopeModelBuilder.visitListLiteral (package:compiler/src/ir/scope_visitor.dart:847:37)
#128 ListLiteral.accept (package:kernel/ast.dart:7944:44)
#129 ScopeModelBuilder.visitNode (package:compiler/src/ir/scope_visitor.dart:129:18)
#130 ScopeModelBuilder._handleExpression (package:compiler/src/ir/scope_visitor.dart:176:33)
#131 ScopeModelBuilder.visitArguments (package:compiler/src/ir/scope_visitor.dart:976:29)
#132 ScopeModelBuilder.visitConstructorInvocation (package:compiler/src/ir/scope_visitor.dart:1001:5)
#133 ConstructorInvocation.accept (package:kernel/ast.dart:6386:44)
#134 ScopeModelBuilder.visitNode (package:compiler/src/ir/scope_visitor.dart:129:18)
#135 ScopeModelBuilder._handleExpression (package:compiler/src/ir/scope_visitor.dart:176:33)
#136 ScopeModelBuilder.visitArguments (package:compiler/src/ir/scope_visitor.dart:976:29)
#137 ScopeModelBuilder.visitConstructorInvocation (package:compiler/src/ir/scope_visitor.dart:1001:5)
#138 ConstructorInvocation.accept (package:kernel/ast.dart:6386:44)
#139 ScopeModelBuilder.visitNode (package:compiler/src/ir/scope_visitor.dart:129:18)
#140 ScopeModelBuilder._handleExpression (package:compiler/src/ir/scope_visitor.dart:176:33)
#141 ScopeModelBuilder.visitArguments (package:compiler/src/ir/scope_visitor.dart:976:29)
#142 ScopeModelBuilder.visitConstructorInvocation (package:compiler/src/ir/scope_visitor.dart:1001:5)
#143 ConstructorInvocation.accept (package:kernel/ast.dart:6386:44)
#144 ScopeModelBuilder.visitNode (package:compiler/src/ir/scope_visitor.dart:129:18)
#145 ScopeModelBuilder._handleExpression (package:compiler/src/ir/scope_visitor.dart:176:33)
#146 ScopeModelBuilder.visitExpressions (package:compiler/src/ir/scope_visitor.dart:203:18)
#147 ScopeModelBuilder.visitArguments (package:compiler/src/ir/scope_visitor.dart:974:47)
#148 ScopeModelBuilder.visitInstanceInvocation (package:compiler/src/ir/scope_visitor.dart:1071:39)
#149 InstanceInvocation.accept (package:kernel/ast.dart:5312:44)
#150 ScopeModelBuilder.visitNode (package:compiler/src/ir/scope_visitor.dart:129:18)
#151 ScopeModelBuilder._handleExpression (package:compiler/src/ir/scope_visitor.dart:176:33)
#152 ScopeModelBuilder.visitExpressionStatement (package:compiler/src/ir/scope_visitor.dart:1345:23)
#153 ExpressionStatement.accept (package:kernel/ast.dart:8765:43)
#154 ScopeModelBuilder.visitNode (package:compiler/src/ir/scope_visitor.dart:129:18)
#155 ScopeModelBuilder.visitNodes (package:compiler/src/ir/scope_visitor.dart:190:39)
#156 ScopeModelBuilder.visitBlock (package:compiler/src/ir/scope_visitor.dart:1315:5)
#157 Block.accept (package:kernel/ast.dart:8821:43)
#158 ScopeModelBuilder.visitNode (package:compiler/src/ir/scope_visitor.dart:129:18)
#159 ScopeModelBuilder.visitFunctionNode (package:compiler/src/ir/scope_visitor.dart:838:7)
#160 FunctionNode.accept (package:kernel/ast.dart:3502:38)
#161 ScopeModelBuilder.visitNode (package:compiler/src/ir/scope_visitor.dart:129:18)
#162 ScopeModelBuilder.visitFunctionExpression.. (package:compiler/src/ir/scope_visitor.dart:677:9)
#163 VariableCollectorMixin.visitInVariableScope (package:compiler/src/ir/scope.dart:111:6)
#164 ScopeModelBuilder.visitFunctionExpression. (package:compiler/src/ir/scope_visitor.dart:676:7)
#165 ScopeModelBuilder.enterNewScope (package:compiler/src/ir/scope_visitor.dart:280:18)
#166 ScopeModelBuilder.visitInvokable (package:compiler/src/ir/scope_visitor.dart:595:5)
#167 ScopeModelBuilder.visitFunctionExpression (package:compiler/src/ir/scope_visitor.dart:675:5)
#168 FunctionExpression.accept (package:kernel/ast.dart:8275:44)
#169 ScopeModelBuilder.visitNode (package:compiler/src/ir/scope_visitor.dart:129:18)
#170 ScopeModelBuilder._handleExpression (package:compiler/src/ir/scope_visitor.dart:176:33)
#171 ScopeModelBuilder.visitExpressions (package:compiler/src/ir/scope_visitor.dart:203:18)
#172 ScopeModelBuilder.visitArguments (package:compiler/src/ir/scope_visitor.dart:974:47)
#173 ScopeModelBuilder.visitInstanceInvocation (package:compiler/src/ir/scope_visitor.dart:1071:39)
#174 InstanceInvocation.accept (package:kernel/ast.dart:5312:44)
#175 ScopeModelBuilder.visitNode (package:compiler/src/ir/scope_visitor.dart:129:18)
#176 ScopeModelBuilder._handleExpression (package:compiler/src/ir/scope_visitor.dart:176:33)
#177 ScopeModelBuilder.visitExpressions (package:compiler/src/ir/scope_visitor.dart:203:18)
#178 ScopeModelBuilder.visitSetLiteral (package:compiler/src/ir/scope_visitor.dart:859:37)
#179 SetLiteral.accept (package:kernel/ast.dart:8008:44)
#180 ScopeModelBuilder.visitNode (package:compiler/src/ir/scope_visitor.dart:129:18)
#181 ScopeModelBuilder._handleExpression (package:compiler/src/ir/scope_visitor.dart:176:33)
#182 ScopeModelBuilder.visitReturnStatement (package:compiler/src/ir/scope_visitor.dart:1333:25)
#183 ReturnStatement.accept (package:kernel/ast.dart:9800:43)
#184 ScopeModelBuilder.visitNode (package:compiler/src/ir/scope_visitor.dart:129:18)
#185 ScopeModelBuilder.visitFunctionNode (package:compiler/src/ir/scope_visitor.dart:838:7)
#186 FunctionNode.accept (package:kernel/ast.dart:3502:38)
#187 ScopeModelBuilder.visitNode (package:compiler/src/ir/scope_visitor.dart:129:18)
#188 ScopeModelBuilder.visitFunctionExpression.. (package:compiler/src/ir/scope_visitor.dart:677:9)
#189 VariableCollectorMixin.visitInVariableScope (package:compiler/src/ir/scope.dart:111:6)
#190 ScopeModelBuilder.visitFunctionExpression. (package:compiler/src/ir/scope_visitor.dart:676:7)
#191 ScopeModelBuilder.enterNewScope (package:compiler/src/ir/scope_visitor.dart:280:18)
#192 ScopeModelBuilder.visitInvokable (package:compiler/src/ir/scope_visitor.dart:595:5)
#193 ScopeModelBuilder.visitFunctionExpression (package:compiler/src/ir/scope_visitor.dart:675:5)
#194 FunctionExpression.accept (package:kernel/ast.dart:8275:44)
#195 ScopeModelBuilder.visitNode (package:compiler/src/ir/scope_visitor.dart:129:18)
#196 ScopeModelBuilder._handleExpression (package:compiler/src/ir/scope_visitor.dart:176:33)
#197 ScopeModelBuilder.visitExpressions (package:compiler/src/ir/scope_visitor.dart:203:18)
#198 ScopeModelBuilder.visitArguments (package:compiler/src/ir/scope_visitor.dart:974:47)
#199 ScopeModelBuilder.visitInstanceInvocation (package:compiler/src/ir/scope_visitor.dart:1071:39)
#200 InstanceInvocation.accept (package:kernel/ast.dart:5312:44)
#201 ScopeModelBuilder.visitNode (package:compiler/src/ir/scope_visitor.dart:129:18)
#202 ScopeModelBuilder._handleExpression (package:compiler/src/ir/scope_visitor.dart:176:33)
#203 ScopeModelBuilder.visitExpressionStatement (package:compiler/src/ir/scope_visitor.dart:1345:23)
#204 ExpressionStatement.accept (package:kernel/ast.dart:8765:43)
#205 ScopeModelBuilder.visitNode (package:compiler/src/ir/scope_visitor.dart:129:18)
#206 ScopeModelBuilder.visitNodes (package:compiler/src/ir/scope_visitor.dart:190:39)
#207 ScopeModelBuilder.visitBlock (package:compiler/src/ir/scope_visitor.dart:1315:5)
#208 Block.accept (package:kernel/ast.dart:8821:43)
#209 ScopeModelBuilder.visitNode (package:compiler/src/ir/scope_visitor.dart:129:18)
#210 ScopeModelBuilder.visitFunctionNode (package:compiler/src/ir/scope_visitor.dart:838:7)
#211 FunctionNode.accept (package:kernel/ast.dart:3502:38)
#212 ScopeModelBuilder.visitNode (package:compiler/src/ir/scope_visitor.dart:129:18)
#213 ScopeModelBuilder.visitFunctionExpression.. (package:compiler/src/ir/scope_visitor.dart:677:9)
#214 VariableCollectorMixin.visitInVariableScope (package:compiler/src/ir/scope.dart:111:6)
#215 ScopeModelBuilder.visitFunctionExpression. (package:compiler/src/ir/scope_visitor.dart:676:7)
#216 ScopeModelBuilder.enterNewScope (package:compiler/src/ir/scope_visitor.dart:280:18)
#217 ScopeModelBuilder.visitInvokable (package:compiler/src/ir/scope_visitor.dart:595:5)
#218 ScopeModelBuilder.visitFunctionExpression (package:compiler/src/ir/scope_visitor.dart:675:5)
#219 FunctionExpression.accept (package:kernel/ast.dart:8275:44)
#220 ScopeModelBuilder.visitNode (package:compiler/src/ir/scope_visitor.dart:129:18)
#221 ScopeModelBuilder._handleExpression (package:compiler/src/ir/scope_visitor.dart:176:33)
#222 ScopeModelBuilder.visitExpressions (package:compiler/src/ir/scope_visitor.dart:203:18)
#223 ScopeModelBuilder.visitArguments (package:compiler/src/ir/scope_visitor.dart:974:47)
#224 ScopeModelBuilder.visitInstanceInvocation (package:compiler/src/ir/scope_visitor.dart:1071:39)
#225 InstanceInvocation.accept (package:kernel/ast.dart:5312:44)
#226 ScopeModelBuilder.visitNode (package:compiler/src/ir/scope_visitor.dart:129:18)
#227 ScopeModelBuilder._handleExpression (package:compiler/src/ir/scope_visitor.dart:176:33)
#228 ScopeModelBuilder.visitExpressionStatement (package:compiler/src/ir/scope_visitor.dart:1345:23)
#229 ExpressionStatement.accept (package:kernel/ast.dart:8765:43)
#230 ScopeModelBuilder.visitNode (package:compiler/src/ir/scope_visitor.dart:129:18)
#231 ScopeModelBuilder.visitNodes (package:compiler/src/ir/scope_visitor.dart:190:39)
#232 ScopeModelBuilder.visitBlock (package:compiler/src/ir/scope_visitor.dart:1315:5)
#233 Block.accept (package:kernel/ast.dart:8821:43)
#234 ScopeModelBuilder.visitNode (package:compiler/src/ir/scope_visitor.dart:129:18)
#235 ScopeModelBuilder.visitFunctionNode (package:compiler/src/ir/scope_visitor.dart:838:7)
#236 FunctionNode.accept (package:kernel/ast.dart:3502:38)
#237 ScopeModelBuilder.visitNode (package:compiler/src/ir/scope_visitor.dart:129:18)
#238 ScopeModelBuilder.visitProcedure. (package:compiler/src/ir/scope_visitor.dart:668:7)
#239 ScopeModelBuilder.enterNewScope (package:compiler/src/ir/scope_visitor.dart:280:18)
#240 ScopeModelBuilder.visitInvokable (package:compiler/src/ir/scope_visitor.dart:595:5)
#241 ScopeModelBuilder.visitProcedure (package:compiler/src/ir/scope_visitor.dart:667:5)
#242 Procedure.accept (package:kernel/ast.dart:2849:40)
#243 ScopeModelBuilder.computeModel (package:compiler/src/ir/scope_visitor.dart:116:12)
#244 new ScopeModel.from (package:compiler/src/ir/scope.dart:26:20)
#245 KernelModularStrategy.getModularMemberData. (package:compiler/src/kernel/kernel_strategy.dart:435:38)
#246 CompilerTask.measureSubtask (package:compiler/src/common/tasks.dart:181:35)
#247 KernelModularStrategy.getModularMemberData (package:compiler/src/kernel/kernel_strategy.dart:434:43)
#248 KernelWorkItem.run. (package:compiler/src/kernel/kernel_strategy.dart:384:28)
#249 CompilerTask.measure (package:compiler/src/common/tasks.dart:66:51)
#250 KernelWorkItem.run (package:compiler/src/kernel/kernel_strategy.dart:369:26)
#251 Compiler.emptyQueue..... (package:compiler/src/compiler.dart:530:70)
#252 CompilerTask.measureSubtask (package:compiler/src/common/tasks.dart:181:35)
#253 Compiler.emptyQueue.... (package:compiler/src/compiler.dart:530:32)
#254 CompilerTask.measureSubtask (package:compiler/src/common/tasks.dart:181:35)
#255 Compiler.emptyQueue... (package:compiler/src/compiler.dart:528:28)
#256 CompilerDiagnosticReporter.withCurrentElement (package:compiler/src/compiler.dart:819:15)
#257 Compiler.emptyQueue.. (package:compiler/src/compiler.dart:526:18)
#258 ResolutionEnqueuer._forEach (package:compiler/src/enqueue.dart:450:12)
#259 ResolutionEnqueuer.forEach (package:compiler/src/enqueue.dart:466:5)
#260 Compiler.emptyQueue. (package:compiler/src/compiler.dart:522:16)
#261 CompilerTask.measureSubtask (package:compiler/src/common/tasks.dart:181:35)
#262 Compiler.emptyQueue (package:compiler/src/compiler.dart:521:14)
#263 Compiler.processQueue. (package:compiler/src/compiler.dart:547:7)
#264 CompilerTask.measureSubtask (package:compiler/src/common/tasks.dart:181:35)
#265 Compiler.processQueue (package:compiler/src/compiler.dart:540:14)
#266 Compiler.computeClosedWorld (package:compiler/src/compiler.dart:386:5)
#267 Compiler.compileFromKernel.. (package:compiler/src/compiler.dart:471:17)
#268 CompilerTask.measureSubtask (package:compiler/src/common/tasks.dart:181:35)
#269 Compiler.compileFromKernel. (package:compiler/src/compiler.dart:470:44)
#270 CompilerTask.measureSubtask (package:compiler/src/common/tasks.dart:181:35)
#271 Compiler.compileFromKernel (package:compiler/src/compiler.dart:469:14)
#272 Compiler.runInternal (package:compiler/src/compiler.dart:304:13)

Compiling lib/main.dart for the Web... 13.7s
Exception: Failed to compile application for the Web.

Thank you for taking the time to file an issue!

This tracker is for issues related to:

  • Analyzer
  • Common Front End (CFE) and kernel
  • Dart core libraries ("dart:async", "dart:io", etc.)
  • Dart VM
  • dart2js
  • dev_compiler

Some other pieces of the Dart ecosystem are maintained elsewhere. Please
file issues in their repository:

If you aren't sure, file the issue here and we'll find the right home for it.
In your issue, please include:

  • Dart SDK Version (dart --version)
  • Whether you are using Windows, MacOSX, or Linux (if applicable)
  • Whether you are using Chrome, Safari, Firefox, Edge (if applicable)

Missing some or all of the above might make the issue take longer or be
impossible to act on.

If you simply have a question, consider starting with Stack Overflow:

https://stackoverflow.com/questions/tagged/dart

For a real-time response, consider our Gitter channel:

https://gitter.im/dart-lang/sdk

@vsmenon vsmenon added area-web Use area-web for Dart web related issues, including the DDC and dart2js compilers and JS interop. web-dart2js labels Aug 10, 2021
@vsmenon
Copy link
Member

vsmenon commented Aug 10, 2021

Do you have any information you can provide on the app you were trying to compile?

@sigmundch
Copy link
Member

@KTOLE18 thanks for filing the issue - the error above seems to show that the program may have had an expression the compiler couldn't parse. Usually when those occur we provide a nice error message and stop, so I'm surprised that it kept trying to continue compiling it.

It would really be helpful to our investigation if you can share some additional context. Some things that will help:

  • a small piece of code that reveals this problem. This could be a small program separate from your application, or a snippet of code from the application itself (for example the entire method that shows this error).
  • some details about how the compiler was invoked. For example, is this in the context of a flutter app or a standalone Dart web app? What command-line did you use to build?

@sigmundch sigmundch added the needs-info We need additional information from the issue author (auto-closed after 14 days if no response) label Aug 10, 2021
@github-actions
Copy link

Without additional information we're not able to resolve this issue, so it will be closed at this time. You're still free to add more info and respond to any questions above, though. We'll re-open the case if you do. Thanks for your contribution!

1 similar comment
@github-actions
Copy link

Without additional information we're not able to resolve this issue, so it will be closed at this time. You're still free to add more info and respond to any questions above, though. We'll re-open the case if you do. Thanks for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-web Use area-web for Dart web related issues, including the DDC and dart2js compilers and JS interop. needs-info We need additional information from the issue author (auto-closed after 14 days if no response) web-dart2js
Projects
None yet
Development

No branches or pull requests

3 participants