Skip to content

Analysis server crashes consistently with a specific file #55395

Open
@akemimadoka

Description

@akemimadoka

dart version:

Dart SDK version: 3.4.0-282.0.dev (dev) (Thu Mar 28 08:25:18 2024 -0700) on "windows_x64"

Steps to Reproduce

  1. Open file https://github.com/dart-lang/sdk/blob/fedd74669aa8409d68ad0d2afb9ce133b8370e3a/pkg/vm/testcases/bytecode/type_ops.dart in IDE
  2. The analysis server starts to analyze the project.
  3. After a short period, the analysis server crashes.

Logs

[15:09:28] [Analyzer] [Info] <== {"jsonrpc":"2.0","method":"$/progress","params":{"token":"ANALYZING","value":{"kind":"end"}}}
[15:09:28] [Analyzer] [Error] Unhandled exception:
type 'ParameterMember' is not a subtype of type 'ParameterElementImpl' in type cast
#0      ExecutableElementImpl.parameters= (package:analyzer/src/dart/element/element.dart:3251:18)
#1      InheritanceManager3._inheritCovariance (package:analyzer/src/dart/element/inheritance_manager3.dart:779:14)
#2      InheritanceManager3._getInterfaceClass.<anonymous closure> (package:analyzer/src/dart/element/inheritance_manager3.dart:635:20)
#3      MapBase.map (dart:collection/maps.da…

Metadata

Metadata

Assignees

No one assigned

    Labels

    P4analyzer-crash-reportIssues which have been reported due to an analysis server crasharea-dart-modelFor issues related to conformance to the language spec in the parser, compilers or the CLI analyzer.type-bugIncorrect behavior (everything from a crash to more subtle misbehavior)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions