Skip to content

[ci-scan] crossgen2 TypeLoadException 'generic types cannot have explicit layout' aborting R2R Regression_4 work item (exit 134) #133316

Closed as duplicate

Description

@github-actions

Build Information

Error Details

Unhandled exception. Internal.TypeSystem.TypeSystemException+TypeLoadException: Failed to load type 'Gen' from assembly 'b27077' because generic types cannot have explicit layout
   at Internal.TypeSystem.ThrowHelper.ThrowTypeLoadException(ExceptionStringID, String, String) in /_/src/coreclr/tools/Common/TypeSystem/Common/ThrowHelper.cs:line 17
   at Internal.TypeSystem.MetadataFieldLayoutAlgorithm.ComputeInstanceLayout(DefType, InstanceLayoutKind) in /_/src/coreclr/tools/Common/TypeSystem/Common/MetadataFieldLayoutAlgorithm.cs:line 27
   at Internal.TypeSystem.DefType.ComputeInstanceLayout(InstanceLayoutKind) in /_/src/coreclr/tools/Common/TypeSystem/Common/DefType.FieldLayout.cs:line 505
   at ILCompiler.CompilerTypeSystemContext.EnsureLoadableTypeUncached(TypeDesc) in /_/src/coreclr/tools/Common/Compiler/CompilerTypeSystemContext.Validation.cs:line 366
   at ILCompiler.CompilerTypeSystemContext.EnsureLoadableMethod(MethodDesc) in /_/src/coreclr/tools/Common/Compiler/CompilerTypeSystemContext.Validation.cs:line 230
Crossgen2 failed with exitcode: 134

Error Message

{
  "ErrorMessage": "Failed to load type 'Gen' from assembly 'b27077' because generic types cannot have explicit layout",
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Agentic workflow metadata (ci-failure-scan)

Duplicate search

Searched open dotnet/runtime issues for the crossgen2 generic types cannot have explicit layout TypeLoadException in MetadataFieldLayoutAlgorithm.ComputeInstanceLayout and for the Regression_4 / b27077 R2R signature; no existing Known Build Error or tracker matched. This is distinct from the Negative002 (Gen1(System.__Canon)` ... format is invalid) crossgen2 crash filed separately this run.


Filed by the ci-failure-scan workflow (detection only). Mitigation is owned by ci-failure-fix.

Note

This issue was generated by an AI agent (GitHub Copilot / ci-failure-scan workflow)._

Generated by CI Outer-Loop Failure Scanner · opus48 · 990.8 AIC · ⌖ 13.1 AIC · ⊞ 20.7K · ◷

Report

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 0 0

Activity

  1. added
    blocking-clean-ci
    Known Build Error
    on Sep 6, 2026
  2. added
    untriaged
    on Sep 6, 2026
  3. dotnet-policy-service commented on Sep 8, 2026

    @dotnet-policy-service
    Contributor

    Tagging subscribers to this area: @dotnet/crossgen-contrib
    See info in area-owners.md if you want to be subscribed.

  4. removed
    untriaged
    on Sep 8, 2026
  5. locked and limited conversation to collaborators on Oct 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Known Build Erroragentic-workflowsarea-ReadyToRunblocking-clean-ci

    Type

    No type

    Projects

    • Status
      No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions