Skip to content

cast error in flutter manifest yaml parser #59610

Closed

Description

@zanderso

From crash logging in beta/1.19.0-4.1.pre. Usually from run --machine.

_CastError: type 'String' is not a subtype of type 'YamlMap' in type cast
  | at FlutterManifest.createFromString | (flutter_manifest.dart:43)
  | at FlutterManifest.createFromPath | (flutter_manifest.dart:37)
  | at FlutterProject._readManifest | (project.dart:211)
  | at FlutterProjectFactory.fromDirectory.<anonymous closure> | (project.dart:46)
  | at _LinkedHashMapMixin.putIfAbsent | (compact_hash.dart:291)
  | at FlutterProjectFactory.fromDirectory | (project.dart:45)
  | at FlutterProject.fromDirectory | (project.dart:81)
  | at FlutterProject.current | (project.dart:85)
  | at FlutterCommand.findAllTargetDevices | (flutter_command.dart:821)
  | at RunCommand.validateCommand | (run.dart:331)
  | at <asynchronous gap> | (async)
  | at FlutterCommand.verifyThenRunCommand | (flutter_command.dart:777)
  | at <asynchronous gap> | (async)
  | at FlutterCommand.run.<anonymous closure> | (flutter_command.dart:694)
  | at <asynchronous gap> | (async)
  | at FlutterCommand.run.<anonymous closure> | (flutter_command.dart)
  | at AppContext.run.<anonymous closure> | (context.dart:150)
  | at _rootRun | (zone.dart:1190)
  | at _CustomZone.run | (zone.dart:1093)
  | at _runZoned | (zone.dart:1630)
  | at runZoned | (zone.dart:1550)
  | at AppContext.run | (context.dart:149)
  | at FlutterCommand.run | (flutter_command.dart:684)
  | at CommandRunner.runCommand | (command_runner.dart:197)
  | at FlutterCommandRunner.runCommand.<anonymous closure> | (flutter_command_runner.dart:339)
  | at <asynchronous gap> | (async)
  | at FlutterCommandRunner.runCommand.<anonymous closure> | (flutter_command_runner.dart)
  | at AppContext.run.<anonymous closure> | (context.dart:150)
  | at _rootRun | (zone.dart:1190)
  | at _CustomZone.run | (zone.dart:1093)
  | at _runZoned | (zone.dart:1630)
  | at runZoned | (zone.dart:1550)
  | at AppContext.run | (context.dart:149)
  | at FlutterCommandRunner.runCommand | (flutter_command_runner.dart:289)
  | at <asynchronous gap> | (async)
  | at CommandRunner.run.<anonymous closure> | (command_runner.dart:112)
  | at new Future.sync | (future.dart:222)
  | at CommandRunner.run | (command_runner.dart:112)
  | at FlutterCommandRunner.run | (flutter_command_runner.dart:232)
  | at run.<anonymous closure>.<anonymous closure> | (runner.dart:61)
  | at _rootRun | (zone.dart:1190)
  | at _CustomZone.run | (zone.dart:1093)
  | at _runZoned | (zone.dart:1630)
  | at runZonedGuarded | (zone.dart:1618)
  | at runZoned | (zone.dart:1547)
  | at run.<anonymous closure> | (runner.dart:59)
  | at <asynchronous gap> | (async)
  | at run.<anonymous closure> | (runner.dart)
  | at runInContext.runnerWrapper | (context_runner.dart:62)
  | at <asynchronous gap> | (async)
  | at runInContext.runnerWrapper | (context_runner.dart)
  | at AppContext.run.<anonymous closure> | (context.dart:150)
  | at _rootRun | (zone.dart:1190)
  | at _CustomZone.run | (zone.dart:1093)
  | at _runZoned | (zone.dart:1630)
  | at runZoned | (zone.dart:1550)
  | at AppContext.run | (context.dart:149)
  | at runInContext | (context_runner.dart:65)
  | at run | (runner.dart:46)
  | at main | (executable.dart:68)
  | at main | (flutter_tools.dart:8)
  | at _startIsolate.<anonymous closure> | (isolate_patch.dart:299)
  | at _RawReceivePortImpl._handleMessage | (isolate_patch.dart:168)

@jonahwilliams @jmagman

Activity

  1. added
    c: crashStack traces logged to the console
    toolAffects the "flutter" command-line tool. See also t: labels.
    P1High-priority issues at the top of the work list
    on Jun 16, 2020
  2. self-assigned this
    on Jun 17, 2020
  3. added
    P1High-priority issues at the top of the work list
    and removed
    P1High-priority issues at the top of the work list
    on Jun 17, 2020
  4. github-actions commented on Aug 19, 2021

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  5. locked as resolved and limited conversation to collaborators on Aug 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work listc: crashStack traces logged to the consoletoolAffects the "flutter" command-line tool. See also t: labels.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions