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

NPE in Analyzer #25692

Closed
lukechurch opened this issue Feb 4, 2016 · 4 comments
Closed

NPE in Analyzer #25692

lukechurch opened this issue Feb 4, 2016 · 4 comments
Assignees
Labels
analyzer-stability area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. P1 A high priority bug; for example, a single project is unusable or has many test failures type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)

Comments

@lukechurch
Copy link
Contributor

v 1.14.0-dev.7.2


Session: 1453999620213.131.json
Caused by The null object does not have a method 'pruned'.

NoSuchMethodError:: method not found:: 'pruned'
Receiver:: null
Arguments:: [null]
#0      Object._noSuchMethod (dart::core-patch/object_patch.dart::42)
#1      Object.noSuchMethod (dart::core-patch/object_patch.dart::45)
#2      FunctionTypeImpl.normalParameterTypes (package::analyzer/src/dart/element/type.dart::411)
#3      ResolverVisitor.visitArgumentList (package::analyzer/src/generated/resolver.dart::8308)
#4      ArgumentList.accept (package::analyzer/src/generated/ast.dart::463)
#5      ScopedVisitor.safelyVisit (package::analyzer/src/generated/resolver.dart::10235)
#6      ResolverVisitor.visitSuperConstructorInvocation (package::analyzer/src/generated/resolver.dart::9343)
#7      SuperConstructorInvocation.accept (package::analyzer/src/generated/ast.dart::10673)
#8      NodeList.accept (package::analyzer/src/generated/ast.dart::8642)
#9      ConstructorDeclaration.visitChildren (package::analyzer/src/generated/ast.dart::3372)
#10     ResolverVisitor.visitNode (package::analyzer/src/generated/resolver.dart::9275)
#11     PartialResolverVisitor.visitNode (package::analyzer/src/generated/resolver.dart::7628)
#12     UnifyingAstVisitor.visitConstructorDeclaration (package::analyzer/dart/ast/visitor.dart::1584)
#13     ScopedVisitor.visitConstructorDeclarationInScope (package::analyzer/src/generated/resolver.dart::10372)
#14     ResolverVisitor.visitConstructorDeclarationInScope (package::analyzer/src/generated/resolver.dart::8661)
#15     ScopedVisitor.visitConstructorDeclaration (package::analyzer/src/generated/resolver.dart::10364)
#16     ResolverVisitor.visitConstructorDeclaration (package::analyzer/src/generated/resolver.dart::8649)
#17     ConstructorDeclaration.accept (package::analyzer/src/generated/ast.dart::3364)
#18     NodeList.accept (package::analyzer/src/generated/ast.dart::8642)
#19     ScopedVisitor.visitClassMembersInScope (package::analyzer/src/generated/resolver.dart::10327)
#20     ScopedVisitor.visitClassDeclaration (package::analyzer/src/generated/resolver.dart::10304)
#21     ResolverVisitor.visitClassDeclaration (package::analyzer/src/generated/resolver.dart::8494)
#22     ClassDeclaration.accept (package::analyzer/src/generated/ast.dart::2277)
#23     ResolverVisitor.visitCompilationUnit (package::analyzer/src/generated/resolver.dart::8580)
#24     CompilationUnit.accept (package::analyzer/src/generated/ast.dart::2896)
#25     PartiallyResolveUnitReferencesTask.internalPerform (package::analyzer/src/task/dart.dart::3742)
#26     AnalysisTask._safelyPerform (package::analyzer/task/model.dart::310)
#27     AnalysisTask.perform (package::analyzer/task/model.dart::210)
#28     AnalysisDriver.performWorkItem (package::analyzer/src/task/driver.dart::271)
#29     AnalysisDriver.performAnalysisTask (package::analyzer/src/task/driver.dart::246)
#30     AnalysisContextImpl.performAnalysisTask.<anonymous closure> (package::analyzer/src/context/context.dart::1068)
#31     _PerformanceTagImpl.makeCurrentWhile (package::analyzer/src/generated/utilities_general.dart::194)
#32     AnalysisContextImpl.performAnalysisTask (package::analyzer/src/context/context.dart::1066)
#33     PerformAnalysisOperation.perform (package::analysis_server/src/operation/operation_analysis.dart::371)
#34     AnalysisServer.performOperation (package::analysis_server/src/analysis_server.dart::807)
#35     Future.Future.<anonymous closure> (dart::async/future.dart::118)
#36     _rootRun (dart::async/zone.dart::903)
#37     _CustomZone.run (dart::async/zone.dart::802)
#38     _CustomZone.runGuarded (dart::async/zone.dart::708)
#39     _CustomZone.bindCallback.<anonymous closure> (dart::async/zone.dart::733)
#40     _rootRun (dart::async/zone.dart::907)
#41     _CustomZone.run (dart::async/zone.dart::802)
#42     _CustomZone.runGuarded (dart::async/zone.dart::708)
#43     _CustomZone.bindCallback.<anonymous closure> (dart::async/zone.dart::733)
#44     Timer._createTimer.<anonymous closure> (dart::async-patch/timer_patch.dart::16)
#45     _Timer._runTimers (dart::isolate-patch/timer_impl.dart::385)
#46     _Timer._handleMessage (dart::isolate-patch/timer_impl.dart::414)
#47     _RawReceivePortImpl._handleMessage (dart::isolate-patch/isolate_patch.dart
Original message:
{"event"::"server.error","params"::{"isFatal"::false,"message"::"Task failed:: PartiallyResolveUnitReferencesTask for source ... ","stackTrace"::"Unexpected exception while performing PartiallyResolveUnitReferencesTask for source ...
#0      AnalysisTask._safelyPerform (package::analyzer/task/model.dart::320)
#1      AnalysisTask.perform (package::analyzer/task/model.dart::210)
#2      AnalysisDriver.performWorkItem (package::analyzer/src/task/driver.dart::271)
#3      AnalysisDriver.performAnalysisTask (package::analyzer/src/task/driver.dart::246)
#4      AnalysisContextImpl.performAnalysisTask.<anonymous closure> (package::analyzer/src/context/context.dart::1068)
#5      _PerformanceTagImpl.makeCurrentWhile (package::analyzer/src/generated/utilities_general.dart::194)
#6      AnalysisContextImpl.performAnalysisTask (package::analyzer/src/context/context.dart::1066)
#7      PerformAnalysisOperation.perform (package::analysis_server/src/operation/operation_analysis.dart::371)
#8      AnalysisServer.performOperation (package::analysis_server/src/analysis_server.dart::807)
#9      Future.Future.<anonymous closure> (dart::async/future.dart::118)
#10     _rootRun (dart::async/zone.dart::903)
#11     _CustomZone.run (dart::async/zone.dart::802)
#12     _CustomZone.runGuarded (dart::async/zone.dart::708)
#13     _CustomZone.bindCallback.<anonymous closure> (dart::async/zone.dart::733)
#14     _rootRun (dart::async/zone.dart::907)
#15     _CustomZone.run (dart::async/zone.dart::802)
#16     _CustomZone.runGuarded (dart::async/zone.dart::708)
#17     _CustomZone.bindCallback.<anonymous closure> (dart::async/zone.dart::733)
#18     Timer._createTimer.<anonymous closure> (dart::async-patch/timer_patch.dart::16)
#19     _Timer._runTimers (dart::isolate-patch/timer_impl.dart::385)
#20     _Timer._handleMessage (dart::isolate-patch/timer_impl.dart::414)
#21     _RawReceivePortImpl._handleMessage (dart::isolate-patch/isolate_patch.dart::148)

Caused by The null object does not have a method 'pruned'.

NoSuchMethodError:: method not found:: 'pruned'
Receiver:: null
Arguments:: [null]
#0      Object._noSuchMethod (dart::core-patch/object_patch.dart::42)
#1      Object.noSuchMethod (dart::core-patch/object_patch.dart::45)
#2      FunctionTypeImpl.normalParameterTypes (package::analyzer/src/dart/element/type.dart::411)
#3      ResolverVisitor.visitArgumentList (package::analyzer/src/generated/resolver.dart::8308)
#4      ArgumentList.accept (package::analyzer/src/generated/ast.dart::463)
#5      ScopedVisitor.safelyVisit (package::analyzer/src/generated/resolver.dart::10235)
#6      ResolverVisitor.visitSuperConstructorInvocation (package::analyzer/src/generated/resolver.dart::9343)
#7      SuperConstructorInvocation.accept (package::analyzer/src/generated/ast.dart::10673)
#8      NodeList.accept (package::analyzer/src/generated/ast.dart::8642)
#9      ConstructorDeclaration.visitChildren (package::analyzer/src/generated/ast.dart::3372)
#10     ResolverVisitor.visitNode (package::analyzer/src/generated/resolver.dart::9275)
#11     PartialResolverVisitor.visitNode (package::analyzer/src/generated/resolver.dart::7628)
#12     UnifyingAstVisitor.visitConstructorDeclaration (package::analyzer/dart/ast/visitor.dart::1584)
#13     ScopedVisitor.visitConstructorDeclarationInScope (package::analyzer/src/generated/resolver.dart::10372)
#14     ResolverVisitor.visitConstructorDeclarationInScope (package::analyzer/src/generated/resolver.dart::8661)
#15     ScopedVisitor.visitConstructorDeclaration (package::analyzer/src/generated/resolver.dart::10364)
#16     ResolverVisitor.visitConstructorDeclaration (package::analyzer/src/generated/resolver.dart::8649)
#17     ConstructorDeclaration.accept (package::analyzer/src/generated/ast.dart::3364)
#18     NodeList.accept (package::analyzer/src/generated/ast.dart::8642)
#19     ScopedVisitor.visitClassMembersInScope (package::analyzer/src/generated/resolver.dart::10327)
#20     ScopedVisitor.visitClassDeclaration (package::analyzer/src/generated/resolver.dart::10304)
#21     ResolverVisitor.visitClassDeclaration (package::analyzer/src/generated/resolver.dart::8494)
#22     ClassDeclaration.accept (package::analyzer/src/generated/ast.dart::2277)
#23     ResolverVisitor.visitCompilationUnit (package::analyzer/src/generated/resolver.dart::8580)
#24     CompilationUnit.accept (package::analyzer/src/generated/ast.dart::2896)
#25     PartiallyResolveUnitReferencesTask.internalPerform (package::analyzer/src/task/dart.dart::3742)
#26     AnalysisTask._safelyPerform (package::analyzer/task/model.dart::310)
#27     AnalysisTask.perform (package::analyzer/task/model.dart::210)
#28     AnalysisDriver.performWorkItem (package::analyzer/src/task/driver.dart::271)
#29     AnalysisDriver.performAnalysisTask (package::analyzer/src/task/driver.dart::246)
#30     AnalysisContextImpl.performAnalysisTask.<anonymous closure> (package::analyzer/src/context/context.dart::1068)
#31     _PerformanceTagImpl.makeCurrentWhile (package::analyzer/src/generated/utilities_general.dart::194)
#32     AnalysisContextImpl.performAnalysisTask (package::analyzer/src/context/context.dart::1066)
#33     PerformAnalysisOperation.perform (package::analysis_server/src/operation/operation_analysis.dart::371)
#34     AnalysisServer.performOperation (package::analysis_server/src/analysis_server.dart::807)
#35     Future.Future.<anonymous closure> (dart::async/future.dart::118)
#36     _rootRun (dart::async/zone.dart::903)
#37     _CustomZone.run (dart::async/zone.dart::802)
#38     _CustomZone.runGuarded (dart::async/zone.dart::708)
#39     _CustomZone.bindCallback.<anonymous closure> (dart::async/zone.dart::733)
#40     _rootRun (dart::async/zone.dart::907)
#41     _CustomZone.run (dart::async/zone.dart::802)
#42     _CustomZone.runGuarded (dart::async/zone.dart::708)
#43     _CustomZone.bindCallback.<anonymous closure> (dart::async/zone.dart::733)
#44     Timer._createTimer.<anonymous closure> (dart::async-patch/timer_patch.dart::16)
#45     _Timer._runTimers (dart::isolate-patch/timer_impl.dart::385)
#46     _Timer._handleMessage (dart::isolate-patch/timer_impl.dart::414)
#47     _RawReceivePortImpl._handleMessage (dart::isolate-patch/isolate_patch.dart::148)

"}}, Count: 1
@lukechurch lukechurch added Type-Defect area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. analyzer-stability labels Feb 4, 2016
@bwilkerson bwilkerson added the P1 A high priority bug; for example, a single project is unusable or has many test failures label Feb 4, 2016
@bwilkerson
Copy link
Member

I'm guessing that this is stale. The getter FunctionTypeImpl.normalParameterTypes no longer invokes the getter pruned.

@kevmoo kevmoo added type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) and removed Type-Defect labels Mar 1, 2016
@zoechi
Copy link
Contributor

zoechi commented Mar 12, 2016

Just got

Dart analysis server, SDK version 1.16.0-edge.4b8ee463de0430bb9bcba3bf1845642f3795a0cb, server version 1.15.0, error: Task failed: PartiallyResolveUnitReferencesTask for source /home/zoechi/dart/bwu_ng_quick_nav/example/src/menu_demo_model.dart
Unexpected exception while performing PartiallyResolveUnitReferencesTask for source /home/zoechi/dart/bwu_ng_quick_nav/example/src/menu_demo_model.dart
#0 AnalysisTask._safelyPerform (package:analyzer/task/model.dart:339)
#1 AnalysisTask.perform (package:analyzer/task/model.dart:229)
#2 AnalysisDriver.performWorkItem (package:analyzer/src/task/driver.dart:273)
#3 AnalysisDriver.performAnalysisTask (package:analyzer/src/task/driver.dart:248)
#4 AnalysisContextImpl.performAnalysisTask. (package:analyzer/src/context/context.dart:1164)
#5 _PerformanceTagImpl.makeCurrentWhile (package:analyzer/src/generated/utilities_general.dart:212)
#6 AnalysisContextImpl.performAnalysisTask (package:analyzer/src/context/context.dart:1162)
#7 PerformAnalysisOperation.perform (package:analysis_server/src/operation/operation_analysis.dart:371)
#8 AnalysisServer.performOperation (package:analysis_server/src/analysis_server.dart:876)
#9 Future.Future. (dart:async/future.dart:118)
#10 _rootRun (dart:async/zone.dart:891)
#11 _CustomZone.run (dart:async/zone.dart:790)
#12 _CustomZone.runGuarded (dart:async/zone.dart:696)
#13 _CustomZone.bindCallback. (dart:async/zone.dart:721)
#14 _rootRun (dart:async/zone.dart:895)
#15 _CustomZone.run (dart:async/zone.dart:790)
#16 _CustomZone.runGuarded (dart:async/zone.dart:696)
#17 _CustomZone.bindCallback. (dart:async/zone.dart:721)
#18 Timer._createTimer. (dart:async-patch/timer_patch.dart:16)
#19 _Timer._runTimers (dart:isolate-patch/timer_impl.dart:385)
#20 _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:414)
#21 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:148)

Caused by The null object does not have a method 'pruned'.

NoSuchMethodError: method not found: 'pruned'
Receiver: null
Arguments: [null]
#0 Object._noSuchMethod (dart:core-patch/object_patch.dart:42)
#1 Object.noSuchMethod (dart:core-patch/object_patch.dart:45)
#2 FunctionTypeImpl._forEachParameterType (package:analyzer/src/dart/element/type.dart:808)
#3 FunctionTypeImpl.namedParameterTypes (package:analyzer/src/dart/element/type.dart:372)
#4 ResolverVisitor.visitArgumentList (package:analyzer/src/generated/resolver.dart:7671)
#5 ArgumentListImpl.accept (package:analyzer/src/dart/ast/ast.dart:412)
#6 ScopedVisitor.safelyVisit (package:analyzer/src/generated/resolver.dart:9651)
#7 ResolverVisitor.visitSuperConstructorInvocation (package:analyzer/src/generated/resolver.dart:8627)
#8 SuperConstructorInvocationImpl.accept (package:analyzer/src/dart/ast/ast.dart:9460)
#9 NodeListImpl.accept (package:analyzer/src/dart/ast/ast.dart:7582)
#10 ConstructorDeclarationImpl.visitChildren (package:analyzer/src/dart/ast/ast.dart:2864)
#11 ResolverVisitor.visitNode (package:analyzer/src/generated/resolver.dart:8548)
#12 PartialResolverVisitor.visitNode (package:analyzer/src/generated/resolver.dart:6942)
#13 UnifyingAstVisitor.visitConstructorDeclaration (package:analyzer/dart/ast/visitor.dart:2406)
#14 ScopedVisitor.visitConstructorDeclarationInScope (package:analyzer/src/generated/resolver.dart:9788)
#15 ResolverVisitor.visitConstructorDeclarationInScope (package:analyzer/src/generated/resolver.dart:8027)
#16 ScopedVisitor.visitConstructorDeclaration (package:analyzer/src/generated/resolver.dart:9780)
#17 ResolverVisitor.visitConstructorDeclaration (package:analyzer/src/generated/resolver.dart:8014)
#18 ConstructorDeclarationImpl.accept (package:analyzer/src/dart/ast/ast.dart:2856)
#19 NodeListImpl.accept (package:analyzer/src/dart/ast/ast.dart:7582)
#20 ScopedVisitor.visitClassMembersInScope (package:analyzer/src/generated/resolver.dart:9743)
#21 ScopedVisitor.visitClassDeclaration (package:analyzer/src/generated/resolver.dart:9720)
#22 ResolverVisitor.visitClassDeclaration (package:analyzer/src/generated/resolver.dart:7857)
#23 ClassDeclarationImpl.accept (package:analyzer/src/dart/ast/ast.dart:1833)
#24 ResolverVisitor.visitCompilationUnit (package:analyzer/src/generated/resolver.dart:7943)
#25 CompilationUnitImpl.accept (package:analyzer/src/dart/ast/ast.dart:2414)
#26 PartiallyResolveUnitReferencesTask.internalPerform (package:analyzer/src/task/dart.dart:3629)
#27 AnalysisTask._safelyPerform (package:analyzer/task/model.dart:329)
#28 AnalysisTask.perform (package:analyzer/task/model.dart:229)
#29 AnalysisDriver.performWorkItem (package:analyzer/src/task/driver.dart:273)
#30 AnalysisDriver.performAnalysisTask (package:analyzer/src/task/driver.dart:248)
#31 AnalysisContextImpl.performAnalysisTask. (package:analyzer/src/context/context.dart:1164)
#32 _PerformanceTagImpl.makeCurrentWhile (package:analyzer/src/generated/utilities_general.dart:212)
#33 AnalysisContextImpl.performAnalysisTask (package:analyzer/src/context/context.dart:1162)
#34 PerformAnalysisOperation.perform (package:analysis_server/src/operation/operation_analysis.dart:371)
#35 AnalysisServer.performOperation (package:analysis_server/src/analysis_server.dart:876)
#36 Future.Future. (dart:async/future.dart:118)
#37 _rootRun (dart:async/zone.dart:891)
#38 _CustomZone.run (dart:async/zone.dart:790)
#39 _CustomZone.runGuarded (dart:async/zone.dart:696)
#40 _CustomZone.bindCallback. (dart:async/zone.dart:721)
#41 _rootRun (dart:async/zone.dart:895)
#42 _CustomZone.run (dart:async/zone.dart:790)
#43 _CustomZone.runGuarded (dart:async/zone.dart:696)
#44 _CustomZone.bindCallback. (dart:async/zone.dart:721)
#45 Timer._createTimer. (dart:async-patch/timer_patch.dart:16)
#46 _Timer._runTimers (dart:isolate-patch/timer_impl.dart:385)
#47 _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:414)
#48 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:148)

java.lang.Throwable
at com.intellij.openapi.diagnostic.Logger.error(Logger.java:127)
at com.jetbrains.lang.dart.analyzer.DartAnalysisServerService$1.serverError(DartAnalysisServerService.java:208)
at com.google.dart.server.internal.BroadcastAnalysisServerListener.serverError(BroadcastAnalysisServerListener.java:180)
at com.google.dart.server.internal.remote.processor.NotificationServerErrorProcessor.process(NotificationServerErrorProcessor.java:37)
at com.google.dart.server.internal.remote.RemoteAnalysisServerImpl.processNotification(RemoteAnalysisServerImpl.java:502)
at com.google.dart.server.internal.remote.RemoteAnalysisServerImpl.processResponse(RemoteAnalysisServerImpl.java:517)
at com.google.dart.server.internal.remote.RemoteAnalysisServerImpl.access$600(RemoteAnalysisServerImpl.java:49)
at com.google.dart.server.internal.remote.RemoteAnalysisServerImpl$ServerResponseReaderThread.run(RemoteAnalysisServerImpl.java:868)

java.lang.Throwable
at com.intellij.openapi.diagnostic.Logger.error(Logger.java:127)
at com.jetbrains.lang.dart.analyzer.DartAnalysisServerService$1.serverError(DartAnalysisServerService.java:208)
at com.google.dart.server.internal.BroadcastAnalysisServerListener.serverError(BroadcastAnalysisServerListener.java:180)
at com.google.dart.server.internal.remote.processor.NotificationServerErrorProcessor.process(NotificationServerErrorProcessor.java:37)
at com.google.dart.server.internal.remote.RemoteAnalysisServerImpl.processNotification(RemoteAnalysisServerImpl.java:502)
at com.google.dart.server.internal.remote.RemoteAnalysisServerImpl.processResponse(RemoteAnalysisServerImpl.java:517)
at com.google.dart.server.internal.remote.RemoteAnalysisServerImpl.access$600(RemoteAnalysisServerImpl.java:49)
at com.google.dart.server.internal.remote.RemoteAnalysisServerImpl$ServerResponseReaderThread.run(RemoteAnalysisServerImpl.java:868)

@bwilkerson
Copy link
Member

Excellent. Then the location of the bug has moved. Thanks for the update.

@bwilkerson bwilkerson reopened this Mar 12, 2016
@bwilkerson
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
analyzer-stability area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. P1 A high priority bug; for example, a single project is unusable or has many test failures type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)
Projects
None yet
Development

No branches or pull requests

4 participants