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

嵌套Execute注入的时候在release打包时候会报错 #124

Open
lancexin opened this issue Jul 13, 2021 · 0 comments
Open

嵌套Execute注入的时候在release打包时候会报错 #124

lancexin opened this issue Jul 13, 2021 · 0 comments

Comments

@lancexin
Copy link

lancexin commented Jul 13, 2021

比如 方法1 method1 的内部调用了 method2
同时用Execute的时候会报错

Unhandled exception:
Crash when compiling null,
at character offset null:
NoSuchMethodError: The getter 'nonNullable' was called on null.
Receiver: null
Tried calling: nonNullable
#0 Object.noSuchMethod (dart:core-patch/object_patch.dart:54:5)
#1 StaticTypeContextImpl.nonNullable (package:kernel/type_environment.dart:645:43)
#2 ConstructorInvocation.getStaticTypeInternal (package:kernel/ast.dart:6204:53)
#3 StaticTypeContextImpl.getExpressionType (package:kernel/type_environment.dart:664:19)
#4 Expression.getStaticType (package:kernel/ast.dart:3498:20)
#5 ConstantsTransformer.makeConstantExpression (package:front_end/src/fasta/kernel/constant_evaluator.dart:829:24)
#6 ConstantsTransformer.evaluateAndTransformWithContext (package:front_end/src/fasta/kernel/constant_evaluator.dart:811:12)
#7 ConstantsTransformer.visitConstructorInvocation (package:front_end/src/fasta/kernel/constant_evaluator.dart:782:14)
#8 ConstructorInvocation.accept1 (package:kernel/ast.dart:6214:9)
#9 RemovingTransformer.transformOrRemove (package:kernel/visitor.dart:1194:21)
#10 RemovingTransformer.transformList (package:kernel/visitor.dart:1417:19)
#11 RemovingTransformer.transformExpressionList (package:kernel/visitor.dart:1344:5)
#12 Arguments.transformOrRemoveChildren (package:kernel/ast.dart:4826:7)
#13 RemovingTransformer.defaultTreeNode (package:kernel/visitor.dart:1439:10)
#14 TreeVisitor1.visitArguments (package:kernel/visitor.dart:508:46)
#15 Arguments.accept1 (package:kernel/ast.dart:4807:53)
#16 RemovingTransformer.transform (package:kernel/visitor.dart:1158:17)
#17 StaticInvocation.transformOrRemoveChildren (package:kernel/ast.dart:6145:21)
#18 RemovingTransformer.defaultTreeNode (package:kernel/visitor.dart:1439:10)
#19 TreeVisitor1.defaultExpression (package:kernel/visitor.dart:337:50)
#20 TreeVisitor1.visitStaticInvocation (package:kernel/visitor.dart:379:7)
#21 ConstantsTransformer.visitStaticInvocation (package:front_end/src/fasta/kernel/constant_evaluator.dart:793:18)
#22 StaticInvocation.accept1 (package:kernel/ast.dart:6124:9)
#23 RemovingTransformer.transform (package:kernel/visitor.dart:1158:17)
#24 PropertySet.transformOrRemoveChildren (package:kernel/ast.dart:4436:17)
#25 RemovingTransformer.defaultTreeNode (package:kernel/visitor.dart:1439:10)
#26 TreeVisitor1.defaultExpression (package:kernel/visitor.dart:337:50)
#27 TreeVisitor1.visitPropertySet (package:kernel/visitor.dart:353:50)
#28 PropertySet.accept1 (package:kernel/ast.dart:4403:9)
#29 RemovingTransformer.transform (package:kernel/visitor.dart:1158:17)
#30 ExpressionStatement.transformOrRemoveChildren (package:kernel/ast.dart:8486:22)
#31 RemovingTransformer.defaultTreeNode (package:kernel/visitor.dart:1439:10)
#32 TreeVisitor1.defaultStatement (package:kernel/visitor.dart:435:48)
#33 TreeVisitor1.visitExpressionStatement (package:kernel/visitor.dart:437:7)
#34 ExpressionStatement.accept1 (package:kernel/ast.dart:8466:9)
#35 RemovingTransformer.transformOrRemove (package:kernel/visitor.dart:1194:21)
#36 RemovingTransformer.transformList (package:kernel/visitor.dart:1417:19)
#37 RemovingTransformer.transformStatementList (package:kernel/visitor.dart:1371:5)
#38 Block.transformOrRemoveChildren (package:kernel/ast.dart:8535:7)
#39 RemovingTransformer.defaultTreeNode (package:kernel/visitor.dart:1439:10)
#40 TreeVisitor1.defaultStatement (package:kernel/visitor.dart:435:48)
#41 TreeVisitor1.visitBlock (package:kernel/visitor.dart:438:38)
#42 Block.accept1 (package:kernel/ast.dart:8521:58)
#43 RemovingTransformer.transform (package:kernel/visitor.dart:1158:17)
#44 ConstantsTransformer.visitFunctionNode (package:front_end/src/fasta/kernel/constant_evaluator.dart:548:19)
#45 FunctionNode.accept1 (package:kernel/ast.dart:3396:9)
#46 RemovingTransformer.transform (package:kernel/visitor.dart:1158:17)
#47 ConstantsTransformer.visitProcedure. (package:front_end/src/fasta/kernel/constant_evaluator.dart:454:23)
#48 ConstantEvaluator.withNewEnvironment (package:front_end/src/fasta/kernel/constant_evaluator.dart:3233:18)
#49 ConstantsTransformer.visitProcedure (package:front_end/src/fasta/kernel/constant_evaluator.dart:452:23)
#50 Procedure.accept1 (package:kernel/ast.dart:2744:55)
#51 RemovingTransformer.transformOrRemove (package:kernel/visitor.dart:1194:21)
#52 RemovingTransformer.transformList (package:kernel/visitor.dart:1417:19)
#53 RemovingTransformer.transformProcedureList (package:kernel/visitor.dart:1300:5)
#54 ConstantsTransformer.visitClass. (package:front_end/src/fasta/kernel/constant_evaluator.dart:427:7)
#55 ConstantEvaluator.withNewEnvironment (package:front_end/src/fasta/kernel/constant_evaluator.dart:3233:18)
#56 ConstantsTransformer.visitClass (package:front_end/src/fasta/kernel/constant_evaluator.dart:422:23)
#57 Class.accept1 (package:kernel/ast.dart:1329:53)
#58 RemovingTransformer.transformOrRemove (package:kernel/visitor.dart:1194:21)
#59 RemovingTransformer.transformList (package:kernel/visitor.dart:1417:19)
#60 RemovingTransformer.transformClassList (package:kernel/visitor.dart:1273:5)
#61 ConstantsTransformer.convertLibrary (package:front_end/src/fasta/kernel/constant_evaluator.dart:385:5)
#62 transformLibraries (package:front_end/src/fasta/kernel/constant_evaluator.dart:137:26)
#63 KernelTarget.runBuildTransformations (package:front_end/src/fasta/kernel/kernel_target.dart:1203:43)
#64 KernelTarget.buildComponent. (package:front_end/src/fasta/kernel/kernel_target.dart:372:7)

#65 withCrashReporting (package:front_end/src/fasta/crash.dart:122:12)

#66 generateKernelInternal. (package:front_end/src/kernel_generator_impl.dart:164:19)

#67 withCrashReporting (package:front_end/src/fasta/crash.dart:122:12)

#68 kernelForProgramInternal. (package:front_end/src/api_prototype/kernel_generator.dart:61:29)

#69 kernelForProgramInternal (package:front_end/src/api_prototype/kernel_generator.dart:60:10)

#70 kernelForProgram (package:front_end/src/api_prototype/kernel_generator.dart:52:11)

#71 compileToKernel (package:vm/kernel_front_end.dart:348:22)

#72 FrontendCompiler.compile (package:frontend_server/frontend_server.dart:533:17)

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

No branches or pull requests

1 participant