dart migrate is crashing #46113
Labels
area-migration (deprecated)
Deprecated: this label is no longer actively used (was: issues with the `dart migrate` tool).
crash
Process exits with SIGSEGV, SIGABRT, etc. An unhandled exception is not a crash.
P2
A bug or feature request we're likely to work on
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
On Mac M1 running OSX 11.2
Attempting to migrate
https://github.com/Pathoz-LLC/MPFlutterChart
to null safety, starting at commit aaa34b01af79d3da4fe9c2004c8033dfecc9d0a7
(prior to any changes I've made) I get the errors below:
Analyzing project...
[---------------------------------------------------------------------------------------------------------------------------------/]No analysis issues found.
]Aborting migration due to an exception. This most likely is due to a
bug in the migration tool. Please consider filing a bug report at:
Please include the SDK version (2.13.0-211.14.beta) in your bug report.
Exception details:
LateInitializationError: Field '_definingCompilationUnit@681486196' has not been initialized.
#0 LibraryElementImpl.source (package:analyzer/src/dart/element/element.dart:5248:12)
#1 MigrationResolutionHooksImpl.isLibraryNonNullableByDefault (package:nnbd_migration/src/fix_builder.dart:485:55)
#2 LibraryElementImpl.isNonNullableByDefault (package:analyzer/src/dart/element/element.dart:5125:35)
#3 LinkedElementFactory._setLibraryTypeSystem (package:analyzer/src/summary2/linked_element_factory.dart:524:40)
#4 LinkedElementFactory.createLibraryElementForReading (package:analyzer/src/summary2/linked_element_factory.dart:187:5)
#5 LinkedElementFactory.elementOfReference (package:analyzer/src/summary2/linked_element_factory.dart:258:14)
#6 LinkedElementFactory.elementOfReference (package:analyzer/src/summary2/linked_element_factory.dart:262:25)
#7 LinkedElementFactory.elementOfReference (package:analyzer/src/summary2/linked_element_factory.dart:262:25)
#8 LinkedResolutionReader._readRawElement (package:analyzer/src/summary2/bundle_reader.dart:820:27)
#9 LinkedResolutionReader.nextElement (package:analyzer/src/summary2/bundle_reader.dart:582:19)
#10 ApplyResolutionVisitor._nextElement (package:analyzer/src/summary2/apply_resolution.dart:1487:24)
#11 ApplyResolutionVisitor.visitSimpleIdentifier (package:analyzer/src/summary2/apply_resolution.dart:1172:26)
#12 SimpleIdentifierImpl.accept (package:analyzer/src/dart/ast/ast.dart:8836:50)
#13 ApplyResolutionVisitor.visitTypeName (package:analyzer/src/summary2/apply_resolution.dart:1258:15)
#14 TypeNameImpl.accept (package:analyzer/src/dart/ast/ast.dart:10068:50)
#15 ApplyResolutionVisitor.visitTypeParameterList (package:analyzer/src/summary2/apply_resolution.dart:1288:19)
#16 TypeParameterListImpl.accept (package:analyzer/src/dart/ast/ast.dart:10200:50)
#17 ApplyResolutionVisitor.visitClassDeclaration (package:analyzer/src/summary2/apply_resolution.dart:195:28)
#18 ClassDeclarationImpl.accept (package:analyzer/src/dart/ast/ast.dart:1514:50)
#19 LinkedContext.applyResolution (package:analyzer/src/summary2/bundle_reader.dart:498:11)
#20 LinkedUnitContext.applyResolution (package:analyzer/src/summary2/linked_unit_context.dart:93:25)
#21 TypeParameterizedElementMixin.typeParameters (package:analyzer/src/dart/element/element.dart:7375:22)
#22 ReplacementVisitor.visitInterfaceType (package:analyzer/src/dart/element/replacement_visitor.dart:362:20)
#23 InterfaceTypeImpl.accept (package:analyzer/src/dart/element/type.dart:851:20)
#24 NullabilityEliminator.perform (package:analyzer/src/dart/element/nullability_eliminator.dart:42:17)
#25 TypeSystemImpl.toLegacyType (package:analyzer/src/dart/element/type_system.dart:1473:34)
#26 _ClassInterfaceType.update (package:analyzer/src/dart/element/class_hierarchy.dart:186:36)
#27 InterfacesMerger.add (package:analyzer/src/dart/element/class_hierarchy.dart:133:17)
#28 ClassHierarchy._getHierarchy.append (package:analyzer/src/dart/element/class_hierarchy.dart:56:24)
#29 ClassHierarchy._getHierarchy (package:analyzer/src/dart/element/class_hierarchy.dart:69:11)
#30 ClassHierarchy.implementedInterfaces (package:analyzer/src/dart/element/class_hierarchy.dart:19:12)
#31 ClassElementImpl.allSupertypes (package:analyzer/src/dart/element/element.dart:487:39)
#32 SubtypeHelper._isInterfaceSubtypeOf (package:analyzer/src/dart/element/subtype.dart:471:38)
#33 SubtypeHelper.isSubtypeOf (package:analyzer/src/dart/element/subtype.dart:270:14)
#34 SubtypeHelper.isSubtypeOf (package:analyzer/src/dart/element/subtype.dart:243:11)
#35 SubtypeHelper.isSubtypeOf (package:analyzer/src/dart/element/subtype.dart:178:14)
#36 TypeSystemImpl.isSubtypeOf (package:analyzer/src/dart/element/type_system.dart:1139:27)
#37 MigrationResolutionHooksImpl._modifyRValueType (package:nnbd_migration/src/fix_builder.dart:700:34)
#38 MigrationResolutionHooksImpl.modifyExpressionType. (package:nnbd_migration/src/fix_builder.dart:540:16)
#39 MigrationResolutionHooksImpl._wrapExceptions (package:nnbd_migration/src/fix_builder.dart:826:21)
#40 MigrationResolutionHooksImpl.modifyExpressionType (package:nnbd_migration/src/fix_builder.dart:517:7)
#41 InvocationInferenceHelper.recordStaticType (package:analyzer/src/dart/resolver/invocation_inference_helper.dart:277:20)
#42 InvocationInferenceHelper.resolveMethodInvocation (package:analyzer/src/dart/resolver/invocation_inference_helper.dart:347:5)
#43 MethodInvocationResolver._setResolution (package:analyzer/src/dart/resolver/method_invocation_resolver.dart:867:24)
#44 MethodInvocationResolver._resolveReceiverType (package:analyzer/src/dart/resolver/method_invocation_resolver.dart:715:14)
#45 MethodInvocationResolver.resolve (package:analyzer/src/dart/resolver/method_invocation_resolver.dart:172:5)
#46 ElementResolver.visitMethodInvocation (package:analyzer/src/generated/element_resolver.dart:402:31)
#47 ResolverVisitor.visitMethodInvocation (package:analyzer/src/generated/resolver.dart:1828:21)
#48 MethodInvocationImpl.accept (package:analyzer/src/dart/ast/ast.dart:7091:50)
#49 ReturnStatementImpl.visitChildren (package:analyzer/src/dart/ast/ast.dart:8486:18)
#50 ResolverVisitor.visitNode (package:analyzer/src/generated/resolver.dart:1880:10)
#51 UnifyingAstVisitor.visitReturnStatement (package:analyzer/dart/ast/visitor.dart:3418:52)
#52 ResolverVisitor.visitReturnStatement (package:analyzer/src/generated/resolver.dart:1980:11)
#53 ReturnStatementImpl.accept (package:analyzer/src/dart/ast/ast.dart:8482:50)
#54 NodeListImpl.accept (package:analyzer/src/dart/ast/ast.dart:7517:20)
#55 BlockImpl.visitChildren (package:analyzer/src/dart/ast/ast.dart:1069:17)
#56 ResolverVisitor.visitNode (package:analyzer/src/generated/resolver.dart:1880:10)
#57 UnifyingAstVisitor.visitBlock (package:analyzer/dart/ast/visitor.dart:3147:32)
#58 ScopedVisitor.visitBlock. (package:analyzer/src/generated/resolver.dart:2624:13)
#59 ScopedVisitor._withDeclaredLocals (package:analyzer/src/generated/resolver.dart:3220:8)
#60 ScopedVisitor.visitBlock (package:analyzer/src/generated/resolver.dart:2623:5)
#61 BlockImpl.accept (package:analyzer/src/dart/ast/ast.dart:1065:50)
#62 BlockFunctionBodyImpl.visitChildren (package:analyzer/src/dart/ast/ast.dart:1024:12)
#63 ResolverVisitor.visitNode (package:analyzer/src/generated/resolver.dart:1880:10)
#64 UnifyingAstVisitor.visitBlockFunctionBody (package:analyzer/dart/ast/visitor.dart:3150:56)
#65 ScopedVisitor.visitBlockFunctionBody (package:analyzer/src/generated/resolver.dart:2633:13)
#66 ResolverVisitor.visitBlockFunctionBody (package:analyzer/src/generated/resolver.dart:1050:13)
#67 BlockFunctionBodyImpl.accept (package:analyzer/src/dart/ast/ast.dart:1020:50)
#68 MethodDeclarationImpl.visitChildren (package:analyzer/src/dart/ast/ast.dart:6951:11)
#69 ResolverVisitor.visitNode (package:analyzer/src/generated/resolver.dart:1880:10)
#70 UnifyingAstVisitor.visitMethodDeclaration (package:analyzer/dart/ast/visitor.dart:3359:56)
#71 ScopedVisitor.visitMethodDeclarationInScope (package:analyzer/src/generated/resolver.dart:3070:11)
#72 ScopedVisitor.visitMethodDeclaration (package:analyzer/src/generated/resolver.dart:3063:7)
#73 ResolverVisitor.visitMethodDeclaration (package:analyzer/src/generated/resolver.dart:1787:11)
#74 MethodDeclarationImpl.accept (package:analyzer/src/dart/ast/ast.dart:6942:50)
#75 NodeListImpl.accept (package:analyzer/src/dart/ast/ast.dart:7517:20)
#76 ScopedVisitor.visitClassMembersInScope (package:analyzer/src/generated/resolver.dart:2694:18)
#77 ScopedVisitor.visitClassDeclaration (package:analyzer/src/generated/resolver.dart:2675:7)
#78 ResolverVisitor.visitClassDeclaration (package:analyzer/src/generated/resolver.dart:1108:13)
#79 ClassDeclarationImpl.accept (package:analyzer/src/dart/ast/ast.dart:1514:50)
#80 ResolverVisitor.visitCompilationUnit (package:analyzer/src/generated/resolver.dart:1184:23)
#81 CompilationUnitImpl.accept (package:analyzer/src/dart/ast/ast.dart:2105:50)
#82 FixBuilder.visitAll (package:nnbd_migration/src/fix_builder.dart:210:12)
#83 NullabilityMigrationImpl.finalizeInput (package:nnbd_migration/src/nullability_migration_impl.dart:169:18)
#84 NonNullableFix.finalizeUnit (package:nnbd_migration/src/front_end/non_nullable_fix.dart:115:15)
#85 _FixCodeProcessor.runLaterPhases. (package:nnbd_migration/migration_cli.dart:1157:21)
#86 _FixCodeProcessor.runLaterPhases. (package:nnbd_migration/migration_cli.dart:1154:28)
#87 _FixCodeProcessor.processResources (package:nnbd_migration/migration_cli.dart:1079:30)
#88 _FixCodeProcessor.runLaterPhases (package:nnbd_migration/migration_cli.dart:1154:5)
#89 MigrationCliRunner.run (package:nnbd_migration/migration_cli.dart:747:24)
#90 MigrateCommand.run (package:nnbd_migration/migration_cli.dart:184:7)
#91 CommandRunner.runCommand (package:args/command_runner.dart:196:13)
#92 DartdevRunner.runCommand (package:dartdev/dartdev.dart:199:18)
#93 runDartdev (package:dartdev/dartdev.dart:53:16)
#94 main (file:///opt/s/w/ir/cache/builder/src/third_party/dart/pkg/dartdev/bin/dartdev.dart:11:3)
at offset 3135 in /Users/dgaedcke/dev/MPFlutterChart/mp_chart/lib/mp/core/highlight/bar_highlighter.dart (provider.getBarData())
#0 ApplyResolutionVisitor.visitClassDeclaration (package:analyzer/src/summary2/apply_resolution.dart:210:7)
#1 ClassDeclarationImpl.accept (package:analyzer/src/dart/ast/ast.dart:1514:50)
#2 LinkedContext.applyResolution (package:analyzer/src/summary2/bundle_reader.dart:498:11)
#3 LinkedUnitContext.applyResolution (package:analyzer/src/summary2/linked_unit_context.dart:93:25)
#4 TypeParameterizedElementMixin.typeParameters (package:analyzer/src/dart/element/element.dart:7375:22)
#5 ReplacementVisitor.visitInterfaceType (package:analyzer/src/dart/element/replacement_visitor.dart:362:20)
#6 InterfaceTypeImpl.accept (package:analyzer/src/dart/element/type.dart:851:20)
#7 NullabilityEliminator.perform (package:analyzer/src/dart/element/nullability_eliminator.dart:42:17)
#8 TypeSystemImpl.toLegacyType (package:analyzer/src/dart/element/type_system.dart:1473:34)
#9 _ClassInterfaceType.update (package:analyzer/src/dart/element/class_hierarchy.dart:186:36)
#10 InterfacesMerger.add (package:analyzer/src/dart/element/class_hierarchy.dart:133:17)
#11 ClassHierarchy._getHierarchy.append (package:analyzer/src/dart/element/class_hierarchy.dart:56:24)
#12 ClassHierarchy._getHierarchy (package:analyzer/src/dart/element/class_hierarchy.dart:69:11)
#13 ClassHierarchy.implementedInterfaces (package:analyzer/src/dart/element/class_hierarchy.dart:19:12)
#14 ClassElementImpl.allSupertypes (package:analyzer/src/dart/element/element.dart:487:39)
#15 SubtypeHelper._isInterfaceSubtypeOf (package:analyzer/src/dart/element/subtype.dart:471:38)
#16 SubtypeHelper.isSubtypeOf (package:analyzer/src/dart/element/subtype.dart:270:14)
#17 SubtypeHelper.isSubtypeOf (package:analyzer/src/dart/element/subtype.dart:243:11)
#18 SubtypeHelper.isSubtypeOf (package:analyzer/src/dart/element/subtype.dart:178:14)
#19 TypeSystemImpl.isSubtypeOf (package:analyzer/src/dart/element/type_system.dart:1139:27)
#20 MigrationResolutionHooksImpl._modifyRValueType (package:nnbd_migration/src/fix_builder.dart:700:34)
#21 MigrationResolutionHooksImpl.modifyExpressionType. (package:nnbd_migration/src/fix_builder.dart:540:16)
#22 MigrationResolutionHooksImpl._wrapExceptions (package:nnbd_migration/src/fix_builder.dart:826:21)
#23 MigrationResolutionHooksImpl.modifyExpressionType (package:nnbd_migration/src/fix_builder.dart:517:7)
#24 InvocationInferenceHelper.recordStaticType (package:analyzer/src/dart/resolver/invocation_inference_helper.dart:277:20)
#25 InvocationInferenceHelper.resolveMethodInvocation (package:analyzer/src/dart/resolver/invocation_inference_helper.dart:347:5)
#26 MethodInvocationResolver._setResolution (package:analyzer/src/dart/resolver/method_invocation_resolver.dart:867:24)
#27 MethodInvocationResolver._resolveReceiverType (package:analyzer/src/dart/resolver/method_invocation_resolver.dart:715:14)
#28 MethodInvocationResolver.resolve (package:analyzer/src/dart/resolver/method_invocation_resolver.dart:172:5)
#29 ElementResolver.visitMethodInvocation (package:analyzer/src/generated/element_resolver.dart:402:31)
#30 ResolverVisitor.visitMethodInvocation (package:analyzer/src/generated/resolver.dart:1828:21)
#31 MethodInvocationImpl.accept (package:analyzer/src/dart/ast/ast.dart:7091:50)
#32 ReturnStatementImpl.visitChildren (package:analyzer/src/dart/ast/ast.dart:8486:18)
#33 ResolverVisitor.visitNode (package:analyzer/src/generated/resolver.dart:1880:10)
#34 UnifyingAstVisitor.visitReturnStatement (package:analyzer/dart/ast/visitor.dart:3418:52)
#35 ResolverVisitor.visitReturnStatement (package:analyzer/src/generated/resolver.dart:1980:11)
#36 ReturnStatementImpl.accept (package:analyzer/src/dart/ast/ast.dart:8482:50)
#37 NodeListImpl.accept (package:analyzer/src/dart/ast/ast.dart:7517:20)
#38 BlockImpl.visitChildren (package:analyzer/src/dart/ast/ast.dart:1069:17)
#39 ResolverVisitor.visitNode (package:analyzer/src/generated/resolver.dart:1880:10)
#40 UnifyingAstVisitor.visitBlock (package:analyzer/dart/ast/visitor.dart:3147:32)
#41 ScopedVisitor.visitBlock. (package:analyzer/src/generated/resolver.dart:2624:13)
#42 ScopedVisitor._withDeclaredLocals (package:analyzer/src/generated/resolver.dart:3220:8)
#43 ScopedVisitor.visitBlock (package:analyzer/src/generated/resolver.dart:2623:5)
#44 BlockImpl.accept (package:analyzer/src/dart/ast/ast.dart:1065:50)
#45 BlockFunctionBodyImpl.visitChildren (package:analyzer/src/dart/ast/ast.dart:1024:12)
#46 ResolverVisitor.visitNode (package:analyzer/src/generated/resolver.dart:1880:10)
#47 UnifyingAstVisitor.visitBlockFunctionBody (package:analyzer/dart/ast/visitor.dart:3150:56)
#48 ScopedVisitor.visitBlockFunctionBody (package:analyzer/src/generated/resolver.dart:2633:13)
#49 ResolverVisitor.visitBlockFunctionBody (package:analyzer/src/generated/resolver.dart:1050:13)
#50 BlockFunctionBodyImpl.accept (package:analyzer/src/dart/ast/ast.dart:1020:50)
#51 MethodDeclarationImpl.visitChildren (package:analyzer/src/dart/ast/ast.dart:6951:11)
#52 ResolverVisitor.visitNode (package:analyzer/src/generated/resolver.dart:1880:10)
#53 UnifyingAstVisitor.visitMethodDeclaration (package:analyzer/dart/ast/visitor.dart:3359:56)
#54 ScopedVisitor.visitMethodDeclarationInScope (package:analyzer/src/generated/resolver.dart:3070:11)
#55 ScopedVisitor.visitMethodDeclaration (package:analyzer/src/generated/resolver.dart:3063:7)
#56 ResolverVisitor.visitMethodDeclaration (package:analyzer/src/generated/resolver.dart:1787:11)
#57 MethodDeclarationImpl.accept (package:analyzer/src/dart/ast/ast.dart:6942:50)
#58 NodeListImpl.accept (package:analyzer/src/dart/ast/ast.dart:7517:20)
#59 ScopedVisitor.visitClassMembersInScope (package:analyzer/src/generated/resolver.dart:2694:18)
#60 ScopedVisitor.visitClassDeclaration (package:analyzer/src/generated/resolver.dart:2675:7)
#61 ResolverVisitor.visitClassDeclaration (package:analyzer/src/generated/resolver.dart:1108:13)
#62 ClassDeclarationImpl.accept (package:analyzer/src/dart/ast/ast.dart:1514:50)
#63 ResolverVisitor.visitCompilationUnit (package:analyzer/src/generated/resolver.dart:1184:23)
#64 CompilationUnitImpl.accept (package:analyzer/src/dart/ast/ast.dart:2105:50)
#65 FixBuilder.visitAll (package:nnbd_migration/src/fix_builder.dart:210:12)
#66 NullabilityMigrationImpl.finalizeInput (package:nnbd_migration/src/nullability_migration_impl.dart:169:18)
#67 NonNullableFix.finalizeUnit (package:nnbd_migration/src/front_end/non_nullable_fix.dart:115:15)
#68 _FixCodeProcessor.runLaterPhases. (package:nnbd_migration/migration_cli.dart:1157:21)
#69 _FixCodeProcessor.runLaterPhases. (package:nnbd_migration/migration_cli.dart:1154:28)
#70 _FixCodeProcessor.processResources (package:nnbd_migration/migration_cli.dart:1079:30)
#71 _FixCodeProcessor.runLaterPhases (package:nnbd_migration/migration_cli.dart:1154:5)
#72 MigrationCliRunner.run (package:nnbd_migration/migration_cli.dart:747:24)
#73 MigrateCommand.run (package:nnbd_migration/migration_cli.dart:184:7)
#74 CommandRunner.runCommand (package:args/command_runner.dart:196:13)
#75 DartdevRunner.runCommand (package:dartdev/dartdev.dart:199:18)
#76 runDartdev (package:dartdev/dartdev.dart:53:16)
#77 main (file:///opt/s/w/ir/cache/builder/src/third_party/dart/pkg/dartdev/bin/dartdev.dart:11:3)
The text was updated successfully, but these errors were encountered: